Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 CBK
Holders
198
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
KnowBox
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 (last updated v4.8.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 = _ownerOf(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 or 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 or 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 or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @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, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @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. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.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 {ERC2981-_setDefaultRoyalty}, and/or individually for * specific token ids via {ERC2981-_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/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import {SignatureChecker} from "./libs/SignatureChecker.sol"; import "./libs/KnowBoxInfo.sol"; import "./RandomHelp.sol"; contract KnowBox is ERC721Royalty, Ownable, RandomHelp { using Strings for uint256; using KnowBoxInfo for KnowBoxInfo.MintInfo; using KnowBoxInfo for KnowBoxInfo.OpenInfo; bytes32 public immutable DOMAIN_SEPARATOR; bool _isInit = false; uint256 private maxSupply = 800; uint256 private maxBalance = 1; uint256 private total; //7 * 24 * 60 * 60 uint256 private openDelay = 604800; mapping(uint256 => KnowBoxInfo.BoxInfo) private _boxInfo; mapping(string => bool) private _cdkeyMap; string private baseURI; string public nonOpenUri = "https://sky.infura-ipfs.io/ipfs/QmZZkoQveZs2qKxny3jW2y426sS7APtWnnS9SYg2oroK3T"; event MintNotice(address minter, uint256 tokenId, string cdkey); event OpenNotice(address operator, uint256 tokenId, uint256 dataIndex); constructor(address _royaltyReceiver, uint96 royalty) ERC721("KNOWBOX", "CBK") RandomHelp(maxSupply) { DOMAIN_SEPARATOR = keccak256( abi.encode( 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f, 0x545a712f02f365da9d9517134f9a5d25d56b9fdb8d344bd43f7457d18b3ef54a, 0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6, block.chainid, address(this) ) ); _setDefaultRoyalty(_royaltyReceiver, royalty); } function mintBox(KnowBoxInfo.MintInfo calldata mintInfo) external { require(tx.origin == msg.sender, "KnowBox:Not allow Contract"); require(mintInfo.minter == msg.sender, "KnowBox:Validate minter Error"); require(SignatureChecker.verifyMint(mintInfo, DOMAIN_SEPARATOR), "KnowBox:Validate Sign Error"); require(balanceOf(msg.sender) + 1 <= maxBalance, "KnowBox:mint would exceed max balance"); require(total < maxSupply, "KnowBox:mint would exceed max supply"); require(!_cdkeyMap[mintInfo.cdkey], "KnowBox:cdkey is already used"); uint256 _token = total; _safeMint(msg.sender, _token); KnowBoxInfo.BoxInfo storage setBoxInfo = _boxInfo[_token]; setBoxInfo.open = false; setBoxInfo.dataIndex = 0; setBoxInfo.openTime = block.timestamp + openDelay; _cdkeyMap[mintInfo.cdkey] = true; total++; emit MintNotice(msg.sender, _token, mintInfo.cdkey); } function openBox(KnowBoxInfo.OpenInfo calldata openInfo) external { require(_exists(openInfo.token), "KnowBox: invalid token ID"); require(ownerOf(openInfo.token) == msg.sender, "KnowBox:This token does not belong to you"); require(!_boxInfo[openInfo.token].open, "KnowBox:Box is already opend"); require(_boxInfo[openInfo.token].openTime <= block.timestamp, "KnowBox:Box is not on time yet"); require(SignatureChecker.verifyOpen(openInfo, DOMAIN_SEPARATOR), "KnowBox:Validate Sign Error"); uint256 dataIndex = getRandomId(openInfo.salt); _boxInfo[openInfo.token].open = true; _boxInfo[openInfo.token].dataIndex = dataIndex; emit OpenNotice(msg.sender, openInfo.token, dataIndex); } function boxOpend(uint256 _tokenId) public view returns (bool) { require(_exists(_tokenId), "KnowBox: invalid token ID"); return _boxInfo[_tokenId].open; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { if (boxOpend(_tokenId)) { string memory base = _baseURI(); string memory dataIndex = _boxInfo[_tokenId].dataIndex.toString(); return string(abi.encodePacked("ipfs://", base, "/", dataIndex, ".json")); } else { return nonOpenUri; } } function initBaseURI(string calldata baseURI_) external onlyOwner { require(!_isInit, "KnowBox: baseURI has inited"); baseURI = baseURI_; _isInit = true; } function setMaxBalance(uint256 _maxBalance) external onlyOwner { maxBalance = _maxBalance; } function setOpenDelay(uint256 _openDelay) external onlyOwner { openDelay = _openDelay; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; library KnowBoxInfo { struct MintInfo { address minter; uint256 counter; string cdkey; uint8 v; bytes32 r; bytes32 s; } struct OpenInfo { uint256 token; uint256 salt; uint8 v; bytes32 r; bytes32 s; } struct BoxInfo { bool open; uint256 dataIndex; uint256 openTime; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; import "./KnowBoxInfo.sol"; library SignatureChecker { address private constant signer = 0x9add88207AC0Db396d6050716BADB7eC6C96bA33; bytes32 public constant MINT_HASH = 0x5bf9043e1eaa47b5c26a6a6eef0b4f9f128379e0b6c47e5e98b66123e7c0164e; bytes32 public constant OPEN_HASH = 0x407e394ce1be01de81e6dae9c411116d2aba76150bb021cb4e97216cc7ef30d6; function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "Signature: Invalid s parameter"); require(v == 27 || v == 28, "Signature: Invalid v parameter"); address signer_ = ecrecover(hash, v, r, s); require(signer_ != address(0), "Signature: Invalid signer"); return signer_; } function verifyMint(KnowBoxInfo.MintInfo calldata mintInfo, bytes32 domainSeparator) internal pure returns (bool) { bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, getMintInfoHash(mintInfo))); return recover(digest, mintInfo.v, mintInfo.r, mintInfo.s) == signer; } function verifyOpen(KnowBoxInfo.OpenInfo calldata openInfo, bytes32 domainSeparator) internal pure returns (bool) { bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, getOpenInfoHash(openInfo))); return recover(digest, openInfo.v, openInfo.r, openInfo.s) == signer; } function getMintInfoHash(KnowBoxInfo.MintInfo calldata info) internal pure returns (bytes32) { return keccak256(abi.encode(MINT_HASH, info.minter, info.counter, keccak256(bytes(info.cdkey)))); } function getOpenInfoHash(KnowBoxInfo.OpenInfo calldata info) internal pure returns (bytes32) { return keccak256(abi.encode(OPEN_HASH, info.token, info.salt)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; abstract contract RandomHelp { uint256 private totalCount; uint256 private usedCount; mapping(uint256 => uint256) private randomPool; constructor(uint256 _totalCount) { totalCount = _totalCount; } function getRandomId(uint256 salt) internal returns (uint256 randomId) { require(usedCount < totalCount, "Quantity used out"); uint256 rand = uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty, block.number, salt, usedCount))); randomId = getIndex(rand) + 1; } function getIndex(uint256 rand) internal returns (uint256) { uint256 lastCount = totalCount - usedCount; uint256 index = rand % lastCount; uint256 target = randomPool[index]; uint256 pointIndex = target > 0 ? target : index; target = randomPool[--lastCount]; randomPool[index] = target > 0 ? target : lastCount; usedCount++; return pointIndex; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_royaltyReceiver","type":"address"},{"internalType":"uint96","name":"royalty","type":"uint96"}],"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":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"cdkey","type":"string"}],"name":"MintNotice","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"dataIndex","type":"uint256"}],"name":"OpenNotice","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"boxOpend","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"string","name":"baseURI_","type":"string"}],"name":"initBaseURI","outputs":[],"stateMutability":"nonpayable","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":[{"components":[{"internalType":"address","name":"minter","type":"address"},{"internalType":"uint256","name":"counter","type":"uint256"},{"internalType":"string","name":"cdkey","type":"string"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct KnowBoxInfo.MintInfo","name":"mintInfo","type":"tuple"}],"name":"mintBox","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nonOpenUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"token","type":"uint256"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct KnowBoxInfo.OpenInfo","name":"openInfo","type":"tuple"}],"name":"openBox","outputs":[],"stateMutability":"nonpayable","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":"uint256","name":"_maxBalance","type":"uint256"}],"name":"setMaxBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_openDelay","type":"uint256"}],"name":"setOpenDelay","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":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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"}]
Contract Creation Code
60a06040526000600c60006101000a81548160ff021916908315150217905550610320600d556001600e5562093a806010556040518060800160405280604e815260200162005517604e913960149080519060200190620000629291906200048e565b503480156200007057600080fd5b5060405162005565380380620055658339818101604052810190620000969190620005f1565b600d546040518060400160405280600781526020017f4b4e4f57424f58000000000000000000000000000000000000000000000000008152506040518060400160405280600381526020017f43424b000000000000000000000000000000000000000000000000000000000081525081600290805190602001906200011d9291906200048e565b508060039080519060200190620001369291906200048e565b505050620001596200014d6200021360201b60201c565b6200021b60201b60201c565b80600981905550507f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f7f545a712f02f365da9d9517134f9a5d25d56b9fdb8d344bd43f7457d18b3ef54a7fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc64630604051602001620001dc95949392919062000737565b60405160208183030381529060405280519060200120608081815250506200020b8282620002e160201b60201c565b505062000914565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002f16200048460201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000349906200081b565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620003c5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003bc906200088d565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6000612710905090565b8280546200049c90620008de565b90600052602060002090601f016020900481019282620004c057600085556200050c565b82601f10620004db57805160ff19168380011785556200050c565b828001600101855582156200050c579182015b828111156200050b578251825591602001919060010190620004ee565b5b5090506200051b91906200051f565b5090565b5b808211156200053a57600081600090555060010162000520565b5090565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620005708262000543565b9050919050565b620005828162000563565b81146200058e57600080fd5b50565b600081519050620005a28162000577565b92915050565b60006bffffffffffffffffffffffff82169050919050565b620005cb81620005a8565b8114620005d757600080fd5b50565b600081519050620005eb81620005c0565b92915050565b600080604083850312156200060b576200060a6200053e565b5b60006200061b8582860162000591565b92505060206200062e85828601620005da565b9150509250929050565b6000819050919050565b6000819050919050565b6000819050919050565b600062000677620006716200066b8462000638565b6200064c565b62000642565b9050919050565b620006898162000656565b82525050565b6000819050919050565b6000620006ba620006b4620006ae846200068f565b6200064c565b62000642565b9050919050565b620006cc8162000699565b82525050565b6000819050919050565b6000620006fd620006f7620006f184620006d2565b6200064c565b62000642565b9050919050565b6200070f81620006dc565b82525050565b620007208162000642565b82525050565b620007318162000563565b82525050565b600060a0820190506200074e60008301886200067e565b6200075d6020830187620006c1565b6200076c604083018662000704565b6200077b606083018562000715565b6200078a608083018462000726565b9695505050505050565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000803602a8362000794565b91506200081082620007a5565b604082019050919050565b600060208201905081810360008301526200083681620007f4565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b60006200087560198362000794565b915062000882826200083d565b602082019050919050565b60006020820190508181036000830152620008a88162000866565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620008f757607f821691505b602082108114156200090e576200090d620008af565b5b50919050565b608051614bd96200093e6000396000818161099101528181610b6401526110950152614bd96000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c806370a08231116100de578063a92436dd11610097578063c87b56dd11610071578063c87b56dd14610433578063d574a6e514610463578063e985e9c514610481578063f2fde38b146104b157610173565b8063a92436dd146103df578063b88d4fde146103fb578063c17fa7a11461041757610173565b806370a0823114610331578063715018a6146103615780638da5cb5b1461036b57806395d89b41146103895780639d51d9b7146103a7578063a22cb465146103c357610173565b80632a55205a116101305780632a55205a1461025e5780633644e5151461028f57806342842e0e146102ad5780634c6cdfde146102c95780636352211e146102e55780636a100b2f1461031557610173565b806301ffc9a71461017857806306fdde03146101a8578063081812fc146101c6578063095ea7b3146101f657806323b872dd1461021257806323d8d3e41461022e575b600080fd5b610192600480360381019061018d9190612e20565b6104cd565b60405161019f9190612e68565b60405180910390f35b6101b06104df565b6040516101bd9190612f1c565b60405180910390f35b6101e060048036038101906101db9190612f74565b610571565b6040516101ed9190612fe2565b60405180910390f35b610210600480360381019061020b9190613029565b6105b7565b005b61022c60048036038101906102279190613069565b6106cf565b005b61024860048036038101906102439190612f74565b61072f565b6040516102559190612e68565b60405180910390f35b610278600480360381019061027391906130bc565b6107a4565b60405161028692919061310b565b60405180910390f35b61029761098f565b6040516102a4919061314d565b60405180910390f35b6102c760048036038101906102c29190613069565b6109b3565b005b6102e360048036038101906102de919061318c565b6109d3565b005b6102ff60048036038101906102fa9190612f74565b610c6d565b60405161030c9190612fe2565b60405180910390f35b61032f600480360381019061032a919061321e565b610cf4565b005b61034b6004803603810190610346919061326b565b610d7d565b6040516103589190613298565b60405180910390f35b610369610e35565b005b610373610e49565b6040516103809190612fe2565b60405180910390f35b610391610e73565b60405161039e9190612f1c565b60405180910390f35b6103c160048036038101906103bc9190612f74565b610f05565b005b6103dd60048036038101906103d891906132df565b610f17565b005b6103f960048036038101906103f49190612f74565b610f2d565b005b6104156004803603810190610410919061344f565b610f3f565b005b610431600480360381019061042c91906134f1565b610fa1565b005b61044d60048036038101906104489190612f74565b611327565b60405161045a9190612f1c565b60405180910390f35b61046b611424565b6040516104789190612f1c565b60405180910390f35b61049b6004803603810190610496919061353a565b6114b2565b6040516104a89190612e68565b60405180910390f35b6104cb60048036038101906104c6919061326b565b611546565b005b60006104d8826115ca565b9050919050565b6060600280546104ee906135a9565b80601f016020809104026020016040519081016040528092919081815260200182805461051a906135a9565b80156105675780601f1061053c57610100808354040283529160200191610567565b820191906000526020600020905b81548152906001019060200180831161054a57829003601f168201915b5050505050905090565b600061057c826116ac565b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006105c282610c6d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062a9061364d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166106526116f7565b73ffffffffffffffffffffffffffffffffffffffff16148061068157506106808161067b6116f7565b6114b2565b5b6106c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b7906136df565b60405180910390fd5b6106ca83836116ff565b505050565b6106e06106da6116f7565b826117b8565b61071f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071690613771565b60405180910390fd5b61072a83838361184d565b505050565b600061073a82611b47565b610779576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610770906137dd565b60405180910390fd5b6011600083815260200190815260200160002060000160009054906101000a900460ff169050919050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16141561093a5760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610944611b88565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610970919061382c565b61097a91906138b5565b90508160000151819350935050509250929050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6109ce83838360405180602001604052806000815250610f3f565b505050565b6109e08160000135611b47565b610a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a16906137dd565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16610a438260000135610c6d565b73ffffffffffffffffffffffffffffffffffffffff1614610a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9090613958565b60405180910390fd5b601160008260000135815260200190815260200160002060000160009054906101000a900460ff1615610b01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af8906139c4565b60405180910390fd5b426011600083600001358152602001908152602001600020600201541115610b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5590613a30565b60405180910390fd5b610b88817f0000000000000000000000000000000000000000000000000000000000000000611b92565b610bc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbe90613a9c565b60405180910390fd5b6000610bd68260200135611c39565b90506001601160008460000135815260200190815260200160002060000160006101000a81548160ff021916908315150217905550806011600084600001358152602001908152602001600020600101819055507f018b9b2ab335654843bad5e4f2c18e46ca1465bb2c317cfa2f8226b2dc5efb2133836000013583604051610c6193929190613abc565b60405180910390a15050565b600080610c7983611cd6565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce290613b3f565b60405180910390fd5b80915050919050565b610cfc611d13565b600c60009054906101000a900460ff1615610d4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4390613bab565b60405180910390fd5b818160139190610d5d929190612d11565b506001600c60006101000a81548160ff0219169083151502179055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610dee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de590613c3d565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e3d611d13565b610e476000611d91565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054610e82906135a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610eae906135a9565b8015610efb5780601f10610ed057610100808354040283529160200191610efb565b820191906000526020600020905b815481529060010190602001808311610ede57829003601f168201915b5050505050905090565b610f0d611d13565b80600e8190555050565b610f29610f226116f7565b8383611e57565b5050565b610f35611d13565b8060108190555050565b610f50610f4a6116f7565b836117b8565b610f8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8690613771565b60405180910390fd5b610f9b84848484611fc4565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690613ca9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16816000016020810190611039919061326b565b73ffffffffffffffffffffffffffffffffffffffff161461108f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108690613d15565b60405180910390fd5b6110b9817f0000000000000000000000000000000000000000000000000000000000000000612020565b6110f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ef90613a9c565b60405180910390fd5b600e54600161110633610d7d565b6111109190613d35565b1115611151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114890613dfd565b60405180910390fd5b600d54600f5410611197576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118e90613e8f565b60405180910390fd5b60128180604001906111a99190613ebe565b6040516111b7929190613f51565b908152602001604051809103902060009054906101000a900460ff1615611213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120a90613fb6565b60405180910390fd5b6000600f54905061122433826120c7565b600060116000838152602001908152602001600020905060008160000160006101000a81548160ff02191690831515021790555060008160010181905550601054426112709190613d35565b81600201819055506001601284806040019061128c9190613ebe565b60405161129a929190613f51565b908152602001604051809103902060006101000a81548160ff021916908315150217905550600f60008154809291906112d290613fd6565b91905055507fcba032457488d2c5d64b3abfb436b048c57feecda1784764d994e766b1b9d270338385806040019061130a9190613ebe565b60405161131a949392919061404c565b60405180910390a1505050565b60606113328261072f565b156113915760006113416120e5565b905060006113646011600086815260200190815260200160002060010154612177565b905081816040516020016113799291906141a1565b6040516020818303038152906040529250505061141f565b6014805461139e906135a9565b80601f01602080910402602001604051908101604052809291908181526020018280546113ca906135a9565b80156114175780601f106113ec57610100808354040283529160200191611417565b820191906000526020600020905b8154815290600101906020018083116113fa57829003601f168201915b505050505090505b919050565b60148054611431906135a9565b80601f016020809104026020016040519081016040528092919081815260200182805461145d906135a9565b80156114aa5780601f1061147f576101008083540402835291602001916114aa565b820191906000526020600020905b81548152906001019060200180831161148d57829003601f168201915b505050505081565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61154e611d13565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b590614258565b60405180910390fd5b6115c781611d91565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061169557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806116a557506116a48261224f565b5b9050919050565b6116b581611b47565b6116f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116eb90613b3f565b60405180910390fd5b50565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661177283610c6d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806117c483610c6d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611806575061180581856114b2565b5b8061184457508373ffffffffffffffffffffffffffffffffffffffff1661182c84610571565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661186d82610c6d565b73ffffffffffffffffffffffffffffffffffffffff16146118c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ba906142ea565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611933576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192a9061437c565b60405180910390fd5b61194083838360016122c9565b8273ffffffffffffffffffffffffffffffffffffffff1661196082610c6d565b73ffffffffffffffffffffffffffffffffffffffff16146119b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ad906142ea565b60405180910390fd5b6006600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b4283838360016123ef565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff16611b6983611cd6565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000612710905090565b60008082611b9f856123f5565b604051602001611bb0929190614409565b604051602081830303815290604052805190602001209050739add88207ac0db396d6050716badb7ec6c96ba3373ffffffffffffffffffffffffffffffffffffffff16611c1982866040016020810190611c0a9190614479565b87606001358860800135612454565b73ffffffffffffffffffffffffffffffffffffffff161491505092915050565b6000600954600a5410611c81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c78906144f2565b60405180910390fd5b600042444385600a54604051602001611c9e959493929190614533565b6040516020818303038152906040528051906020012060001c90506001611cc4826125df565b611cce9190613d35565b915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611d1b6116f7565b73ffffffffffffffffffffffffffffffffffffffff16611d39610e49565b73ffffffffffffffffffffffffffffffffffffffff1614611d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d86906145de565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611ec6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebd9061464a565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611fb79190612e68565b60405180910390a3505050565b611fcf84848461184d565b611fdb8484848461269c565b61201a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612011906146dc565b60405180910390fd5b50505050565b6000808261202d85612824565b60405160200161203e929190614409565b604051602081830303815290604052805190602001209050739add88207ac0db396d6050716badb7ec6c96ba3373ffffffffffffffffffffffffffffffffffffffff166120a7828660600160208101906120989190614479565b87608001358860a00135612454565b73ffffffffffffffffffffffffffffffffffffffff161491505092915050565b6120e18282604051806020016040528060008152506128b8565b5050565b6060601380546120f4906135a9565b80601f0160208091040260200160405190810160405280929190818152602001828054612120906135a9565b801561216d5780601f106121425761010080835404028352916020019161216d565b820191906000526020600020905b81548152906001019060200180831161215057829003601f168201915b5050505050905090565b60606000600161218684612913565b01905060008167ffffffffffffffff8111156121a5576121a4613324565b5b6040519080825280601f01601f1916602001820160405280156121d75781602001600182028036833780820191505090505b509050600082602001820190505b600115612244578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161222e5761222d613886565b5b049450600085141561223f57612244565b6121e5565b819350505050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122c257506122c182612a66565b5b9050919050565b60018111156123e957600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461235d5780600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461235591906146fc565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146123e85780600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123e09190613d35565b925050819055505b5b50505050565b50505050565b60007f407e394ce1be01de81e6dae9c411116d2aba76150bb021cb4e97216cc7ef30d660001b8260000135836020013560405160200161243793929190614730565b604051602081830303815290604052805190602001209050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08260001c11156124bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b3906147b3565b60405180910390fd5b601b8460ff1614806124d15750601c8460ff16145b612510576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125079061481f565b60405180910390fd5b600060018686868660405160008152602001604052604051612535949392919061484e565b6020604051602081039080840390855afa158015612557573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ca906148df565b60405180910390fd5b80915050949350505050565b600080600a546009546125f291906146fc565b90506000818461260291906148ff565b90506000600b6000838152602001908152602001600020549050600080821161262b578261262d565b815b9050600b60008561263d90614930565b95508581526020019081526020016000205491506000821161265f5783612661565b815b600b600085815260200190815260200160002081905550600a600081548092919061268b90613fd6565b919050555080945050505050919050565b60006126bd8473ffffffffffffffffffffffffffffffffffffffff16612ad0565b15612817578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126e66116f7565b8786866040518563ffffffff1660e01b815260040161270894939291906149af565b6020604051808303816000875af192505050801561274457506040513d601f19601f820116820180604052508101906127419190614a10565b60015b6127c7573d8060008114612774576040519150601f19603f3d011682016040523d82523d6000602084013e612779565b606091505b506000815114156127bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b6906146dc565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061281c565b600190505b949350505050565b60007f5bf9043e1eaa47b5c26a6a6eef0b4f9f128379e0b6c47e5e98b66123e7c0164e60001b82600001602081019061285d919061326b565b83602001358480604001906128729190613ebe565b604051612880929190614a6d565b604051809103902060405160200161289b9493929190614a86565b604051602081830303815290604052805190602001209050919050565b6128c28383612af3565b6128cf600084848461269c565b61290e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612905906146dc565b60405180910390fd5b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612971577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161296757612966613886565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106129ae576d04ee2d6d415b85acef810000000083816129a4576129a3613886565b5b0492506020810190505b662386f26fc1000083106129dd57662386f26fc1000083816129d3576129d2613886565b5b0492506010810190505b6305f5e1008310612a06576305f5e10083816129fc576129fb613886565b5b0492506008810190505b6127108310612a2b576127108381612a2157612a20613886565b5b0492506004810190505b60648310612a4e5760648381612a4457612a43613886565b5b0492506002810190505b600a8310612a5d576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5a90614b17565b60405180910390fd5b612b6c81611b47565b15612bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba390614b83565b60405180910390fd5b612bba6000838360016122c9565b612bc381611b47565b15612c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfa90614b83565b60405180910390fd5b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d0d6000838360016123ef565b5050565b828054612d1d906135a9565b90600052602060002090601f016020900481019282612d3f5760008555612d86565b82601f10612d5857803560ff1916838001178555612d86565b82800160010185558215612d86579182015b82811115612d85578235825591602001919060010190612d6a565b5b509050612d939190612d97565b5090565b5b80821115612db0576000816000905550600101612d98565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612dfd81612dc8565b8114612e0857600080fd5b50565b600081359050612e1a81612df4565b92915050565b600060208284031215612e3657612e35612dbe565b5b6000612e4484828501612e0b565b91505092915050565b60008115159050919050565b612e6281612e4d565b82525050565b6000602082019050612e7d6000830184612e59565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612ebd578082015181840152602081019050612ea2565b83811115612ecc576000848401525b50505050565b6000601f19601f8301169050919050565b6000612eee82612e83565b612ef88185612e8e565b9350612f08818560208601612e9f565b612f1181612ed2565b840191505092915050565b60006020820190508181036000830152612f368184612ee3565b905092915050565b6000819050919050565b612f5181612f3e565b8114612f5c57600080fd5b50565b600081359050612f6e81612f48565b92915050565b600060208284031215612f8a57612f89612dbe565b5b6000612f9884828501612f5f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612fcc82612fa1565b9050919050565b612fdc81612fc1565b82525050565b6000602082019050612ff76000830184612fd3565b92915050565b61300681612fc1565b811461301157600080fd5b50565b60008135905061302381612ffd565b92915050565b600080604083850312156130405761303f612dbe565b5b600061304e85828601613014565b925050602061305f85828601612f5f565b9150509250929050565b60008060006060848603121561308257613081612dbe565b5b600061309086828701613014565b93505060206130a186828701613014565b92505060406130b286828701612f5f565b9150509250925092565b600080604083850312156130d3576130d2612dbe565b5b60006130e185828601612f5f565b92505060206130f285828601612f5f565b9150509250929050565b61310581612f3e565b82525050565b60006040820190506131206000830185612fd3565b61312d60208301846130fc565b9392505050565b6000819050919050565b61314781613134565b82525050565b6000602082019050613162600083018461313e565b92915050565b600080fd5b600060a0828403121561318357613182613168565b5b81905092915050565b600060a082840312156131a2576131a1612dbe565b5b60006131b08482850161316d565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126131de576131dd6131b9565b5b8235905067ffffffffffffffff8111156131fb576131fa6131be565b5b602083019150836001820283011115613217576132166131c3565b5b9250929050565b6000806020838503121561323557613234612dbe565b5b600083013567ffffffffffffffff81111561325357613252612dc3565b5b61325f858286016131c8565b92509250509250929050565b60006020828403121561328157613280612dbe565b5b600061328f84828501613014565b91505092915050565b60006020820190506132ad60008301846130fc565b92915050565b6132bc81612e4d565b81146132c757600080fd5b50565b6000813590506132d9816132b3565b92915050565b600080604083850312156132f6576132f5612dbe565b5b600061330485828601613014565b9250506020613315858286016132ca565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61335c82612ed2565b810181811067ffffffffffffffff8211171561337b5761337a613324565b5b80604052505050565b600061338e612db4565b905061339a8282613353565b919050565b600067ffffffffffffffff8211156133ba576133b9613324565b5b6133c382612ed2565b9050602081019050919050565b82818337600083830152505050565b60006133f26133ed8461339f565b613384565b90508281526020810184848401111561340e5761340d61331f565b5b6134198482856133d0565b509392505050565b600082601f830112613436576134356131b9565b5b81356134468482602086016133df565b91505092915050565b6000806000806080858703121561346957613468612dbe565b5b600061347787828801613014565b945050602061348887828801613014565b935050604061349987828801612f5f565b925050606085013567ffffffffffffffff8111156134ba576134b9612dc3565b5b6134c687828801613421565b91505092959194509250565b600060c082840312156134e8576134e7613168565b5b81905092915050565b60006020828403121561350757613506612dbe565b5b600082013567ffffffffffffffff81111561352557613524612dc3565b5b613531848285016134d2565b91505092915050565b6000806040838503121561355157613550612dbe565b5b600061355f85828601613014565b925050602061357085828601613014565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806135c157607f821691505b602082108114156135d5576135d461357a565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613637602183612e8e565b9150613642826135db565b604082019050919050565b600060208201905081810360008301526136668161362a565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b60006136c9603d83612e8e565b91506136d48261366d565b604082019050919050565b600060208201905081810360008301526136f8816136bc565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061375b602d83612e8e565b9150613766826136ff565b604082019050919050565b6000602082019050818103600083015261378a8161374e565b9050919050565b7f4b6e6f77426f783a20696e76616c696420746f6b656e20494400000000000000600082015250565b60006137c7601983612e8e565b91506137d282613791565b602082019050919050565b600060208201905081810360008301526137f6816137ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061383782612f3e565b915061384283612f3e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561387b5761387a6137fd565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006138c082612f3e565b91506138cb83612f3e565b9250826138db576138da613886565b5b828204905092915050565b7f4b6e6f77426f783a5468697320746f6b656e20646f6573206e6f742062656c6f60008201527f6e6720746f20796f750000000000000000000000000000000000000000000000602082015250565b6000613942602983612e8e565b915061394d826138e6565b604082019050919050565b6000602082019050818103600083015261397181613935565b9050919050565b7f4b6e6f77426f783a426f7820697320616c7265616479206f70656e6400000000600082015250565b60006139ae601c83612e8e565b91506139b982613978565b602082019050919050565b600060208201905081810360008301526139dd816139a1565b9050919050565b7f4b6e6f77426f783a426f78206973206e6f74206f6e2074696d65207965740000600082015250565b6000613a1a601e83612e8e565b9150613a25826139e4565b602082019050919050565b60006020820190508181036000830152613a4981613a0d565b9050919050565b7f4b6e6f77426f783a56616c6964617465205369676e204572726f720000000000600082015250565b6000613a86601b83612e8e565b9150613a9182613a50565b602082019050919050565b60006020820190508181036000830152613ab581613a79565b9050919050565b6000606082019050613ad16000830186612fd3565b613ade60208301856130fc565b613aeb60408301846130fc565b949350505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613b29601883612e8e565b9150613b3482613af3565b602082019050919050565b60006020820190508181036000830152613b5881613b1c565b9050919050565b7f4b6e6f77426f783a20626173655552492068617320696e697465640000000000600082015250565b6000613b95601b83612e8e565b9150613ba082613b5f565b602082019050919050565b60006020820190508181036000830152613bc481613b88565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613c27602983612e8e565b9150613c3282613bcb565b604082019050919050565b60006020820190508181036000830152613c5681613c1a565b9050919050565b7f4b6e6f77426f783a4e6f7420616c6c6f7720436f6e7472616374000000000000600082015250565b6000613c93601a83612e8e565b9150613c9e82613c5d565b602082019050919050565b60006020820190508181036000830152613cc281613c86565b9050919050565b7f4b6e6f77426f783a56616c6964617465206d696e746572204572726f72000000600082015250565b6000613cff601d83612e8e565b9150613d0a82613cc9565b602082019050919050565b60006020820190508181036000830152613d2e81613cf2565b9050919050565b6000613d4082612f3e565b9150613d4b83612f3e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d8057613d7f6137fd565b5b828201905092915050565b7f4b6e6f77426f783a6d696e7420776f756c6420657863656564206d617820626160008201527f6c616e6365000000000000000000000000000000000000000000000000000000602082015250565b6000613de7602583612e8e565b9150613df282613d8b565b604082019050919050565b60006020820190508181036000830152613e1681613dda565b9050919050565b7f4b6e6f77426f783a6d696e7420776f756c6420657863656564206d617820737560008201527f70706c7900000000000000000000000000000000000000000000000000000000602082015250565b6000613e79602483612e8e565b9150613e8482613e1d565b604082019050919050565b60006020820190508181036000830152613ea881613e6c565b9050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112613edb57613eda613eaf565b5b80840192508235915067ffffffffffffffff821115613efd57613efc613eb4565b5b602083019250600182023603831315613f1957613f18613eb9565b5b509250929050565b600081905092915050565b6000613f388385613f21565b9350613f458385846133d0565b82840190509392505050565b6000613f5e828486613f2c565b91508190509392505050565b7f4b6e6f77426f783a63646b657920697320616c72656164792075736564000000600082015250565b6000613fa0601d83612e8e565b9150613fab82613f6a565b602082019050919050565b60006020820190508181036000830152613fcf81613f93565b9050919050565b6000613fe182612f3e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614014576140136137fd565b5b600182019050919050565b600061402b8385612e8e565b93506140388385846133d0565b61404183612ed2565b840190509392505050565b60006060820190506140616000830187612fd3565b61406e60208301866130fc565b818103604083015261408181848661401f565b905095945050505050565b7f697066733a2f2f00000000000000000000000000000000000000000000000000600082015250565b60006140c2600783613f21565b91506140cd8261408c565b600782019050919050565b60006140e382612e83565b6140ed8185613f21565b93506140fd818560208601612e9f565b80840191505092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b600061413f600183613f21565b915061414a82614109565b600182019050919050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061418b600583613f21565b915061419682614155565b600582019050919050565b60006141ac826140b5565b91506141b882856140d8565b91506141c382614132565b91506141cf82846140d8565b91506141da8261417e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614242602683612e8e565b915061424d826141e6565b604082019050919050565b6000602082019050818103600083015261427181614235565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006142d4602583612e8e565b91506142df82614278565b604082019050919050565b60006020820190508181036000830152614303816142c7565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614366602483612e8e565b91506143718261430a565b604082019050919050565b6000602082019050818103600083015261439581614359565b9050919050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006143d2600283613f21565b91506143dd8261439c565b600282019050919050565b6000819050919050565b6144036143fe82613134565b6143e8565b82525050565b6000614414826143c5565b915061442082856143f2565b60208201915061443082846143f2565b6020820191508190509392505050565b600060ff82169050919050565b61445681614440565b811461446157600080fd5b50565b6000813590506144738161444d565b92915050565b60006020828403121561448f5761448e612dbe565b5b600061449d84828501614464565b91505092915050565b7f5175616e746974792075736564206f7574000000000000000000000000000000600082015250565b60006144dc601183612e8e565b91506144e7826144a6565b602082019050919050565b6000602082019050818103600083015261450b816144cf565b9050919050565b6000819050919050565b61452d61452882612f3e565b614512565b82525050565b600061453f828861451c565b60208201915061454f828761451c565b60208201915061455f828661451c565b60208201915061456f828561451c565b60208201915061457f828461451c565b6020820191508190509695505050505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145c8602083612e8e565b91506145d382614592565b602082019050919050565b600060208201905081810360008301526145f7816145bb565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614634601983612e8e565b915061463f826145fe565b602082019050919050565b6000602082019050818103600083015261466381614627565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006146c6603283612e8e565b91506146d18261466a565b604082019050919050565b600060208201905081810360008301526146f5816146b9565b9050919050565b600061470782612f3e565b915061471283612f3e565b925082821015614725576147246137fd565b5b828203905092915050565b6000606082019050614745600083018661313e565b61475260208301856130fc565b61475f60408301846130fc565b949350505050565b7f5369676e61747572653a20496e76616c6964207320706172616d657465720000600082015250565b600061479d601e83612e8e565b91506147a882614767565b602082019050919050565b600060208201905081810360008301526147cc81614790565b9050919050565b7f5369676e61747572653a20496e76616c6964207620706172616d657465720000600082015250565b6000614809601e83612e8e565b9150614814826147d3565b602082019050919050565b60006020820190508181036000830152614838816147fc565b9050919050565b61484881614440565b82525050565b6000608082019050614863600083018761313e565b614870602083018661483f565b61487d604083018561313e565b61488a606083018461313e565b95945050505050565b7f5369676e61747572653a20496e76616c6964207369676e657200000000000000600082015250565b60006148c9601983612e8e565b91506148d482614893565b602082019050919050565b600060208201905081810360008301526148f8816148bc565b9050919050565b600061490a82612f3e565b915061491583612f3e565b92508261492557614924613886565b5b828206905092915050565b600061493b82612f3e565b9150600082141561494f5761494e6137fd565b5b600182039050919050565b600081519050919050565b600082825260208201905092915050565b60006149818261495a565b61498b8185614965565b935061499b818560208601612e9f565b6149a481612ed2565b840191505092915050565b60006080820190506149c46000830187612fd3565b6149d16020830186612fd3565b6149de60408301856130fc565b81810360608301526149f08184614976565b905095945050505050565b600081519050614a0a81612df4565b92915050565b600060208284031215614a2657614a25612dbe565b5b6000614a34848285016149fb565b91505092915050565b600081905092915050565b6000614a548385614a3d565b9350614a618385846133d0565b82840190509392505050565b6000614a7a828486614a48565b91508190509392505050565b6000608082019050614a9b600083018761313e565b614aa86020830186612fd3565b614ab560408301856130fc565b614ac2606083018461313e565b95945050505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614b01602083612e8e565b9150614b0c82614acb565b602082019050919050565b60006020820190508181036000830152614b3081614af4565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614b6d601c83612e8e565b9150614b7882614b37565b602082019050919050565b60006020820190508181036000830152614b9c81614b60565b905091905056fea26469706673582212200d9539dcd4e0d90cf27321168a86ad7e2e6ca004a342b692e6f3046cec0a0dc164736f6c634300080a003368747470733a2f2f736b792e696e667572612d697066732e696f2f697066732f516d5a5a6b6f5176655a7332714b786e79336a573279343236735337415074576e6e5339535967326f726f4b3354000000000000000000000000c7d3838440b7ce8f444cb867dc8d39eda8b905e700000000000000000000000000000000000000000000000000000000000001f4
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c806370a08231116100de578063a92436dd11610097578063c87b56dd11610071578063c87b56dd14610433578063d574a6e514610463578063e985e9c514610481578063f2fde38b146104b157610173565b8063a92436dd146103df578063b88d4fde146103fb578063c17fa7a11461041757610173565b806370a0823114610331578063715018a6146103615780638da5cb5b1461036b57806395d89b41146103895780639d51d9b7146103a7578063a22cb465146103c357610173565b80632a55205a116101305780632a55205a1461025e5780633644e5151461028f57806342842e0e146102ad5780634c6cdfde146102c95780636352211e146102e55780636a100b2f1461031557610173565b806301ffc9a71461017857806306fdde03146101a8578063081812fc146101c6578063095ea7b3146101f657806323b872dd1461021257806323d8d3e41461022e575b600080fd5b610192600480360381019061018d9190612e20565b6104cd565b60405161019f9190612e68565b60405180910390f35b6101b06104df565b6040516101bd9190612f1c565b60405180910390f35b6101e060048036038101906101db9190612f74565b610571565b6040516101ed9190612fe2565b60405180910390f35b610210600480360381019061020b9190613029565b6105b7565b005b61022c60048036038101906102279190613069565b6106cf565b005b61024860048036038101906102439190612f74565b61072f565b6040516102559190612e68565b60405180910390f35b610278600480360381019061027391906130bc565b6107a4565b60405161028692919061310b565b60405180910390f35b61029761098f565b6040516102a4919061314d565b60405180910390f35b6102c760048036038101906102c29190613069565b6109b3565b005b6102e360048036038101906102de919061318c565b6109d3565b005b6102ff60048036038101906102fa9190612f74565b610c6d565b60405161030c9190612fe2565b60405180910390f35b61032f600480360381019061032a919061321e565b610cf4565b005b61034b6004803603810190610346919061326b565b610d7d565b6040516103589190613298565b60405180910390f35b610369610e35565b005b610373610e49565b6040516103809190612fe2565b60405180910390f35b610391610e73565b60405161039e9190612f1c565b60405180910390f35b6103c160048036038101906103bc9190612f74565b610f05565b005b6103dd60048036038101906103d891906132df565b610f17565b005b6103f960048036038101906103f49190612f74565b610f2d565b005b6104156004803603810190610410919061344f565b610f3f565b005b610431600480360381019061042c91906134f1565b610fa1565b005b61044d60048036038101906104489190612f74565b611327565b60405161045a9190612f1c565b60405180910390f35b61046b611424565b6040516104789190612f1c565b60405180910390f35b61049b6004803603810190610496919061353a565b6114b2565b6040516104a89190612e68565b60405180910390f35b6104cb60048036038101906104c6919061326b565b611546565b005b60006104d8826115ca565b9050919050565b6060600280546104ee906135a9565b80601f016020809104026020016040519081016040528092919081815260200182805461051a906135a9565b80156105675780601f1061053c57610100808354040283529160200191610567565b820191906000526020600020905b81548152906001019060200180831161054a57829003601f168201915b5050505050905090565b600061057c826116ac565b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006105c282610c6d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062a9061364d565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166106526116f7565b73ffffffffffffffffffffffffffffffffffffffff16148061068157506106808161067b6116f7565b6114b2565b5b6106c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106b7906136df565b60405180910390fd5b6106ca83836116ff565b505050565b6106e06106da6116f7565b826117b8565b61071f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071690613771565b60405180910390fd5b61072a83838361184d565b505050565b600061073a82611b47565b610779576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610770906137dd565b60405180910390fd5b6011600083815260200190815260200160002060000160009054906101000a900460ff169050919050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16141561093a5760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610944611b88565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610970919061382c565b61097a91906138b5565b90508160000151819350935050509250929050565b7f69301dfbc0ecedc77647fde27cb83815419758f16ea8152ed3e42affbaed0dcd81565b6109ce83838360405180602001604052806000815250610f3f565b505050565b6109e08160000135611b47565b610a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a16906137dd565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16610a438260000135610c6d565b73ffffffffffffffffffffffffffffffffffffffff1614610a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9090613958565b60405180910390fd5b601160008260000135815260200190815260200160002060000160009054906101000a900460ff1615610b01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af8906139c4565b60405180910390fd5b426011600083600001358152602001908152602001600020600201541115610b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5590613a30565b60405180910390fd5b610b88817f69301dfbc0ecedc77647fde27cb83815419758f16ea8152ed3e42affbaed0dcd611b92565b610bc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bbe90613a9c565b60405180910390fd5b6000610bd68260200135611c39565b90506001601160008460000135815260200190815260200160002060000160006101000a81548160ff021916908315150217905550806011600084600001358152602001908152602001600020600101819055507f018b9b2ab335654843bad5e4f2c18e46ca1465bb2c317cfa2f8226b2dc5efb2133836000013583604051610c6193929190613abc565b60405180910390a15050565b600080610c7983611cd6565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce290613b3f565b60405180910390fd5b80915050919050565b610cfc611d13565b600c60009054906101000a900460ff1615610d4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4390613bab565b60405180910390fd5b818160139190610d5d929190612d11565b506001600c60006101000a81548160ff0219169083151502179055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610dee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610de590613c3d565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b610e3d611d13565b610e476000611d91565b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054610e82906135a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610eae906135a9565b8015610efb5780601f10610ed057610100808354040283529160200191610efb565b820191906000526020600020905b815481529060010190602001808311610ede57829003601f168201915b5050505050905090565b610f0d611d13565b80600e8190555050565b610f29610f226116f7565b8383611e57565b5050565b610f35611d13565b8060108190555050565b610f50610f4a6116f7565b836117b8565b610f8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f8690613771565b60405180910390fd5b610f9b84848484611fc4565b50505050565b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461100f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161100690613ca9565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16816000016020810190611039919061326b565b73ffffffffffffffffffffffffffffffffffffffff161461108f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108690613d15565b60405180910390fd5b6110b9817f69301dfbc0ecedc77647fde27cb83815419758f16ea8152ed3e42affbaed0dcd612020565b6110f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ef90613a9c565b60405180910390fd5b600e54600161110633610d7d565b6111109190613d35565b1115611151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114890613dfd565b60405180910390fd5b600d54600f5410611197576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118e90613e8f565b60405180910390fd5b60128180604001906111a99190613ebe565b6040516111b7929190613f51565b908152602001604051809103902060009054906101000a900460ff1615611213576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120a90613fb6565b60405180910390fd5b6000600f54905061122433826120c7565b600060116000838152602001908152602001600020905060008160000160006101000a81548160ff02191690831515021790555060008160010181905550601054426112709190613d35565b81600201819055506001601284806040019061128c9190613ebe565b60405161129a929190613f51565b908152602001604051809103902060006101000a81548160ff021916908315150217905550600f60008154809291906112d290613fd6565b91905055507fcba032457488d2c5d64b3abfb436b048c57feecda1784764d994e766b1b9d270338385806040019061130a9190613ebe565b60405161131a949392919061404c565b60405180910390a1505050565b60606113328261072f565b156113915760006113416120e5565b905060006113646011600086815260200190815260200160002060010154612177565b905081816040516020016113799291906141a1565b6040516020818303038152906040529250505061141f565b6014805461139e906135a9565b80601f01602080910402602001604051908101604052809291908181526020018280546113ca906135a9565b80156114175780601f106113ec57610100808354040283529160200191611417565b820191906000526020600020905b8154815290600101906020018083116113fa57829003601f168201915b505050505090505b919050565b60148054611431906135a9565b80601f016020809104026020016040519081016040528092919081815260200182805461145d906135a9565b80156114aa5780601f1061147f576101008083540402835291602001916114aa565b820191906000526020600020905b81548152906001019060200180831161148d57829003601f168201915b505050505081565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61154e611d13565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156115be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b590614258565b60405180910390fd5b6115c781611d91565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061169557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806116a557506116a48261224f565b5b9050919050565b6116b581611b47565b6116f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116eb90613b3f565b60405180910390fd5b50565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661177283610c6d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806117c483610c6d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611806575061180581856114b2565b5b8061184457508373ffffffffffffffffffffffffffffffffffffffff1661182c84610571565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661186d82610c6d565b73ffffffffffffffffffffffffffffffffffffffff16146118c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118ba906142ea565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611933576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192a9061437c565b60405180910390fd5b61194083838360016122c9565b8273ffffffffffffffffffffffffffffffffffffffff1661196082610c6d565b73ffffffffffffffffffffffffffffffffffffffff16146119b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119ad906142ea565b60405180910390fd5b6006600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611b4283838360016123ef565b505050565b60008073ffffffffffffffffffffffffffffffffffffffff16611b6983611cd6565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6000612710905090565b60008082611b9f856123f5565b604051602001611bb0929190614409565b604051602081830303815290604052805190602001209050739add88207ac0db396d6050716badb7ec6c96ba3373ffffffffffffffffffffffffffffffffffffffff16611c1982866040016020810190611c0a9190614479565b87606001358860800135612454565b73ffffffffffffffffffffffffffffffffffffffff161491505092915050565b6000600954600a5410611c81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c78906144f2565b60405180910390fd5b600042444385600a54604051602001611c9e959493929190614533565b6040516020818303038152906040528051906020012060001c90506001611cc4826125df565b611cce9190613d35565b915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611d1b6116f7565b73ffffffffffffffffffffffffffffffffffffffff16611d39610e49565b73ffffffffffffffffffffffffffffffffffffffff1614611d8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d86906145de565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611ec6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ebd9061464a565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611fb79190612e68565b60405180910390a3505050565b611fcf84848461184d565b611fdb8484848461269c565b61201a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612011906146dc565b60405180910390fd5b50505050565b6000808261202d85612824565b60405160200161203e929190614409565b604051602081830303815290604052805190602001209050739add88207ac0db396d6050716badb7ec6c96ba3373ffffffffffffffffffffffffffffffffffffffff166120a7828660600160208101906120989190614479565b87608001358860a00135612454565b73ffffffffffffffffffffffffffffffffffffffff161491505092915050565b6120e18282604051806020016040528060008152506128b8565b5050565b6060601380546120f4906135a9565b80601f0160208091040260200160405190810160405280929190818152602001828054612120906135a9565b801561216d5780601f106121425761010080835404028352916020019161216d565b820191906000526020600020905b81548152906001019060200180831161215057829003601f168201915b5050505050905090565b60606000600161218684612913565b01905060008167ffffffffffffffff8111156121a5576121a4613324565b5b6040519080825280601f01601f1916602001820160405280156121d75781602001600182028036833780820191505090505b509050600082602001820190505b600115612244578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161222e5761222d613886565b5b049450600085141561223f57612244565b6121e5565b819350505050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122c257506122c182612a66565b5b9050919050565b60018111156123e957600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461235d5780600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461235591906146fc565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146123e85780600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123e09190613d35565b925050819055505b5b50505050565b50505050565b60007f407e394ce1be01de81e6dae9c411116d2aba76150bb021cb4e97216cc7ef30d660001b8260000135836020013560405160200161243793929190614730565b604051602081830303815290604052805190602001209050919050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08260001c11156124bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b3906147b3565b60405180910390fd5b601b8460ff1614806124d15750601c8460ff16145b612510576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125079061481f565b60405180910390fd5b600060018686868660405160008152602001604052604051612535949392919061484e565b6020604051602081039080840390855afa158015612557573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156125d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ca906148df565b60405180910390fd5b80915050949350505050565b600080600a546009546125f291906146fc565b90506000818461260291906148ff565b90506000600b6000838152602001908152602001600020549050600080821161262b578261262d565b815b9050600b60008561263d90614930565b95508581526020019081526020016000205491506000821161265f5783612661565b815b600b600085815260200190815260200160002081905550600a600081548092919061268b90613fd6565b919050555080945050505050919050565b60006126bd8473ffffffffffffffffffffffffffffffffffffffff16612ad0565b15612817578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026126e66116f7565b8786866040518563ffffffff1660e01b815260040161270894939291906149af565b6020604051808303816000875af192505050801561274457506040513d601f19601f820116820180604052508101906127419190614a10565b60015b6127c7573d8060008114612774576040519150601f19603f3d011682016040523d82523d6000602084013e612779565b606091505b506000815114156127bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b6906146dc565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061281c565b600190505b949350505050565b60007f5bf9043e1eaa47b5c26a6a6eef0b4f9f128379e0b6c47e5e98b66123e7c0164e60001b82600001602081019061285d919061326b565b83602001358480604001906128729190613ebe565b604051612880929190614a6d565b604051809103902060405160200161289b9493929190614a86565b604051602081830303815290604052805190602001209050919050565b6128c28383612af3565b6128cf600084848461269c565b61290e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612905906146dc565b60405180910390fd5b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612971577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161296757612966613886565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106129ae576d04ee2d6d415b85acef810000000083816129a4576129a3613886565b5b0492506020810190505b662386f26fc1000083106129dd57662386f26fc1000083816129d3576129d2613886565b5b0492506010810190505b6305f5e1008310612a06576305f5e10083816129fc576129fb613886565b5b0492506008810190505b6127108310612a2b576127108381612a2157612a20613886565b5b0492506004810190505b60648310612a4e5760648381612a4457612a43613886565b5b0492506002810190505b600a8310612a5d576001810190505b80915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612b63576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b5a90614b17565b60405180910390fd5b612b6c81611b47565b15612bac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba390614b83565b60405180910390fd5b612bba6000838360016122c9565b612bc381611b47565b15612c03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfa90614b83565b60405180910390fd5b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d0d6000838360016123ef565b5050565b828054612d1d906135a9565b90600052602060002090601f016020900481019282612d3f5760008555612d86565b82601f10612d5857803560ff1916838001178555612d86565b82800160010185558215612d86579182015b82811115612d85578235825591602001919060010190612d6a565b5b509050612d939190612d97565b5090565b5b80821115612db0576000816000905550600101612d98565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612dfd81612dc8565b8114612e0857600080fd5b50565b600081359050612e1a81612df4565b92915050565b600060208284031215612e3657612e35612dbe565b5b6000612e4484828501612e0b565b91505092915050565b60008115159050919050565b612e6281612e4d565b82525050565b6000602082019050612e7d6000830184612e59565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612ebd578082015181840152602081019050612ea2565b83811115612ecc576000848401525b50505050565b6000601f19601f8301169050919050565b6000612eee82612e83565b612ef88185612e8e565b9350612f08818560208601612e9f565b612f1181612ed2565b840191505092915050565b60006020820190508181036000830152612f368184612ee3565b905092915050565b6000819050919050565b612f5181612f3e565b8114612f5c57600080fd5b50565b600081359050612f6e81612f48565b92915050565b600060208284031215612f8a57612f89612dbe565b5b6000612f9884828501612f5f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000612fcc82612fa1565b9050919050565b612fdc81612fc1565b82525050565b6000602082019050612ff76000830184612fd3565b92915050565b61300681612fc1565b811461301157600080fd5b50565b60008135905061302381612ffd565b92915050565b600080604083850312156130405761303f612dbe565b5b600061304e85828601613014565b925050602061305f85828601612f5f565b9150509250929050565b60008060006060848603121561308257613081612dbe565b5b600061309086828701613014565b93505060206130a186828701613014565b92505060406130b286828701612f5f565b9150509250925092565b600080604083850312156130d3576130d2612dbe565b5b60006130e185828601612f5f565b92505060206130f285828601612f5f565b9150509250929050565b61310581612f3e565b82525050565b60006040820190506131206000830185612fd3565b61312d60208301846130fc565b9392505050565b6000819050919050565b61314781613134565b82525050565b6000602082019050613162600083018461313e565b92915050565b600080fd5b600060a0828403121561318357613182613168565b5b81905092915050565b600060a082840312156131a2576131a1612dbe565b5b60006131b08482850161316d565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126131de576131dd6131b9565b5b8235905067ffffffffffffffff8111156131fb576131fa6131be565b5b602083019150836001820283011115613217576132166131c3565b5b9250929050565b6000806020838503121561323557613234612dbe565b5b600083013567ffffffffffffffff81111561325357613252612dc3565b5b61325f858286016131c8565b92509250509250929050565b60006020828403121561328157613280612dbe565b5b600061328f84828501613014565b91505092915050565b60006020820190506132ad60008301846130fc565b92915050565b6132bc81612e4d565b81146132c757600080fd5b50565b6000813590506132d9816132b3565b92915050565b600080604083850312156132f6576132f5612dbe565b5b600061330485828601613014565b9250506020613315858286016132ca565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61335c82612ed2565b810181811067ffffffffffffffff8211171561337b5761337a613324565b5b80604052505050565b600061338e612db4565b905061339a8282613353565b919050565b600067ffffffffffffffff8211156133ba576133b9613324565b5b6133c382612ed2565b9050602081019050919050565b82818337600083830152505050565b60006133f26133ed8461339f565b613384565b90508281526020810184848401111561340e5761340d61331f565b5b6134198482856133d0565b509392505050565b600082601f830112613436576134356131b9565b5b81356134468482602086016133df565b91505092915050565b6000806000806080858703121561346957613468612dbe565b5b600061347787828801613014565b945050602061348887828801613014565b935050604061349987828801612f5f565b925050606085013567ffffffffffffffff8111156134ba576134b9612dc3565b5b6134c687828801613421565b91505092959194509250565b600060c082840312156134e8576134e7613168565b5b81905092915050565b60006020828403121561350757613506612dbe565b5b600082013567ffffffffffffffff81111561352557613524612dc3565b5b613531848285016134d2565b91505092915050565b6000806040838503121561355157613550612dbe565b5b600061355f85828601613014565b925050602061357085828601613014565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806135c157607f821691505b602082108114156135d5576135d461357a565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613637602183612e8e565b9150613642826135db565b604082019050919050565b600060208201905081810360008301526136668161362a565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b60006136c9603d83612e8e565b91506136d48261366d565b604082019050919050565b600060208201905081810360008301526136f8816136bc565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061375b602d83612e8e565b9150613766826136ff565b604082019050919050565b6000602082019050818103600083015261378a8161374e565b9050919050565b7f4b6e6f77426f783a20696e76616c696420746f6b656e20494400000000000000600082015250565b60006137c7601983612e8e565b91506137d282613791565b602082019050919050565b600060208201905081810360008301526137f6816137ba565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061383782612f3e565b915061384283612f3e565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561387b5761387a6137fd565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006138c082612f3e565b91506138cb83612f3e565b9250826138db576138da613886565b5b828204905092915050565b7f4b6e6f77426f783a5468697320746f6b656e20646f6573206e6f742062656c6f60008201527f6e6720746f20796f750000000000000000000000000000000000000000000000602082015250565b6000613942602983612e8e565b915061394d826138e6565b604082019050919050565b6000602082019050818103600083015261397181613935565b9050919050565b7f4b6e6f77426f783a426f7820697320616c7265616479206f70656e6400000000600082015250565b60006139ae601c83612e8e565b91506139b982613978565b602082019050919050565b600060208201905081810360008301526139dd816139a1565b9050919050565b7f4b6e6f77426f783a426f78206973206e6f74206f6e2074696d65207965740000600082015250565b6000613a1a601e83612e8e565b9150613a25826139e4565b602082019050919050565b60006020820190508181036000830152613a4981613a0d565b9050919050565b7f4b6e6f77426f783a56616c6964617465205369676e204572726f720000000000600082015250565b6000613a86601b83612e8e565b9150613a9182613a50565b602082019050919050565b60006020820190508181036000830152613ab581613a79565b9050919050565b6000606082019050613ad16000830186612fd3565b613ade60208301856130fc565b613aeb60408301846130fc565b949350505050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b6000613b29601883612e8e565b9150613b3482613af3565b602082019050919050565b60006020820190508181036000830152613b5881613b1c565b9050919050565b7f4b6e6f77426f783a20626173655552492068617320696e697465640000000000600082015250565b6000613b95601b83612e8e565b9150613ba082613b5f565b602082019050919050565b60006020820190508181036000830152613bc481613b88565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000613c27602983612e8e565b9150613c3282613bcb565b604082019050919050565b60006020820190508181036000830152613c5681613c1a565b9050919050565b7f4b6e6f77426f783a4e6f7420616c6c6f7720436f6e7472616374000000000000600082015250565b6000613c93601a83612e8e565b9150613c9e82613c5d565b602082019050919050565b60006020820190508181036000830152613cc281613c86565b9050919050565b7f4b6e6f77426f783a56616c6964617465206d696e746572204572726f72000000600082015250565b6000613cff601d83612e8e565b9150613d0a82613cc9565b602082019050919050565b60006020820190508181036000830152613d2e81613cf2565b9050919050565b6000613d4082612f3e565b9150613d4b83612f3e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d8057613d7f6137fd565b5b828201905092915050565b7f4b6e6f77426f783a6d696e7420776f756c6420657863656564206d617820626160008201527f6c616e6365000000000000000000000000000000000000000000000000000000602082015250565b6000613de7602583612e8e565b9150613df282613d8b565b604082019050919050565b60006020820190508181036000830152613e1681613dda565b9050919050565b7f4b6e6f77426f783a6d696e7420776f756c6420657863656564206d617820737560008201527f70706c7900000000000000000000000000000000000000000000000000000000602082015250565b6000613e79602483612e8e565b9150613e8482613e1d565b604082019050919050565b60006020820190508181036000830152613ea881613e6c565b9050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112613edb57613eda613eaf565b5b80840192508235915067ffffffffffffffff821115613efd57613efc613eb4565b5b602083019250600182023603831315613f1957613f18613eb9565b5b509250929050565b600081905092915050565b6000613f388385613f21565b9350613f458385846133d0565b82840190509392505050565b6000613f5e828486613f2c565b91508190509392505050565b7f4b6e6f77426f783a63646b657920697320616c72656164792075736564000000600082015250565b6000613fa0601d83612e8e565b9150613fab82613f6a565b602082019050919050565b60006020820190508181036000830152613fcf81613f93565b9050919050565b6000613fe182612f3e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614014576140136137fd565b5b600182019050919050565b600061402b8385612e8e565b93506140388385846133d0565b61404183612ed2565b840190509392505050565b60006060820190506140616000830187612fd3565b61406e60208301866130fc565b818103604083015261408181848661401f565b905095945050505050565b7f697066733a2f2f00000000000000000000000000000000000000000000000000600082015250565b60006140c2600783613f21565b91506140cd8261408c565b600782019050919050565b60006140e382612e83565b6140ed8185613f21565b93506140fd818560208601612e9f565b80840191505092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b600061413f600183613f21565b915061414a82614109565b600182019050919050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b600061418b600583613f21565b915061419682614155565b600582019050919050565b60006141ac826140b5565b91506141b882856140d8565b91506141c382614132565b91506141cf82846140d8565b91506141da8261417e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614242602683612e8e565b915061424d826141e6565b604082019050919050565b6000602082019050818103600083015261427181614235565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b60006142d4602583612e8e565b91506142df82614278565b604082019050919050565b60006020820190508181036000830152614303816142c7565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000614366602483612e8e565b91506143718261430a565b604082019050919050565b6000602082019050818103600083015261439581614359565b9050919050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b60006143d2600283613f21565b91506143dd8261439c565b600282019050919050565b6000819050919050565b6144036143fe82613134565b6143e8565b82525050565b6000614414826143c5565b915061442082856143f2565b60208201915061443082846143f2565b6020820191508190509392505050565b600060ff82169050919050565b61445681614440565b811461446157600080fd5b50565b6000813590506144738161444d565b92915050565b60006020828403121561448f5761448e612dbe565b5b600061449d84828501614464565b91505092915050565b7f5175616e746974792075736564206f7574000000000000000000000000000000600082015250565b60006144dc601183612e8e565b91506144e7826144a6565b602082019050919050565b6000602082019050818103600083015261450b816144cf565b9050919050565b6000819050919050565b61452d61452882612f3e565b614512565b82525050565b600061453f828861451c565b60208201915061454f828761451c565b60208201915061455f828661451c565b60208201915061456f828561451c565b60208201915061457f828461451c565b6020820191508190509695505050505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006145c8602083612e8e565b91506145d382614592565b602082019050919050565b600060208201905081810360008301526145f7816145bb565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614634601983612e8e565b915061463f826145fe565b602082019050919050565b6000602082019050818103600083015261466381614627565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006146c6603283612e8e565b91506146d18261466a565b604082019050919050565b600060208201905081810360008301526146f5816146b9565b9050919050565b600061470782612f3e565b915061471283612f3e565b925082821015614725576147246137fd565b5b828203905092915050565b6000606082019050614745600083018661313e565b61475260208301856130fc565b61475f60408301846130fc565b949350505050565b7f5369676e61747572653a20496e76616c6964207320706172616d657465720000600082015250565b600061479d601e83612e8e565b91506147a882614767565b602082019050919050565b600060208201905081810360008301526147cc81614790565b9050919050565b7f5369676e61747572653a20496e76616c6964207620706172616d657465720000600082015250565b6000614809601e83612e8e565b9150614814826147d3565b602082019050919050565b60006020820190508181036000830152614838816147fc565b9050919050565b61484881614440565b82525050565b6000608082019050614863600083018761313e565b614870602083018661483f565b61487d604083018561313e565b61488a606083018461313e565b95945050505050565b7f5369676e61747572653a20496e76616c6964207369676e657200000000000000600082015250565b60006148c9601983612e8e565b91506148d482614893565b602082019050919050565b600060208201905081810360008301526148f8816148bc565b9050919050565b600061490a82612f3e565b915061491583612f3e565b92508261492557614924613886565b5b828206905092915050565b600061493b82612f3e565b9150600082141561494f5761494e6137fd565b5b600182039050919050565b600081519050919050565b600082825260208201905092915050565b60006149818261495a565b61498b8185614965565b935061499b818560208601612e9f565b6149a481612ed2565b840191505092915050565b60006080820190506149c46000830187612fd3565b6149d16020830186612fd3565b6149de60408301856130fc565b81810360608301526149f08184614976565b905095945050505050565b600081519050614a0a81612df4565b92915050565b600060208284031215614a2657614a25612dbe565b5b6000614a34848285016149fb565b91505092915050565b600081905092915050565b6000614a548385614a3d565b9350614a618385846133d0565b82840190509392505050565b6000614a7a828486614a48565b91508190509392505050565b6000608082019050614a9b600083018761313e565b614aa86020830186612fd3565b614ab560408301856130fc565b614ac2606083018461313e565b95945050505050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000614b01602083612e8e565b9150614b0c82614acb565b602082019050919050565b60006020820190508181036000830152614b3081614af4565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614b6d601c83612e8e565b9150614b7882614b37565b602082019050919050565b60006020820190508181036000830152614b9c81614b60565b905091905056fea26469706673582212200d9539dcd4e0d90cf27321168a86ad7e2e6ca004a342b692e6f3046cec0a0dc164736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c7d3838440b7ce8f444cb867dc8d39eda8b905e700000000000000000000000000000000000000000000000000000000000001f4
-----Decoded View---------------
Arg [0] : _royaltyReceiver (address): 0xC7d3838440B7cE8F444Cb867Dc8d39eDa8b905e7
Arg [1] : royalty (uint96): 500
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c7d3838440b7ce8f444cb867dc8d39eda8b905e7
Arg [1] : 00000000000000000000000000000000000000000000000000000000000001f4
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.