Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
501 BXKNIGHTS
Holders
312
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 BXKNIGHTSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BlackFortGenesisNFT
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.16; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "./rarible/ERC721RaribleRoyalty.sol"; contract BlackFortGenesisNFT is ERC721RaribleRoyalty, ERC721Enumerable, Ownable { using Strings for uint256; using Counters for Counters.Counter; Counters.Counter private _tokenIdTracker; uint256 constant MAX_SUPPLY = 501; uint256 constant PRICE = 1.1 ether; string private _baseTokenURI; constructor( string memory name, string memory symbol, string memory baseTokenURI ) ERC721(name, symbol) { _baseTokenURI = baseTokenURI; } function tokenURI(uint256 tokenId) public view override returns (string memory) { _requireMinted(tokenId); return string(abi.encodePacked(string(abi.encodePacked(_baseTokenURI, tokenId.toString())), ".json")); } function supportsInterface(bytes4 interfaceId) public view override(ERC721RaribleRoyalty, ERC721Enumerable) returns (bool) { return ERC721RaribleRoyalty.supportsInterface(interfaceId) || ERC721Enumerable.supportsInterface(interfaceId); } function mint(uint256 amountOfTokens) external payable returns (bool) { require(amountOfTokens * PRICE == msg.value, "BlackFortGenesisNFT: wrong amount sent"); uint256 refund = 0; if (totalSupply() + amountOfTokens > MAX_SUPPLY) { refund = totalSupply() + amountOfTokens - MAX_SUPPLY; amountOfTokens = MAX_SUPPLY - totalSupply(); } for (uint256 i = 0; i < amountOfTokens; i++) { _safeMint(msg.sender, _tokenIdTracker.current()); _tokenIdTracker.increment(); } if (refund != 0) { (bool result,) = msg.sender.call{value:(refund * PRICE)}(""); return result; } return true; } function withdraw() public onlyOwner returns (bool) { (bool result,) = msg.sender.call{value:address(this).balance}(""); return result; } function setBaseTokenURI(string memory newBaseURI) public onlyOwner { _baseTokenURI = newBaseURI; } function setDefaultRoyalties(LibPart.Part[] memory royalties) public onlyOwner { _setDefaultRoyalties(royalties); } function setTokenRoyalties(uint256 tokenId, LibPart.Part[] memory royalties) public onlyOwner { _setTokenRoyalties(tokenId, royalties); } function _burn(uint256 tokenId) internal override(ERC721, ERC721Royalty) { super._burn(tokenId); } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; library LibPart { bytes32 public constant TYPE_HASH = keccak256("Part(address account,uint96 value)"); struct Part { address payable account; uint96 value; } function hash(Part memory part) internal pure returns (bytes32) { return keccak256(abi.encode(TYPE_HASH, part.account, part.value)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; import "@openzeppelin/contracts/interfaces/IERC165.sol"; import "./LibPart.sol"; interface IERC2981Rarible is IERC165 { function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; pragma abicoder v2; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol"; import "./ERC2981Rarible.sol"; abstract contract ERC721RaribleRoyalty is ERC721Royalty, ERC2981Rarible { function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721Royalty, ERC2981Rarible) returns (bool) { return ERC721Royalty.supportsInterface(interfaceId) || ERC2981Rarible.supportsInterface(interfaceId); } function royaltyInfo(uint256 tokenId, uint256 salePrice) public override(ERC2981Rarible, ERC2981) view returns (address, uint256) { return super.royaltyInfo(tokenId, salePrice); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.16; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "./IERC2981Rarible.sol"; import "./LibPart.sol"; abstract contract ERC2981Rarible is ERC2981, IERC2981Rarible { LibPart.Part[] private _defaultRoyalties; mapping (uint256 => LibPart.Part[]) private _royalties; event RoyaltiesSet(uint256 tokenId, LibPart.Part[] royalties); function getRaribleV2Royalties(uint256 id) external view returns (LibPart.Part[] memory) { LibPart.Part[] memory _tokenRoyalties = _royalties[id]; if (_tokenRoyalties.length == 0) { return _defaultRoyalties; } return _tokenRoyalties; } function royaltyInfo(uint256 tokenId, uint256 salePrice) public virtual override view returns (address, uint256) { LibPart.Part[] memory _tokenRoyalties = _royalties[tokenId]; if (_tokenRoyalties.length == 0) { _tokenRoyalties = _defaultRoyalties; if (_tokenRoyalties.length == 0) { return (address(0), 0); } } uint256 percent = 0; for (uint i = 0; i < _tokenRoyalties.length; i++) { percent += _tokenRoyalties[i].value; } return (_tokenRoyalties[0].account, percent * salePrice / _feeDenominator()); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC2981, IERC165) returns (bool) { return interfaceId == type(IERC2981Rarible).interfaceId || super.supportsInterface(interfaceId); } function _setDefaultRoyalties(LibPart.Part[] memory royalties) internal { _validateRoyalties(royalties); delete _defaultRoyalties; for (uint i = 0; i < royalties.length; i++) { _defaultRoyalties.push(royalties[i]); } } function _setTokenRoyalties(uint256 id, LibPart.Part[] memory royalties) internal { _validateRoyalties(royalties); delete _royalties[id]; for (uint i = 0; i < royalties.length; i++) { _royalties[id].push(royalties[i]); } emit RoyaltiesSet(id, royalties); } function _validateRoyalties(LibPart.Part[] memory royalties) internal pure { uint256 totalValue = 0; for (uint i = 0; i < royalties.length; i++) { LibPart.Part memory currentRoyalty = royalties[i]; require(currentRoyalty.account != address(0), "ERC721RaribleRoyalty: setting royalties to the zero address"); require(currentRoyalty.value != 0, "ERC721RaribleRoyalty: royalty value should be positive"); totalValue += currentRoyalty.value; } require(totalValue < _feeDenominator() / 2, "ERC721RaribleRoyalty: royalty total value should be less than 5000"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// 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 (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../common/ERC2981.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
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":"baseTokenURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"indexed":false,"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"RoyaltiesSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRaribleV2Royalties","outputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOfTokens","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"setDefaultRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"components":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct LibPart.Part[]","name":"royalties","type":"tuple[]"}],"name":"setTokenRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620051b6380380620051b68339818101604052810190620000379190620002fb565b828281600290816200004a9190620005ff565b5080600390816200005c9190620005ff565b5050506200007f620000736200009a60201b60201c565b620000a260201b60201c565b8060109081620000909190620005ff565b50505050620006e6565b600033905090565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620001d18262000186565b810181811067ffffffffffffffff82111715620001f357620001f262000197565b5b80604052505050565b60006200020862000168565b9050620002168282620001c6565b919050565b600067ffffffffffffffff82111562000239576200023862000197565b5b620002448262000186565b9050602081019050919050565b60005b838110156200027157808201518184015260208101905062000254565b60008484015250505050565b6000620002946200028e846200021b565b620001fc565b905082815260208101848484011115620002b357620002b262000181565b5b620002c084828562000251565b509392505050565b600082601f830112620002e057620002df6200017c565b5b8151620002f28482602086016200027d565b91505092915050565b60008060006060848603121562000317576200031662000172565b5b600084015167ffffffffffffffff81111562000338576200033762000177565b5b6200034686828701620002c8565b935050602084015167ffffffffffffffff8111156200036a576200036962000177565b5b6200037886828701620002c8565b925050604084015167ffffffffffffffff8111156200039c576200039b62000177565b5b620003aa86828701620002c8565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200040757607f821691505b6020821081036200041d576200041c620003bf565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004877fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000448565b62000493868362000448565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004e0620004da620004d484620004ab565b620004b5565b620004ab565b9050919050565b6000819050919050565b620004fc83620004bf565b620005146200050b82620004e7565b84845462000455565b825550505050565b600090565b6200052b6200051c565b62000538818484620004f1565b505050565b5b8181101562000560576200055460008262000521565b6001810190506200053e565b5050565b601f821115620005af57620005798162000423565b620005848462000438565b8101602085101562000594578190505b620005ac620005a38562000438565b8301826200053d565b50505b505050565b600082821c905092915050565b6000620005d460001984600802620005b4565b1980831691505092915050565b6000620005ef8383620005c1565b9150826002028217905092915050565b6200060a82620003b4565b67ffffffffffffffff81111562000626576200062562000197565b5b620006328254620003ee565b6200063f82828562000564565b600060209050601f83116001811462000677576000841562000662578287015190505b6200066e8582620005e1565b865550620006de565b601f198416620006878662000423565b60005b82811015620006b1578489015182556001820191506020850194506020810190506200068a565b86831015620006d15784890151620006cd601f891682620005c1565b8355505b6001600288020188555050505b505050505050565b614ac080620006f66000396000f3fe6080604052600436106101815760003560e01c80636352211e116100d1578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610598578063cad96cca146105d5578063e985e9c514610612578063f2fde38b1461064f57610181565b8063a22cb4651461051d578063b88d4fde14610546578063c60dfbd51461056f57610181565b80636352211e1461040657806370a0823114610443578063715018a6146104805780638da5cb5b1461049757806395d89b41146104c2578063a0712d68146104ed57610181565b806323b872dd1161013e57806330176e131161011857806330176e131461034c5780633ccfd60b1461037557806342842e0e146103a05780634f6ccce7146103c957610181565b806323b872dd146102a85780632a55205a146102d15780632f745c591461030f57610181565b806301ffc9a71461018657806306fdde03146101c3578063081812fc146101ee578063095ea7b31461022b57806318160ddd146102545780631865fa841461027f575b600080fd5b34801561019257600080fd5b506101ad60048036038101906101a89190612e68565b610678565b6040516101ba9190612eb0565b60405180910390f35b3480156101cf57600080fd5b506101d861069a565b6040516101e59190612f5b565b60405180910390f35b3480156101fa57600080fd5b5061021560048036038101906102109190612fb3565b61072c565b6040516102229190613021565b60405180910390f35b34801561023757600080fd5b50610252600480360381019061024d9190613068565b610772565b005b34801561026057600080fd5b50610269610889565b60405161027691906130b7565b60405180910390f35b34801561028b57600080fd5b506102a660048036038101906102a191906132f1565b610896565b005b3480156102b457600080fd5b506102cf60048036038101906102ca919061333a565b6108aa565b005b3480156102dd57600080fd5b506102f860048036038101906102f3919061338d565b61090a565b6040516103069291906133cd565b60405180910390f35b34801561031b57600080fd5b5061033660048036038101906103319190613068565b610922565b60405161034391906130b7565b60405180910390f35b34801561035857600080fd5b50610373600480360381019061036e91906134ab565b6109c7565b005b34801561038157600080fd5b5061038a6109e2565b6040516103979190612eb0565b60405180910390f35b3480156103ac57600080fd5b506103c760048036038101906103c2919061333a565b610a5f565b005b3480156103d557600080fd5b506103f060048036038101906103eb9190612fb3565b610a7f565b6040516103fd91906130b7565b60405180910390f35b34801561041257600080fd5b5061042d60048036038101906104289190612fb3565b610af0565b60405161043a9190613021565b60405180910390f35b34801561044f57600080fd5b5061046a600480360381019061046591906134f4565b610ba1565b60405161047791906130b7565b60405180910390f35b34801561048c57600080fd5b50610495610c58565b005b3480156104a357600080fd5b506104ac610c6c565b6040516104b99190613021565b60405180910390f35b3480156104ce57600080fd5b506104d7610c96565b6040516104e49190612f5b565b60405180910390f35b61050760048036038101906105029190612fb3565b610d28565b6040516105149190612eb0565b60405180910390f35b34801561052957600080fd5b50610544600480360381019061053f919061354d565b610eaf565b005b34801561055257600080fd5b5061056d6004803603810190610568919061362e565b610ec5565b005b34801561057b57600080fd5b50610596600480360381019061059191906136b1565b610f27565b005b3480156105a457600080fd5b506105bf60048036038101906105ba9190612fb3565b610f3d565b6040516105cc9190612f5b565b60405180910390f35b3480156105e157600080fd5b506105fc60048036038101906105f79190612fb3565b610f99565b6040516106099190613809565b60405180910390f35b34801561061e57600080fd5b506106396004803603810190610634919061382b565b61119b565b6040516106469190612eb0565b60405180910390f35b34801561065b57600080fd5b50610676600480360381019061067191906134f4565b61122f565b005b6000610683826112b2565b806106935750610692826112d4565b5b9050919050565b6060600280546106a99061389a565b80601f01602080910402602001604051908101604052809291908181526020018280546106d59061389a565b80156107225780601f106106f757610100808354040283529160200191610722565b820191906000526020600020905b81548152906001019060200180831161070557829003601f168201915b5050505050905090565b60006107378261134e565b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061077d82610af0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e49061393d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661080c611399565b73ffffffffffffffffffffffffffffffffffffffff16148061083b575061083a81610835611399565b61119b565b5b61087a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610871906139cf565b60405180910390fd5b61088483836113a1565b505050565b6000600c80549050905090565b61089e61145a565b6108a7816114d8565b50565b6108bb6108b5611399565b826115d4565b6108fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f190613a61565b60405180910390fd5b610905838383611669565b505050565b60008061091784846118cf565b915091509250929050565b600061092d83610ba1565b821061096e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096590613af3565b60405180910390fd5b600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6109cf61145a565b80601090816109de9190613cbf565b5050565b60006109ec61145a565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610a1290613dc2565b60006040518083038185875af1925050503d8060008114610a4f576040519150601f19603f3d011682016040523d82523d6000602084013e610a54565b606091505b505090508091505090565b610a7a83838360405180602001604052806000815250610ec5565b505050565b6000610a89610889565b8210610aca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac190613e49565b60405180910390fd5b600c8281548110610ade57610add613e69565b5b90600052602060002001549050919050565b6000806004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8f90613ee4565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0890613f76565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610c6061145a565b610c6a6000611b8e565b565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054610ca59061389a565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd19061389a565b8015610d1e5780601f10610cf357610100808354040283529160200191610d1e565b820191906000526020600020905b815481529060010190602001808311610d0157829003601f168201915b5050505050905090565b600034670f43fc2c04ee000083610d3f9190613fc5565b14610d7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7690614091565b60405180910390fd5b60006101f583610d8d610889565b610d9791906140b1565b1115610dd7576101f583610da9610889565b610db391906140b1565b610dbd91906140e5565b9050610dc7610889565b6101f5610dd491906140e5565b92505b60005b83811015610e1257610df533610df0600f611c54565b611c62565b610dff600f611c80565b8080610e0a90614119565b915050610dda565b5060008114610ea45760003373ffffffffffffffffffffffffffffffffffffffff16670f43fc2c04ee000083610e489190613fc5565b604051610e5490613dc2565b60006040518083038185875af1925050503d8060008114610e91576040519150601f19603f3d011682016040523d82523d6000602084013e610e96565b606091505b505090508092505050610eaa565b60019150505b919050565b610ec1610eba611399565b8383611c96565b5050565b610ed6610ed0611399565b836115d4565b610f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0c90613a61565b60405180910390fd5b610f2184848484611e02565b50505050565b610f2f61145a565b610f398282611e5e565b5050565b6060610f488261134e565b6010610f5383611fb6565b604051602001610f64929190614220565b604051602081830303815290604052604051602001610f839190614290565b6040516020818303038152906040529050919050565b6060600060096000848152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611092578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505081526020019060010190610fd0565b5050505090506000815103611191576008805480602002602001604051908101604052809291908181526020016000905b82821015611185578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff1681525050815260200190600101906110c3565b50505050915050611196565b809150505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61123761145a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129d90614324565b60405180910390fd5b6112af81611b8e565b50565b60006112bd82612116565b806112cd57506112cc82612128565b5b9050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113475750611346826112b2565b5b9050919050565b611357816121a2565b611396576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138d90613ee4565b60405180910390fd5b50565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661141483610af0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611462611399565b73ffffffffffffffffffffffffffffffffffffffff16611480610c6c565b73ffffffffffffffffffffffffffffffffffffffff16146114d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cd90614390565b60405180910390fd5b565b6114e18161220e565b600860006114ef9190612d7e565b60005b81518110156115d05760088282815181106115105761150f613e69565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550505080806115c890614119565b9150506114f2565b5050565b6000806115e083610af0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806116225750611621818561119b565b5b8061166057508373ffffffffffffffffffffffffffffffffffffffff166116488461072c565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661168982610af0565b73ffffffffffffffffffffffffffffffffffffffff16146116df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d690614422565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361174e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611745906144b4565b60405180910390fd5b61175983838361239e565b6117646000826113a1565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117b491906140e5565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461180b91906140b1565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118ca8383836123ae565b505050565b600080600060096000868152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156119c9578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505081526020019060010190611907565b5050505090506000815103611ad9576008805480602002602001604051908101604052809291908181526020016000905b82821015611abc578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff1681525050815260200190600101906119fa565b5050505090506000815103611ad8576000809250925050611b87565b5b6000805b8251811015611b3357828181518110611af957611af8613e69565b5b6020026020010151602001516bffffffffffffffffffffffff1682611b1e91906140b1565b91508080611b2b90614119565b915050611add565b5081600081518110611b4857611b47613e69565b5b602002602001015160000151611b5c6123b3565b6bffffffffffffffffffffffff168683611b769190613fc5565b611b809190614503565b9350935050505b9250929050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b611c7c8282604051806020016040528060008152506123bd565b5050565b6001816000016000828254019250508190555050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cfb90614580565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611df59190612eb0565b60405180910390a3505050565b611e0d848484611669565b611e1984848484612418565b611e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4f90614612565b60405180910390fd5b50505050565b611e678161220e565b600960008381526020019081526020016000206000611e869190612d7e565b60005b8151811015611f785760096000848152602001908152602001600020828281518110611eb857611eb7613e69565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050508080611f7090614119565b915050611e89565b507f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df8282604051611faa929190614632565b60405180910390a15050565b606060008203611ffd576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612111565b600082905060005b6000821461202f57808061201890614119565b915050600a826120289190614503565b9150612005565b60008167ffffffffffffffff81111561204b5761204a6130d7565b5b6040519080825280601f01601f19166020018201604052801561207d5781602001600182028036833780820191505090505b5090505b6000851461210a5760018261209691906140e5565b9150600a856120a59190614662565b60306120b191906140b1565b60f81b8183815181106120c7576120c6613e69565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856121039190614503565b9450612081565b8093505050505b919050565b60006121218261259f565b9050919050565b60007fcad96cca000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061219b575061219a82612116565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000805b82518110156123365760008382815181106122305761222f613e69565b5b60200260200101519050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036122ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a490614705565b60405180910390fd5b600081602001516bffffffffffffffffffffffff1603612302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f990614797565b60405180910390fd5b80602001516bffffffffffffffffffffffff168361232091906140b1565b925050808061232e90614119565b915050612212565b5060026123416123b3565b61234b91906147b7565b6bffffffffffffffffffffffff16811061239a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239190614880565b60405180910390fd5b5050565b6123a9838383612681565b505050565b505050565b6000612710905090565b6123c78383612793565b6123d46000848484612418565b612413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240a90614612565b60405180910390fd5b505050565b60006124398473ffffffffffffffffffffffffffffffffffffffff1661296c565b15612592578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612462611399565b8786866040518563ffffffff1660e01b815260040161248494939291906148f5565b6020604051808303816000875af19250505080156124c057506040513d601f19601f820116820180604052508101906124bd9190614956565b60015b612542573d80600081146124f0576040519150601f19603f3d011682016040523d82523d6000602084013e6124f5565b606091505b50600081510361253a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253190614612565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612597565b600190505b949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061266a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061267a57506126798261298f565b5b9050919050565b61268c838383612a09565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036126ce576126c981612a0e565b61270d565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461270c5761270b8382612a57565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361274f5761274a81612bc4565b61278e565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461278d5761278c8282612c95565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f9906149cf565b60405180910390fd5b61280b816121a2565b1561284b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284290614a3b565b60405180910390fd5b6128576000838361239e565b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128a791906140b1565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612968600083836123ae565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a025750612a0182612d14565b5b9050919050565b505050565b600c80549050600d600083815260200190815260200160002081905550600c81908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612a6484610ba1565b612a6e91906140e5565b90506000600b6000848152602001908152602001600020549050818114612b53576000600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000208190555081600b600083815260200190815260200160002081905550505b600b600084815260200190815260200160002060009055600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600c80549050612bd891906140e5565b90506000600d60008481526020019081526020016000205490506000600c8381548110612c0857612c07613e69565b5b9060005260206000200154905080600c8381548110612c2a57612c29613e69565b5b906000526020600020018190555081600d600083815260200190815260200160002081905550600d600085815260200190815260200160002060009055600c805480612c7957612c78614a5b565b5b6001900381819060005260206000200160009055905550505050565b6000612ca083610ba1565b905081600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555080600b600084815260200190815260200160002081905550505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5080546000825590600052602060002090810190612d9c9190612d9f565b50565b5b80821115612df857600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff021916905550600101612da0565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e4581612e10565b8114612e5057600080fd5b50565b600081359050612e6281612e3c565b92915050565b600060208284031215612e7e57612e7d612e06565b5b6000612e8c84828501612e53565b91505092915050565b60008115159050919050565b612eaa81612e95565b82525050565b6000602082019050612ec56000830184612ea1565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f05578082015181840152602081019050612eea565b60008484015250505050565b6000601f19601f8301169050919050565b6000612f2d82612ecb565b612f378185612ed6565b9350612f47818560208601612ee7565b612f5081612f11565b840191505092915050565b60006020820190508181036000830152612f758184612f22565b905092915050565b6000819050919050565b612f9081612f7d565b8114612f9b57600080fd5b50565b600081359050612fad81612f87565b92915050565b600060208284031215612fc957612fc8612e06565b5b6000612fd784828501612f9e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061300b82612fe0565b9050919050565b61301b81613000565b82525050565b60006020820190506130366000830184613012565b92915050565b61304581613000565b811461305057600080fd5b50565b6000813590506130628161303c565b92915050565b6000806040838503121561307f5761307e612e06565b5b600061308d85828601613053565b925050602061309e85828601612f9e565b9150509250929050565b6130b181612f7d565b82525050565b60006020820190506130cc60008301846130a8565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61310f82612f11565b810181811067ffffffffffffffff8211171561312e5761312d6130d7565b5b80604052505050565b6000613141612dfc565b905061314d8282613106565b919050565b600067ffffffffffffffff82111561316d5761316c6130d7565b5b602082029050602081019050919050565b600080fd5b600080fd5b600061319382612fe0565b9050919050565b6131a381613188565b81146131ae57600080fd5b50565b6000813590506131c08161319a565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6131e7816131c6565b81146131f257600080fd5b50565b600081359050613204816131de565b92915050565b6000604082840312156132205761321f613183565b5b61322a6040613137565b9050600061323a848285016131b1565b600083015250602061324e848285016131f5565b60208301525092915050565b600061326d61326884613152565b613137565b905080838252602082019050604084028301858111156132905761328f61317e565b5b835b818110156132b957806132a5888261320a565b845260208401935050604081019050613292565b5050509392505050565b600082601f8301126132d8576132d76130d2565b5b81356132e884826020860161325a565b91505092915050565b60006020828403121561330757613306612e06565b5b600082013567ffffffffffffffff81111561332557613324612e0b565b5b613331848285016132c3565b91505092915050565b60008060006060848603121561335357613352612e06565b5b600061336186828701613053565b935050602061337286828701613053565b925050604061338386828701612f9e565b9150509250925092565b600080604083850312156133a4576133a3612e06565b5b60006133b285828601612f9e565b92505060206133c385828601612f9e565b9150509250929050565b60006040820190506133e26000830185613012565b6133ef60208301846130a8565b9392505050565b600080fd5b600067ffffffffffffffff821115613416576134156130d7565b5b61341f82612f11565b9050602081019050919050565b82818337600083830152505050565b600061344e613449846133fb565b613137565b90508281526020810184848401111561346a576134696133f6565b5b61347584828561342c565b509392505050565b600082601f830112613492576134916130d2565b5b81356134a284826020860161343b565b91505092915050565b6000602082840312156134c1576134c0612e06565b5b600082013567ffffffffffffffff8111156134df576134de612e0b565b5b6134eb8482850161347d565b91505092915050565b60006020828403121561350a57613509612e06565b5b600061351884828501613053565b91505092915050565b61352a81612e95565b811461353557600080fd5b50565b60008135905061354781613521565b92915050565b6000806040838503121561356457613563612e06565b5b600061357285828601613053565b925050602061358385828601613538565b9150509250929050565b600067ffffffffffffffff8211156135a8576135a76130d7565b5b6135b182612f11565b9050602081019050919050565b60006135d16135cc8461358d565b613137565b9050828152602081018484840111156135ed576135ec6133f6565b5b6135f884828561342c565b509392505050565b600082601f830112613615576136146130d2565b5b81356136258482602086016135be565b91505092915050565b6000806000806080858703121561364857613647612e06565b5b600061365687828801613053565b945050602061366787828801613053565b935050604061367887828801612f9e565b925050606085013567ffffffffffffffff81111561369957613698612e0b565b5b6136a587828801613600565b91505092959194509250565b600080604083850312156136c8576136c7612e06565b5b60006136d685828601612f9e565b925050602083013567ffffffffffffffff8111156136f7576136f6612e0b565b5b613703858286016132c3565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61374281613188565b82525050565b613751816131c6565b82525050565b60408201600082015161376d6000850182613739565b5060208201516137806020850182613748565b50505050565b60006137928383613757565b60408301905092915050565b6000602082019050919050565b60006137b68261370d565b6137c08185613718565b93506137cb83613729565b8060005b838110156137fc5781516137e38882613786565b97506137ee8361379e565b9250506001810190506137cf565b5085935050505092915050565b6000602082019050818103600083015261382381846137ab565b905092915050565b6000806040838503121561384257613841612e06565b5b600061385085828601613053565b925050602061386185828601613053565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806138b257607f821691505b6020821081036138c5576138c461386b565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613927602183612ed6565b9150613932826138cb565b604082019050919050565b600060208201905081810360008301526139568161391a565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b60006139b9603e83612ed6565b91506139c48261395d565b604082019050919050565b600060208201905081810360008301526139e8816139ac565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613a4b602e83612ed6565b9150613a56826139ef565b604082019050919050565b60006020820190508181036000830152613a7a81613a3e565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613add602b83612ed6565b9150613ae882613a81565b604082019050919050565b60006020820190508181036000830152613b0c81613ad0565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613b757fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613b38565b613b7f8683613b38565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613bbc613bb7613bb284612f7d565b613b97565b612f7d565b9050919050565b6000819050919050565b613bd683613ba1565b613bea613be282613bc3565b848454613b45565b825550505050565b600090565b613bff613bf2565b613c0a818484613bcd565b505050565b5b81811015613c2e57613c23600082613bf7565b600181019050613c10565b5050565b601f821115613c7357613c4481613b13565b613c4d84613b28565b81016020851015613c5c578190505b613c70613c6885613b28565b830182613c0f565b50505b505050565b600082821c905092915050565b6000613c9660001984600802613c78565b1980831691505092915050565b6000613caf8383613c85565b9150826002028217905092915050565b613cc882612ecb565b67ffffffffffffffff811115613ce157613ce06130d7565b5b613ceb825461389a565b613cf6828285613c32565b600060209050601f831160018114613d295760008415613d17578287015190505b613d218582613ca3565b865550613d89565b601f198416613d3786613b13565b60005b82811015613d5f57848901518255600182019150602085019450602081019050613d3a565b86831015613d7c5784890151613d78601f891682613c85565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b50565b6000613dac600083613d91565b9150613db782613d9c565b600082019050919050565b6000613dcd82613d9f565b9150819050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613e33602c83612ed6565b9150613e3e82613dd7565b604082019050919050565b60006020820190508181036000830152613e6281613e26565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613ece601883612ed6565b9150613ed982613e98565b602082019050919050565b60006020820190508181036000830152613efd81613ec1565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613f60602983612ed6565b9150613f6b82613f04565b604082019050919050565b60006020820190508181036000830152613f8f81613f53565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613fd082612f7d565b9150613fdb83612f7d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561401457614013613f96565b5b828202905092915050565b7f426c61636b466f727447656e657369734e46543a2077726f6e6720616d6f756e60008201527f742073656e740000000000000000000000000000000000000000000000000000602082015250565b600061407b602683612ed6565b91506140868261401f565b604082019050919050565b600060208201905081810360008301526140aa8161406e565b9050919050565b60006140bc82612f7d565b91506140c783612f7d565b92508282019050808211156140df576140de613f96565b5b92915050565b60006140f082612f7d565b91506140fb83612f7d565b925082820390508181111561411357614112613f96565b5b92915050565b600061412482612f7d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361415657614155613f96565b5b600182019050919050565b600081905092915050565b600081546141798161389a565b6141838186614161565b9450600182166000811461419e57600181146141b3576141e6565b60ff19831686528115158202860193506141e6565b6141bc85613b13565b60005b838110156141de578154818901526001820191506020810190506141bf565b838801955050505b50505092915050565b60006141fa82612ecb565b6142048185614161565b9350614214818560208601612ee7565b80840191505092915050565b600061422c828561416c565b915061423882846141ef565b91508190509392505050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061427a600583614161565b915061428582614244565b600582019050919050565b600061429c82846141ef565b91506142a78261426d565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061430e602683612ed6565b9150614319826142b2565b604082019050919050565b6000602082019050818103600083015261433d81614301565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061437a602083612ed6565b915061438582614344565b602082019050919050565b600060208201905081810360008301526143a98161436d565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061440c602583612ed6565b9150614417826143b0565b604082019050919050565b6000602082019050818103600083015261443b816143ff565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061449e602483612ed6565b91506144a982614442565b604082019050919050565b600060208201905081810360008301526144cd81614491565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061450e82612f7d565b915061451983612f7d565b925082614529576145286144d4565b5b828204905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061456a601983612ed6565b915061457582614534565b602082019050919050565b600060208201905081810360008301526145998161455d565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006145fc603283612ed6565b9150614607826145a0565b604082019050919050565b6000602082019050818103600083015261462b816145ef565b9050919050565b600060408201905061464760008301856130a8565b818103602083015261465981846137ab565b90509392505050565b600061466d82612f7d565b915061467883612f7d565b925082614688576146876144d4565b5b828206905092915050565b7f45524337323152617269626c65526f79616c74793a2073657474696e6720726f60008201527f79616c7469657320746f20746865207a65726f20616464726573730000000000602082015250565b60006146ef603b83612ed6565b91506146fa82614693565b604082019050919050565b6000602082019050818103600083015261471e816146e2565b9050919050565b7f45524337323152617269626c65526f79616c74793a20726f79616c747920766160008201527f6c75652073686f756c6420626520706f73697469766500000000000000000000602082015250565b6000614781603683612ed6565b915061478c82614725565b604082019050919050565b600060208201905081810360008301526147b081614774565b9050919050565b60006147c2826131c6565b91506147cd836131c6565b9250826147dd576147dc6144d4565b5b828204905092915050565b7f45524337323152617269626c65526f79616c74793a20726f79616c747920746f60008201527f74616c2076616c75652073686f756c64206265206c657373207468616e20353060208201527f3030000000000000000000000000000000000000000000000000000000000000604082015250565b600061486a604283612ed6565b9150614875826147e8565b606082019050919050565b600060208201905081810360008301526148998161485d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006148c7826148a0565b6148d181856148ab565b93506148e1818560208601612ee7565b6148ea81612f11565b840191505092915050565b600060808201905061490a6000830187613012565b6149176020830186613012565b61492460408301856130a8565b818103606083015261493681846148bc565b905095945050505050565b60008151905061495081612e3c565b92915050565b60006020828403121561496c5761496b612e06565b5b600061497a84828501614941565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006149b9602083612ed6565b91506149c482614983565b602082019050919050565b600060208201905081810360008301526149e8816149ac565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614a25601c83612ed6565b9150614a30826149ef565b602082019050919050565b60006020820190508181036000830152614a5481614a18565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220fb0c1f2dee19feaf96bdf51943e279cac72768892473635f7292f1d8f5d9e71264736f6c63430008100033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000019426c61636b466f72742047656e65736973204b6e696768747300000000000000000000000000000000000000000000000000000000000000000000000000000942584b4e49474854530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f62616679626569617869786c6a32686a6e3764736e62637863616d3374796d346e746b6a733374367a6477746c65723269723369776c6a6e6b6d752e697066732e6e667473746f726167652e6c696e6b2f00000000000000
Deployed Bytecode
0x6080604052600436106101815760003560e01c80636352211e116100d1578063a22cb4651161008a578063c87b56dd11610064578063c87b56dd14610598578063cad96cca146105d5578063e985e9c514610612578063f2fde38b1461064f57610181565b8063a22cb4651461051d578063b88d4fde14610546578063c60dfbd51461056f57610181565b80636352211e1461040657806370a0823114610443578063715018a6146104805780638da5cb5b1461049757806395d89b41146104c2578063a0712d68146104ed57610181565b806323b872dd1161013e57806330176e131161011857806330176e131461034c5780633ccfd60b1461037557806342842e0e146103a05780634f6ccce7146103c957610181565b806323b872dd146102a85780632a55205a146102d15780632f745c591461030f57610181565b806301ffc9a71461018657806306fdde03146101c3578063081812fc146101ee578063095ea7b31461022b57806318160ddd146102545780631865fa841461027f575b600080fd5b34801561019257600080fd5b506101ad60048036038101906101a89190612e68565b610678565b6040516101ba9190612eb0565b60405180910390f35b3480156101cf57600080fd5b506101d861069a565b6040516101e59190612f5b565b60405180910390f35b3480156101fa57600080fd5b5061021560048036038101906102109190612fb3565b61072c565b6040516102229190613021565b60405180910390f35b34801561023757600080fd5b50610252600480360381019061024d9190613068565b610772565b005b34801561026057600080fd5b50610269610889565b60405161027691906130b7565b60405180910390f35b34801561028b57600080fd5b506102a660048036038101906102a191906132f1565b610896565b005b3480156102b457600080fd5b506102cf60048036038101906102ca919061333a565b6108aa565b005b3480156102dd57600080fd5b506102f860048036038101906102f3919061338d565b61090a565b6040516103069291906133cd565b60405180910390f35b34801561031b57600080fd5b5061033660048036038101906103319190613068565b610922565b60405161034391906130b7565b60405180910390f35b34801561035857600080fd5b50610373600480360381019061036e91906134ab565b6109c7565b005b34801561038157600080fd5b5061038a6109e2565b6040516103979190612eb0565b60405180910390f35b3480156103ac57600080fd5b506103c760048036038101906103c2919061333a565b610a5f565b005b3480156103d557600080fd5b506103f060048036038101906103eb9190612fb3565b610a7f565b6040516103fd91906130b7565b60405180910390f35b34801561041257600080fd5b5061042d60048036038101906104289190612fb3565b610af0565b60405161043a9190613021565b60405180910390f35b34801561044f57600080fd5b5061046a600480360381019061046591906134f4565b610ba1565b60405161047791906130b7565b60405180910390f35b34801561048c57600080fd5b50610495610c58565b005b3480156104a357600080fd5b506104ac610c6c565b6040516104b99190613021565b60405180910390f35b3480156104ce57600080fd5b506104d7610c96565b6040516104e49190612f5b565b60405180910390f35b61050760048036038101906105029190612fb3565b610d28565b6040516105149190612eb0565b60405180910390f35b34801561052957600080fd5b50610544600480360381019061053f919061354d565b610eaf565b005b34801561055257600080fd5b5061056d6004803603810190610568919061362e565b610ec5565b005b34801561057b57600080fd5b50610596600480360381019061059191906136b1565b610f27565b005b3480156105a457600080fd5b506105bf60048036038101906105ba9190612fb3565b610f3d565b6040516105cc9190612f5b565b60405180910390f35b3480156105e157600080fd5b506105fc60048036038101906105f79190612fb3565b610f99565b6040516106099190613809565b60405180910390f35b34801561061e57600080fd5b506106396004803603810190610634919061382b565b61119b565b6040516106469190612eb0565b60405180910390f35b34801561065b57600080fd5b50610676600480360381019061067191906134f4565b61122f565b005b6000610683826112b2565b806106935750610692826112d4565b5b9050919050565b6060600280546106a99061389a565b80601f01602080910402602001604051908101604052809291908181526020018280546106d59061389a565b80156107225780601f106106f757610100808354040283529160200191610722565b820191906000526020600020905b81548152906001019060200180831161070557829003601f168201915b5050505050905090565b60006107378261134e565b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061077d82610af0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036107ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e49061393d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661080c611399565b73ffffffffffffffffffffffffffffffffffffffff16148061083b575061083a81610835611399565b61119b565b5b61087a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610871906139cf565b60405180910390fd5b61088483836113a1565b505050565b6000600c80549050905090565b61089e61145a565b6108a7816114d8565b50565b6108bb6108b5611399565b826115d4565b6108fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108f190613a61565b60405180910390fd5b610905838383611669565b505050565b60008061091784846118cf565b915091509250929050565b600061092d83610ba1565b821061096e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096590613af3565b60405180910390fd5b600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6109cf61145a565b80601090816109de9190613cbf565b5050565b60006109ec61145a565b60003373ffffffffffffffffffffffffffffffffffffffff1647604051610a1290613dc2565b60006040518083038185875af1925050503d8060008114610a4f576040519150601f19603f3d011682016040523d82523d6000602084013e610a54565b606091505b505090508091505090565b610a7a83838360405180602001604052806000815250610ec5565b505050565b6000610a89610889565b8210610aca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac190613e49565b60405180910390fd5b600c8281548110610ade57610add613e69565b5b90600052602060002001549050919050565b6000806004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610b98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8f90613ee4565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0890613f76565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610c6061145a565b610c6a6000611b8e565b565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054610ca59061389a565b80601f0160208091040260200160405190810160405280929190818152602001828054610cd19061389a565b8015610d1e5780601f10610cf357610100808354040283529160200191610d1e565b820191906000526020600020905b815481529060010190602001808311610d0157829003601f168201915b5050505050905090565b600034670f43fc2c04ee000083610d3f9190613fc5565b14610d7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7690614091565b60405180910390fd5b60006101f583610d8d610889565b610d9791906140b1565b1115610dd7576101f583610da9610889565b610db391906140b1565b610dbd91906140e5565b9050610dc7610889565b6101f5610dd491906140e5565b92505b60005b83811015610e1257610df533610df0600f611c54565b611c62565b610dff600f611c80565b8080610e0a90614119565b915050610dda565b5060008114610ea45760003373ffffffffffffffffffffffffffffffffffffffff16670f43fc2c04ee000083610e489190613fc5565b604051610e5490613dc2565b60006040518083038185875af1925050503d8060008114610e91576040519150601f19603f3d011682016040523d82523d6000602084013e610e96565b606091505b505090508092505050610eaa565b60019150505b919050565b610ec1610eba611399565b8383611c96565b5050565b610ed6610ed0611399565b836115d4565b610f15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0c90613a61565b60405180910390fd5b610f2184848484611e02565b50505050565b610f2f61145a565b610f398282611e5e565b5050565b6060610f488261134e565b6010610f5383611fb6565b604051602001610f64929190614220565b604051602081830303815290604052604051602001610f839190614290565b6040516020818303038152906040529050919050565b6060600060096000848152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611092578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505081526020019060010190610fd0565b5050505090506000815103611191576008805480602002602001604051908101604052809291908181526020016000905b82821015611185578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff1681525050815260200190600101906110c3565b50505050915050611196565b809150505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61123761145a565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129d90614324565b60405180910390fd5b6112af81611b8e565b50565b60006112bd82612116565b806112cd57506112cc82612128565b5b9050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113475750611346826112b2565b5b9050919050565b611357816121a2565b611396576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138d90613ee4565b60405180910390fd5b50565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661141483610af0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611462611399565b73ffffffffffffffffffffffffffffffffffffffff16611480610c6c565b73ffffffffffffffffffffffffffffffffffffffff16146114d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114cd90614390565b60405180910390fd5b565b6114e18161220e565b600860006114ef9190612d7e565b60005b81518110156115d05760088282815181106115105761150f613e69565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550505080806115c890614119565b9150506114f2565b5050565b6000806115e083610af0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806116225750611621818561119b565b5b8061166057508373ffffffffffffffffffffffffffffffffffffffff166116488461072c565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661168982610af0565b73ffffffffffffffffffffffffffffffffffffffff16146116df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d690614422565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361174e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611745906144b4565b60405180910390fd5b61175983838361239e565b6117646000826113a1565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117b491906140e5565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461180b91906140b1565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118ca8383836123ae565b505050565b600080600060096000868152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156119c9578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505081526020019060010190611907565b5050505090506000815103611ad9576008805480602002602001604051908101604052809291908181526020016000905b82821015611abc578382906000526020600020016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff1681525050815260200190600101906119fa565b5050505090506000815103611ad8576000809250925050611b87565b5b6000805b8251811015611b3357828181518110611af957611af8613e69565b5b6020026020010151602001516bffffffffffffffffffffffff1682611b1e91906140b1565b91508080611b2b90614119565b915050611add565b5081600081518110611b4857611b47613e69565b5b602002602001015160000151611b5c6123b3565b6bffffffffffffffffffffffff168683611b769190613fc5565b611b809190614503565b9350935050505b9250929050565b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081600001549050919050565b611c7c8282604051806020016040528060008152506123bd565b5050565b6001816000016000828254019250508190555050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cfb90614580565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611df59190612eb0565b60405180910390a3505050565b611e0d848484611669565b611e1984848484612418565b611e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4f90614612565b60405180910390fd5b50505050565b611e678161220e565b600960008381526020019081526020016000206000611e869190612d7e565b60005b8151811015611f785760096000848152602001908152602001600020828281518110611eb857611eb7613e69565b5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555050508080611f7090614119565b915050611e89565b507f3fa96d7b6bcbfe71ef171666d84db3cf52fa2d1c8afdb1cc8e486177f208b7df8282604051611faa929190614632565b60405180910390a15050565b606060008203611ffd576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612111565b600082905060005b6000821461202f57808061201890614119565b915050600a826120289190614503565b9150612005565b60008167ffffffffffffffff81111561204b5761204a6130d7565b5b6040519080825280601f01601f19166020018201604052801561207d5781602001600182028036833780820191505090505b5090505b6000851461210a5760018261209691906140e5565b9150600a856120a59190614662565b60306120b191906140b1565b60f81b8183815181106120c7576120c6613e69565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856121039190614503565b9450612081565b8093505050505b919050565b60006121218261259f565b9050919050565b60007fcad96cca000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061219b575061219a82612116565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000805b82518110156123365760008382815181106122305761222f613e69565b5b60200260200101519050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036122ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a490614705565b60405180910390fd5b600081602001516bffffffffffffffffffffffff1603612302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f990614797565b60405180910390fd5b80602001516bffffffffffffffffffffffff168361232091906140b1565b925050808061232e90614119565b915050612212565b5060026123416123b3565b61234b91906147b7565b6bffffffffffffffffffffffff16811061239a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239190614880565b60405180910390fd5b5050565b6123a9838383612681565b505050565b505050565b6000612710905090565b6123c78383612793565b6123d46000848484612418565b612413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240a90614612565b60405180910390fd5b505050565b60006124398473ffffffffffffffffffffffffffffffffffffffff1661296c565b15612592578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612462611399565b8786866040518563ffffffff1660e01b815260040161248494939291906148f5565b6020604051808303816000875af19250505080156124c057506040513d601f19601f820116820180604052508101906124bd9190614956565b60015b612542573d80600081146124f0576040519150601f19603f3d011682016040523d82523d6000602084013e6124f5565b606091505b50600081510361253a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253190614612565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612597565b600190505b949350505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061266a57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061267a57506126798261298f565b5b9050919050565b61268c838383612a09565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036126ce576126c981612a0e565b61270d565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461270c5761270b8382612a57565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361274f5761274a81612bc4565b61278e565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461278d5761278c8282612c95565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f9906149cf565b60405180910390fd5b61280b816121a2565b1561284b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161284290614a3b565b60405180910390fd5b6128576000838361239e565b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128a791906140b1565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612968600083836123ae565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612a025750612a0182612d14565b5b9050919050565b505050565b600c80549050600d600083815260200190815260200160002081905550600c81908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612a6484610ba1565b612a6e91906140e5565b90506000600b6000848152602001908152602001600020549050818114612b53576000600a60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600a60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008481526020019081526020016000208190555081600b600083815260200190815260200160002081905550505b600b600084815260200190815260200160002060009055600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600c80549050612bd891906140e5565b90506000600d60008481526020019081526020016000205490506000600c8381548110612c0857612c07613e69565b5b9060005260206000200154905080600c8381548110612c2a57612c29613e69565b5b906000526020600020018190555081600d600083815260200190815260200160002081905550600d600085815260200190815260200160002060009055600c805480612c7957612c78614a5b565b5b6001900381819060005260206000200160009055905550505050565b6000612ca083610ba1565b905081600a60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000208190555080600b600084815260200190815260200160002081905550505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5080546000825590600052602060002090810190612d9c9190612d9f565b50565b5b80821115612df857600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff021916905550600101612da0565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612e4581612e10565b8114612e5057600080fd5b50565b600081359050612e6281612e3c565b92915050565b600060208284031215612e7e57612e7d612e06565b5b6000612e8c84828501612e53565b91505092915050565b60008115159050919050565b612eaa81612e95565b82525050565b6000602082019050612ec56000830184612ea1565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612f05578082015181840152602081019050612eea565b60008484015250505050565b6000601f19601f8301169050919050565b6000612f2d82612ecb565b612f378185612ed6565b9350612f47818560208601612ee7565b612f5081612f11565b840191505092915050565b60006020820190508181036000830152612f758184612f22565b905092915050565b6000819050919050565b612f9081612f7d565b8114612f9b57600080fd5b50565b600081359050612fad81612f87565b92915050565b600060208284031215612fc957612fc8612e06565b5b6000612fd784828501612f9e565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061300b82612fe0565b9050919050565b61301b81613000565b82525050565b60006020820190506130366000830184613012565b92915050565b61304581613000565b811461305057600080fd5b50565b6000813590506130628161303c565b92915050565b6000806040838503121561307f5761307e612e06565b5b600061308d85828601613053565b925050602061309e85828601612f9e565b9150509250929050565b6130b181612f7d565b82525050565b60006020820190506130cc60008301846130a8565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61310f82612f11565b810181811067ffffffffffffffff8211171561312e5761312d6130d7565b5b80604052505050565b6000613141612dfc565b905061314d8282613106565b919050565b600067ffffffffffffffff82111561316d5761316c6130d7565b5b602082029050602081019050919050565b600080fd5b600080fd5b600061319382612fe0565b9050919050565b6131a381613188565b81146131ae57600080fd5b50565b6000813590506131c08161319a565b92915050565b60006bffffffffffffffffffffffff82169050919050565b6131e7816131c6565b81146131f257600080fd5b50565b600081359050613204816131de565b92915050565b6000604082840312156132205761321f613183565b5b61322a6040613137565b9050600061323a848285016131b1565b600083015250602061324e848285016131f5565b60208301525092915050565b600061326d61326884613152565b613137565b905080838252602082019050604084028301858111156132905761328f61317e565b5b835b818110156132b957806132a5888261320a565b845260208401935050604081019050613292565b5050509392505050565b600082601f8301126132d8576132d76130d2565b5b81356132e884826020860161325a565b91505092915050565b60006020828403121561330757613306612e06565b5b600082013567ffffffffffffffff81111561332557613324612e0b565b5b613331848285016132c3565b91505092915050565b60008060006060848603121561335357613352612e06565b5b600061336186828701613053565b935050602061337286828701613053565b925050604061338386828701612f9e565b9150509250925092565b600080604083850312156133a4576133a3612e06565b5b60006133b285828601612f9e565b92505060206133c385828601612f9e565b9150509250929050565b60006040820190506133e26000830185613012565b6133ef60208301846130a8565b9392505050565b600080fd5b600067ffffffffffffffff821115613416576134156130d7565b5b61341f82612f11565b9050602081019050919050565b82818337600083830152505050565b600061344e613449846133fb565b613137565b90508281526020810184848401111561346a576134696133f6565b5b61347584828561342c565b509392505050565b600082601f830112613492576134916130d2565b5b81356134a284826020860161343b565b91505092915050565b6000602082840312156134c1576134c0612e06565b5b600082013567ffffffffffffffff8111156134df576134de612e0b565b5b6134eb8482850161347d565b91505092915050565b60006020828403121561350a57613509612e06565b5b600061351884828501613053565b91505092915050565b61352a81612e95565b811461353557600080fd5b50565b60008135905061354781613521565b92915050565b6000806040838503121561356457613563612e06565b5b600061357285828601613053565b925050602061358385828601613538565b9150509250929050565b600067ffffffffffffffff8211156135a8576135a76130d7565b5b6135b182612f11565b9050602081019050919050565b60006135d16135cc8461358d565b613137565b9050828152602081018484840111156135ed576135ec6133f6565b5b6135f884828561342c565b509392505050565b600082601f830112613615576136146130d2565b5b81356136258482602086016135be565b91505092915050565b6000806000806080858703121561364857613647612e06565b5b600061365687828801613053565b945050602061366787828801613053565b935050604061367887828801612f9e565b925050606085013567ffffffffffffffff81111561369957613698612e0b565b5b6136a587828801613600565b91505092959194509250565b600080604083850312156136c8576136c7612e06565b5b60006136d685828601612f9e565b925050602083013567ffffffffffffffff8111156136f7576136f6612e0b565b5b613703858286016132c3565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61374281613188565b82525050565b613751816131c6565b82525050565b60408201600082015161376d6000850182613739565b5060208201516137806020850182613748565b50505050565b60006137928383613757565b60408301905092915050565b6000602082019050919050565b60006137b68261370d565b6137c08185613718565b93506137cb83613729565b8060005b838110156137fc5781516137e38882613786565b97506137ee8361379e565b9250506001810190506137cf565b5085935050505092915050565b6000602082019050818103600083015261382381846137ab565b905092915050565b6000806040838503121561384257613841612e06565b5b600061385085828601613053565b925050602061386185828601613053565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806138b257607f821691505b6020821081036138c5576138c461386b565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613927602183612ed6565b9150613932826138cb565b604082019050919050565b600060208201905081810360008301526139568161391a565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b60006139b9603e83612ed6565b91506139c48261395d565b604082019050919050565b600060208201905081810360008301526139e8816139ac565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613a4b602e83612ed6565b9150613a56826139ef565b604082019050919050565b60006020820190508181036000830152613a7a81613a3e565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613add602b83612ed6565b9150613ae882613a81565b604082019050919050565b60006020820190508181036000830152613b0c81613ad0565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613b757fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613b38565b613b7f8683613b38565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613bbc613bb7613bb284612f7d565b613b97565b612f7d565b9050919050565b6000819050919050565b613bd683613ba1565b613bea613be282613bc3565b848454613b45565b825550505050565b600090565b613bff613bf2565b613c0a818484613bcd565b505050565b5b81811015613c2e57613c23600082613bf7565b600181019050613c10565b5050565b601f821115613c7357613c4481613b13565b613c4d84613b28565b81016020851015613c5c578190505b613c70613c6885613b28565b830182613c0f565b50505b505050565b600082821c905092915050565b6000613c9660001984600802613c78565b1980831691505092915050565b6000613caf8383613c85565b9150826002028217905092915050565b613cc882612ecb565b67ffffffffffffffff811115613ce157613ce06130d7565b5b613ceb825461389a565b613cf6828285613c32565b600060209050601f831160018114613d295760008415613d17578287015190505b613d218582613ca3565b865550613d89565b601f198416613d3786613b13565b60005b82811015613d5f57848901518255600182019150602085019450602081019050613d3a565b86831015613d7c5784890151613d78601f891682613c85565b8355505b6001600288020188555050505b505050505050565b600081905092915050565b50565b6000613dac600083613d91565b9150613db782613d9c565b600082019050919050565b6000613dcd82613d9f565b9150819050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613e33602c83612ed6565b9150613e3e82613dd7565b604082019050919050565b60006020820190508181036000830152613e6281613e26565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613ece601883612ed6565b9150613ed982613e98565b602082019050919050565b60006020820190508181036000830152613efd81613ec1565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613f60602983612ed6565b9150613f6b82613f04565b604082019050919050565b60006020820190508181036000830152613f8f81613f53565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613fd082612f7d565b9150613fdb83612f7d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561401457614013613f96565b5b828202905092915050565b7f426c61636b466f727447656e657369734e46543a2077726f6e6720616d6f756e60008201527f742073656e740000000000000000000000000000000000000000000000000000602082015250565b600061407b602683612ed6565b91506140868261401f565b604082019050919050565b600060208201905081810360008301526140aa8161406e565b9050919050565b60006140bc82612f7d565b91506140c783612f7d565b92508282019050808211156140df576140de613f96565b5b92915050565b60006140f082612f7d565b91506140fb83612f7d565b925082820390508181111561411357614112613f96565b5b92915050565b600061412482612f7d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361415657614155613f96565b5b600182019050919050565b600081905092915050565b600081546141798161389a565b6141838186614161565b9450600182166000811461419e57600181146141b3576141e6565b60ff19831686528115158202860193506141e6565b6141bc85613b13565b60005b838110156141de578154818901526001820191506020810190506141bf565b838801955050505b50505092915050565b60006141fa82612ecb565b6142048185614161565b9350614214818560208601612ee7565b80840191505092915050565b600061422c828561416c565b915061423882846141ef565b91508190509392505050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061427a600583614161565b915061428582614244565b600582019050919050565b600061429c82846141ef565b91506142a78261426d565b915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061430e602683612ed6565b9150614319826142b2565b604082019050919050565b6000602082019050818103600083015261433d81614301565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061437a602083612ed6565b915061438582614344565b602082019050919050565b600060208201905081810360008301526143a98161436d565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061440c602583612ed6565b9150614417826143b0565b604082019050919050565b6000602082019050818103600083015261443b816143ff565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061449e602483612ed6565b91506144a982614442565b604082019050919050565b600060208201905081810360008301526144cd81614491565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061450e82612f7d565b915061451983612f7d565b925082614529576145286144d4565b5b828204905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b600061456a601983612ed6565b915061457582614534565b602082019050919050565b600060208201905081810360008301526145998161455d565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006145fc603283612ed6565b9150614607826145a0565b604082019050919050565b6000602082019050818103600083015261462b816145ef565b9050919050565b600060408201905061464760008301856130a8565b818103602083015261465981846137ab565b90509392505050565b600061466d82612f7d565b915061467883612f7d565b925082614688576146876144d4565b5b828206905092915050565b7f45524337323152617269626c65526f79616c74793a2073657474696e6720726f60008201527f79616c7469657320746f20746865207a65726f20616464726573730000000000602082015250565b60006146ef603b83612ed6565b91506146fa82614693565b604082019050919050565b6000602082019050818103600083015261471e816146e2565b9050919050565b7f45524337323152617269626c65526f79616c74793a20726f79616c747920766160008201527f6c75652073686f756c6420626520706f73697469766500000000000000000000602082015250565b6000614781603683612ed6565b915061478c82614725565b604082019050919050565b600060208201905081810360008301526147b081614774565b9050919050565b60006147c2826131c6565b91506147cd836131c6565b9250826147dd576147dc6144d4565b5b828204905092915050565b7f45524337323152617269626c65526f79616c74793a20726f79616c747920746f60008201527f74616c2076616c75652073686f756c64206265206c657373207468616e20353060208201527f3030000000000000000000000000000000000000000000000000000000000000604082015250565b600061486a604283612ed6565b9150614875826147e8565b606082019050919050565b600060208201905081810360008301526148998161485d565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006148c7826148a0565b6148d181856148ab565b93506148e1818560208601612ee7565b6148ea81612f11565b840191505092915050565b600060808201905061490a6000830187613012565b6149176020830186613012565b61492460408301856130a8565b818103606083015261493681846148bc565b905095945050505050565b60008151905061495081612e3c565b92915050565b60006020828403121561496c5761496b612e06565b5b600061497a84828501614941565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006149b9602083612ed6565b91506149c482614983565b602082019050919050565b600060208201905081810360008301526149e8816149ac565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614a25601c83612ed6565b9150614a30826149ef565b602082019050919050565b60006020820190508181036000830152614a5481614a18565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220fb0c1f2dee19feaf96bdf51943e279cac72768892473635f7292f1d8f5d9e71264736f6c63430008100033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000019426c61636b466f72742047656e65736973204b6e696768747300000000000000000000000000000000000000000000000000000000000000000000000000000942584b4e49474854530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005968747470733a2f2f62616679626569617869786c6a32686a6e3764736e62637863616d3374796d346e746b6a733374367a6477746c65723269723369776c6a6e6b6d752e697066732e6e667473746f726167652e6c696e6b2f00000000000000
-----Decoded View---------------
Arg [0] : name (string): BlackFort Genesis Knights
Arg [1] : symbol (string): BXKNIGHTS
Arg [2] : baseTokenURI (string): https://bafybeiaxixlj2hjn7dsnbcxcam3tym4ntkjs3t6zdwtler2ir3iwljnkmu.ipfs.nftstorage.link/
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [4] : 426c61636b466f72742047656e65736973204b6e696768747300000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [6] : 42584b4e49474854530000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000059
Arg [8] : 68747470733a2f2f62616679626569617869786c6a32686a6e3764736e626378
Arg [9] : 63616d3374796d346e746b6a733374367a6477746c65723269723369776c6a6e
Arg [10] : 6b6d752e697066732e6e667473746f726167652e6c696e6b2f00000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.