Overview
S Balance
0 S
S Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
1900182 | 37 days ago | 1 S |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
BabyPinky
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
No with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
/* ██████ ██████ ██████ ██ ██ ██████ ██████ ██████ ██ ██ ██████ ███████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ █████ ██████ ██ ██ ██ ██ █████ ██ ██ █████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██████ ██████ ██████ ██ ██ ██████ ██████ ██████ ██ ██ ██ ██████ ███████ ████ Find any smart contract, and build your project faster: https://www.cookbook.dev Twitter: https://twitter.com/cookbook_dev Discord: https://discord.gg/cookbookdev Find this contract on Cookbook: https://www.cookbook.dev/contracts/simple-nft-sale/?utm=code */ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; /** * @title Simple NFT Sale * @author Breakthrough Labs Inc. * @notice NFT, Sale, ERC721 * @dev ERC721 NFT with the following features: * * - Built-in sale with an adjustable price. * - Reserve function for the owner to mint free NFTs. * - Fixed maximum supply. * */ contract BabyPinky is ERC721, ERC721Enumerable, Ownable { string private _baseURIextended; bool public saleIsActive = true; uint256 public immutable MAX_SUPPLY; uint256 public currentPrice; /** * @param _name NFT Name * @param _symbol NFT Symbol * @param _uri Token URI used for metadata * @param price Initial Price | precision:18 * @param maxSupply Maximum # of NFTs */ constructor( string memory _name, string memory _symbol, string memory _uri, uint256 price, uint256 maxSupply ) payable ERC721(_name, _symbol) { _baseURIextended = _uri; MAX_SUPPLY = maxSupply; currentPrice = price; } /** * @dev An external method for users to purchase and mint NFTs. Requires that the sale * is active, that the minted NFTs will not exceed the `MAX_SUPPLY`, and that a * sufficient payable value is sent. * @param amount The number of NFTs to mint. */ function mint(uint256 amount) external payable { uint256 ts = totalSupply(); require(balanceOf(msg.sender) == 0, "Already minted"); require(saleIsActive, "Sale must be active to mint tokens"); require(ts + amount <= MAX_SUPPLY, "Purchase would exceed max tokens"); require( currentPrice * amount <= msg.value, "Value sent is not correct" ); for (uint256 i = 0; i < amount; i++) { _safeMint(msg.sender, ts + i); } } /** * @dev A way for the owner to reserve a specifc number of NFTs without having to * interact with the sale. * @param n The number of NFTs to reserve. */ function reserve(uint256 n) external onlyOwner { uint256 supply = totalSupply(); require(supply + n <= MAX_SUPPLY, "Purchase would exceed max tokens"); for (uint256 i = 0; i < n; i++) { _safeMint(msg.sender, supply + i); } } /** * @dev A way for the owner to withdraw all proceeds from the sale. */ function withdraw() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } /** * @dev Updates the baseURI that will be used to retrieve NFT metadata. * @param baseURI_ The baseURI to be used. */ function setBaseURI(string memory baseURI_) external onlyOwner { _baseURIextended = baseURI_; } /** * @dev Sets whether or not the NFT sale is active. * @param isActive Whether or not the sale will be active. */ function setSaleIsActive(bool isActive) external onlyOwner { saleIsActive = isActive; } /** * @dev Sets the price of each NFT during the initial sale. * @param price The price of each NFT during the initial sale | precision:18 */ function setCurrentPrice(uint256 price) external onlyOwner { currentPrice = price; } // Required Overrides function _baseURI() internal view virtual override returns (string memory) { return _baseURIextended; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface( bytes4 interfaceId ) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } }
// 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.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/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.7.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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @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 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.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_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) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @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); } }
{ "evmVersion": "paris", "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"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":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"reserve","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":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setCurrentPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setSaleIsActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526001600c60006101000a81548160ff0219169083151502179055506040516142f83803806142f883398181016040528101906100409190610322565b848481600090816100519190610608565b5080600190816100619190610608565b5050506100806100756100a960201b60201c565b6100b160201b60201c565b82600b908161008f9190610608565b50806080818152505081600d8190555050505050506106da565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6101de82610195565b810181811067ffffffffffffffff821117156101fd576101fc6101a6565b5b80604052505050565b6000610210610177565b905061021c82826101d5565b919050565b600067ffffffffffffffff82111561023c5761023b6101a6565b5b61024582610195565b9050602081019050919050565b60005b83811015610270578082015181840152602081019050610255565b60008484015250505050565b600061028f61028a84610221565b610206565b9050828152602081018484840111156102ab576102aa610190565b5b6102b6848285610252565b509392505050565b600082601f8301126102d3576102d261018b565b5b81516102e384826020860161027c565b91505092915050565b6000819050919050565b6102ff816102ec565b811461030a57600080fd5b50565b60008151905061031c816102f6565b92915050565b600080600080600060a0868803121561033e5761033d610181565b5b600086015167ffffffffffffffff81111561035c5761035b610186565b5b610368888289016102be565b955050602086015167ffffffffffffffff81111561038957610388610186565b5b610395888289016102be565b945050604086015167ffffffffffffffff8111156103b6576103b5610186565b5b6103c2888289016102be565b93505060606103d38882890161030d565b92505060806103e48882890161030d565b9150509295509295909350565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061044357607f821691505b602082108103610456576104556103fc565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026104be7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610481565b6104c88683610481565b95508019841693508086168417925050509392505050565b6000819050919050565b60006105056105006104fb846102ec565b6104e0565b6102ec565b9050919050565b6000819050919050565b61051f836104ea565b61053361052b8261050c565b84845461048e565b825550505050565b600090565b61054861053b565b610553818484610516565b505050565b5b818110156105775761056c600082610540565b600181019050610559565b5050565b601f8211156105bc5761058d8161045c565b61059684610471565b810160208510156105a5578190505b6105b96105b185610471565b830182610558565b50505b505050565b600082821c905092915050565b60006105df600019846008026105c1565b1980831691505092915050565b60006105f883836105ce565b9150826002028217905092915050565b610611826103f1565b67ffffffffffffffff81111561062a576106296101a6565b5b610634825461042b565b61063f82828561057b565b600060209050601f8311600181146106725760008415610660578287015190505b61066a85826105ec565b8655506106d2565b601f1984166106808661045c565b60005b828110156106a857848901518255600182019150602085019450602081019050610683565b868310156106c557848901516106c1601f8916826105ce565b8355505b6001600288020188555050505b505050505050565b608051613bf561070360003960008181610a0101528181610cb20152610eba0152613bf56000f3fe6080604052600436106101b75760003560e01c80636352211e116100ec578063a0712d681161008a578063c87b56dd11610064578063c87b56dd146105e7578063e985e9c514610624578063eb8d244414610661578063f2fde38b1461068c576101b7565b8063a0712d6814610579578063a22cb46514610595578063b88d4fde146105be576101b7565b8063819b25ba116100c6578063819b25ba146104cf5780638da5cb5b146104f857806395d89b41146105235780639d1b464a1461054e576101b7565b80636352211e1461043e57806370a082311461047b578063715018a6146104b8576101b7565b806323b872dd116101595780633ccfd60b116101335780633ccfd60b1461039857806342842e0e146103af5780634f6ccce7146103d857806355f804b314610415576101b7565b806323b872dd146103075780632f745c591461033057806332cb6b0c1461036d576101b7565b8063081812fc11610195578063081812fc1461024d578063095ea7b31461028a57806318160ddd146102b357806318b20071146102de576101b7565b806301ffc9a7146101bc57806302c88989146101f957806306fdde0314610222575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de9190612583565b6106b5565b6040516101f091906125cb565b60405180910390f35b34801561020557600080fd5b50610220600480360381019061021b9190612612565b6106c7565b005b34801561022e57600080fd5b506102376106ec565b60405161024491906126cf565b60405180910390f35b34801561025957600080fd5b50610274600480360381019061026f9190612727565b61077e565b6040516102819190612795565b60405180910390f35b34801561029657600080fd5b506102b160048036038101906102ac91906127dc565b6107c4565b005b3480156102bf57600080fd5b506102c86108db565b6040516102d5919061282b565b60405180910390f35b3480156102ea57600080fd5b5061030560048036038101906103009190612727565b6108e8565b005b34801561031357600080fd5b5061032e60048036038101906103299190612846565b6108fa565b005b34801561033c57600080fd5b50610357600480360381019061035291906127dc565b61095a565b604051610364919061282b565b60405180910390f35b34801561037957600080fd5b506103826109ff565b60405161038f919061282b565b60405180910390f35b3480156103a457600080fd5b506103ad610a23565b005b3480156103bb57600080fd5b506103d660048036038101906103d19190612846565b610a74565b005b3480156103e457600080fd5b506103ff60048036038101906103fa9190612727565b610a94565b60405161040c919061282b565b60405180910390f35b34801561042157600080fd5b5061043c600480360381019061043791906129ce565b610b05565b005b34801561044a57600080fd5b5061046560048036038101906104609190612727565b610b20565b6040516104729190612795565b60405180910390f35b34801561048757600080fd5b506104a2600480360381019061049d9190612a17565b610bd1565b6040516104af919061282b565b60405180910390f35b3480156104c457600080fd5b506104cd610c88565b005b3480156104db57600080fd5b506104f660048036038101906104f19190612727565b610c9c565b005b34801561050457600080fd5b5061050d610d50565b60405161051a9190612795565b60405180910390f35b34801561052f57600080fd5b50610538610d7a565b60405161054591906126cf565b60405180910390f35b34801561055a57600080fd5b50610563610e0c565b604051610570919061282b565b60405180910390f35b610593600480360381019061058e9190612727565b610e12565b005b3480156105a157600080fd5b506105bc60048036038101906105b79190612a44565b610fa8565b005b3480156105ca57600080fd5b506105e560048036038101906105e09190612b25565b610fbe565b005b3480156105f357600080fd5b5061060e60048036038101906106099190612727565b611020565b60405161061b91906126cf565b60405180910390f35b34801561063057600080fd5b5061064b60048036038101906106469190612ba8565b611088565b60405161065891906125cb565b60405180910390f35b34801561066d57600080fd5b5061067661111c565b60405161068391906125cb565b60405180910390f35b34801561069857600080fd5b506106b360048036038101906106ae9190612a17565b61112f565b005b60006106c0826111b2565b9050919050565b6106cf61122c565b80600c60006101000a81548160ff02191690831515021790555050565b6060600080546106fb90612c17565b80601f016020809104026020016040519081016040528092919081815260200182805461072790612c17565b80156107745780601f1061074957610100808354040283529160200191610774565b820191906000526020600020905b81548152906001019060200180831161075757829003601f168201915b5050505050905090565b6000610789826112aa565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107cf82610b20565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361083f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083690612cba565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661085e6112f5565b73ffffffffffffffffffffffffffffffffffffffff16148061088d575061088c816108876112f5565b611088565b5b6108cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c390612d4c565b60405180910390fd5b6108d683836112fd565b505050565b6000600880549050905090565b6108f061122c565b80600d8190555050565b61090b6109056112f5565b826113b6565b61094a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094190612dde565b60405180910390fd5b61095583838361144b565b505050565b600061096583610bd1565b82106109a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099d90612e70565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b610a2b61122c565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610a71573d6000803e3d6000fd5b50565b610a8f83838360405180602001604052806000815250610fbe565b505050565b6000610a9e6108db565b8210610adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad690612f02565b60405180910390fd5b60088281548110610af357610af2612f22565b5b90600052602060002001549050919050565b610b0d61122c565b80600b9081610b1c91906130fd565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbf9061321b565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c38906132ad565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610c9061122c565b610c9a60006116b1565b565b610ca461122c565b6000610cae6108db565b90507f00000000000000000000000000000000000000000000000000000000000000008282610cdd91906132fc565b1115610d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d159061337c565b60405180910390fd5b60005b82811015610d4b57610d3e338284610d3991906132fc565b611777565b8080600101915050610d21565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610d8990612c17565b80601f0160208091040260200160405190810160405280929190818152602001828054610db590612c17565b8015610e025780601f10610dd757610100808354040283529160200191610e02565b820191906000526020600020905b815481529060010190602001808311610de557829003601f168201915b5050505050905090565b600d5481565b6000610e1c6108db565b90506000610e2933610bd1565b14610e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e60906133e8565b60405180910390fd5b600c60009054906101000a900460ff16610eb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eaf9061347a565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000008282610ee591906132fc565b1115610f26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1d9061337c565b60405180910390fd5b3482600d54610f35919061349a565b1115610f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6d90613528565b60405180910390fd5b60005b82811015610fa357610f96338284610f9191906132fc565b611777565b8080600101915050610f79565b505050565b610fba610fb36112f5565b8383611795565b5050565b610fcf610fc96112f5565b836113b6565b61100e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100590612dde565b60405180910390fd5b61101a84848484611901565b50505050565b606061102b826112aa565b600061103561195d565b905060008151116110555760405180602001604052806000815250611080565b8061105f846119ef565b604051602001611070929190613584565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600c60009054906101000a900460ff1681565b61113761122c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119d9061361a565b60405180910390fd5b6111af816116b1565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611225575061122482611b4f565b5b9050919050565b6112346112f5565b73ffffffffffffffffffffffffffffffffffffffff16611252610d50565b73ffffffffffffffffffffffffffffffffffffffff16146112a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129f90613686565b60405180910390fd5b565b6112b381611c31565b6112f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e99061321b565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661137083610b20565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806113c283610b20565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061140457506114038185611088565b5b8061144257508373ffffffffffffffffffffffffffffffffffffffff1661142a8461077e565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661146b82610b20565b73ffffffffffffffffffffffffffffffffffffffff16146114c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b890613718565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611530576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611527906137aa565b60405180910390fd5b61153b838383611c9d565b6115466000826112fd565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461159691906137ca565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115ed91906132fc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46116ac838383611cad565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611791828260405180602001604052806000815250611cb2565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611803576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fa9061384a565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118f491906125cb565b60405180910390a3505050565b61190c84848461144b565b61191884848484611d0d565b611957576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194e906138dc565b60405180910390fd5b50505050565b6060600b805461196c90612c17565b80601f016020809104026020016040519081016040528092919081815260200182805461199890612c17565b80156119e55780601f106119ba576101008083540402835291602001916119e5565b820191906000526020600020905b8154815290600101906020018083116119c857829003601f168201915b5050505050905090565b606060008203611a36576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611b4a565b600082905060005b60008214611a68578080611a51906138fc565b915050600a82611a619190613973565b9150611a3e565b60008167ffffffffffffffff811115611a8457611a836128a3565b5b6040519080825280601f01601f191660200182016040528015611ab65781602001600182028036833780820191505090505b5090505b60008514611b4357600182611acf91906137ca565b9150600a85611ade91906139a4565b6030611aea91906132fc565b60f81b818381518110611b0057611aff612f22565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611b3c9190613973565b9450611aba565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c1a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c2a5750611c2982611e94565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b611ca8838383611efe565b505050565b505050565b611cbc8383612010565b611cc96000848484611d0d565b611d08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cff906138dc565b60405180910390fd5b505050565b6000611d2e8473ffffffffffffffffffffffffffffffffffffffff166121e9565b15611e87578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611d576112f5565b8786866040518563ffffffff1660e01b8152600401611d799493929190613a2a565b6020604051808303816000875af1925050508015611db557506040513d601f19601f82011682018060405250810190611db29190613a8b565b60015b611e37573d8060008114611de5576040519150601f19603f3d011682016040523d82523d6000602084013e611dea565b606091505b506000815103611e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e26906138dc565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050611e8c565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611f0983838361220c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f4b57611f4681612211565b611f8a565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611f8957611f88838261225a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611fcc57611fc7816123c7565b61200b565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461200a576120098282612498565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361207f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207690613b04565b60405180910390fd5b61208881611c31565b156120c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bf90613b70565b60405180910390fd5b6120d460008383611c9d565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461212491906132fc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121e560008383611cad565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161226784610bd1565b61227191906137ca565b9050600060076000848152602001908152602001600020549050818114612356576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506123db91906137ca565b905060006009600084815260200190815260200160002054905060006008838154811061240b5761240a612f22565b5b90600052602060002001549050806008838154811061242d5761242c612f22565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061247c5761247b613b90565b5b6001900381819060005260206000200160009055905550505050565b60006124a383610bd1565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6125608161252b565b811461256b57600080fd5b50565b60008135905061257d81612557565b92915050565b60006020828403121561259957612598612521565b5b60006125a78482850161256e565b91505092915050565b60008115159050919050565b6125c5816125b0565b82525050565b60006020820190506125e060008301846125bc565b92915050565b6125ef816125b0565b81146125fa57600080fd5b50565b60008135905061260c816125e6565b92915050565b60006020828403121561262857612627612521565b5b6000612636848285016125fd565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561267957808201518184015260208101905061265e565b60008484015250505050565b6000601f19601f8301169050919050565b60006126a18261263f565b6126ab818561264a565b93506126bb81856020860161265b565b6126c481612685565b840191505092915050565b600060208201905081810360008301526126e98184612696565b905092915050565b6000819050919050565b612704816126f1565b811461270f57600080fd5b50565b600081359050612721816126fb565b92915050565b60006020828403121561273d5761273c612521565b5b600061274b84828501612712565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061277f82612754565b9050919050565b61278f81612774565b82525050565b60006020820190506127aa6000830184612786565b92915050565b6127b981612774565b81146127c457600080fd5b50565b6000813590506127d6816127b0565b92915050565b600080604083850312156127f3576127f2612521565b5b6000612801858286016127c7565b925050602061281285828601612712565b9150509250929050565b612825816126f1565b82525050565b6000602082019050612840600083018461281c565b92915050565b60008060006060848603121561285f5761285e612521565b5b600061286d868287016127c7565b935050602061287e868287016127c7565b925050604061288f86828701612712565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128db82612685565b810181811067ffffffffffffffff821117156128fa576128f96128a3565b5b80604052505050565b600061290d612517565b905061291982826128d2565b919050565b600067ffffffffffffffff821115612939576129386128a3565b5b61294282612685565b9050602081019050919050565b82818337600083830152505050565b600061297161296c8461291e565b612903565b90508281526020810184848401111561298d5761298c61289e565b5b61299884828561294f565b509392505050565b600082601f8301126129b5576129b4612899565b5b81356129c584826020860161295e565b91505092915050565b6000602082840312156129e4576129e3612521565b5b600082013567ffffffffffffffff811115612a0257612a01612526565b5b612a0e848285016129a0565b91505092915050565b600060208284031215612a2d57612a2c612521565b5b6000612a3b848285016127c7565b91505092915050565b60008060408385031215612a5b57612a5a612521565b5b6000612a69858286016127c7565b9250506020612a7a858286016125fd565b9150509250929050565b600067ffffffffffffffff821115612a9f57612a9e6128a3565b5b612aa882612685565b9050602081019050919050565b6000612ac8612ac384612a84565b612903565b905082815260208101848484011115612ae457612ae361289e565b5b612aef84828561294f565b509392505050565b600082601f830112612b0c57612b0b612899565b5b8135612b1c848260208601612ab5565b91505092915050565b60008060008060808587031215612b3f57612b3e612521565b5b6000612b4d878288016127c7565b9450506020612b5e878288016127c7565b9350506040612b6f87828801612712565b925050606085013567ffffffffffffffff811115612b9057612b8f612526565b5b612b9c87828801612af7565b91505092959194509250565b60008060408385031215612bbf57612bbe612521565b5b6000612bcd858286016127c7565b9250506020612bde858286016127c7565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612c2f57607f821691505b602082108103612c4257612c41612be8565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612ca460218361264a565b9150612caf82612c48565b604082019050919050565b60006020820190508181036000830152612cd381612c97565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000612d36603e8361264a565b9150612d4182612cda565b604082019050919050565b60006020820190508181036000830152612d6581612d29565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000612dc8602e8361264a565b9150612dd382612d6c565b604082019050919050565b60006020820190508181036000830152612df781612dbb565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000612e5a602b8361264a565b9150612e6582612dfe565b604082019050919050565b60006020820190508181036000830152612e8981612e4d565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000612eec602c8361264a565b9150612ef782612e90565b604082019050919050565b60006020820190508181036000830152612f1b81612edf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612fb37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612f76565b612fbd8683612f76565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612ffa612ff5612ff0846126f1565b612fd5565b6126f1565b9050919050565b6000819050919050565b61301483612fdf565b61302861302082613001565b848454612f83565b825550505050565b600090565b61303d613030565b61304881848461300b565b505050565b5b8181101561306c57613061600082613035565b60018101905061304e565b5050565b601f8211156130b15761308281612f51565b61308b84612f66565b8101602085101561309a578190505b6130ae6130a685612f66565b83018261304d565b50505b505050565b600082821c905092915050565b60006130d4600019846008026130b6565b1980831691505092915050565b60006130ed83836130c3565b9150826002028217905092915050565b6131068261263f565b67ffffffffffffffff81111561311f5761311e6128a3565b5b6131298254612c17565b613134828285613070565b600060209050601f8311600181146131675760008415613155578287015190505b61315f85826130e1565b8655506131c7565b601f19841661317586612f51565b60005b8281101561319d57848901518255600182019150602085019450602081019050613178565b868310156131ba57848901516131b6601f8916826130c3565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061320560188361264a565b9150613210826131cf565b602082019050919050565b60006020820190508181036000830152613234816131f8565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061329760298361264a565b91506132a28261323b565b604082019050919050565b600060208201905081810360008301526132c68161328a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613307826126f1565b9150613312836126f1565b925082820190508082111561332a576133296132cd565b5b92915050565b7f507572636861736520776f756c6420657863656564206d617820746f6b656e73600082015250565b600061336660208361264a565b915061337182613330565b602082019050919050565b6000602082019050818103600083015261339581613359565b9050919050565b7f416c7265616479206d696e746564000000000000000000000000000000000000600082015250565b60006133d2600e8361264a565b91506133dd8261339c565b602082019050919050565b60006020820190508181036000830152613401816133c5565b9050919050565b7f53616c65206d7573742062652061637469766520746f206d696e7420746f6b6560008201527f6e73000000000000000000000000000000000000000000000000000000000000602082015250565b600061346460228361264a565b915061346f82613408565b604082019050919050565b6000602082019050818103600083015261349381613457565b9050919050565b60006134a5826126f1565b91506134b0836126f1565b92508282026134be816126f1565b915082820484148315176134d5576134d46132cd565b5b5092915050565b7f56616c75652073656e74206973206e6f7420636f727265637400000000000000600082015250565b600061351260198361264a565b915061351d826134dc565b602082019050919050565b6000602082019050818103600083015261354181613505565b9050919050565b600081905092915050565b600061355e8261263f565b6135688185613548565b935061357881856020860161265b565b80840191505092915050565b60006135908285613553565b915061359c8284613553565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061360460268361264a565b915061360f826135a8565b604082019050919050565b60006020820190508181036000830152613633816135f7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061367060208361264a565b915061367b8261363a565b602082019050919050565b6000602082019050818103600083015261369f81613663565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061370260258361264a565b915061370d826136a6565b604082019050919050565b60006020820190508181036000830152613731816136f5565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061379460248361264a565b915061379f82613738565b604082019050919050565b600060208201905081810360008301526137c381613787565b9050919050565b60006137d5826126f1565b91506137e0836126f1565b92508282039050818111156137f8576137f76132cd565b5b92915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061383460198361264a565b915061383f826137fe565b602082019050919050565b6000602082019050818103600083015261386381613827565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006138c660328361264a565b91506138d18261386a565b604082019050919050565b600060208201905081810360008301526138f5816138b9565b9050919050565b6000613907826126f1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613939576139386132cd565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061397e826126f1565b9150613989836126f1565b92508261399957613998613944565b5b828204905092915050565b60006139af826126f1565b91506139ba836126f1565b9250826139ca576139c9613944565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b60006139fc826139d5565b613a0681856139e0565b9350613a1681856020860161265b565b613a1f81612685565b840191505092915050565b6000608082019050613a3f6000830187612786565b613a4c6020830186612786565b613a59604083018561281c565b8181036060830152613a6b81846139f1565b905095945050505050565b600081519050613a8581612557565b92915050565b600060208284031215613aa157613aa0612521565b5b6000613aaf84828501613a76565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613aee60208361264a565b9150613af982613ab8565b602082019050919050565b60006020820190508181036000830152613b1d81613ae1565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613b5a601c8361264a565b9150613b6582613b24565b602082019050919050565b60006020820190508181036000830152613b8981613b4d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220b406fe3cf876528d7c5b2393ea8bde655b2fdff9d3eb166bb9e5f7c54cfa8fdb64736f6c634300081a003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000015b3000000000000000000000000000000000000000000000000000000000000000a426162792050696e6b790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066250696e6b7900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569666f6a34717a766a33656a656c707a756b7a6a75777135376a3468797262737274357a676335666d34366b776967796534697534000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101b75760003560e01c80636352211e116100ec578063a0712d681161008a578063c87b56dd11610064578063c87b56dd146105e7578063e985e9c514610624578063eb8d244414610661578063f2fde38b1461068c576101b7565b8063a0712d6814610579578063a22cb46514610595578063b88d4fde146105be576101b7565b8063819b25ba116100c6578063819b25ba146104cf5780638da5cb5b146104f857806395d89b41146105235780639d1b464a1461054e576101b7565b80636352211e1461043e57806370a082311461047b578063715018a6146104b8576101b7565b806323b872dd116101595780633ccfd60b116101335780633ccfd60b1461039857806342842e0e146103af5780634f6ccce7146103d857806355f804b314610415576101b7565b806323b872dd146103075780632f745c591461033057806332cb6b0c1461036d576101b7565b8063081812fc11610195578063081812fc1461024d578063095ea7b31461028a57806318160ddd146102b357806318b20071146102de576101b7565b806301ffc9a7146101bc57806302c88989146101f957806306fdde0314610222575b600080fd5b3480156101c857600080fd5b506101e360048036038101906101de9190612583565b6106b5565b6040516101f091906125cb565b60405180910390f35b34801561020557600080fd5b50610220600480360381019061021b9190612612565b6106c7565b005b34801561022e57600080fd5b506102376106ec565b60405161024491906126cf565b60405180910390f35b34801561025957600080fd5b50610274600480360381019061026f9190612727565b61077e565b6040516102819190612795565b60405180910390f35b34801561029657600080fd5b506102b160048036038101906102ac91906127dc565b6107c4565b005b3480156102bf57600080fd5b506102c86108db565b6040516102d5919061282b565b60405180910390f35b3480156102ea57600080fd5b5061030560048036038101906103009190612727565b6108e8565b005b34801561031357600080fd5b5061032e60048036038101906103299190612846565b6108fa565b005b34801561033c57600080fd5b50610357600480360381019061035291906127dc565b61095a565b604051610364919061282b565b60405180910390f35b34801561037957600080fd5b506103826109ff565b60405161038f919061282b565b60405180910390f35b3480156103a457600080fd5b506103ad610a23565b005b3480156103bb57600080fd5b506103d660048036038101906103d19190612846565b610a74565b005b3480156103e457600080fd5b506103ff60048036038101906103fa9190612727565b610a94565b60405161040c919061282b565b60405180910390f35b34801561042157600080fd5b5061043c600480360381019061043791906129ce565b610b05565b005b34801561044a57600080fd5b5061046560048036038101906104609190612727565b610b20565b6040516104729190612795565b60405180910390f35b34801561048757600080fd5b506104a2600480360381019061049d9190612a17565b610bd1565b6040516104af919061282b565b60405180910390f35b3480156104c457600080fd5b506104cd610c88565b005b3480156104db57600080fd5b506104f660048036038101906104f19190612727565b610c9c565b005b34801561050457600080fd5b5061050d610d50565b60405161051a9190612795565b60405180910390f35b34801561052f57600080fd5b50610538610d7a565b60405161054591906126cf565b60405180910390f35b34801561055a57600080fd5b50610563610e0c565b604051610570919061282b565b60405180910390f35b610593600480360381019061058e9190612727565b610e12565b005b3480156105a157600080fd5b506105bc60048036038101906105b79190612a44565b610fa8565b005b3480156105ca57600080fd5b506105e560048036038101906105e09190612b25565b610fbe565b005b3480156105f357600080fd5b5061060e60048036038101906106099190612727565b611020565b60405161061b91906126cf565b60405180910390f35b34801561063057600080fd5b5061064b60048036038101906106469190612ba8565b611088565b60405161065891906125cb565b60405180910390f35b34801561066d57600080fd5b5061067661111c565b60405161068391906125cb565b60405180910390f35b34801561069857600080fd5b506106b360048036038101906106ae9190612a17565b61112f565b005b60006106c0826111b2565b9050919050565b6106cf61122c565b80600c60006101000a81548160ff02191690831515021790555050565b6060600080546106fb90612c17565b80601f016020809104026020016040519081016040528092919081815260200182805461072790612c17565b80156107745780601f1061074957610100808354040283529160200191610774565b820191906000526020600020905b81548152906001019060200180831161075757829003601f168201915b5050505050905090565b6000610789826112aa565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006107cf82610b20565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361083f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083690612cba565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661085e6112f5565b73ffffffffffffffffffffffffffffffffffffffff16148061088d575061088c816108876112f5565b611088565b5b6108cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c390612d4c565b60405180910390fd5b6108d683836112fd565b505050565b6000600880549050905090565b6108f061122c565b80600d8190555050565b61090b6109056112f5565b826113b6565b61094a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094190612dde565b60405180910390fd5b61095583838361144b565b505050565b600061096583610bd1565b82106109a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099d90612e70565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b7f00000000000000000000000000000000000000000000000000000000000015b381565b610a2b61122c565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610a71573d6000803e3d6000fd5b50565b610a8f83838360405180602001604052806000815250610fbe565b505050565b6000610a9e6108db565b8210610adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad690612f02565b60405180910390fd5b60088281548110610af357610af2612f22565b5b90600052602060002001549050919050565b610b0d61122c565b80600b9081610b1c91906130fd565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610bc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbf9061321b565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c38906132ad565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610c9061122c565b610c9a60006116b1565b565b610ca461122c565b6000610cae6108db565b90507f00000000000000000000000000000000000000000000000000000000000015b38282610cdd91906132fc565b1115610d1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d159061337c565b60405180910390fd5b60005b82811015610d4b57610d3e338284610d3991906132fc565b611777565b8080600101915050610d21565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060018054610d8990612c17565b80601f0160208091040260200160405190810160405280929190818152602001828054610db590612c17565b8015610e025780601f10610dd757610100808354040283529160200191610e02565b820191906000526020600020905b815481529060010190602001808311610de557829003601f168201915b5050505050905090565b600d5481565b6000610e1c6108db565b90506000610e2933610bd1565b14610e69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e60906133e8565b60405180910390fd5b600c60009054906101000a900460ff16610eb8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eaf9061347a565b60405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000015b38282610ee591906132fc565b1115610f26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1d9061337c565b60405180910390fd5b3482600d54610f35919061349a565b1115610f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6d90613528565b60405180910390fd5b60005b82811015610fa357610f96338284610f9191906132fc565b611777565b8080600101915050610f79565b505050565b610fba610fb36112f5565b8383611795565b5050565b610fcf610fc96112f5565b836113b6565b61100e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100590612dde565b60405180910390fd5b61101a84848484611901565b50505050565b606061102b826112aa565b600061103561195d565b905060008151116110555760405180602001604052806000815250611080565b8061105f846119ef565b604051602001611070929190613584565b6040516020818303038152906040525b915050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600c60009054906101000a900460ff1681565b61113761122c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119d9061361a565b60405180910390fd5b6111af816116b1565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611225575061122482611b4f565b5b9050919050565b6112346112f5565b73ffffffffffffffffffffffffffffffffffffffff16611252610d50565b73ffffffffffffffffffffffffffffffffffffffff16146112a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129f90613686565b60405180910390fd5b565b6112b381611c31565b6112f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e99061321b565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661137083610b20565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806113c283610b20565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061140457506114038185611088565b5b8061144257508373ffffffffffffffffffffffffffffffffffffffff1661142a8461077e565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661146b82610b20565b73ffffffffffffffffffffffffffffffffffffffff16146114c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b890613718565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611530576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611527906137aa565b60405180910390fd5b61153b838383611c9d565b6115466000826112fd565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461159691906137ca565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546115ed91906132fc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46116ac838383611cad565b505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611791828260405180602001604052806000815250611cb2565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611803576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fa9061384a565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118f491906125cb565b60405180910390a3505050565b61190c84848461144b565b61191884848484611d0d565b611957576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194e906138dc565b60405180910390fd5b50505050565b6060600b805461196c90612c17565b80601f016020809104026020016040519081016040528092919081815260200182805461199890612c17565b80156119e55780601f106119ba576101008083540402835291602001916119e5565b820191906000526020600020905b8154815290600101906020018083116119c857829003601f168201915b5050505050905090565b606060008203611a36576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050611b4a565b600082905060005b60008214611a68578080611a51906138fc565b915050600a82611a619190613973565b9150611a3e565b60008167ffffffffffffffff811115611a8457611a836128a3565b5b6040519080825280601f01601f191660200182016040528015611ab65781602001600182028036833780820191505090505b5090505b60008514611b4357600182611acf91906137ca565b9150600a85611ade91906139a4565b6030611aea91906132fc565b60f81b818381518110611b0057611aff612f22565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85611b3c9190613973565b9450611aba565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c1a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611c2a5750611c2982611e94565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b611ca8838383611efe565b505050565b505050565b611cbc8383612010565b611cc96000848484611d0d565b611d08576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cff906138dc565b60405180910390fd5b505050565b6000611d2e8473ffffffffffffffffffffffffffffffffffffffff166121e9565b15611e87578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611d576112f5565b8786866040518563ffffffff1660e01b8152600401611d799493929190613a2a565b6020604051808303816000875af1925050508015611db557506040513d601f19601f82011682018060405250810190611db29190613a8b565b60015b611e37573d8060008114611de5576040519150601f19603f3d011682016040523d82523d6000602084013e611dea565b606091505b506000815103611e2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e26906138dc565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050611e8c565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b611f0983838361220c565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611f4b57611f4681612211565b611f8a565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614611f8957611f88838261225a565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611fcc57611fc7816123c7565b61200b565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461200a576120098282612498565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361207f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207690613b04565b60405180910390fd5b61208881611c31565b156120c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bf90613b70565b60405180910390fd5b6120d460008383611c9d565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461212491906132fc565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46121e560008383611cad565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161226784610bd1565b61227191906137ca565b9050600060076000848152602001908152602001600020549050818114612356576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506123db91906137ca565b905060006009600084815260200190815260200160002054905060006008838154811061240b5761240a612f22565b5b90600052602060002001549050806008838154811061242d5761242c612f22565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061247c5761247b613b90565b5b6001900381819060005260206000200160009055905550505050565b60006124a383610bd1565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6125608161252b565b811461256b57600080fd5b50565b60008135905061257d81612557565b92915050565b60006020828403121561259957612598612521565b5b60006125a78482850161256e565b91505092915050565b60008115159050919050565b6125c5816125b0565b82525050565b60006020820190506125e060008301846125bc565b92915050565b6125ef816125b0565b81146125fa57600080fd5b50565b60008135905061260c816125e6565b92915050565b60006020828403121561262857612627612521565b5b6000612636848285016125fd565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561267957808201518184015260208101905061265e565b60008484015250505050565b6000601f19601f8301169050919050565b60006126a18261263f565b6126ab818561264a565b93506126bb81856020860161265b565b6126c481612685565b840191505092915050565b600060208201905081810360008301526126e98184612696565b905092915050565b6000819050919050565b612704816126f1565b811461270f57600080fd5b50565b600081359050612721816126fb565b92915050565b60006020828403121561273d5761273c612521565b5b600061274b84828501612712565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061277f82612754565b9050919050565b61278f81612774565b82525050565b60006020820190506127aa6000830184612786565b92915050565b6127b981612774565b81146127c457600080fd5b50565b6000813590506127d6816127b0565b92915050565b600080604083850312156127f3576127f2612521565b5b6000612801858286016127c7565b925050602061281285828601612712565b9150509250929050565b612825816126f1565b82525050565b6000602082019050612840600083018461281c565b92915050565b60008060006060848603121561285f5761285e612521565b5b600061286d868287016127c7565b935050602061287e868287016127c7565b925050604061288f86828701612712565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6128db82612685565b810181811067ffffffffffffffff821117156128fa576128f96128a3565b5b80604052505050565b600061290d612517565b905061291982826128d2565b919050565b600067ffffffffffffffff821115612939576129386128a3565b5b61294282612685565b9050602081019050919050565b82818337600083830152505050565b600061297161296c8461291e565b612903565b90508281526020810184848401111561298d5761298c61289e565b5b61299884828561294f565b509392505050565b600082601f8301126129b5576129b4612899565b5b81356129c584826020860161295e565b91505092915050565b6000602082840312156129e4576129e3612521565b5b600082013567ffffffffffffffff811115612a0257612a01612526565b5b612a0e848285016129a0565b91505092915050565b600060208284031215612a2d57612a2c612521565b5b6000612a3b848285016127c7565b91505092915050565b60008060408385031215612a5b57612a5a612521565b5b6000612a69858286016127c7565b9250506020612a7a858286016125fd565b9150509250929050565b600067ffffffffffffffff821115612a9f57612a9e6128a3565b5b612aa882612685565b9050602081019050919050565b6000612ac8612ac384612a84565b612903565b905082815260208101848484011115612ae457612ae361289e565b5b612aef84828561294f565b509392505050565b600082601f830112612b0c57612b0b612899565b5b8135612b1c848260208601612ab5565b91505092915050565b60008060008060808587031215612b3f57612b3e612521565b5b6000612b4d878288016127c7565b9450506020612b5e878288016127c7565b9350506040612b6f87828801612712565b925050606085013567ffffffffffffffff811115612b9057612b8f612526565b5b612b9c87828801612af7565b91505092959194509250565b60008060408385031215612bbf57612bbe612521565b5b6000612bcd858286016127c7565b9250506020612bde858286016127c7565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680612c2f57607f821691505b602082108103612c4257612c41612be8565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000612ca460218361264a565b9150612caf82612c48565b604082019050919050565b60006020820190508181036000830152612cd381612c97565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000612d36603e8361264a565b9150612d4182612cda565b604082019050919050565b60006020820190508181036000830152612d6581612d29565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000612dc8602e8361264a565b9150612dd382612d6c565b604082019050919050565b60006020820190508181036000830152612df781612dbb565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000612e5a602b8361264a565b9150612e6582612dfe565b604082019050919050565b60006020820190508181036000830152612e8981612e4d565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000612eec602c8361264a565b9150612ef782612e90565b604082019050919050565b60006020820190508181036000830152612f1b81612edf565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302612fb37fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612f76565b612fbd8683612f76565b95508019841693508086168417925050509392505050565b6000819050919050565b6000612ffa612ff5612ff0846126f1565b612fd5565b6126f1565b9050919050565b6000819050919050565b61301483612fdf565b61302861302082613001565b848454612f83565b825550505050565b600090565b61303d613030565b61304881848461300b565b505050565b5b8181101561306c57613061600082613035565b60018101905061304e565b5050565b601f8211156130b15761308281612f51565b61308b84612f66565b8101602085101561309a578190505b6130ae6130a685612f66565b83018261304d565b50505b505050565b600082821c905092915050565b60006130d4600019846008026130b6565b1980831691505092915050565b60006130ed83836130c3565b9150826002028217905092915050565b6131068261263f565b67ffffffffffffffff81111561311f5761311e6128a3565b5b6131298254612c17565b613134828285613070565b600060209050601f8311600181146131675760008415613155578287015190505b61315f85826130e1565b8655506131c7565b601f19841661317586612f51565b60005b8281101561319d57848901518255600182019150602085019450602081019050613178565b868310156131ba57848901516131b6601f8916826130c3565b8355505b6001600288020188555050505b505050505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061320560188361264a565b9150613210826131cf565b602082019050919050565b60006020820190508181036000830152613234816131f8565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b600061329760298361264a565b91506132a28261323b565b604082019050919050565b600060208201905081810360008301526132c68161328a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613307826126f1565b9150613312836126f1565b925082820190508082111561332a576133296132cd565b5b92915050565b7f507572636861736520776f756c6420657863656564206d617820746f6b656e73600082015250565b600061336660208361264a565b915061337182613330565b602082019050919050565b6000602082019050818103600083015261339581613359565b9050919050565b7f416c7265616479206d696e746564000000000000000000000000000000000000600082015250565b60006133d2600e8361264a565b91506133dd8261339c565b602082019050919050565b60006020820190508181036000830152613401816133c5565b9050919050565b7f53616c65206d7573742062652061637469766520746f206d696e7420746f6b6560008201527f6e73000000000000000000000000000000000000000000000000000000000000602082015250565b600061346460228361264a565b915061346f82613408565b604082019050919050565b6000602082019050818103600083015261349381613457565b9050919050565b60006134a5826126f1565b91506134b0836126f1565b92508282026134be816126f1565b915082820484148315176134d5576134d46132cd565b5b5092915050565b7f56616c75652073656e74206973206e6f7420636f727265637400000000000000600082015250565b600061351260198361264a565b915061351d826134dc565b602082019050919050565b6000602082019050818103600083015261354181613505565b9050919050565b600081905092915050565b600061355e8261263f565b6135688185613548565b935061357881856020860161265b565b80840191505092915050565b60006135908285613553565b915061359c8284613553565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061360460268361264a565b915061360f826135a8565b604082019050919050565b60006020820190508181036000830152613633816135f7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061367060208361264a565b915061367b8261363a565b602082019050919050565b6000602082019050818103600083015261369f81613663565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061370260258361264a565b915061370d826136a6565b604082019050919050565b60006020820190508181036000830152613731816136f5565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061379460248361264a565b915061379f82613738565b604082019050919050565b600060208201905081810360008301526137c381613787565b9050919050565b60006137d5826126f1565b91506137e0836126f1565b92508282039050818111156137f8576137f76132cd565b5b92915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061383460198361264a565b915061383f826137fe565b602082019050919050565b6000602082019050818103600083015261386381613827565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006138c660328361264a565b91506138d18261386a565b604082019050919050565b600060208201905081810360008301526138f5816138b9565b9050919050565b6000613907826126f1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203613939576139386132cd565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061397e826126f1565b9150613989836126f1565b92508261399957613998613944565b5b828204905092915050565b60006139af826126f1565b91506139ba836126f1565b9250826139ca576139c9613944565b5b828206905092915050565b600081519050919050565b600082825260208201905092915050565b60006139fc826139d5565b613a0681856139e0565b9350613a1681856020860161265b565b613a1f81612685565b840191505092915050565b6000608082019050613a3f6000830187612786565b613a4c6020830186612786565b613a59604083018561281c565b8181036060830152613a6b81846139f1565b905095945050505050565b600081519050613a8581612557565b92915050565b600060208284031215613aa157613aa0612521565b5b6000613aaf84828501613a76565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000613aee60208361264a565b9150613af982613ab8565b602082019050919050565b60006020820190508181036000830152613b1d81613ae1565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000613b5a601c8361264a565b9150613b6582613b24565b602082019050919050565b60006020820190508181036000830152613b8981613b4d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220b406fe3cf876528d7c5b2393ea8bde655b2fdff9d3eb166bb9e5f7c54cfa8fdb64736f6c634300081a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000000000000000000015b3000000000000000000000000000000000000000000000000000000000000000a426162792050696e6b790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066250696e6b7900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b726569666f6a34717a766a33656a656c707a756b7a6a75777135376a3468797262737274357a676335666d34366b776967796534697534000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Baby Pinky
Arg [1] : _symbol (string): bPinky
Arg [2] : _uri (string): ipfs://bafkreifoj4qzvj3ejelpzukzjuwq57j4hyrbsrt5zgc5fm46kwigye4iu4
Arg [3] : price (uint256): 1000000000000000000
Arg [4] : maxSupply (uint256): 5555
-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000de0b6b3a7640000
Arg [4] : 00000000000000000000000000000000000000000000000000000000000015b3
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 426162792050696e6b7900000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 6250696e6b790000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [10] : 697066733a2f2f6261666b726569666f6a34717a766a33656a656c707a756b7a
Arg [11] : 6a75777135376a3468797262737274357a676335666d34366b77696779653469
Arg [12] : 7534000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.