ERC-721
Overview
Max Total Supply
95 KCC
Holders
80
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Balance
5 KCCLoading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
KingColdCover
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol"; import "./ERC2981.sol"; contract KingColdCover is ERC721Enumerable, Ownable, ERC2981 { using Strings for uint256; string public baseURI; string public baseExtension = ".json"; address[1] private team = [ 0xC87bf1972Dd048404CBd3FbA300b69277552C472 // Funeral wallet ]; uint256 public cost = 5 ether; uint256 public maxSupply = 555; uint256 public maxMintAmount = 1; bool public publicPaused = true; address private giveawayAddr = 0xC87bf1972Dd048404CBd3FbA300b69277552C472; uint256 constant private ROYALTIES_PERCENTAGE = 5; constructor( string memory _name, string memory _symbol, string memory _initBaseURI ) ERC721(_name, _symbol) { setBaseURI(_initBaseURI); _setReceiver(address(giveawayAddr)); _setRoyaltyPercentage(ROYALTIES_PERCENTAGE); } // internal function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Enumerable, IERC165) returns (bool) { return super.supportsInterface(interfaceId); } // public function mint(uint256 _mintAmount) public payable { uint256 supply = totalSupply(); uint256 totalPayout = 0; require(!publicPaused, "Mint is paused"); require(_mintAmount > 0, "Cannot mint 0"); require(_mintAmount <= maxMintAmount, "Cannot mint more than 1"); require(supply + _mintAmount <= maxSupply, "Not enough left to mint"); require(balanceOf(msg.sender) < 1, "You already own a King Cold Cover"); if (msg.sender != owner()) { require(msg.value >= cost * _mintAmount, "Not enough monies"); } for (uint256 i = 1; i <= _mintAmount; i++) { _safeMint(msg.sender, supply + i); } totalPayout = msg.value; payable(team[0]).transfer(totalPayout); } function mintGiveaways() public onlyOwner { uint256 supply = totalSupply(); require(supply <= 95, "Cannot mint more giveaways"); for(uint256 i = 1; i < 20; i++) { _safeMint(giveawayAddr, supply + i); } } function walletOfOwner(address _owner) public view returns (uint256[] memory) { uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory tokenIds = new uint256[](ownerTokenCount); for (uint256 i; i < ownerTokenCount; i++) { tokenIds[i] = tokenOfOwnerByIndex(_owner, i); } return tokenIds; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, "king_cold_cover", baseExtension)) : ""; } function setCost(uint256 _newCost) public onlyOwner { cost = _newCost; } function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner { maxMintAmount = _newmaxMintAmount; } function setBaseURI(string memory _newBaseURI) public onlyOwner { baseURI = _newBaseURI; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { baseExtension = _newBaseExtension; } function pausePublic(bool _state) public onlyOwner { publicPaused = _state; } function withdraw() public payable onlyOwner { // ============================================================================= (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); // ============================================================================= } }
// 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 (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 (utils/introspection/ERC165Storage.sol) pragma solidity ^0.8.0; import "./ERC165.sol"; /** * @dev Storage based implementation of the {IERC165} interface. * * Contracts may inherit from this and call {_registerInterface} to declare * their support of an interface. */ abstract contract ERC165Storage is ERC165 { /** * @dev Mapping of interface ids to whether or not it's supported. */ mapping(bytes4 => bool) private _supportedInterfaces; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId]; } /** * @dev Registers the contract as an implementer of the interface defined by * `interfaceId`. Support of the actual ERC165 interface is automatic and * registering its interface id is not required. * * See {IERC165-supportsInterface}. * * Requirements: * * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`). */ function _registerInterface(bytes4 interfaceId) internal virtual { require(interfaceId != 0xffffffff, "ERC165: invalid interface id"); _supportedInterfaces[interfaceId] = true; } }
/*** * ███████╗██████╗ ██████╗██████╗ █████╗ █████╗ ██╗ * ██╔════╝██╔══██╗██╔════╝╚════██╗██╔══██╗██╔══██╗███║ * █████╗ ██████╔╝██║ █████╔╝╚██████║╚█████╔╝╚██║ * ██╔══╝ ██╔══██╗██║ ██╔═══╝ ╚═══██║██╔══██╗ ██║ * ███████╗██║ ██║╚██████╗███████╗ █████╔╝╚█████╔╝ ██║ * ╚══════╝╚═╝ ╚═╝ ╚═════╝╚══════╝ ╚════╝ ╚════╝ ╚═╝ * Written by MaxflowO2 * You can follow along at https://github.com/MaxflowO2/ERC2981 */ pragma solidity ^0.8.4; // SPDX-License-Identifier: MIT import "./IERC2981.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; abstract contract ERC2981 is IERC2981, ERC165Storage { using SafeMath for uint256; // Bytes4 Code for EIP-2981 bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; // Mappings _tokenID -> values address receiver; uint256 royaltyPercentage; constructor() { // Using ERC165Storage set EIP-2981 _registerInterface(_INTERFACE_ID_ERC2981); } // Set to be internal function _setReceiver function _setReceiver(address _address) internal { receiver = _address; } // Set to be internal function _setRoyaltyPercentage function _setRoyaltyPercentage(uint256 _royaltyPercentage) internal { royaltyPercentage = _royaltyPercentage; } // Override for royaltyInfo(uint256, uint256) // uses SafeMath for uint256 function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override(IERC2981) returns (address Receiver, uint256 royaltyAmount) { Receiver = receiver; royaltyAmount = _salePrice.div(100).mul(royaltyPercentage); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
/*** * ███████╗██╗██████╗ ██████╗ █████╗ █████╗ ██╗ * ██╔════╝██║██╔══██╗ ╚════██╗██╔══██╗██╔══██╗███║ * █████╗ ██║██████╔╝█████╗ █████╔╝╚██████║╚█████╔╝╚██║ * ██╔══╝ ██║██╔═══╝ ╚════╝██╔═══╝ ╚═══██║██╔══██╗ ██║ * ███████╗██║██║ ███████╗ █████╔╝╚█████╔╝ ██║ * ╚══════╝╚═╝╚═╝ ╚══════╝ ╚════╝ ╚════╝ ╚═╝ * Zach Burks, James Morgan, Blaine Malone, James Seibel, * "EIP-2981: NFT Royalty Standard," * Ethereum Improvement Proposals, no. 2981, September 2020. [Online serial]. * Available: https://eips.ethereum.org/EIPS/eip-2981. * * Minor edit on comments to mirror the rest of the interfaces * by @MaxFlowO2 on 29 Dec 2021 for v2.1 */ // SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard */ interface IERC2981 is IERC165 { /** * @dev Called with the sale price to determine how much royalty is owed and to whom. * @param tokenId - the NFT asset queried for royalty information * @param salePrice - the sale price of the NFT asset specified by `tokenId` * @return receiver - address of who should be sent the royalty payment * @return royaltyAmount - the royalty payment amount for `salePrice` */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// 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; } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintGiveaways","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pausePublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"Receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60806040526040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600f90805190602001906200005192919062000505565b50604051806020016040528073c87bf1972dd048404cbd3fba300b69277552c47273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152506010906001620000b392919062000596565b50674563918244f4000060115561022b60125560016013556001601460006101000a81548160ff02191690831515021790555073c87bf1972dd048404cbd3fba300b69277552c472601460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200014857600080fd5b506040516200525c3803806200525c83398181016040528101906200016e9190620006a9565b828281600090805190602001906200018892919062000505565b508060019080519060200190620001a192919062000505565b505050620001c4620001b86200023b60201b60201c565b6200024360201b60201c565b620001dc632a55205a60e01b6200030960201b60201c565b620001ed81620003e260201b60201c565b62000220601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff166200048d60201b60201c565b620002326005620004d160201b60201c565b505050620009af565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b63ffffffff60e01b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141562000375576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200036c9062000798565b60405180910390fd5b6001600b6000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b620003f26200023b60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000418620004db60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000471576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200046890620007ba565b60405180910390fd5b80600e90805190602001906200048992919062000505565b5050565b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b80600d8190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620005139062000882565b90600052602060002090601f01602090048101928262000537576000855562000583565b82601f106200055257805160ff191683800117855562000583565b8280016001018555821562000583579182015b828111156200058257825182559160200191906001019062000565565b5b50905062000592919062000618565b5090565b826001810192821562000605579160200282015b82811115620006045782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190620005aa565b5b50905062000614919062000618565b5090565b5b808211156200063357600081600090555060010162000619565b5090565b60006200064e620006488462000805565b620007dc565b9050828152602081018484840111156200066757600080fd5b620006748482856200084c565b509392505050565b600082601f8301126200068e57600080fd5b8151620006a084826020860162000637565b91505092915050565b600080600060608486031215620006bf57600080fd5b600084015167ffffffffffffffff811115620006da57600080fd5b620006e8868287016200067c565b935050602084015167ffffffffffffffff8111156200070657600080fd5b62000714868287016200067c565b925050604084015167ffffffffffffffff8111156200073257600080fd5b62000740868287016200067c565b9150509250925092565b600062000759601c836200083b565b915062000766826200095d565b602082019050919050565b6000620007806020836200083b565b91506200078d8262000986565b602082019050919050565b60006020820190508181036000830152620007b3816200074a565b9050919050565b60006020820190508181036000830152620007d58162000771565b9050919050565b6000620007e8620007fb565b9050620007f68282620008b8565b919050565b6000604051905090565b600067ffffffffffffffff8211156200082357620008226200091d565b5b6200082e826200094c565b9050602081019050919050565b600082825260208201905092915050565b60005b838110156200086c5780820151818401526020810190506200084f565b838111156200087c576000848401525b50505050565b600060028204905060018216806200089b57607f821691505b60208210811415620008b257620008b1620008ee565b5b50919050565b620008c3826200094c565b810181811067ffffffffffffffff82111715620008e557620008e46200091d565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4552433136353a20696e76616c696420696e7465726661636520696400000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b61489d80620009bf6000396000f3fe6080604052600436106102045760003560e01c80636352211e11610118578063b88d4fde116100a0578063d5abeb011161006f578063d5abeb011461074e578063da3ef23f14610779578063e985e9c5146107a2578063f2fde38b146107df578063f79c173f1461080857610204565b8063b88d4fde146106a6578063c6682862146106cf578063c87b56dd146106fa578063ce0d0d671461073757610204565b80637f00c7a6116100e75780637f00c7a6146105e25780638da5cb5b1461060b57806395d89b4114610636578063a0712d6814610661578063a22cb4651461067d57610204565b80636352211e146105265780636c0360eb1461056357806370a082311461058e578063715018a6146105cb57610204565b806323b872dd1161019b57806342842e0e1161016a57806342842e0e14610431578063438b63001461045a57806344a0d68a146104975780634f6ccce7146104c057806355f804b3146104fd57610204565b806323b872dd146103835780632a55205a146103ac5780632f745c59146103ea5780633ccfd60b1461042757610204565b80630bb12bb8116101d75780630bb12bb8146102d757806313faede61461030257806318160ddd1461032d578063239c70ae1461035857610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190613252565b610831565b60405161023d91906139c5565b60405180910390f35b34801561025257600080fd5b5061025b610843565b60405161026891906139e0565b60405180910390f35b34801561027d57600080fd5b50610298600480360381019061029391906132e5565b6108d5565b6040516102a59190613913565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d091906131ed565b61095a565b005b3480156102e357600080fd5b506102ec610a72565b6040516102f991906139c5565b60405180910390f35b34801561030e57600080fd5b50610317610a85565b6040516103249190613d22565b60405180910390f35b34801561033957600080fd5b50610342610a8b565b60405161034f9190613d22565b60405180910390f35b34801561036457600080fd5b5061036d610a98565b60405161037a9190613d22565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a591906130e7565b610a9e565b005b3480156103b857600080fd5b506103d360048036038101906103ce919061330e565b610afe565b6040516103e192919061397a565b60405180910390f35b3480156103f657600080fd5b50610411600480360381019061040c91906131ed565b610b57565b60405161041e9190613d22565b60405180910390f35b61042f610bfc565b005b34801561043d57600080fd5b50610458600480360381019061045391906130e7565b610cf8565b005b34801561046657600080fd5b50610481600480360381019061047c9190613082565b610d18565b60405161048e91906139a3565b60405180910390f35b3480156104a357600080fd5b506104be60048036038101906104b991906132e5565b610e12565b005b3480156104cc57600080fd5b506104e760048036038101906104e291906132e5565b610e98565b6040516104f49190613d22565b60405180910390f35b34801561050957600080fd5b50610524600480360381019061051f91906132a4565b610f2f565b005b34801561053257600080fd5b5061054d600480360381019061054891906132e5565b610fc5565b60405161055a9190613913565b60405180910390f35b34801561056f57600080fd5b50610578611077565b60405161058591906139e0565b60405180910390f35b34801561059a57600080fd5b506105b560048036038101906105b09190613082565b611105565b6040516105c29190613d22565b60405180910390f35b3480156105d757600080fd5b506105e06111bd565b005b3480156105ee57600080fd5b50610609600480360381019061060491906132e5565b611245565b005b34801561061757600080fd5b506106206112cb565b60405161062d9190613913565b60405180910390f35b34801561064257600080fd5b5061064b6112f5565b60405161065891906139e0565b60405180910390f35b61067b600480360381019061067691906132e5565b611387565b005b34801561068957600080fd5b506106a4600480360381019061069f91906131b1565b611675565b005b3480156106b257600080fd5b506106cd60048036038101906106c89190613136565b61168b565b005b3480156106db57600080fd5b506106e46116ed565b6040516106f191906139e0565b60405180910390f35b34801561070657600080fd5b50610721600480360381019061071c91906132e5565b61177b565b60405161072e91906139e0565b60405180910390f35b34801561074357600080fd5b5061074c61181b565b005b34801561075a57600080fd5b50610763611945565b6040516107709190613d22565b60405180910390f35b34801561078557600080fd5b506107a0600480360381019061079b91906132a4565b61194b565b005b3480156107ae57600080fd5b506107c960048036038101906107c491906130ab565b6119e1565b6040516107d691906139c5565b60405180910390f35b3480156107eb57600080fd5b5061080660048036038101906108019190613082565b611a75565b005b34801561081457600080fd5b5061082f600480360381019061082a9190613229565b611b6d565b005b600061083c82611c06565b9050919050565b6060600080546108529061402b565b80601f016020809104026020016040519081016040528092919081815260200182805461087e9061402b565b80156108cb5780601f106108a0576101008083540402835291602001916108cb565b820191906000526020600020905b8154815290600101906020018083116108ae57829003601f168201915b5050505050905090565b60006108e082611c7e565b61091f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091690613c22565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061096582610fc5565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cd90613c82565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109f5611cea565b73ffffffffffffffffffffffffffffffffffffffff161480610a245750610a2381610a1e611cea565b6119e1565b5b610a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5a90613b62565b60405180910390fd5b610a6d8383611cf2565b505050565b601460009054906101000a900460ff1681565b60115481565b6000600880549050905090565b60135481565b610aaf610aa9611cea565b82611dab565b610aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae590613ca2565b60405180910390fd5b610af9838383611e89565b505050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150610b4e600d54610b406064866120f090919063ffffffff16565b61210690919063ffffffff16565b90509250929050565b6000610b6283611105565b8210610ba3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9a90613a02565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c04611cea565b73ffffffffffffffffffffffffffffffffffffffff16610c226112cb565b73ffffffffffffffffffffffffffffffffffffffff1614610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90613c42565b60405180910390fd5b6000610c826112cb565b73ffffffffffffffffffffffffffffffffffffffff1647604051610ca5906138fe565b60006040518083038185875af1925050503d8060008114610ce2576040519150601f19603f3d011682016040523d82523d6000602084013e610ce7565b606091505b5050905080610cf557600080fd5b50565b610d138383836040518060200160405280600081525061168b565b505050565b60606000610d2583611105565b905060008167ffffffffffffffff811115610d69577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610d975781602001602082028036833780820191505090505b50905060005b82811015610e0757610daf8582610b57565b828281518110610de8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080610dff9061408e565b915050610d9d565b508092505050919050565b610e1a611cea565b73ffffffffffffffffffffffffffffffffffffffff16610e386112cb565b73ffffffffffffffffffffffffffffffffffffffff1614610e8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8590613c42565b60405180910390fd5b8060118190555050565b6000610ea2610a8b565b8210610ee3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eda90613cc2565b60405180910390fd5b60088281548110610f1d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b610f37611cea565b73ffffffffffffffffffffffffffffffffffffffff16610f556112cb565b73ffffffffffffffffffffffffffffffffffffffff1614610fab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa290613c42565b60405180910390fd5b80600e9080519060200190610fc1929190612ea6565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561106e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106590613ba2565b60405180910390fd5b80915050919050565b600e80546110849061402b565b80601f01602080910402602001604051908101604052809291908181526020018280546110b09061402b565b80156110fd5780601f106110d2576101008083540402835291602001916110fd565b820191906000526020600020905b8154815290600101906020018083116110e057829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611176576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116d90613b82565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111c5611cea565b73ffffffffffffffffffffffffffffffffffffffff166111e36112cb565b73ffffffffffffffffffffffffffffffffffffffff1614611239576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123090613c42565b60405180910390fd5b611243600061211c565b565b61124d611cea565b73ffffffffffffffffffffffffffffffffffffffff1661126b6112cb565b73ffffffffffffffffffffffffffffffffffffffff16146112c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b890613c42565b60405180910390fd5b8060138190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546113049061402b565b80601f01602080910402602001604051908101604052809291908181526020018280546113309061402b565b801561137d5780601f106113525761010080835404028352916020019161137d565b820191906000526020600020905b81548152906001019060200180831161136057829003601f168201915b5050505050905090565b6000611391610a8b565b90506000601460009054906101000a900460ff16156113e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113dc90613d02565b60405180910390fd5b60008311611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141f90613b42565b60405180910390fd5b60135483111561146d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146490613bc2565b60405180910390fd5b601254838361147c9190613e60565b11156114bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b490613c02565b60405180910390fd5b60016114c833611105565b10611508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ff90613ce2565b60405180910390fd5b6115106112cb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461159357826011546115509190613ee7565b341015611592576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158990613ac2565b60405180910390fd5b5b6000600190505b8381116115c9576115b63382856115b19190613e60565b6121e2565b80806115c19061408e565b91505061159a565b503490506010600060018110611608577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561166f573d6000803e3d6000fd5b50505050565b611687611680611cea565b8383612200565b5050565b61169c611696611cea565b83611dab565b6116db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d290613ca2565b60405180910390fd5b6116e78484848461236d565b50505050565b600f80546116fa9061402b565b80601f01602080910402602001604051908101604052809291908181526020018280546117269061402b565b80156117735780601f1061174857610100808354040283529160200191611773565b820191906000526020600020905b81548152906001019060200180831161175657829003601f168201915b505050505081565b606061178682611c7e565b6117c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bc90613c62565b60405180910390fd5b60006117cf6123c9565b905060008151116117ef5760405180602001604052806000815250611813565b80600f6040516020016118039291906138cf565b6040516020818303038152906040525b915050919050565b611823611cea565b73ffffffffffffffffffffffffffffffffffffffff166118416112cb565b73ffffffffffffffffffffffffffffffffffffffff1614611897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188e90613c42565b60405180910390fd5b60006118a1610a8b565b9050605f8111156118e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118de90613aa2565b60405180910390fd5b6000600190505b60148110156119415761192e601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682846119299190613e60565b6121e2565b80806119399061408e565b9150506118ee565b5050565b60125481565b611953611cea565b73ffffffffffffffffffffffffffffffffffffffff166119716112cb565b73ffffffffffffffffffffffffffffffffffffffff16146119c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119be90613c42565b60405180910390fd5b80600f90805190602001906119dd929190612ea6565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a7d611cea565b73ffffffffffffffffffffffffffffffffffffffff16611a9b6112cb565b73ffffffffffffffffffffffffffffffffffffffff1614611af1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae890613c42565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5890613a42565b60405180910390fd5b611b6a8161211c565b50565b611b75611cea565b73ffffffffffffffffffffffffffffffffffffffff16611b936112cb565b73ffffffffffffffffffffffffffffffffffffffff1614611be9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be090613c42565b60405180910390fd5b80601460006101000a81548160ff02191690831515021790555050565b6000611c118261245b565b80611c775750600b6000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff165b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d6583610fc5565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611db682611c7e565b611df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dec90613b22565b60405180910390fd5b6000611e0083610fc5565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e6f57508373ffffffffffffffffffffffffffffffffffffffff16611e57846108d5565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e805750611e7f81856119e1565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611ea982610fc5565b73ffffffffffffffffffffffffffffffffffffffff1614611eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef690613a62565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6690613ae2565b60405180910390fd5b611f7a8383836124d5565b611f85600082611cf2565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fd59190613f41565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461202c9190613e60565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120eb8383836125e9565b505050565b600081836120fe9190613eb6565b905092915050565b600081836121149190613ee7565b905092915050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6121fc8282604051806020016040528060008152506125ee565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561226f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226690613b02565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161236091906139c5565b60405180910390a3505050565b612378848484611e89565b61238484848484612649565b6123c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ba90613a22565b60405180910390fd5b50505050565b6060600e80546123d89061402b565b80601f01602080910402602001604051908101604052809291908181526020018280546124049061402b565b80156124515780601f1061242657610100808354040283529160200191612451565b820191906000526020600020905b81548152906001019060200180831161243457829003601f168201915b5050505050905090565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124ce57506124cd826127e0565b5b9050919050565b6124e08383836128c2565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156125235761251e816128c7565b612562565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612561576125608382612910565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125a5576125a081612a7d565b6125e4565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146125e3576125e28282612bc0565b5b5b505050565b505050565b6125f88383612c3f565b6126056000848484612649565b612644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263b90613a22565b60405180910390fd5b505050565b600061266a8473ffffffffffffffffffffffffffffffffffffffff16612e19565b156127d3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612693611cea565b8786866040518563ffffffff1660e01b81526004016126b5949392919061392e565b602060405180830381600087803b1580156126cf57600080fd5b505af192505050801561270057506040513d601f19601f820116820180604052508101906126fd919061327b565b60015b612783573d8060008114612730576040519150601f19603f3d011682016040523d82523d6000602084013e612735565b606091505b5060008151141561277b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277290613a22565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506127d8565b600190505b949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128ab57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806128bb57506128ba82612e3c565b5b9050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161291d84611105565b6129279190613f41565b9050600060076000848152602001908152602001600020549050818114612a0c576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612a919190613f41565b9050600060096000848152602001908152602001600020549050600060088381548110612ae7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110612b2f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612ba4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612bcb83611105565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612caf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca690613be2565b60405180910390fd5b612cb881611c7e565b15612cf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cef90613a82565b60405180910390fd5b612d04600083836124d5565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d549190613e60565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e15600083836125e9565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b828054612eb29061402b565b90600052602060002090601f016020900481019282612ed45760008555612f1b565b82601f10612eed57805160ff1916838001178555612f1b565b82800160010185558215612f1b579182015b82811115612f1a578251825591602001919060010190612eff565b5b509050612f289190612f2c565b5090565b5b80821115612f45576000816000905550600101612f2d565b5090565b6000612f5c612f5784613d62565b613d3d565b905082815260208101848484011115612f7457600080fd5b612f7f848285613fe9565b509392505050565b6000612f9a612f9584613d93565b613d3d565b905082815260208101848484011115612fb257600080fd5b612fbd848285613fe9565b509392505050565b600081359050612fd48161480b565b92915050565b600081359050612fe981614822565b92915050565b600081359050612ffe81614839565b92915050565b60008151905061301381614839565b92915050565b600082601f83011261302a57600080fd5b813561303a848260208601612f49565b91505092915050565b600082601f83011261305457600080fd5b8135613064848260208601612f87565b91505092915050565b60008135905061307c81614850565b92915050565b60006020828403121561309457600080fd5b60006130a284828501612fc5565b91505092915050565b600080604083850312156130be57600080fd5b60006130cc85828601612fc5565b92505060206130dd85828601612fc5565b9150509250929050565b6000806000606084860312156130fc57600080fd5b600061310a86828701612fc5565b935050602061311b86828701612fc5565b925050604061312c8682870161306d565b9150509250925092565b6000806000806080858703121561314c57600080fd5b600061315a87828801612fc5565b945050602061316b87828801612fc5565b935050604061317c8782880161306d565b925050606085013567ffffffffffffffff81111561319957600080fd5b6131a587828801613019565b91505092959194509250565b600080604083850312156131c457600080fd5b60006131d285828601612fc5565b92505060206131e385828601612fda565b9150509250929050565b6000806040838503121561320057600080fd5b600061320e85828601612fc5565b925050602061321f8582860161306d565b9150509250929050565b60006020828403121561323b57600080fd5b600061324984828501612fda565b91505092915050565b60006020828403121561326457600080fd5b600061327284828501612fef565b91505092915050565b60006020828403121561328d57600080fd5b600061329b84828501613004565b91505092915050565b6000602082840312156132b657600080fd5b600082013567ffffffffffffffff8111156132d057600080fd5b6132dc84828501613043565b91505092915050565b6000602082840312156132f757600080fd5b60006133058482850161306d565b91505092915050565b6000806040838503121561332157600080fd5b600061332f8582860161306d565b92505060206133408582860161306d565b9150509250929050565b600061335683836138b1565b60208301905092915050565b61336b81613f75565b82525050565b600061337c82613de9565b6133868185613e17565b935061339183613dc4565b8060005b838110156133c25781516133a9888261334a565b97506133b483613e0a565b925050600181019050613395565b5085935050505092915050565b6133d881613f87565b82525050565b60006133e982613df4565b6133f38185613e28565b9350613403818560208601613ff8565b61340c81614193565b840191505092915050565b600061342282613dff565b61342c8185613e44565b935061343c818560208601613ff8565b61344581614193565b840191505092915050565b600061345b82613dff565b6134658185613e55565b9350613475818560208601613ff8565b80840191505092915050565b6000815461348e8161402b565b6134988186613e55565b945060018216600081146134b357600181146134c4576134f7565b60ff198316865281860193506134f7565b6134cd85613dd4565b60005b838110156134ef578154818901526001820191506020810190506134d0565b838801955050505b50505092915050565b600061350d602b83613e44565b9150613518826141a4565b604082019050919050565b6000613530603283613e44565b915061353b826141f3565b604082019050919050565b6000613553602683613e44565b915061355e82614242565b604082019050919050565b6000613576602583613e44565b915061358182614291565b604082019050919050565b6000613599601c83613e44565b91506135a4826142e0565b602082019050919050565b60006135bc601a83613e44565b91506135c782614309565b602082019050919050565b60006135df601183613e44565b91506135ea82614332565b602082019050919050565b6000613602602483613e44565b915061360d8261435b565b604082019050919050565b6000613625601983613e44565b9150613630826143aa565b602082019050919050565b6000613648602c83613e44565b9150613653826143d3565b604082019050919050565b600061366b600d83613e44565b915061367682614422565b602082019050919050565b600061368e603883613e44565b91506136998261444b565b604082019050919050565b60006136b1602a83613e44565b91506136bc8261449a565b604082019050919050565b60006136d4602983613e44565b91506136df826144e9565b604082019050919050565b60006136f7601783613e44565b915061370282614538565b602082019050919050565b600061371a602083613e44565b915061372582614561565b602082019050919050565b600061373d601783613e44565b91506137488261458a565b602082019050919050565b6000613760602c83613e44565b915061376b826145b3565b604082019050919050565b6000613783602083613e44565b915061378e82614602565b602082019050919050565b60006137a6602f83613e44565b91506137b18261462b565b604082019050919050565b60006137c9602183613e44565b91506137d48261467a565b604082019050919050565b60006137ec600f83613e55565b91506137f7826146c9565b600f82019050919050565b600061380f600083613e39565b915061381a826146f2565b600082019050919050565b6000613832603183613e44565b915061383d826146f5565b604082019050919050565b6000613855602c83613e44565b915061386082614744565b604082019050919050565b6000613878602183613e44565b915061388382614793565b604082019050919050565b600061389b600e83613e44565b91506138a6826147e2565b602082019050919050565b6138ba81613fdf565b82525050565b6138c981613fdf565b82525050565b60006138db8285613450565b91506138e6826137df565b91506138f28284613481565b91508190509392505050565b600061390982613802565b9150819050919050565b60006020820190506139286000830184613362565b92915050565b60006080820190506139436000830187613362565b6139506020830186613362565b61395d60408301856138c0565b818103606083015261396f81846133de565b905095945050505050565b600060408201905061398f6000830185613362565b61399c60208301846138c0565b9392505050565b600060208201905081810360008301526139bd8184613371565b905092915050565b60006020820190506139da60008301846133cf565b92915050565b600060208201905081810360008301526139fa8184613417565b905092915050565b60006020820190508181036000830152613a1b81613500565b9050919050565b60006020820190508181036000830152613a3b81613523565b9050919050565b60006020820190508181036000830152613a5b81613546565b9050919050565b60006020820190508181036000830152613a7b81613569565b9050919050565b60006020820190508181036000830152613a9b8161358c565b9050919050565b60006020820190508181036000830152613abb816135af565b9050919050565b60006020820190508181036000830152613adb816135d2565b9050919050565b60006020820190508181036000830152613afb816135f5565b9050919050565b60006020820190508181036000830152613b1b81613618565b9050919050565b60006020820190508181036000830152613b3b8161363b565b9050919050565b60006020820190508181036000830152613b5b8161365e565b9050919050565b60006020820190508181036000830152613b7b81613681565b9050919050565b60006020820190508181036000830152613b9b816136a4565b9050919050565b60006020820190508181036000830152613bbb816136c7565b9050919050565b60006020820190508181036000830152613bdb816136ea565b9050919050565b60006020820190508181036000830152613bfb8161370d565b9050919050565b60006020820190508181036000830152613c1b81613730565b9050919050565b60006020820190508181036000830152613c3b81613753565b9050919050565b60006020820190508181036000830152613c5b81613776565b9050919050565b60006020820190508181036000830152613c7b81613799565b9050919050565b60006020820190508181036000830152613c9b816137bc565b9050919050565b60006020820190508181036000830152613cbb81613825565b9050919050565b60006020820190508181036000830152613cdb81613848565b9050919050565b60006020820190508181036000830152613cfb8161386b565b9050919050565b60006020820190508181036000830152613d1b8161388e565b9050919050565b6000602082019050613d3760008301846138c0565b92915050565b6000613d47613d58565b9050613d53828261405d565b919050565b6000604051905090565b600067ffffffffffffffff821115613d7d57613d7c614164565b5b613d8682614193565b9050602081019050919050565b600067ffffffffffffffff821115613dae57613dad614164565b5b613db782614193565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613e6b82613fdf565b9150613e7683613fdf565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613eab57613eaa6140d7565b5b828201905092915050565b6000613ec182613fdf565b9150613ecc83613fdf565b925082613edc57613edb614106565b5b828204905092915050565b6000613ef282613fdf565b9150613efd83613fdf565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613f3657613f356140d7565b5b828202905092915050565b6000613f4c82613fdf565b9150613f5783613fdf565b925082821015613f6a57613f696140d7565b5b828203905092915050565b6000613f8082613fbf565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614016578082015181840152602081019050613ffb565b83811115614025576000848401525b50505050565b6000600282049050600182168061404357607f821691505b6020821081141561405757614056614135565b5b50919050565b61406682614193565b810181811067ffffffffffffffff8211171561408557614084614164565b5b80604052505050565b600061409982613fdf565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140cc576140cb6140d7565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f43616e6e6f74206d696e74206d6f726520676976656177617973000000000000600082015250565b7f4e6f7420656e6f756768206d6f6e696573000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f43616e6e6f74206d696e74203000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f43616e6e6f74206d696e74206d6f7265207468616e2031000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4e6f7420656e6f756768206c65667420746f206d696e74000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f6b696e675f636f6c645f636f7665720000000000000000000000000000000000600082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f596f7520616c7265616479206f776e2061204b696e6720436f6c6420436f766560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d696e7420697320706175736564000000000000000000000000000000000000600082015250565b61481481613f75565b811461481f57600080fd5b50565b61482b81613f87565b811461483657600080fd5b50565b61484281613f93565b811461484d57600080fd5b50565b61485981613fdf565b811461486457600080fd5b5056fea2646970667358221220ec2fd441387e516a6b83d3658c99855dc1423f52189136ad4c01e5fbd9e2501264736f6c63430008040033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000d4b696e67436f6c64436f7665720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034b43430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d6153695041615261645262555a6e32735a4146364b4d7263347753776963426264537a744c4c51634571466d2f000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102045760003560e01c80636352211e11610118578063b88d4fde116100a0578063d5abeb011161006f578063d5abeb011461074e578063da3ef23f14610779578063e985e9c5146107a2578063f2fde38b146107df578063f79c173f1461080857610204565b8063b88d4fde146106a6578063c6682862146106cf578063c87b56dd146106fa578063ce0d0d671461073757610204565b80637f00c7a6116100e75780637f00c7a6146105e25780638da5cb5b1461060b57806395d89b4114610636578063a0712d6814610661578063a22cb4651461067d57610204565b80636352211e146105265780636c0360eb1461056357806370a082311461058e578063715018a6146105cb57610204565b806323b872dd1161019b57806342842e0e1161016a57806342842e0e14610431578063438b63001461045a57806344a0d68a146104975780634f6ccce7146104c057806355f804b3146104fd57610204565b806323b872dd146103835780632a55205a146103ac5780632f745c59146103ea5780633ccfd60b1461042757610204565b80630bb12bb8116101d75780630bb12bb8146102d757806313faede61461030257806318160ddd1461032d578063239c70ae1461035857610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190613252565b610831565b60405161023d91906139c5565b60405180910390f35b34801561025257600080fd5b5061025b610843565b60405161026891906139e0565b60405180910390f35b34801561027d57600080fd5b50610298600480360381019061029391906132e5565b6108d5565b6040516102a59190613913565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d091906131ed565b61095a565b005b3480156102e357600080fd5b506102ec610a72565b6040516102f991906139c5565b60405180910390f35b34801561030e57600080fd5b50610317610a85565b6040516103249190613d22565b60405180910390f35b34801561033957600080fd5b50610342610a8b565b60405161034f9190613d22565b60405180910390f35b34801561036457600080fd5b5061036d610a98565b60405161037a9190613d22565b60405180910390f35b34801561038f57600080fd5b506103aa60048036038101906103a591906130e7565b610a9e565b005b3480156103b857600080fd5b506103d360048036038101906103ce919061330e565b610afe565b6040516103e192919061397a565b60405180910390f35b3480156103f657600080fd5b50610411600480360381019061040c91906131ed565b610b57565b60405161041e9190613d22565b60405180910390f35b61042f610bfc565b005b34801561043d57600080fd5b50610458600480360381019061045391906130e7565b610cf8565b005b34801561046657600080fd5b50610481600480360381019061047c9190613082565b610d18565b60405161048e91906139a3565b60405180910390f35b3480156104a357600080fd5b506104be60048036038101906104b991906132e5565b610e12565b005b3480156104cc57600080fd5b506104e760048036038101906104e291906132e5565b610e98565b6040516104f49190613d22565b60405180910390f35b34801561050957600080fd5b50610524600480360381019061051f91906132a4565b610f2f565b005b34801561053257600080fd5b5061054d600480360381019061054891906132e5565b610fc5565b60405161055a9190613913565b60405180910390f35b34801561056f57600080fd5b50610578611077565b60405161058591906139e0565b60405180910390f35b34801561059a57600080fd5b506105b560048036038101906105b09190613082565b611105565b6040516105c29190613d22565b60405180910390f35b3480156105d757600080fd5b506105e06111bd565b005b3480156105ee57600080fd5b50610609600480360381019061060491906132e5565b611245565b005b34801561061757600080fd5b506106206112cb565b60405161062d9190613913565b60405180910390f35b34801561064257600080fd5b5061064b6112f5565b60405161065891906139e0565b60405180910390f35b61067b600480360381019061067691906132e5565b611387565b005b34801561068957600080fd5b506106a4600480360381019061069f91906131b1565b611675565b005b3480156106b257600080fd5b506106cd60048036038101906106c89190613136565b61168b565b005b3480156106db57600080fd5b506106e46116ed565b6040516106f191906139e0565b60405180910390f35b34801561070657600080fd5b50610721600480360381019061071c91906132e5565b61177b565b60405161072e91906139e0565b60405180910390f35b34801561074357600080fd5b5061074c61181b565b005b34801561075a57600080fd5b50610763611945565b6040516107709190613d22565b60405180910390f35b34801561078557600080fd5b506107a0600480360381019061079b91906132a4565b61194b565b005b3480156107ae57600080fd5b506107c960048036038101906107c491906130ab565b6119e1565b6040516107d691906139c5565b60405180910390f35b3480156107eb57600080fd5b5061080660048036038101906108019190613082565b611a75565b005b34801561081457600080fd5b5061082f600480360381019061082a9190613229565b611b6d565b005b600061083c82611c06565b9050919050565b6060600080546108529061402b565b80601f016020809104026020016040519081016040528092919081815260200182805461087e9061402b565b80156108cb5780601f106108a0576101008083540402835291602001916108cb565b820191906000526020600020905b8154815290600101906020018083116108ae57829003601f168201915b5050505050905090565b60006108e082611c7e565b61091f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091690613c22565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061096582610fc5565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109cd90613c82565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109f5611cea565b73ffffffffffffffffffffffffffffffffffffffff161480610a245750610a2381610a1e611cea565b6119e1565b5b610a63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5a90613b62565b60405180910390fd5b610a6d8383611cf2565b505050565b601460009054906101000a900460ff1681565b60115481565b6000600880549050905090565b60135481565b610aaf610aa9611cea565b82611dab565b610aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae590613ca2565b60405180910390fd5b610af9838383611e89565b505050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150610b4e600d54610b406064866120f090919063ffffffff16565b61210690919063ffffffff16565b90509250929050565b6000610b6283611105565b8210610ba3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b9a90613a02565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c04611cea565b73ffffffffffffffffffffffffffffffffffffffff16610c226112cb565b73ffffffffffffffffffffffffffffffffffffffff1614610c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6f90613c42565b60405180910390fd5b6000610c826112cb565b73ffffffffffffffffffffffffffffffffffffffff1647604051610ca5906138fe565b60006040518083038185875af1925050503d8060008114610ce2576040519150601f19603f3d011682016040523d82523d6000602084013e610ce7565b606091505b5050905080610cf557600080fd5b50565b610d138383836040518060200160405280600081525061168b565b505050565b60606000610d2583611105565b905060008167ffffffffffffffff811115610d69577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015610d975781602001602082028036833780820191505090505b50905060005b82811015610e0757610daf8582610b57565b828281518110610de8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250508080610dff9061408e565b915050610d9d565b508092505050919050565b610e1a611cea565b73ffffffffffffffffffffffffffffffffffffffff16610e386112cb565b73ffffffffffffffffffffffffffffffffffffffff1614610e8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8590613c42565b60405180910390fd5b8060118190555050565b6000610ea2610a8b565b8210610ee3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eda90613cc2565b60405180910390fd5b60088281548110610f1d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b610f37611cea565b73ffffffffffffffffffffffffffffffffffffffff16610f556112cb565b73ffffffffffffffffffffffffffffffffffffffff1614610fab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa290613c42565b60405180910390fd5b80600e9080519060200190610fc1929190612ea6565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561106e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106590613ba2565b60405180910390fd5b80915050919050565b600e80546110849061402b565b80601f01602080910402602001604051908101604052809291908181526020018280546110b09061402b565b80156110fd5780601f106110d2576101008083540402835291602001916110fd565b820191906000526020600020905b8154815290600101906020018083116110e057829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611176576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116d90613b82565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6111c5611cea565b73ffffffffffffffffffffffffffffffffffffffff166111e36112cb565b73ffffffffffffffffffffffffffffffffffffffff1614611239576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123090613c42565b60405180910390fd5b611243600061211c565b565b61124d611cea565b73ffffffffffffffffffffffffffffffffffffffff1661126b6112cb565b73ffffffffffffffffffffffffffffffffffffffff16146112c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b890613c42565b60405180910390fd5b8060138190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546113049061402b565b80601f01602080910402602001604051908101604052809291908181526020018280546113309061402b565b801561137d5780601f106113525761010080835404028352916020019161137d565b820191906000526020600020905b81548152906001019060200180831161136057829003601f168201915b5050505050905090565b6000611391610a8b565b90506000601460009054906101000a900460ff16156113e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113dc90613d02565b60405180910390fd5b60008311611428576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141f90613b42565b60405180910390fd5b60135483111561146d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146490613bc2565b60405180910390fd5b601254838361147c9190613e60565b11156114bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b490613c02565b60405180910390fd5b60016114c833611105565b10611508576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ff90613ce2565b60405180910390fd5b6115106112cb565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461159357826011546115509190613ee7565b341015611592576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158990613ac2565b60405180910390fd5b5b6000600190505b8381116115c9576115b63382856115b19190613e60565b6121e2565b80806115c19061408e565b91505061159a565b503490506010600060018110611608577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b0160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561166f573d6000803e3d6000fd5b50505050565b611687611680611cea565b8383612200565b5050565b61169c611696611cea565b83611dab565b6116db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d290613ca2565b60405180910390fd5b6116e78484848461236d565b50505050565b600f80546116fa9061402b565b80601f01602080910402602001604051908101604052809291908181526020018280546117269061402b565b80156117735780601f1061174857610100808354040283529160200191611773565b820191906000526020600020905b81548152906001019060200180831161175657829003601f168201915b505050505081565b606061178682611c7e565b6117c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bc90613c62565b60405180910390fd5b60006117cf6123c9565b905060008151116117ef5760405180602001604052806000815250611813565b80600f6040516020016118039291906138cf565b6040516020818303038152906040525b915050919050565b611823611cea565b73ffffffffffffffffffffffffffffffffffffffff166118416112cb565b73ffffffffffffffffffffffffffffffffffffffff1614611897576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188e90613c42565b60405180910390fd5b60006118a1610a8b565b9050605f8111156118e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118de90613aa2565b60405180910390fd5b6000600190505b60148110156119415761192e601460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682846119299190613e60565b6121e2565b80806119399061408e565b9150506118ee565b5050565b60125481565b611953611cea565b73ffffffffffffffffffffffffffffffffffffffff166119716112cb565b73ffffffffffffffffffffffffffffffffffffffff16146119c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119be90613c42565b60405180910390fd5b80600f90805190602001906119dd929190612ea6565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611a7d611cea565b73ffffffffffffffffffffffffffffffffffffffff16611a9b6112cb565b73ffffffffffffffffffffffffffffffffffffffff1614611af1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae890613c42565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611b61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5890613a42565b60405180910390fd5b611b6a8161211c565b50565b611b75611cea565b73ffffffffffffffffffffffffffffffffffffffff16611b936112cb565b73ffffffffffffffffffffffffffffffffffffffff1614611be9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be090613c42565b60405180910390fd5b80601460006101000a81548160ff02191690831515021790555050565b6000611c118261245b565b80611c775750600b6000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff165b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d6583610fc5565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611db682611c7e565b611df5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dec90613b22565b60405180910390fd5b6000611e0083610fc5565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e6f57508373ffffffffffffffffffffffffffffffffffffffff16611e57846108d5565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e805750611e7f81856119e1565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611ea982610fc5565b73ffffffffffffffffffffffffffffffffffffffff1614611eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef690613a62565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6690613ae2565b60405180910390fd5b611f7a8383836124d5565b611f85600082611cf2565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fd59190613f41565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461202c9190613e60565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46120eb8383836125e9565b505050565b600081836120fe9190613eb6565b905092915050565b600081836121149190613ee7565b905092915050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6121fc8282604051806020016040528060008152506125ee565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561226f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226690613b02565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161236091906139c5565b60405180910390a3505050565b612378848484611e89565b61238484848484612649565b6123c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ba90613a22565b60405180910390fd5b50505050565b6060600e80546123d89061402b565b80601f01602080910402602001604051908101604052809291908181526020018280546124049061402b565b80156124515780601f1061242657610100808354040283529160200191612451565b820191906000526020600020905b81548152906001019060200180831161243457829003601f168201915b5050505050905090565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124ce57506124cd826127e0565b5b9050919050565b6124e08383836128c2565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156125235761251e816128c7565b612562565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612561576125608382612910565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156125a5576125a081612a7d565b6125e4565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146125e3576125e28282612bc0565b5b5b505050565b505050565b6125f88383612c3f565b6126056000848484612649565b612644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263b90613a22565b60405180910390fd5b505050565b600061266a8473ffffffffffffffffffffffffffffffffffffffff16612e19565b156127d3578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612693611cea565b8786866040518563ffffffff1660e01b81526004016126b5949392919061392e565b602060405180830381600087803b1580156126cf57600080fd5b505af192505050801561270057506040513d601f19601f820116820180604052508101906126fd919061327b565b60015b612783573d8060008114612730576040519150601f19603f3d011682016040523d82523d6000602084013e612735565b606091505b5060008151141561277b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277290613a22565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506127d8565b600190505b949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806128ab57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806128bb57506128ba82612e3c565b5b9050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161291d84611105565b6129279190613f41565b9050600060076000848152602001908152602001600020549050818114612a0c576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612a919190613f41565b9050600060096000848152602001908152602001600020549050600060088381548110612ae7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110612b2f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480612ba4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000612bcb83611105565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612caf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca690613be2565b60405180910390fd5b612cb881611c7e565b15612cf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cef90613a82565b60405180910390fd5b612d04600083836124d5565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612d549190613e60565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e15600083836125e9565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b828054612eb29061402b565b90600052602060002090601f016020900481019282612ed45760008555612f1b565b82601f10612eed57805160ff1916838001178555612f1b565b82800160010185558215612f1b579182015b82811115612f1a578251825591602001919060010190612eff565b5b509050612f289190612f2c565b5090565b5b80821115612f45576000816000905550600101612f2d565b5090565b6000612f5c612f5784613d62565b613d3d565b905082815260208101848484011115612f7457600080fd5b612f7f848285613fe9565b509392505050565b6000612f9a612f9584613d93565b613d3d565b905082815260208101848484011115612fb257600080fd5b612fbd848285613fe9565b509392505050565b600081359050612fd48161480b565b92915050565b600081359050612fe981614822565b92915050565b600081359050612ffe81614839565b92915050565b60008151905061301381614839565b92915050565b600082601f83011261302a57600080fd5b813561303a848260208601612f49565b91505092915050565b600082601f83011261305457600080fd5b8135613064848260208601612f87565b91505092915050565b60008135905061307c81614850565b92915050565b60006020828403121561309457600080fd5b60006130a284828501612fc5565b91505092915050565b600080604083850312156130be57600080fd5b60006130cc85828601612fc5565b92505060206130dd85828601612fc5565b9150509250929050565b6000806000606084860312156130fc57600080fd5b600061310a86828701612fc5565b935050602061311b86828701612fc5565b925050604061312c8682870161306d565b9150509250925092565b6000806000806080858703121561314c57600080fd5b600061315a87828801612fc5565b945050602061316b87828801612fc5565b935050604061317c8782880161306d565b925050606085013567ffffffffffffffff81111561319957600080fd5b6131a587828801613019565b91505092959194509250565b600080604083850312156131c457600080fd5b60006131d285828601612fc5565b92505060206131e385828601612fda565b9150509250929050565b6000806040838503121561320057600080fd5b600061320e85828601612fc5565b925050602061321f8582860161306d565b9150509250929050565b60006020828403121561323b57600080fd5b600061324984828501612fda565b91505092915050565b60006020828403121561326457600080fd5b600061327284828501612fef565b91505092915050565b60006020828403121561328d57600080fd5b600061329b84828501613004565b91505092915050565b6000602082840312156132b657600080fd5b600082013567ffffffffffffffff8111156132d057600080fd5b6132dc84828501613043565b91505092915050565b6000602082840312156132f757600080fd5b60006133058482850161306d565b91505092915050565b6000806040838503121561332157600080fd5b600061332f8582860161306d565b92505060206133408582860161306d565b9150509250929050565b600061335683836138b1565b60208301905092915050565b61336b81613f75565b82525050565b600061337c82613de9565b6133868185613e17565b935061339183613dc4565b8060005b838110156133c25781516133a9888261334a565b97506133b483613e0a565b925050600181019050613395565b5085935050505092915050565b6133d881613f87565b82525050565b60006133e982613df4565b6133f38185613e28565b9350613403818560208601613ff8565b61340c81614193565b840191505092915050565b600061342282613dff565b61342c8185613e44565b935061343c818560208601613ff8565b61344581614193565b840191505092915050565b600061345b82613dff565b6134658185613e55565b9350613475818560208601613ff8565b80840191505092915050565b6000815461348e8161402b565b6134988186613e55565b945060018216600081146134b357600181146134c4576134f7565b60ff198316865281860193506134f7565b6134cd85613dd4565b60005b838110156134ef578154818901526001820191506020810190506134d0565b838801955050505b50505092915050565b600061350d602b83613e44565b9150613518826141a4565b604082019050919050565b6000613530603283613e44565b915061353b826141f3565b604082019050919050565b6000613553602683613e44565b915061355e82614242565b604082019050919050565b6000613576602583613e44565b915061358182614291565b604082019050919050565b6000613599601c83613e44565b91506135a4826142e0565b602082019050919050565b60006135bc601a83613e44565b91506135c782614309565b602082019050919050565b60006135df601183613e44565b91506135ea82614332565b602082019050919050565b6000613602602483613e44565b915061360d8261435b565b604082019050919050565b6000613625601983613e44565b9150613630826143aa565b602082019050919050565b6000613648602c83613e44565b9150613653826143d3565b604082019050919050565b600061366b600d83613e44565b915061367682614422565b602082019050919050565b600061368e603883613e44565b91506136998261444b565b604082019050919050565b60006136b1602a83613e44565b91506136bc8261449a565b604082019050919050565b60006136d4602983613e44565b91506136df826144e9565b604082019050919050565b60006136f7601783613e44565b915061370282614538565b602082019050919050565b600061371a602083613e44565b915061372582614561565b602082019050919050565b600061373d601783613e44565b91506137488261458a565b602082019050919050565b6000613760602c83613e44565b915061376b826145b3565b604082019050919050565b6000613783602083613e44565b915061378e82614602565b602082019050919050565b60006137a6602f83613e44565b91506137b18261462b565b604082019050919050565b60006137c9602183613e44565b91506137d48261467a565b604082019050919050565b60006137ec600f83613e55565b91506137f7826146c9565b600f82019050919050565b600061380f600083613e39565b915061381a826146f2565b600082019050919050565b6000613832603183613e44565b915061383d826146f5565b604082019050919050565b6000613855602c83613e44565b915061386082614744565b604082019050919050565b6000613878602183613e44565b915061388382614793565b604082019050919050565b600061389b600e83613e44565b91506138a6826147e2565b602082019050919050565b6138ba81613fdf565b82525050565b6138c981613fdf565b82525050565b60006138db8285613450565b91506138e6826137df565b91506138f28284613481565b91508190509392505050565b600061390982613802565b9150819050919050565b60006020820190506139286000830184613362565b92915050565b60006080820190506139436000830187613362565b6139506020830186613362565b61395d60408301856138c0565b818103606083015261396f81846133de565b905095945050505050565b600060408201905061398f6000830185613362565b61399c60208301846138c0565b9392505050565b600060208201905081810360008301526139bd8184613371565b905092915050565b60006020820190506139da60008301846133cf565b92915050565b600060208201905081810360008301526139fa8184613417565b905092915050565b60006020820190508181036000830152613a1b81613500565b9050919050565b60006020820190508181036000830152613a3b81613523565b9050919050565b60006020820190508181036000830152613a5b81613546565b9050919050565b60006020820190508181036000830152613a7b81613569565b9050919050565b60006020820190508181036000830152613a9b8161358c565b9050919050565b60006020820190508181036000830152613abb816135af565b9050919050565b60006020820190508181036000830152613adb816135d2565b9050919050565b60006020820190508181036000830152613afb816135f5565b9050919050565b60006020820190508181036000830152613b1b81613618565b9050919050565b60006020820190508181036000830152613b3b8161363b565b9050919050565b60006020820190508181036000830152613b5b8161365e565b9050919050565b60006020820190508181036000830152613b7b81613681565b9050919050565b60006020820190508181036000830152613b9b816136a4565b9050919050565b60006020820190508181036000830152613bbb816136c7565b9050919050565b60006020820190508181036000830152613bdb816136ea565b9050919050565b60006020820190508181036000830152613bfb8161370d565b9050919050565b60006020820190508181036000830152613c1b81613730565b9050919050565b60006020820190508181036000830152613c3b81613753565b9050919050565b60006020820190508181036000830152613c5b81613776565b9050919050565b60006020820190508181036000830152613c7b81613799565b9050919050565b60006020820190508181036000830152613c9b816137bc565b9050919050565b60006020820190508181036000830152613cbb81613825565b9050919050565b60006020820190508181036000830152613cdb81613848565b9050919050565b60006020820190508181036000830152613cfb8161386b565b9050919050565b60006020820190508181036000830152613d1b8161388e565b9050919050565b6000602082019050613d3760008301846138c0565b92915050565b6000613d47613d58565b9050613d53828261405d565b919050565b6000604051905090565b600067ffffffffffffffff821115613d7d57613d7c614164565b5b613d8682614193565b9050602081019050919050565b600067ffffffffffffffff821115613dae57613dad614164565b5b613db782614193565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000613e6b82613fdf565b9150613e7683613fdf565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613eab57613eaa6140d7565b5b828201905092915050565b6000613ec182613fdf565b9150613ecc83613fdf565b925082613edc57613edb614106565b5b828204905092915050565b6000613ef282613fdf565b9150613efd83613fdf565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613f3657613f356140d7565b5b828202905092915050565b6000613f4c82613fdf565b9150613f5783613fdf565b925082821015613f6a57613f696140d7565b5b828203905092915050565b6000613f8082613fbf565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015614016578082015181840152602081019050613ffb565b83811115614025576000848401525b50505050565b6000600282049050600182168061404357607f821691505b6020821081141561405757614056614135565b5b50919050565b61406682614193565b810181811067ffffffffffffffff8211171561408557614084614164565b5b80604052505050565b600061409982613fdf565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140cc576140cb6140d7565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f43616e6e6f74206d696e74206d6f726520676976656177617973000000000000600082015250565b7f4e6f7420656e6f756768206d6f6e696573000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f43616e6e6f74206d696e74203000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f43616e6e6f74206d696e74206d6f7265207468616e2031000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4e6f7420656e6f756768206c65667420746f206d696e74000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f6b696e675f636f6c645f636f7665720000000000000000000000000000000000600082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f596f7520616c7265616479206f776e2061204b696e6720436f6c6420436f766560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4d696e7420697320706175736564000000000000000000000000000000000000600082015250565b61481481613f75565b811461481f57600080fd5b50565b61482b81613f87565b811461483657600080fd5b50565b61484281613f93565b811461484d57600080fd5b50565b61485981613fdf565b811461486457600080fd5b5056fea2646970667358221220ec2fd441387e516a6b83d3658c99855dc1423f52189136ad4c01e5fbd9e2501264736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000d4b696e67436f6c64436f7665720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034b43430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005168747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f516d6153695041615261645262555a6e32735a4146364b4d7263347753776963426264537a744c4c51634571466d2f000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): KingColdCover
Arg [1] : _symbol (string): KCC
Arg [2] : _initBaseURI (string): https://gateway.pinata.cloud/ipfs/QmaSiPAaRadRbUZn2sZAF6KMrc4wSwicBbdSztLLQcEqFm/
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [4] : 4b696e67436f6c64436f76657200000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 4b43430000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000051
Arg [8] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [9] : 732f516d6153695041615261645262555a6e32735a4146364b4d726334775377
Arg [10] : 6963426264537a744c4c51634571466d2f000000000000000000000000000000
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.