ERC-721
Overview
Max Total Supply
185 SELFIE
Holders
44
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SELFIELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BeanzSelfie
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol"; // File: contracts/BeanzSelfie.sol /** * @title BeanzSelfie contract * @dev Extends ERC721 Non-Fungible Token Standard basic implementation */ contract BeanzSelfie is ERC721Enumerable, Ownable, Pausable { using SafeMath for uint256; uint256 public constant MAX_SUPPLY = 19950; uint256 public constant FREE_MAX_SUPPLY = 10000; uint256 public constant MAX_PER_TX = 5; uint256 public constant MAX_PER_ADDRESS = 20; string public baseURI; bool public isSaleActive = false; uint256 public price = 0.005 ether; mapping(address => uint256) public purchased; constructor(string memory name, string memory symbol) ERC721(name, symbol) {} function setBaseURI(string memory _baseURI) external onlyOwner { baseURI = _baseURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "Token does not exist."); return string(abi.encodePacked(baseURI, Strings.toString(tokenId))); } function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } function flipSale() external onlyOwner { isSaleActive = !isSaleActive; } function mint(uint256 numberOfTokens) public payable whenNotPaused { uint256 totalSupply = totalSupply(); require(isSaleActive, "Sale must be active to mint"); require(tx.origin == msg.sender, "Contract address not allowed"); require(numberOfTokens <= MAX_PER_TX, "Exceeds max per transaction"); require( purchased[_msgSender()] + numberOfTokens <= MAX_PER_ADDRESS, "Exceeds per address supply" ); require( totalSupply + numberOfTokens <= MAX_SUPPLY, "Exceed max supply" ); if (totalSupply + numberOfTokens < FREE_MAX_SUPPLY) { require(msg.value == 0, "Ether value sent is not correct"); } else if (totalSupply > FREE_MAX_SUPPLY) { require( price.mul(numberOfTokens) == msg.value, "Ether value sent is not correct" ); } else { require( price.mul(totalSupply + numberOfTokens - FREE_MAX_SUPPLY) == msg.value, "Ether value sent is not correct" ); } purchased[_msgSender()] += numberOfTokens; for (uint256 i = 0; i < numberOfTokens; i++) { _safeMint(_msgSender(), totalSupply + i); } } function tokenIdsOfOwner(address _owner) public view returns (uint256[] memory) { uint256 tokenCount = balanceOf(_owner); if (tokenCount == 0) { return new uint256[](0); } uint256[] memory tokenIds = new uint256[](tokenCount); for (uint256 i; i < tokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/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 v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/ERC20Pausable.sol) pragma solidity ^0.8.0; import "../ERC20.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/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 tokenId); /** * @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/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer( address sender, address recipient, uint256 amount ) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens 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 amount ) 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, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
{ "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"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"FREE_MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_ADDRESS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","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":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchased","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"tokenIdsOfOwner","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
60806040526000600c60006101000a81548160ff0219169083151502179055506611c37937e08000600d553480156200003757600080fd5b50604051620049713803806200497183398181016040528101906200005d9190620002d2565b8181816000908051906020019062000077929190620001a4565b50806001908051906020019062000090929190620001a4565b505050620000b3620000a7620000d660201b60201c565b620000de60201b60201c565b6000600a60146101000a81548160ff0219169083151502179055505050620004db565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001b290620003ec565b90600052602060002090601f016020900481019282620001d6576000855562000222565b82601f10620001f157805160ff191683800117855562000222565b8280016001018555821562000222579182015b828111156200022157825182559160200191906001019062000204565b5b50905062000231919062000235565b5090565b5b808211156200025057600081600090555060010162000236565b5090565b60006200026b620002658462000380565b62000357565b9050828152602081018484840111156200028a5762000289620004bb565b5b62000297848285620003b6565b509392505050565b600082601f830112620002b757620002b6620004b6565b5b8151620002c984826020860162000254565b91505092915050565b60008060408385031215620002ec57620002eb620004c5565b5b600083015167ffffffffffffffff8111156200030d576200030c620004c0565b5b6200031b858286016200029f565b925050602083015167ffffffffffffffff8111156200033f576200033e620004c0565b5b6200034d858286016200029f565b9150509250929050565b60006200036362000376565b905062000371828262000422565b919050565b6000604051905090565b600067ffffffffffffffff8211156200039e576200039d62000487565b5b620003a982620004ca565b9050602081019050919050565b60005b83811015620003d6578082015181840152602081019050620003b9565b83811115620003e6576000848401525b50505050565b600060028204905060018216806200040557607f821691505b602082108114156200041c576200041b62000458565b5b50919050565b6200042d82620004ca565b810181811067ffffffffffffffff821117156200044f576200044e62000487565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b61448680620004eb6000396000f3fe6080604052600436106101ee5760003560e01c80636352211e1161010d5780639e59e598116100a0578063b88d4fde1161006f578063b88d4fde146106e2578063c87b56dd1461070b578063e985e9c514610748578063f2fde38b14610785578063f43a22dc146107ae576101ee565b80639e59e59814610635578063a035b1fe14610672578063a0712d681461069d578063a22cb465146106b9576101ee565b80637ba5e621116100dc5780637ba5e6211461059d5780638069876d146105b45780638da5cb5b146105df57806395d89b411461060a576101ee565b80636352211e146104e15780636c0360eb1461051e57806370a0823114610549578063715018a614610586576101ee565b806332cb6b0c11610185578063522fe98e11610154578063522fe98e1461042557806355f804b314610462578063564566a81461048b5780635c975abb146104b6576101ee565b806332cb6b0c1461037d5780633ccfd60b146103a857806342842e0e146103bf5780634f6ccce7146103e8576101ee565b80630aaef285116101c15780630aaef285146102c157806318160ddd146102ec57806323b872dd146103175780632f745c5914610340576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612ed2565b6107d9565b604051610227919061358e565b60405180910390f35b34801561023c57600080fd5b50610245610853565b60405161025291906135a9565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190612f75565b6108e5565b60405161028f9190613505565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190612e92565b61096a565b005b3480156102cd57600080fd5b506102d6610a82565b6040516102e391906138eb565b60405180910390f35b3480156102f857600080fd5b50610301610a87565b60405161030e91906138eb565b60405180910390f35b34801561032357600080fd5b5061033e60048036038101906103399190612d7c565b610a94565b005b34801561034c57600080fd5b5061036760048036038101906103629190612e92565b610af4565b60405161037491906138eb565b60405180910390f35b34801561038957600080fd5b50610392610b99565b60405161039f91906138eb565b60405180910390f35b3480156103b457600080fd5b506103bd610b9f565b005b3480156103cb57600080fd5b506103e660048036038101906103e19190612d7c565b610c6a565b005b3480156103f457600080fd5b5061040f600480360381019061040a9190612f75565b610c8a565b60405161041c91906138eb565b60405180910390f35b34801561043157600080fd5b5061044c60048036038101906104479190612d0f565b610cfb565b60405161045991906138eb565b60405180910390f35b34801561046e57600080fd5b5061048960048036038101906104849190612f2c565b610d13565b005b34801561049757600080fd5b506104a0610da9565b6040516104ad919061358e565b60405180910390f35b3480156104c257600080fd5b506104cb610dbc565b6040516104d8919061358e565b60405180910390f35b3480156104ed57600080fd5b5061050860048036038101906105039190612f75565b610dd3565b6040516105159190613505565b60405180910390f35b34801561052a57600080fd5b50610533610e85565b60405161054091906135a9565b60405180910390f35b34801561055557600080fd5b50610570600480360381019061056b9190612d0f565b610f13565b60405161057d91906138eb565b60405180910390f35b34801561059257600080fd5b5061059b610fcb565b005b3480156105a957600080fd5b506105b2611053565b005b3480156105c057600080fd5b506105c96110fb565b6040516105d691906138eb565b60405180910390f35b3480156105eb57600080fd5b506105f4611101565b6040516106019190613505565b60405180910390f35b34801561061657600080fd5b5061061f61112b565b60405161062c91906135a9565b60405180910390f35b34801561064157600080fd5b5061065c60048036038101906106579190612d0f565b6111bd565b604051610669919061356c565b60405180910390f35b34801561067e57600080fd5b506106876112c7565b60405161069491906138eb565b60405180910390f35b6106b760048036038101906106b29190612f75565b6112cd565b005b3480156106c557600080fd5b506106e060048036038101906106db9190612e52565b6116d5565b005b3480156106ee57600080fd5b5061070960048036038101906107049190612dcf565b6116eb565b005b34801561071757600080fd5b50610732600480360381019061072d9190612f75565b61174d565b60405161073f91906135a9565b60405180910390f35b34801561075457600080fd5b5061076f600480360381019061076a9190612d3c565b6117c9565b60405161077c919061358e565b60405180910390f35b34801561079157600080fd5b506107ac60048036038101906107a79190612d0f565b61185d565b005b3480156107ba57600080fd5b506107c3611955565b6040516107d091906138eb565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061084c575061084b8261195a565b5b9050919050565b60606000805461086290613be9565b80601f016020809104026020016040519081016040528092919081815260200182805461088e90613be9565b80156108db5780601f106108b0576101008083540402835291602001916108db565b820191906000526020600020905b8154815290600101906020018083116108be57829003601f168201915b5050505050905090565b60006108f082611a3c565b61092f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610926906137eb565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061097582610dd3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dd9061384b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a05611aa8565b73ffffffffffffffffffffffffffffffffffffffff161480610a345750610a3381610a2e611aa8565b6117c9565b5b610a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6a9061372b565b60405180910390fd5b610a7d8383611ab0565b505050565b601481565b6000600880549050905090565b610aa5610a9f611aa8565b82611b69565b610ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adb906138ab565b60405180910390fd5b610aef838383611c47565b505050565b6000610aff83610f13565b8210610b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b37906135eb565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b614dee81565b610ba7611aa8565b73ffffffffffffffffffffffffffffffffffffffff16610bc5611101565b73ffffffffffffffffffffffffffffffffffffffff1614610c1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c129061380b565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610c66573d6000803e3d6000fd5b5050565b610c85838383604051806020016040528060008152506116eb565b505050565b6000610c94610a87565b8210610cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccc906138cb565b60405180910390fd5b60088281548110610ce957610ce8613d82565b5b90600052602060002001549050919050565b600e6020528060005260406000206000915090505481565b610d1b611aa8565b73ffffffffffffffffffffffffffffffffffffffff16610d39611101565b73ffffffffffffffffffffffffffffffffffffffff1614610d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d869061380b565b60405180910390fd5b80600b9080519060200190610da5929190612b23565b5050565b600c60009054906101000a900460ff1681565b6000600a60149054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e739061376b565b60405180910390fd5b80915050919050565b600b8054610e9290613be9565b80601f0160208091040260200160405190810160405280929190818152602001828054610ebe90613be9565b8015610f0b5780601f10610ee057610100808354040283529160200191610f0b565b820191906000526020600020905b815481529060010190602001808311610eee57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7b9061374b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610fd3611aa8565b73ffffffffffffffffffffffffffffffffffffffff16610ff1611101565b73ffffffffffffffffffffffffffffffffffffffff1614611047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103e9061380b565b60405180910390fd5b6110516000611ea3565b565b61105b611aa8565b73ffffffffffffffffffffffffffffffffffffffff16611079611101565b73ffffffffffffffffffffffffffffffffffffffff16146110cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c69061380b565b60405180910390fd5b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b61271081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461113a90613be9565b80601f016020809104026020016040519081016040528092919081815260200182805461116690613be9565b80156111b35780601f10611188576101008083540402835291602001916111b3565b820191906000526020600020905b81548152906001019060200180831161119657829003601f168201915b5050505050905090565b606060006111ca83610f13565b9050600081141561122757600067ffffffffffffffff8111156111f0576111ef613db1565b5b60405190808252806020026020018201604052801561121e5781602001602082028036833780820191505090505b509150506112c2565b60008167ffffffffffffffff81111561124357611242613db1565b5b6040519080825280602002602001820160405280156112715781602001602082028036833780820191505090505b50905060005b828110156112bb576112898582610af4565b82828151811061129c5761129b613d82565b5b60200260200101818152505080806112b390613c4c565b915050611277565b5080925050505b919050565b600d5481565b6112d5610dbc565b15611315576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130c9061370b565b60405180910390fd5b600061131f610a87565b9050600c60009054906101000a900460ff16611370576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611367906136cb565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146113de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d5906135cb565b60405180910390fd5b6005821115611422576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114199061388b565b60405180910390fd5b601482600e6000611431611aa8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114769190613a1e565b11156114b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ae9061386b565b60405180910390fd5b614dee82826114c69190613a1e565b1115611507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fe906137cb565b60405180910390fd5b61271082826115169190613a1e565b1015611564576000341461155f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611556906136ab565b60405180910390fd5b611639565b6127108111156115c9573461158483600d54611f6990919063ffffffff16565b146115c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bb906136ab565b60405180910390fd5b611638565b346115f761271084846115dc9190613a1e565b6115e69190613aff565b600d54611f6990919063ffffffff16565b14611637576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162e906136ab565b60405180910390fd5b5b5b81600e6000611646611aa8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461168f9190613a1e565b9250508190555060005b828110156116d0576116bd6116ac611aa8565b82846116b89190613a1e565b611f7f565b80806116c890613c4c565b915050611699565b505050565b6116e76116e0611aa8565b8383611f9d565b5050565b6116fc6116f6611aa8565b83611b69565b61173b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611732906138ab565b60405180910390fd5b6117478484848461210a565b50505050565b606061175882611a3c565b611797576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178e906137ab565b60405180910390fd5b600b6117a283612166565b6040516020016117b39291906134e1565b6040516020818303038152906040529050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611865611aa8565b73ffffffffffffffffffffffffffffffffffffffff16611883611101565b73ffffffffffffffffffffffffffffffffffffffff16146118d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d09061380b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611949576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119409061362b565b60405180910390fd5b61195281611ea3565b50565b600581565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a2557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611a355750611a34826122c7565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611b2383610dd3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b7482611a3c565b611bb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611baa906136eb565b60405180910390fd5b6000611bbe83610dd3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c2d57508373ffffffffffffffffffffffffffffffffffffffff16611c15846108e5565b73ffffffffffffffffffffffffffffffffffffffff16145b80611c3e5750611c3d81856117c9565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c6782610dd3565b73ffffffffffffffffffffffffffffffffffffffff1614611cbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb49061382b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d249061366b565b60405180910390fd5b611d38838383612331565b611d43600082611ab0565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d939190613aff565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dea9190613a1e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183611f779190613aa5565b905092915050565b611f99828260405180602001604052806000815250612445565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561200c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120039061368b565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120fd919061358e565b60405180910390a3505050565b612115848484611c47565b612121848484846124a0565b612160576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121579061360b565b60405180910390fd5b50505050565b606060008214156121ae576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506122c2565b600082905060005b600082146121e05780806121c990613c4c565b915050600a826121d99190613a74565b91506121b6565b60008167ffffffffffffffff8111156121fc576121fb613db1565b5b6040519080825280601f01601f19166020018201604052801561222e5781602001600182028036833780820191505090505b5090505b600085146122bb576001826122479190613aff565b9150600a856122569190613c95565b60306122629190613a1e565b60f81b81838151811061227857612277613d82565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856122b49190613a74565b9450612232565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61233c838383612637565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561237f5761237a8161263c565b6123be565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146123bd576123bc8382612685565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612401576123fc816127f2565b612440565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461243f5761243e82826128c3565b5b5b505050565b61244f8383612942565b61245c60008484846124a0565b61249b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124929061360b565b60405180910390fd5b505050565b60006124c18473ffffffffffffffffffffffffffffffffffffffff16612b10565b1561262a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026124ea611aa8565b8786866040518563ffffffff1660e01b815260040161250c9493929190613520565b602060405180830381600087803b15801561252657600080fd5b505af192505050801561255757506040513d601f19601f820116820180604052508101906125549190612eff565b60015b6125da573d8060008114612587576040519150601f19603f3d011682016040523d82523d6000602084013e61258c565b606091505b506000815114156125d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c99061360b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061262f565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161269284610f13565b61269c9190613aff565b9050600060076000848152602001908152602001600020549050818114612781576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506128069190613aff565b905060006009600084815260200190815260200160002054905060006008838154811061283657612835613d82565b5b90600052602060002001549050806008838154811061285857612857613d82565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806128a7576128a6613d53565b5b6001900381819060005260206000200160009055905550505050565b60006128ce83610f13565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a99061378b565b60405180910390fd5b6129bb81611a3c565b156129fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f29061364b565b60405180910390fd5b612a0760008383612331565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a579190613a1e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054612b2f90613be9565b90600052602060002090601f016020900481019282612b515760008555612b98565b82601f10612b6a57805160ff1916838001178555612b98565b82800160010185558215612b98579182015b82811115612b97578251825591602001919060010190612b7c565b5b509050612ba59190612ba9565b5090565b5b80821115612bc2576000816000905550600101612baa565b5090565b6000612bd9612bd48461392b565b613906565b905082815260208101848484011115612bf557612bf4613de5565b5b612c00848285613ba7565b509392505050565b6000612c1b612c168461395c565b613906565b905082815260208101848484011115612c3757612c36613de5565b5b612c42848285613ba7565b509392505050565b600081359050612c59816143f4565b92915050565b600081359050612c6e8161440b565b92915050565b600081359050612c8381614422565b92915050565b600081519050612c9881614422565b92915050565b600082601f830112612cb357612cb2613de0565b5b8135612cc3848260208601612bc6565b91505092915050565b600082601f830112612ce157612ce0613de0565b5b8135612cf1848260208601612c08565b91505092915050565b600081359050612d0981614439565b92915050565b600060208284031215612d2557612d24613def565b5b6000612d3384828501612c4a565b91505092915050565b60008060408385031215612d5357612d52613def565b5b6000612d6185828601612c4a565b9250506020612d7285828601612c4a565b9150509250929050565b600080600060608486031215612d9557612d94613def565b5b6000612da386828701612c4a565b9350506020612db486828701612c4a565b9250506040612dc586828701612cfa565b9150509250925092565b60008060008060808587031215612de957612de8613def565b5b6000612df787828801612c4a565b9450506020612e0887828801612c4a565b9350506040612e1987828801612cfa565b925050606085013567ffffffffffffffff811115612e3a57612e39613dea565b5b612e4687828801612c9e565b91505092959194509250565b60008060408385031215612e6957612e68613def565b5b6000612e7785828601612c4a565b9250506020612e8885828601612c5f565b9150509250929050565b60008060408385031215612ea957612ea8613def565b5b6000612eb785828601612c4a565b9250506020612ec885828601612cfa565b9150509250929050565b600060208284031215612ee857612ee7613def565b5b6000612ef684828501612c74565b91505092915050565b600060208284031215612f1557612f14613def565b5b6000612f2384828501612c89565b91505092915050565b600060208284031215612f4257612f41613def565b5b600082013567ffffffffffffffff811115612f6057612f5f613dea565b5b612f6c84828501612ccc565b91505092915050565b600060208284031215612f8b57612f8a613def565b5b6000612f9984828501612cfa565b91505092915050565b6000612fae83836134c3565b60208301905092915050565b612fc381613b33565b82525050565b6000612fd4826139b2565b612fde81856139e0565b9350612fe98361398d565b8060005b8381101561301a5781516130018882612fa2565b975061300c836139d3565b925050600181019050612fed565b5085935050505092915050565b61303081613b45565b82525050565b6000613041826139bd565b61304b81856139f1565b935061305b818560208601613bb6565b61306481613df4565b840191505092915050565b600061307a826139c8565b6130848185613a02565b9350613094818560208601613bb6565b61309d81613df4565b840191505092915050565b60006130b3826139c8565b6130bd8185613a13565b93506130cd818560208601613bb6565b80840191505092915050565b600081546130e681613be9565b6130f08186613a13565b9450600182166000811461310b576001811461311c5761314f565b60ff1983168652818601935061314f565b6131258561399d565b60005b8381101561314757815481890152600182019150602081019050613128565b838801955050505b50505092915050565b6000613165601c83613a02565b915061317082613e05565b602082019050919050565b6000613188602b83613a02565b915061319382613e2e565b604082019050919050565b60006131ab603283613a02565b91506131b682613e7d565b604082019050919050565b60006131ce602683613a02565b91506131d982613ecc565b604082019050919050565b60006131f1601c83613a02565b91506131fc82613f1b565b602082019050919050565b6000613214602483613a02565b915061321f82613f44565b604082019050919050565b6000613237601983613a02565b915061324282613f93565b602082019050919050565b600061325a601f83613a02565b915061326582613fbc565b602082019050919050565b600061327d601b83613a02565b915061328882613fe5565b602082019050919050565b60006132a0602c83613a02565b91506132ab8261400e565b604082019050919050565b60006132c3601083613a02565b91506132ce8261405d565b602082019050919050565b60006132e6603883613a02565b91506132f182614086565b604082019050919050565b6000613309602a83613a02565b9150613314826140d5565b604082019050919050565b600061332c602983613a02565b915061333782614124565b604082019050919050565b600061334f602083613a02565b915061335a82614173565b602082019050919050565b6000613372601583613a02565b915061337d8261419c565b602082019050919050565b6000613395601183613a02565b91506133a0826141c5565b602082019050919050565b60006133b8602c83613a02565b91506133c3826141ee565b604082019050919050565b60006133db602083613a02565b91506133e68261423d565b602082019050919050565b60006133fe602983613a02565b915061340982614266565b604082019050919050565b6000613421602183613a02565b915061342c826142b5565b604082019050919050565b6000613444601a83613a02565b915061344f82614304565b602082019050919050565b6000613467601b83613a02565b91506134728261432d565b602082019050919050565b600061348a603183613a02565b915061349582614356565b604082019050919050565b60006134ad602c83613a02565b91506134b8826143a5565b604082019050919050565b6134cc81613b9d565b82525050565b6134db81613b9d565b82525050565b60006134ed82856130d9565b91506134f982846130a8565b91508190509392505050565b600060208201905061351a6000830184612fba565b92915050565b60006080820190506135356000830187612fba565b6135426020830186612fba565b61354f60408301856134d2565b81810360608301526135618184613036565b905095945050505050565b600060208201905081810360008301526135868184612fc9565b905092915050565b60006020820190506135a36000830184613027565b92915050565b600060208201905081810360008301526135c3818461306f565b905092915050565b600060208201905081810360008301526135e481613158565b9050919050565b600060208201905081810360008301526136048161317b565b9050919050565b600060208201905081810360008301526136248161319e565b9050919050565b60006020820190508181036000830152613644816131c1565b9050919050565b60006020820190508181036000830152613664816131e4565b9050919050565b6000602082019050818103600083015261368481613207565b9050919050565b600060208201905081810360008301526136a48161322a565b9050919050565b600060208201905081810360008301526136c48161324d565b9050919050565b600060208201905081810360008301526136e481613270565b9050919050565b6000602082019050818103600083015261370481613293565b9050919050565b60006020820190508181036000830152613724816132b6565b9050919050565b60006020820190508181036000830152613744816132d9565b9050919050565b60006020820190508181036000830152613764816132fc565b9050919050565b600060208201905081810360008301526137848161331f565b9050919050565b600060208201905081810360008301526137a481613342565b9050919050565b600060208201905081810360008301526137c481613365565b9050919050565b600060208201905081810360008301526137e481613388565b9050919050565b60006020820190508181036000830152613804816133ab565b9050919050565b60006020820190508181036000830152613824816133ce565b9050919050565b60006020820190508181036000830152613844816133f1565b9050919050565b6000602082019050818103600083015261386481613414565b9050919050565b6000602082019050818103600083015261388481613437565b9050919050565b600060208201905081810360008301526138a48161345a565b9050919050565b600060208201905081810360008301526138c48161347d565b9050919050565b600060208201905081810360008301526138e4816134a0565b9050919050565b600060208201905061390060008301846134d2565b92915050565b6000613910613921565b905061391c8282613c1b565b919050565b6000604051905090565b600067ffffffffffffffff82111561394657613945613db1565b5b61394f82613df4565b9050602081019050919050565b600067ffffffffffffffff82111561397757613976613db1565b5b61398082613df4565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613a2982613b9d565b9150613a3483613b9d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613a6957613a68613cc6565b5b828201905092915050565b6000613a7f82613b9d565b9150613a8a83613b9d565b925082613a9a57613a99613cf5565b5b828204905092915050565b6000613ab082613b9d565b9150613abb83613b9d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613af457613af3613cc6565b5b828202905092915050565b6000613b0a82613b9d565b9150613b1583613b9d565b925082821015613b2857613b27613cc6565b5b828203905092915050565b6000613b3e82613b7d565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613bd4578082015181840152602081019050613bb9565b83811115613be3576000848401525b50505050565b60006002820490506001821680613c0157607f821691505b60208210811415613c1557613c14613d24565b5b50919050565b613c2482613df4565b810181811067ffffffffffffffff82111715613c4357613c42613db1565b5b80604052505050565b6000613c5782613b9d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613c8a57613c89613cc6565b5b600182019050919050565b6000613ca082613b9d565b9150613cab83613b9d565b925082613cbb57613cba613cf5565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f436f6e74726163742061646472657373206e6f7420616c6c6f77656400000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f53616c65206d7573742062652061637469766520746f206d696e740000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b7f457863656564206d617820737570706c79000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4578636565647320706572206164647265737320737570706c79000000000000600082015250565b7f45786365656473206d617820706572207472616e73616374696f6e0000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6143fd81613b33565b811461440857600080fd5b50565b61441481613b45565b811461441f57600080fd5b50565b61442b81613b51565b811461443657600080fd5b50565b61444281613b9d565b811461444d57600080fd5b5056fea264697066735822122001c3e855265865e55415e62f5b5ac451dbc16f9d9746e2758737c8fc4ce10b9964736f6c6343000807003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000b4265616e7a53656c666965000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000653454c4649450000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101ee5760003560e01c80636352211e1161010d5780639e59e598116100a0578063b88d4fde1161006f578063b88d4fde146106e2578063c87b56dd1461070b578063e985e9c514610748578063f2fde38b14610785578063f43a22dc146107ae576101ee565b80639e59e59814610635578063a035b1fe14610672578063a0712d681461069d578063a22cb465146106b9576101ee565b80637ba5e621116100dc5780637ba5e6211461059d5780638069876d146105b45780638da5cb5b146105df57806395d89b411461060a576101ee565b80636352211e146104e15780636c0360eb1461051e57806370a0823114610549578063715018a614610586576101ee565b806332cb6b0c11610185578063522fe98e11610154578063522fe98e1461042557806355f804b314610462578063564566a81461048b5780635c975abb146104b6576101ee565b806332cb6b0c1461037d5780633ccfd60b146103a857806342842e0e146103bf5780634f6ccce7146103e8576101ee565b80630aaef285116101c15780630aaef285146102c157806318160ddd146102ec57806323b872dd146103175780632f745c5914610340576101ee565b806301ffc9a7146101f357806306fdde0314610230578063081812fc1461025b578063095ea7b314610298575b600080fd5b3480156101ff57600080fd5b5061021a60048036038101906102159190612ed2565b6107d9565b604051610227919061358e565b60405180910390f35b34801561023c57600080fd5b50610245610853565b60405161025291906135a9565b60405180910390f35b34801561026757600080fd5b50610282600480360381019061027d9190612f75565b6108e5565b60405161028f9190613505565b60405180910390f35b3480156102a457600080fd5b506102bf60048036038101906102ba9190612e92565b61096a565b005b3480156102cd57600080fd5b506102d6610a82565b6040516102e391906138eb565b60405180910390f35b3480156102f857600080fd5b50610301610a87565b60405161030e91906138eb565b60405180910390f35b34801561032357600080fd5b5061033e60048036038101906103399190612d7c565b610a94565b005b34801561034c57600080fd5b5061036760048036038101906103629190612e92565b610af4565b60405161037491906138eb565b60405180910390f35b34801561038957600080fd5b50610392610b99565b60405161039f91906138eb565b60405180910390f35b3480156103b457600080fd5b506103bd610b9f565b005b3480156103cb57600080fd5b506103e660048036038101906103e19190612d7c565b610c6a565b005b3480156103f457600080fd5b5061040f600480360381019061040a9190612f75565b610c8a565b60405161041c91906138eb565b60405180910390f35b34801561043157600080fd5b5061044c60048036038101906104479190612d0f565b610cfb565b60405161045991906138eb565b60405180910390f35b34801561046e57600080fd5b5061048960048036038101906104849190612f2c565b610d13565b005b34801561049757600080fd5b506104a0610da9565b6040516104ad919061358e565b60405180910390f35b3480156104c257600080fd5b506104cb610dbc565b6040516104d8919061358e565b60405180910390f35b3480156104ed57600080fd5b5061050860048036038101906105039190612f75565b610dd3565b6040516105159190613505565b60405180910390f35b34801561052a57600080fd5b50610533610e85565b60405161054091906135a9565b60405180910390f35b34801561055557600080fd5b50610570600480360381019061056b9190612d0f565b610f13565b60405161057d91906138eb565b60405180910390f35b34801561059257600080fd5b5061059b610fcb565b005b3480156105a957600080fd5b506105b2611053565b005b3480156105c057600080fd5b506105c96110fb565b6040516105d691906138eb565b60405180910390f35b3480156105eb57600080fd5b506105f4611101565b6040516106019190613505565b60405180910390f35b34801561061657600080fd5b5061061f61112b565b60405161062c91906135a9565b60405180910390f35b34801561064157600080fd5b5061065c60048036038101906106579190612d0f565b6111bd565b604051610669919061356c565b60405180910390f35b34801561067e57600080fd5b506106876112c7565b60405161069491906138eb565b60405180910390f35b6106b760048036038101906106b29190612f75565b6112cd565b005b3480156106c557600080fd5b506106e060048036038101906106db9190612e52565b6116d5565b005b3480156106ee57600080fd5b5061070960048036038101906107049190612dcf565b6116eb565b005b34801561071757600080fd5b50610732600480360381019061072d9190612f75565b61174d565b60405161073f91906135a9565b60405180910390f35b34801561075457600080fd5b5061076f600480360381019061076a9190612d3c565b6117c9565b60405161077c919061358e565b60405180910390f35b34801561079157600080fd5b506107ac60048036038101906107a79190612d0f565b61185d565b005b3480156107ba57600080fd5b506107c3611955565b6040516107d091906138eb565b60405180910390f35b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061084c575061084b8261195a565b5b9050919050565b60606000805461086290613be9565b80601f016020809104026020016040519081016040528092919081815260200182805461088e90613be9565b80156108db5780601f106108b0576101008083540402835291602001916108db565b820191906000526020600020905b8154815290600101906020018083116108be57829003601f168201915b5050505050905090565b60006108f082611a3c565b61092f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610926906137eb565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061097582610dd3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109dd9061384b565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610a05611aa8565b73ffffffffffffffffffffffffffffffffffffffff161480610a345750610a3381610a2e611aa8565b6117c9565b5b610a73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6a9061372b565b60405180910390fd5b610a7d8383611ab0565b505050565b601481565b6000600880549050905090565b610aa5610a9f611aa8565b82611b69565b610ae4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610adb906138ab565b60405180910390fd5b610aef838383611c47565b505050565b6000610aff83610f13565b8210610b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b37906135eb565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b614dee81565b610ba7611aa8565b73ffffffffffffffffffffffffffffffffffffffff16610bc5611101565b73ffffffffffffffffffffffffffffffffffffffff1614610c1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c129061380b565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610c66573d6000803e3d6000fd5b5050565b610c85838383604051806020016040528060008152506116eb565b505050565b6000610c94610a87565b8210610cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ccc906138cb565b60405180910390fd5b60088281548110610ce957610ce8613d82565b5b90600052602060002001549050919050565b600e6020528060005260406000206000915090505481565b610d1b611aa8565b73ffffffffffffffffffffffffffffffffffffffff16610d39611101565b73ffffffffffffffffffffffffffffffffffffffff1614610d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d869061380b565b60405180910390fd5b80600b9080519060200190610da5929190612b23565b5050565b600c60009054906101000a900460ff1681565b6000600a60149054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e739061376b565b60405180910390fd5b80915050919050565b600b8054610e9290613be9565b80601f0160208091040260200160405190810160405280929190818152602001828054610ebe90613be9565b8015610f0b5780601f10610ee057610100808354040283529160200191610f0b565b820191906000526020600020905b815481529060010190602001808311610eee57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610f84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7b9061374b565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610fd3611aa8565b73ffffffffffffffffffffffffffffffffffffffff16610ff1611101565b73ffffffffffffffffffffffffffffffffffffffff1614611047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103e9061380b565b60405180910390fd5b6110516000611ea3565b565b61105b611aa8565b73ffffffffffffffffffffffffffffffffffffffff16611079611101565b73ffffffffffffffffffffffffffffffffffffffff16146110cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c69061380b565b60405180910390fd5b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b61271081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461113a90613be9565b80601f016020809104026020016040519081016040528092919081815260200182805461116690613be9565b80156111b35780601f10611188576101008083540402835291602001916111b3565b820191906000526020600020905b81548152906001019060200180831161119657829003601f168201915b5050505050905090565b606060006111ca83610f13565b9050600081141561122757600067ffffffffffffffff8111156111f0576111ef613db1565b5b60405190808252806020026020018201604052801561121e5781602001602082028036833780820191505090505b509150506112c2565b60008167ffffffffffffffff81111561124357611242613db1565b5b6040519080825280602002602001820160405280156112715781602001602082028036833780820191505090505b50905060005b828110156112bb576112898582610af4565b82828151811061129c5761129b613d82565b5b60200260200101818152505080806112b390613c4c565b915050611277565b5080925050505b919050565b600d5481565b6112d5610dbc565b15611315576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130c9061370b565b60405180910390fd5b600061131f610a87565b9050600c60009054906101000a900460ff16611370576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611367906136cb565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146113de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d5906135cb565b60405180910390fd5b6005821115611422576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114199061388b565b60405180910390fd5b601482600e6000611431611aa8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114769190613a1e565b11156114b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ae9061386b565b60405180910390fd5b614dee82826114c69190613a1e565b1115611507576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114fe906137cb565b60405180910390fd5b61271082826115169190613a1e565b1015611564576000341461155f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611556906136ab565b60405180910390fd5b611639565b6127108111156115c9573461158483600d54611f6990919063ffffffff16565b146115c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115bb906136ab565b60405180910390fd5b611638565b346115f761271084846115dc9190613a1e565b6115e69190613aff565b600d54611f6990919063ffffffff16565b14611637576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162e906136ab565b60405180910390fd5b5b5b81600e6000611646611aa8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461168f9190613a1e565b9250508190555060005b828110156116d0576116bd6116ac611aa8565b82846116b89190613a1e565b611f7f565b80806116c890613c4c565b915050611699565b505050565b6116e76116e0611aa8565b8383611f9d565b5050565b6116fc6116f6611aa8565b83611b69565b61173b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611732906138ab565b60405180910390fd5b6117478484848461210a565b50505050565b606061175882611a3c565b611797576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178e906137ab565b60405180910390fd5b600b6117a283612166565b6040516020016117b39291906134e1565b6040516020818303038152906040529050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611865611aa8565b73ffffffffffffffffffffffffffffffffffffffff16611883611101565b73ffffffffffffffffffffffffffffffffffffffff16146118d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d09061380b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611949576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119409061362b565b60405180910390fd5b61195281611ea3565b50565b600581565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a2557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611a355750611a34826122c7565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611b2383610dd3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611b7482611a3c565b611bb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611baa906136eb565b60405180910390fd5b6000611bbe83610dd3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611c2d57508373ffffffffffffffffffffffffffffffffffffffff16611c15846108e5565b73ffffffffffffffffffffffffffffffffffffffff16145b80611c3e5750611c3d81856117c9565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611c6782610dd3565b73ffffffffffffffffffffffffffffffffffffffff1614611cbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb49061382b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d249061366b565b60405180910390fd5b611d38838383612331565b611d43600082611ab0565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611d939190613aff565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dea9190613a1e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008183611f779190613aa5565b905092915050565b611f99828260405180602001604052806000815250612445565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561200c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120039061368b565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120fd919061358e565b60405180910390a3505050565b612115848484611c47565b612121848484846124a0565b612160576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121579061360b565b60405180910390fd5b50505050565b606060008214156121ae576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506122c2565b600082905060005b600082146121e05780806121c990613c4c565b915050600a826121d99190613a74565b91506121b6565b60008167ffffffffffffffff8111156121fc576121fb613db1565b5b6040519080825280601f01601f19166020018201604052801561222e5781602001600182028036833780820191505090505b5090505b600085146122bb576001826122479190613aff565b9150600a856122569190613c95565b60306122629190613a1e565b60f81b81838151811061227857612277613d82565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856122b49190613a74565b9450612232565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61233c838383612637565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561237f5761237a8161263c565b6123be565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146123bd576123bc8382612685565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612401576123fc816127f2565b612440565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461243f5761243e82826128c3565b5b5b505050565b61244f8383612942565b61245c60008484846124a0565b61249b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124929061360b565b60405180910390fd5b505050565b60006124c18473ffffffffffffffffffffffffffffffffffffffff16612b10565b1561262a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026124ea611aa8565b8786866040518563ffffffff1660e01b815260040161250c9493929190613520565b602060405180830381600087803b15801561252657600080fd5b505af192505050801561255757506040513d601f19601f820116820180604052508101906125549190612eff565b60015b6125da573d8060008114612587576040519150601f19603f3d011682016040523d82523d6000602084013e61258c565b606091505b506000815114156125d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c99061360b565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061262f565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161269284610f13565b61269c9190613aff565b9050600060076000848152602001908152602001600020549050818114612781576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506128069190613aff565b905060006009600084815260200190815260200160002054905060006008838154811061283657612835613d82565b5b90600052602060002001549050806008838154811061285857612857613d82565b5b9060005260206000200181905550816009600083815260200190815260200160002081905550600960008581526020019081526020016000206000905560088054806128a7576128a6613d53565b5b6001900381819060005260206000200160009055905550505050565b60006128ce83610f13565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a99061378b565b60405180910390fd5b6129bb81611a3c565b156129fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f29061364b565b60405180910390fd5b612a0760008383612331565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a579190613a1e565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054612b2f90613be9565b90600052602060002090601f016020900481019282612b515760008555612b98565b82601f10612b6a57805160ff1916838001178555612b98565b82800160010185558215612b98579182015b82811115612b97578251825591602001919060010190612b7c565b5b509050612ba59190612ba9565b5090565b5b80821115612bc2576000816000905550600101612baa565b5090565b6000612bd9612bd48461392b565b613906565b905082815260208101848484011115612bf557612bf4613de5565b5b612c00848285613ba7565b509392505050565b6000612c1b612c168461395c565b613906565b905082815260208101848484011115612c3757612c36613de5565b5b612c42848285613ba7565b509392505050565b600081359050612c59816143f4565b92915050565b600081359050612c6e8161440b565b92915050565b600081359050612c8381614422565b92915050565b600081519050612c9881614422565b92915050565b600082601f830112612cb357612cb2613de0565b5b8135612cc3848260208601612bc6565b91505092915050565b600082601f830112612ce157612ce0613de0565b5b8135612cf1848260208601612c08565b91505092915050565b600081359050612d0981614439565b92915050565b600060208284031215612d2557612d24613def565b5b6000612d3384828501612c4a565b91505092915050565b60008060408385031215612d5357612d52613def565b5b6000612d6185828601612c4a565b9250506020612d7285828601612c4a565b9150509250929050565b600080600060608486031215612d9557612d94613def565b5b6000612da386828701612c4a565b9350506020612db486828701612c4a565b9250506040612dc586828701612cfa565b9150509250925092565b60008060008060808587031215612de957612de8613def565b5b6000612df787828801612c4a565b9450506020612e0887828801612c4a565b9350506040612e1987828801612cfa565b925050606085013567ffffffffffffffff811115612e3a57612e39613dea565b5b612e4687828801612c9e565b91505092959194509250565b60008060408385031215612e6957612e68613def565b5b6000612e7785828601612c4a565b9250506020612e8885828601612c5f565b9150509250929050565b60008060408385031215612ea957612ea8613def565b5b6000612eb785828601612c4a565b9250506020612ec885828601612cfa565b9150509250929050565b600060208284031215612ee857612ee7613def565b5b6000612ef684828501612c74565b91505092915050565b600060208284031215612f1557612f14613def565b5b6000612f2384828501612c89565b91505092915050565b600060208284031215612f4257612f41613def565b5b600082013567ffffffffffffffff811115612f6057612f5f613dea565b5b612f6c84828501612ccc565b91505092915050565b600060208284031215612f8b57612f8a613def565b5b6000612f9984828501612cfa565b91505092915050565b6000612fae83836134c3565b60208301905092915050565b612fc381613b33565b82525050565b6000612fd4826139b2565b612fde81856139e0565b9350612fe98361398d565b8060005b8381101561301a5781516130018882612fa2565b975061300c836139d3565b925050600181019050612fed565b5085935050505092915050565b61303081613b45565b82525050565b6000613041826139bd565b61304b81856139f1565b935061305b818560208601613bb6565b61306481613df4565b840191505092915050565b600061307a826139c8565b6130848185613a02565b9350613094818560208601613bb6565b61309d81613df4565b840191505092915050565b60006130b3826139c8565b6130bd8185613a13565b93506130cd818560208601613bb6565b80840191505092915050565b600081546130e681613be9565b6130f08186613a13565b9450600182166000811461310b576001811461311c5761314f565b60ff1983168652818601935061314f565b6131258561399d565b60005b8381101561314757815481890152600182019150602081019050613128565b838801955050505b50505092915050565b6000613165601c83613a02565b915061317082613e05565b602082019050919050565b6000613188602b83613a02565b915061319382613e2e565b604082019050919050565b60006131ab603283613a02565b91506131b682613e7d565b604082019050919050565b60006131ce602683613a02565b91506131d982613ecc565b604082019050919050565b60006131f1601c83613a02565b91506131fc82613f1b565b602082019050919050565b6000613214602483613a02565b915061321f82613f44565b604082019050919050565b6000613237601983613a02565b915061324282613f93565b602082019050919050565b600061325a601f83613a02565b915061326582613fbc565b602082019050919050565b600061327d601b83613a02565b915061328882613fe5565b602082019050919050565b60006132a0602c83613a02565b91506132ab8261400e565b604082019050919050565b60006132c3601083613a02565b91506132ce8261405d565b602082019050919050565b60006132e6603883613a02565b91506132f182614086565b604082019050919050565b6000613309602a83613a02565b9150613314826140d5565b604082019050919050565b600061332c602983613a02565b915061333782614124565b604082019050919050565b600061334f602083613a02565b915061335a82614173565b602082019050919050565b6000613372601583613a02565b915061337d8261419c565b602082019050919050565b6000613395601183613a02565b91506133a0826141c5565b602082019050919050565b60006133b8602c83613a02565b91506133c3826141ee565b604082019050919050565b60006133db602083613a02565b91506133e68261423d565b602082019050919050565b60006133fe602983613a02565b915061340982614266565b604082019050919050565b6000613421602183613a02565b915061342c826142b5565b604082019050919050565b6000613444601a83613a02565b915061344f82614304565b602082019050919050565b6000613467601b83613a02565b91506134728261432d565b602082019050919050565b600061348a603183613a02565b915061349582614356565b604082019050919050565b60006134ad602c83613a02565b91506134b8826143a5565b604082019050919050565b6134cc81613b9d565b82525050565b6134db81613b9d565b82525050565b60006134ed82856130d9565b91506134f982846130a8565b91508190509392505050565b600060208201905061351a6000830184612fba565b92915050565b60006080820190506135356000830187612fba565b6135426020830186612fba565b61354f60408301856134d2565b81810360608301526135618184613036565b905095945050505050565b600060208201905081810360008301526135868184612fc9565b905092915050565b60006020820190506135a36000830184613027565b92915050565b600060208201905081810360008301526135c3818461306f565b905092915050565b600060208201905081810360008301526135e481613158565b9050919050565b600060208201905081810360008301526136048161317b565b9050919050565b600060208201905081810360008301526136248161319e565b9050919050565b60006020820190508181036000830152613644816131c1565b9050919050565b60006020820190508181036000830152613664816131e4565b9050919050565b6000602082019050818103600083015261368481613207565b9050919050565b600060208201905081810360008301526136a48161322a565b9050919050565b600060208201905081810360008301526136c48161324d565b9050919050565b600060208201905081810360008301526136e481613270565b9050919050565b6000602082019050818103600083015261370481613293565b9050919050565b60006020820190508181036000830152613724816132b6565b9050919050565b60006020820190508181036000830152613744816132d9565b9050919050565b60006020820190508181036000830152613764816132fc565b9050919050565b600060208201905081810360008301526137848161331f565b9050919050565b600060208201905081810360008301526137a481613342565b9050919050565b600060208201905081810360008301526137c481613365565b9050919050565b600060208201905081810360008301526137e481613388565b9050919050565b60006020820190508181036000830152613804816133ab565b9050919050565b60006020820190508181036000830152613824816133ce565b9050919050565b60006020820190508181036000830152613844816133f1565b9050919050565b6000602082019050818103600083015261386481613414565b9050919050565b6000602082019050818103600083015261388481613437565b9050919050565b600060208201905081810360008301526138a48161345a565b9050919050565b600060208201905081810360008301526138c48161347d565b9050919050565b600060208201905081810360008301526138e4816134a0565b9050919050565b600060208201905061390060008301846134d2565b92915050565b6000613910613921565b905061391c8282613c1b565b919050565b6000604051905090565b600067ffffffffffffffff82111561394657613945613db1565b5b61394f82613df4565b9050602081019050919050565b600067ffffffffffffffff82111561397757613976613db1565b5b61398082613df4565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613a2982613b9d565b9150613a3483613b9d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613a6957613a68613cc6565b5b828201905092915050565b6000613a7f82613b9d565b9150613a8a83613b9d565b925082613a9a57613a99613cf5565b5b828204905092915050565b6000613ab082613b9d565b9150613abb83613b9d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613af457613af3613cc6565b5b828202905092915050565b6000613b0a82613b9d565b9150613b1583613b9d565b925082821015613b2857613b27613cc6565b5b828203905092915050565b6000613b3e82613b7d565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015613bd4578082015181840152602081019050613bb9565b83811115613be3576000848401525b50505050565b60006002820490506001821680613c0157607f821691505b60208210811415613c1557613c14613d24565b5b50919050565b613c2482613df4565b810181811067ffffffffffffffff82111715613c4357613c42613db1565b5b80604052505050565b6000613c5782613b9d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613c8a57613c89613cc6565b5b600182019050919050565b6000613ca082613b9d565b9150613cab83613b9d565b925082613cbb57613cba613cf5565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f436f6e74726163742061646472657373206e6f7420616c6c6f77656400000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f45746865722076616c75652073656e74206973206e6f7420636f727265637400600082015250565b7f53616c65206d7573742062652061637469766520746f206d696e740000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f546f6b656e20646f6573206e6f742065786973742e0000000000000000000000600082015250565b7f457863656564206d617820737570706c79000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4578636565647320706572206164647265737320737570706c79000000000000600082015250565b7f45786365656473206d617820706572207472616e73616374696f6e0000000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6143fd81613b33565b811461440857600080fd5b50565b61441481613b45565b811461441f57600080fd5b50565b61442b81613b51565b811461443657600080fd5b50565b61444281613b9d565b811461444d57600080fd5b5056fea264697066735822122001c3e855265865e55415e62f5b5ac451dbc16f9d9746e2758737c8fc4ce10b9964736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000b4265616e7a53656c666965000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000653454c4649450000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): BeanzSelfie
Arg [1] : symbol (string): SELFIE
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [3] : 4265616e7a53656c666965000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 53454c4649450000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.