ERC-721
NFT
Overview
Max Total Supply
1,100 KOLLEKTIVE
Holders
260
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 KOLLEKTIVELoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Kollektive
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; error blockedAddress(); contract Kollektive is ERC721, ERC721Enumerable, ERC721URIStorage, ERC721Burnable, ERC2981, Pausable, Ownable, ReentrancyGuard { using Strings for uint256; string public constant NAME = "KOLLEKTIVE"; string public constant SYMBOL = "KOLLEKTIVE"; string private _baseTokenURI; address private _daoContract; address private _rkContract; uint256 private _currentTokenId = 0; // restrictions toggle bool private _marketplaceProtection; bool private _transferProtection; bool public _membersOnly; uint256 public constant MAX_SUPPLY = 3120; uint256 public constant MINT_PRICE = 0.06 ether; uint256 public constant MAX_PER_TXN = 10; mapping(address => bool) private _approvedMarketplaces; mapping(address => bool) private _blockedTransfers; event Mint(address indexed _to, uint256 _tokenId); constructor( string memory _uri, address _rk, address _kitty, address _royalty ) ERC721(NAME, SYMBOL) { _setDefaultRoyalty(_royalty, 1000); _baseTokenURI = _uri; _daoContract = _kitty; _rkContract = _rk; // satisfy the OS dictatorship _marketplaceProtection = false; _transferProtection = true; // toggle private mint to members _membersOnly = true; _pause(); } function pause() public payable onlyOwner { _pause(); } function unpause() public payable onlyOwner { _unpause(); } function mint(uint256 quantity) external payable nonReentrant whenNotPaused { require(totalSupply() + quantity <= MAX_SUPPLY, "Kollektive: reached max supply!"); require(quantity <= MAX_PER_TXN, "Kollektive: exceeds max per transaction"); require(msg.value >= MINT_PRICE * quantity, "Kollektive: insufficient ETH sent"); if (_membersOnly) { require(isMember(), "Kollektive: not a DAO nor RK member"); } for (uint256 i = 0; i < quantity; i++) { uint256 newTokenId = _currentTokenId; _safeMint(_msgSender(), newTokenId); _currentTokenId++; emit Mint(_msgSender(), newTokenId); } } function setTokenId(uint256 id) external payable onlyOwner { _currentTokenId = id; } function _beforeTokenTransfer( address from, address to, uint256 tokenId, uint256 batchSize ) internal override(ERC721, ERC721Enumerable) whenNotPaused { super._beforeTokenTransfer(from, to, tokenId, batchSize); } function _baseURI() internal view override returns (string memory) { return _baseTokenURI; } function setBaseURI(string memory _baseURIParam) external payable onlyOwner { _baseTokenURI = _baseURIParam; } function setDAOContract(address _kitty) external payable onlyOwner { _daoContract = _kitty; } function setRollKallContract(address _rk) external payable onlyOwner { _rkContract = _rk; } function isMember() public view returns (bool) { return isDAOMember() || isRollKallOwner(); } function isRollKallOwner() public view returns (bool) { // token ID always 0 uint256 tokenId = 0; return IERC1155(_rkContract).balanceOf(_msgSender(), tokenId) > 0; } function isDAOMember() public view returns (bool) { return IERC20(_daoContract).balanceOf(_msgSender()) > 0; } function setRoyaltyInfo(address receiver, uint96 feeBasisPoints) external payable onlyOwner { _setDefaultRoyalty(receiver, feeBasisPoints); } function transferFrom(address from, address to, uint256 tokenId) public virtual override(ERC721){ if(_transferProtection){ if(_blockedTransfers[from] || _blockedTransfers[to]) revert blockedAddress(); } super.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override(ERC721) { if(_transferProtection){ if(_blockedTransfers[from] || _blockedTransfers[to]) revert blockedAddress(); } super.safeTransferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override(ERC721){ if(_transferProtection){ if(_blockedTransfers[from] || _blockedTransfers[to]) revert blockedAddress(); } super.safeTransferFrom(from, to, tokenId, data); } function approve(address to, uint256 tokenId) public virtual override(ERC721) { if (_marketplaceProtection) { require(_approvedMarketplaces[to], "Kollektive: invalid Marketplace"); } super.approve(to, tokenId); } function setApprovalForAll(address operator, bool approved) public virtual override(ERC721) { if (_marketplaceProtection) { require(_approvedMarketplaces[operator], "Kollektive: invalid Marketplace"); } super.setApprovalForAll(operator, approved); } function setApprovedMarketplace(address market, bool approved) public payable onlyOwner { _approvedMarketplaces[market] = approved; } function setBlockedAddresses(address account, bool blocked) public payable onlyOwner { _blockedTransfers[account] = blocked; } function setMembershipSettings(bool memberProtect) external onlyOwner { _membersOnly = memberProtect; } function setProtectionSettingsTransfer(bool transferProtect) external payable onlyOwner { _transferProtection = transferProtect; } function setProtectionSettingsMarket(bool marketProtect) external payable onlyOwner { _marketplaceProtection = marketProtect; } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function vaultMint(address _to, uint256 _qty) external onlyOwner { require(totalSupply() + _qty <= MAX_SUPPLY, "Reached max supply!"); for (uint256 i = 0; i < _qty; i++) { uint256 newTokenId = _currentTokenId; _safeMint(_to, newTokenId); _currentTokenId++; emit Mint(_to, newTokenId); } } function withdraw() public onlyOwner nonReentrant { uint256 balance = address(this).balance; require(balance > 0, "No ETH to withdraw"); payable(owner()).transfer(balance); } function supportsInterface( bytes4 interfaceId ) public view override(ERC721, ERC721Enumerable, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// 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.7.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.2) (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 {} /** * @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 {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev See {ERC721-_beforeTokenTransfer}. */ function _beforeTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual override { super._beforeTokenTransfer(from, to, firstTokenId, batchSize); if (batchSize > 1) { // Will only trigger during construction. Batch transferring (minting) is not available afterwards. revert("ERC721Enumerable: consecutive transfers not supported"); } uint256 tokenId = firstTokenId; if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev See {ERC721-_burn}. This override additionally checks to see if a * token-specific URI was set for the token, and if so, it deletes the token URI from * the storage mapping. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_uri","type":"string"},{"internalType":"address","name":"_rk","type":"address"},{"internalType":"address","name":"_kitty","type":"address"},{"internalType":"address","name":"_royalty","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"blockedAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_PER_TXN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINT_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SYMBOL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_membersOnly","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isDAOMember","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isMember","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRollKallOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","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":"address","name":"market","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovedMarketplace","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURIParam","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"blocked","type":"bool"}],"name":"setBlockedAddresses","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_kitty","type":"address"}],"name":"setDAOContract","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bool","name":"memberProtect","type":"bool"}],"name":"setMembershipSettings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"marketProtect","type":"bool"}],"name":"setProtectionSettingsMarket","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bool","name":"transferProtect","type":"bool"}],"name":"setProtectionSettingsTransfer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_rk","type":"address"}],"name":"setRollKallContract","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeBasisPoints","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"setTokenId","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_qty","type":"uint256"}],"name":"vaultMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260006012553480156200001657600080fd5b50604051620062753803806200627583398181016040528101906200003c919062000848565b6040518060400160405280600a81526020017f4b4f4c4c454b54495645000000000000000000000000000000000000000000008152506040518060400160405280600a81526020017f4b4f4c4c454b54495645000000000000000000000000000000000000000000008152508160009080519060200190620000c092919062000596565b508060019080519060200190620000d992919062000596565b5050506000600d60006101000a81548160ff021916908315150217905550620001176200010b6200023960201b60201c565b6200024160201b60201c565b6001600e8190555062000133816103e86200030760201b60201c565b83600f90805190602001906200014b92919062000596565b5081601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000601360006101000a81548160ff0219169083151502179055506001601360016101000a81548160ff0219169083151502179055506001601360026101000a81548160ff0219169083151502179055506200022f620004ab60201b60201c565b5050505062000af9565b600033905090565b6000600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620003176200052060201b60201c565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff16111562000378576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200036f9062000960565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415620003eb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003e290620009d2565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600b60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b620004bb6200052a60201b60201c565b6001600d60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620005076200023960201b60201c565b60405162000516919062000a05565b60405180910390a1565b6000612710905090565b6200053a6200057f60201b60201c565b156200057d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005749062000a72565b60405180910390fd5b565b6000600d60009054906101000a900460ff16905090565b828054620005a49062000ac3565b90600052602060002090601f016020900481019282620005c8576000855562000614565b82601f10620005e357805160ff191683800117855562000614565b8280016001018555821562000614579182015b8281111562000613578251825591602001919060010190620005f6565b5b50905062000623919062000627565b5090565b5b808211156200064257600081600090555060010162000628565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620006af8262000664565b810181811067ffffffffffffffff82111715620006d157620006d062000675565b5b80604052505050565b6000620006e662000646565b9050620006f48282620006a4565b919050565b600067ffffffffffffffff82111562000717576200071662000675565b5b620007228262000664565b9050602081019050919050565b60005b838110156200074f57808201518184015260208101905062000732565b838111156200075f576000848401525b50505050565b60006200077c6200077684620006f9565b620006da565b9050828152602081018484840111156200079b576200079a6200065f565b5b620007a88482856200072f565b509392505050565b600082601f830112620007c857620007c76200065a565b5b8151620007da84826020860162000765565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200081082620007e3565b9050919050565b620008228162000803565b81146200082e57600080fd5b50565b600081519050620008428162000817565b92915050565b6000806000806080858703121562000865576200086462000650565b5b600085015167ffffffffffffffff81111562000886576200088562000655565b5b6200089487828801620007b0565b9450506020620008a78782880162000831565b9350506040620008ba8782880162000831565b9250506060620008cd8782880162000831565b91505092959194509250565b600082825260208201905092915050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b600062000948602a83620008d9565b91506200095582620008ea565b604082019050919050565b600060208201905081810360008301526200097b8162000939565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000620009ba601983620008d9565b9150620009c78262000982565b602082019050919050565b60006020820190508181036000830152620009ed81620009ab565b9050919050565b620009ff8162000803565b82525050565b600060208201905062000a1c6000830184620009f4565b92915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600062000a5a601083620008d9565b915062000a678262000a22565b602082019050919050565b6000602082019050818103600083015262000a8d8162000a4b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000adc57607f821691505b6020821081141562000af35762000af262000a94565b5b50919050565b61576c8062000b096000396000f3fe60806040526004361061027d5760003560e01c8063715018a61161014f578063c002d23d116100c1578063e985e9c51161007a578063e985e9c5146108cc578063ee82cb7314610909578063eed6809514610932578063f2fde38b1461094e578063f76f8d7814610977578063fa977c28146109a25761027d565b8063c002d23d146107d6578063c87b56dd14610801578063c929ccf31461083e578063cc3561d51461085a578063d02982cf14610876578063d3964b7d146108a15761027d565b8063a22cb46511610113578063a22cb465146106f8578063a3f4df7e14610721578063aa8c5c951461074c578063abe515d214610775578063b88d4fde14610791578063bbf46b84146107ba5761027d565b8063715018a6146106655780638456cb591461067c5780638da5cb5b1461068657806395d89b41146106b1578063a0712d68146106dc5761027d565b80633f4ba83a116101f357806355f804b3116101ac57806355f804b31461055d5780635c975abb146105795780635d0b11cd146105a457806362f9f841146105c05780636352211e146105eb57806370a08231146106285761027d565b80633f4ba83a1461047d578063425d512a1461048757806342842e0e146104a357806342966c68146104cc5780634f6ccce7146104f557806351b96d92146105325761027d565b806318160ddd1161024557806318160ddd1461036c57806323b872dd146103975780632a55205a146103c05780632f745c59146103fe57806332cb6b0c1461043b5780633ccfd60b146104665761027d565b806301ffc9a71461028257806302fa7c47146102bf57806306fdde03146102db578063081812fc14610306578063095ea7b314610343575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190613dd1565b6109cd565b6040516102b69190613e19565b60405180910390f35b6102d960048036038101906102d49190613ed6565b6109df565b005b3480156102e757600080fd5b506102f06109f5565b6040516102fd9190613faf565b60405180910390f35b34801561031257600080fd5b5061032d60048036038101906103289190614007565b610a87565b60405161033a9190614043565b60405180910390f35b34801561034f57600080fd5b5061036a6004803603810190610365919061405e565b610acd565b005b34801561037857600080fd5b50610381610b7d565b60405161038e91906140ad565b60405180910390f35b3480156103a357600080fd5b506103be60048036038101906103b991906140c8565b610b8a565b005b3480156103cc57600080fd5b506103e760048036038101906103e2919061411b565b610c88565b6040516103f592919061415b565b60405180910390f35b34801561040a57600080fd5b506104256004803603810190610420919061405e565b610e73565b60405161043291906140ad565b60405180910390f35b34801561044757600080fd5b50610450610f18565b60405161045d91906140ad565b60405180910390f35b34801561047257600080fd5b5061047b610f1e565b005b610485610fcf565b005b6104a1600480360381019061049c9190614184565b610fe1565b005b3480156104af57600080fd5b506104ca60048036038101906104c591906140c8565b61102d565b005b3480156104d857600080fd5b506104f360048036038101906104ee9190614007565b61112b565b005b34801561050157600080fd5b5061051c60048036038101906105179190614007565b611187565b60405161052991906140ad565b60405180910390f35b34801561053e57600080fd5b506105476111f8565b60405161055491906140ad565b60405180910390f35b610577600480360381019061057291906142e6565b6111fd565b005b34801561058557600080fd5b5061058e61121f565b60405161059b9190613e19565b60405180910390f35b6105be60048036038101906105b9919061435b565b611236565b005b3480156105cc57600080fd5b506105d561125b565b6040516105e29190613e19565b60405180910390f35b3480156105f757600080fd5b50610612600480360381019061060d9190614007565b611316565b60405161061f9190614043565b60405180910390f35b34801561063457600080fd5b5061064f600480360381019061064a9190614184565b61139d565b60405161065c91906140ad565b60405180910390f35b34801561067157600080fd5b5061067a611455565b005b610684611469565b005b34801561069257600080fd5b5061069b61147b565b6040516106a89190614043565b60405180910390f35b3480156106bd57600080fd5b506106c66114a5565b6040516106d39190613faf565b60405180910390f35b6106f660048036038101906106f19190614007565b611537565b005b34801561070457600080fd5b5061071f600480360381019061071a9190614388565b611744565b005b34801561072d57600080fd5b506107366117f4565b6040516107439190613faf565b60405180910390f35b34801561075857600080fd5b50610773600480360381019061076e919061405e565b61182d565b005b61078f600480360381019061078a919061435b565b611927565b005b34801561079d57600080fd5b506107b860048036038101906107b39190614469565b61194c565b005b6107d460048036038101906107cf9190614388565b611a4c565b005b3480156107e257600080fd5b506107eb611aaf565b6040516107f891906140ad565b60405180910390f35b34801561080d57600080fd5b5061082860048036038101906108239190614007565b611aba565b6040516108359190613faf565b60405180910390f35b61085860048036038101906108539190614007565b611acc565b005b610874600480360381019061086f9190614388565b611ade565b005b34801561088257600080fd5b5061088b611b41565b6040516108989190613e19565b60405180910390f35b3480156108ad57600080fd5b506108b6611b5f565b6040516108c39190613e19565b60405180910390f35b3480156108d857600080fd5b506108f360048036038101906108ee91906144ec565b611c22565b6040516109009190613e19565b60405180910390f35b34801561091557600080fd5b50610930600480360381019061092b919061435b565b611cb6565b005b61094c60048036038101906109479190614184565b611cdb565b005b34801561095a57600080fd5b5061097560048036038101906109709190614184565b611d27565b005b34801561098357600080fd5b5061098c611dab565b6040516109999190613faf565b60405180910390f35b3480156109ae57600080fd5b506109b7611de4565b6040516109c49190613e19565b60405180910390f35b60006109d882611df7565b9050919050565b6109e7611e71565b6109f18282611eef565b5050565b606060008054610a049061455b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a309061455b565b8015610a7d5780601f10610a5257610100808354040283529160200191610a7d565b820191906000526020600020905b815481529060010190602001808311610a6057829003601f168201915b5050505050905090565b6000610a9282612085565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b601360009054906101000a900460ff1615610b6f57601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b65906145d9565b60405180910390fd5b5b610b7982826120d0565b5050565b6000600880549050905090565b601360019054906101000a900460ff1615610c7857601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610c405750601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15610c77576040517f61cbe48300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b610c838383836121e8565b505050565b6000806000600c60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610e1e57600b6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610e28612248565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610e549190614628565b610e5e91906146b1565b90508160000151819350935050509250929050565b6000610e7e8361139d565b8210610ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb690614754565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c3081565b610f26611e71565b610f2e612252565b600047905060008111610f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6d906147c0565b60405180910390fd5b610f7e61147b565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610fc3573d6000803e3d6000fd5b5050610fcd6122a2565b565b610fd7611e71565b610fdf6122ac565b565b610fe9611e71565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601360019054906101000a900460ff161561111b57601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806110e35750601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561111a576040517f61cbe48300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b61112683838361230f565b505050565b61113c61113661232f565b82612337565b61117b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117290614852565b60405180910390fd5b611184816123cc565b50565b6000611191610b7d565b82106111d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c9906148e4565b60405180910390fd5b600882815481106111e6576111e5614904565b5b90600052602060002001549050919050565b600a81565b611205611e71565b80600f908051906020019061121b929190613c82565b5050565b6000600d60009054906101000a900460ff16905090565b61123e611e71565b80601360006101000a81548160ff02191690831515021790555050565b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316112a461232f565b6040518263ffffffff1660e01b81526004016112c09190614043565b60206040518083038186803b1580156112d857600080fd5b505afa1580156112ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113109190614948565b11905090565b600080611322836123d8565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138b906149c1565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561140e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140590614a53565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61145d611e71565b6114676000612415565b565b611471611e71565b6114796124db565b565b6000600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546114b49061455b565b80601f01602080910402602001604051908101604052809291908181526020018280546114e09061455b565b801561152d5780601f106115025761010080835404028352916020019161152d565b820191906000526020600020905b81548152906001019060200180831161151057829003601f168201915b5050505050905090565b61153f612252565b61154761253e565b610c3081611553610b7d565b61155d9190614a73565b111561159e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159590614b15565b60405180910390fd5b600a8111156115e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d990614ba7565b60405180910390fd5b8066d529ae9e8600006115f59190614628565b341015611637576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162e90614c39565b60405180910390fd5b601360029054906101000a900460ff161561169457611654611b41565b611693576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168a90614ccb565b60405180910390fd5b5b60005b8181101561173857600060125490506116b76116b161232f565b82612588565b601260008154809291906116ca90614ceb565b91905055506116d761232f565b73ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161171c91906140ad565b60405180910390a250808061173090614ceb565b915050611697565b506117416122a2565b50565b601360009054906101000a900460ff16156117e657601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166117e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dc906145d9565b60405180910390fd5b5b6117f082826125a6565b5050565b6040518060400160405280600a81526020017f4b4f4c4c454b544956450000000000000000000000000000000000000000000081525081565b611835611e71565b610c3081611841610b7d565b61184b9190614a73565b111561188c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188390614d80565b60405180910390fd5b60005b8181101561192257600060125490506118a88482612588565b601260008154809291906118bb90614ceb565b91905055508373ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161190691906140ad565b60405180910390a250808061191a90614ceb565b91505061188f565b505050565b61192f611e71565b80601360016101000a81548160ff02191690831515021790555050565b601360019054906101000a900460ff1615611a3a57601560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680611a025750601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15611a39576040517f61cbe48300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b611a46848484846125bc565b50505050565b611a54611e71565b80601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b66d529ae9e86000081565b6060611ac58261261e565b9050919050565b611ad4611e71565b8060128190555050565b611ae6611e71565b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000611b4b61125b565b80611b5a5750611b59611b5f565b5b905090565b600080600090506000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e611bad61232f565b846040518363ffffffff1660e01b8152600401611bcb92919061415b565b60206040518083038186803b158015611be357600080fd5b505afa158015611bf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1b9190614948565b1191505090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611cbe611e71565b80601360026101000a81548160ff02191690831515021790555050565b611ce3611e71565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611d2f611e71565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9690614e12565b60405180910390fd5b611da881612415565b50565b6040518060400160405280600a81526020017f4b4f4c4c454b544956450000000000000000000000000000000000000000000081525081565b601360029054906101000a900460ff1681565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e6a5750611e6982612731565b5b9050919050565b611e7961232f565b73ffffffffffffffffffffffffffffffffffffffff16611e9761147b565b73ffffffffffffffffffffffffffffffffffffffff1614611eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee490614e7e565b60405180910390fd5b565b611ef7612248565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611f55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4c90614f10565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fbc90614f7c565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600b60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b61208e816127ab565b6120cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c4906149c1565b60405180910390fd5b50565b60006120db82611316565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561214c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121439061500e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661216b61232f565b73ffffffffffffffffffffffffffffffffffffffff16148061219a57506121998161219461232f565b611c22565b5b6121d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d0906150a0565b60405180910390fd5b6121e383836127ec565b505050565b6121f96121f361232f565b82612337565b612238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222f90614852565b60405180910390fd5b6122438383836128a5565b505050565b6000612710905090565b6002600e541415612298576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228f9061510c565b60405180910390fd5b6002600e81905550565b6001600e81905550565b6122b4612b9f565b6000600d60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6122f861232f565b6040516123059190614043565b60405180910390a1565b61232a8383836040518060200160405280600081525061194c565b505050565b600033905090565b60008061234383611316565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061238557506123848185611c22565b5b806123c357508373ffffffffffffffffffffffffffffffffffffffff166123ab84610a87565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6123d581612be8565b50565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6124e361253e565b6001600d60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861252761232f565b6040516125349190614043565b60405180910390a1565b61254661121f565b15612586576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257d90615178565b60405180910390fd5b565b6125a2828260405180602001604052806000815250612c3b565b5050565b6125b86125b161232f565b8383612c96565b5050565b6125cd6125c761232f565b83612337565b61260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390614852565b60405180910390fd5b61261884848484612e03565b50505050565b606061262982612085565b6000600a600084815260200190815260200160002080546126499061455b565b80601f01602080910402602001604051908101604052809291908181526020018280546126759061455b565b80156126c25780601f10612697576101008083540402835291602001916126c2565b820191906000526020600020905b8154815290600101906020018083116126a557829003601f168201915b5050505050905060006126d3612e5f565b90506000815114156126e957819250505061272c565b60008251111561271e5780826040516020016127069291906151d4565b6040516020818303038152906040529250505061272c565b61272784612ef1565b925050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127a457506127a382612f59565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166127cd836123d8565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661285f83611316565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b8273ffffffffffffffffffffffffffffffffffffffff166128c582611316565b73ffffffffffffffffffffffffffffffffffffffff161461291b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129129061526a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561298b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612982906152fc565b60405180910390fd5b612998838383600161303b565b8273ffffffffffffffffffffffffffffffffffffffff166129b882611316565b73ffffffffffffffffffffffffffffffffffffffff1614612a0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a059061526a565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b9a8383836001613055565b505050565b612ba761121f565b612be6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bdd90615368565b60405180910390fd5b565b612bf18161305b565b6000600a60008381526020019081526020016000208054612c119061455b565b905014612c3857600a60008281526020019081526020016000206000612c379190613d08565b5b50565b612c4583836131a9565b612c5260008484846133c7565b612c91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c88906153fa565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfc90615466565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612df69190613e19565b60405180910390a3505050565b612e0e8484846128a5565b612e1a848484846133c7565b612e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e50906153fa565b60405180910390fd5b50505050565b6060600f8054612e6e9061455b565b80601f0160208091040260200160405190810160405280929190818152602001828054612e9a9061455b565b8015612ee75780601f10612ebc57610100808354040283529160200191612ee7565b820191906000526020600020905b815481529060010190602001808311612eca57829003601f168201915b5050505050905090565b6060612efc82612085565b6000612f06612e5f565b90506000815111612f265760405180602001604052806000815250612f51565b80612f308461355e565b604051602001612f419291906151d4565b6040516020818303038152906040525b915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061302457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613034575061303382613636565b5b9050919050565b61304361253e565b61304f848484846136a0565b50505050565b50505050565b600061306682611316565b905061307681600084600161303b565b61307f82611316565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131a5816000846001613055565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613219576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613210906154d2565b60405180910390fd5b613222816127ab565b15613262576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132599061553e565b60405180910390fd5b61327060008383600161303b565b613279816127ab565b156132b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132b09061553e565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133c3600083836001613055565b5050565b60006133e88473ffffffffffffffffffffffffffffffffffffffff16613800565b15613551578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261341161232f565b8786866040518563ffffffff1660e01b815260040161343394939291906155b3565b602060405180830381600087803b15801561344d57600080fd5b505af192505050801561347e57506040513d601f19601f8201168201806040525081019061347b9190615614565b60015b613501573d80600081146134ae576040519150601f19603f3d011682016040523d82523d6000602084013e6134b3565b606091505b506000815114156134f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134f0906153fa565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613556565b600190505b949350505050565b60606000600161356d84613823565b01905060008167ffffffffffffffff81111561358c5761358b6141bb565b5b6040519080825280601f01601f1916602001820160405280156135be5781602001600182028036833780820191505090505b509050600082602001820190505b60011561362b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161361557613614614682565b5b04945060008514156136265761362b565b6135cc565b819350505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6136ac84848484613976565b60018111156136f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136e7906156b3565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613738576137338161397c565b613777565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146137765761377585826139c5565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156137ba576137b581613b32565b6137f9565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146137f8576137f78482613c03565b5b5b5050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613881577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161387757613876614682565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106138be576d04ee2d6d415b85acef810000000083816138b4576138b3614682565b5b0492506020810190505b662386f26fc1000083106138ed57662386f26fc1000083816138e3576138e2614682565b5b0492506010810190505b6305f5e1008310613916576305f5e100838161390c5761390b614682565b5b0492506008810190505b612710831061393b57612710838161393157613930614682565b5b0492506004810190505b6064831061395e576064838161395457613953614682565b5b0492506002810190505b600a831061396d576001810190505b80915050919050565b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016139d28461139d565b6139dc91906156d3565b9050600060076000848152602001908152602001600020549050818114613ac1576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613b4691906156d3565b9050600060096000848152602001908152602001600020549050600060088381548110613b7657613b75614904565b5b906000526020600020015490508060088381548110613b9857613b97614904565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613be757613be6615707565b5b6001900381819060005260206000200160009055905550505050565b6000613c0e8361139d565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054613c8e9061455b565b90600052602060002090601f016020900481019282613cb05760008555613cf7565b82601f10613cc957805160ff1916838001178555613cf7565b82800160010185558215613cf7579182015b82811115613cf6578251825591602001919060010190613cdb565b5b509050613d049190613d48565b5090565b508054613d149061455b565b6000825580601f10613d265750613d45565b601f016020900490600052602060002090810190613d449190613d48565b5b50565b5b80821115613d61576000816000905550600101613d49565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613dae81613d79565b8114613db957600080fd5b50565b600081359050613dcb81613da5565b92915050565b600060208284031215613de757613de6613d6f565b5b6000613df584828501613dbc565b91505092915050565b60008115159050919050565b613e1381613dfe565b82525050565b6000602082019050613e2e6000830184613e0a565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e5f82613e34565b9050919050565b613e6f81613e54565b8114613e7a57600080fd5b50565b600081359050613e8c81613e66565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613eb381613e92565b8114613ebe57600080fd5b50565b600081359050613ed081613eaa565b92915050565b60008060408385031215613eed57613eec613d6f565b5b6000613efb85828601613e7d565b9250506020613f0c85828601613ec1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f50578082015181840152602081019050613f35565b83811115613f5f576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f8182613f16565b613f8b8185613f21565b9350613f9b818560208601613f32565b613fa481613f65565b840191505092915050565b60006020820190508181036000830152613fc98184613f76565b905092915050565b6000819050919050565b613fe481613fd1565b8114613fef57600080fd5b50565b60008135905061400181613fdb565b92915050565b60006020828403121561401d5761401c613d6f565b5b600061402b84828501613ff2565b91505092915050565b61403d81613e54565b82525050565b60006020820190506140586000830184614034565b92915050565b6000806040838503121561407557614074613d6f565b5b600061408385828601613e7d565b925050602061409485828601613ff2565b9150509250929050565b6140a781613fd1565b82525050565b60006020820190506140c2600083018461409e565b92915050565b6000806000606084860312156140e1576140e0613d6f565b5b60006140ef86828701613e7d565b935050602061410086828701613e7d565b925050604061411186828701613ff2565b9150509250925092565b6000806040838503121561413257614131613d6f565b5b600061414085828601613ff2565b925050602061415185828601613ff2565b9150509250929050565b60006040820190506141706000830185614034565b61417d602083018461409e565b9392505050565b60006020828403121561419a57614199613d6f565b5b60006141a884828501613e7d565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6141f382613f65565b810181811067ffffffffffffffff82111715614212576142116141bb565b5b80604052505050565b6000614225613d65565b905061423182826141ea565b919050565b600067ffffffffffffffff821115614251576142506141bb565b5b61425a82613f65565b9050602081019050919050565b82818337600083830152505050565b600061428961428484614236565b61421b565b9050828152602081018484840111156142a5576142a46141b6565b5b6142b0848285614267565b509392505050565b600082601f8301126142cd576142cc6141b1565b5b81356142dd848260208601614276565b91505092915050565b6000602082840312156142fc576142fb613d6f565b5b600082013567ffffffffffffffff81111561431a57614319613d74565b5b614326848285016142b8565b91505092915050565b61433881613dfe565b811461434357600080fd5b50565b6000813590506143558161432f565b92915050565b60006020828403121561437157614370613d6f565b5b600061437f84828501614346565b91505092915050565b6000806040838503121561439f5761439e613d6f565b5b60006143ad85828601613e7d565b92505060206143be85828601614346565b9150509250929050565b600067ffffffffffffffff8211156143e3576143e26141bb565b5b6143ec82613f65565b9050602081019050919050565b600061440c614407846143c8565b61421b565b905082815260208101848484011115614428576144276141b6565b5b614433848285614267565b509392505050565b600082601f8301126144505761444f6141b1565b5b81356144608482602086016143f9565b91505092915050565b6000806000806080858703121561448357614482613d6f565b5b600061449187828801613e7d565b94505060206144a287828801613e7d565b93505060406144b387828801613ff2565b925050606085013567ffffffffffffffff8111156144d4576144d3613d74565b5b6144e08782880161443b565b91505092959194509250565b6000806040838503121561450357614502613d6f565b5b600061451185828601613e7d565b925050602061452285828601613e7d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061457357607f821691505b602082108114156145875761458661452c565b5b50919050565b7f4b6f6c6c656b746976653a20696e76616c6964204d61726b6574706c61636500600082015250565b60006145c3601f83613f21565b91506145ce8261458d565b602082019050919050565b600060208201905081810360008301526145f2816145b6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061463382613fd1565b915061463e83613fd1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614677576146766145f9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006146bc82613fd1565b91506146c783613fd1565b9250826146d7576146d6614682565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b600061473e602b83613f21565b9150614749826146e2565b604082019050919050565b6000602082019050818103600083015261476d81614731565b9050919050565b7f4e6f2045544820746f2077697468647261770000000000000000000000000000600082015250565b60006147aa601283613f21565b91506147b582614774565b602082019050919050565b600060208201905081810360008301526147d98161479d565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061483c602d83613f21565b9150614847826147e0565b604082019050919050565b6000602082019050818103600083015261486b8161482f565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b60006148ce602c83613f21565b91506148d982614872565b604082019050919050565b600060208201905081810360008301526148fd816148c1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061494281613fdb565b92915050565b60006020828403121561495e5761495d613d6f565b5b600061496c84828501614933565b91505092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006149ab601883613f21565b91506149b682614975565b602082019050919050565b600060208201905081810360008301526149da8161499e565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614a3d602983613f21565b9150614a48826149e1565b604082019050919050565b60006020820190508181036000830152614a6c81614a30565b9050919050565b6000614a7e82613fd1565b9150614a8983613fd1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614abe57614abd6145f9565b5b828201905092915050565b7f4b6f6c6c656b746976653a2072656163686564206d617820737570706c792100600082015250565b6000614aff601f83613f21565b9150614b0a82614ac9565b602082019050919050565b60006020820190508181036000830152614b2e81614af2565b9050919050565b7f4b6f6c6c656b746976653a2065786365656473206d617820706572207472616e60008201527f73616374696f6e00000000000000000000000000000000000000000000000000602082015250565b6000614b91602783613f21565b9150614b9c82614b35565b604082019050919050565b60006020820190508181036000830152614bc081614b84565b9050919050565b7f4b6f6c6c656b746976653a20696e73756666696369656e74204554482073656e60008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614c23602183613f21565b9150614c2e82614bc7565b604082019050919050565b60006020820190508181036000830152614c5281614c16565b9050919050565b7f4b6f6c6c656b746976653a206e6f7420612044414f206e6f7220524b206d656d60008201527f6265720000000000000000000000000000000000000000000000000000000000602082015250565b6000614cb5602383613f21565b9150614cc082614c59565b604082019050919050565b60006020820190508181036000830152614ce481614ca8565b9050919050565b6000614cf682613fd1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614d2957614d286145f9565b5b600182019050919050565b7f52656163686564206d617820737570706c792100000000000000000000000000600082015250565b6000614d6a601383613f21565b9150614d7582614d34565b602082019050919050565b60006020820190508181036000830152614d9981614d5d565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614dfc602683613f21565b9150614e0782614da0565b604082019050919050565b60006020820190508181036000830152614e2b81614def565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614e68602083613f21565b9150614e7382614e32565b602082019050919050565b60006020820190508181036000830152614e9781614e5b565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614efa602a83613f21565b9150614f0582614e9e565b604082019050919050565b60006020820190508181036000830152614f2981614eed565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614f66601983613f21565b9150614f7182614f30565b602082019050919050565b60006020820190508181036000830152614f9581614f59565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614ff8602183613f21565b915061500382614f9c565b604082019050919050565b6000602082019050818103600083015261502781614feb565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b600061508a603d83613f21565b91506150958261502e565b604082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006150f6601f83613f21565b9150615101826150c0565b602082019050919050565b60006020820190508181036000830152615125816150e9565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000615162601083613f21565b915061516d8261512c565b602082019050919050565b6000602082019050818103600083015261519181615155565b9050919050565b600081905092915050565b60006151ae82613f16565b6151b88185615198565b93506151c8818560208601613f32565b80840191505092915050565b60006151e082856151a3565b91506151ec82846151a3565b91508190509392505050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615254602583613f21565b915061525f826151f8565b604082019050919050565b6000602082019050818103600083015261528381615247565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006152e6602483613f21565b91506152f18261528a565b604082019050919050565b60006020820190508181036000830152615315816152d9565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615352601483613f21565b915061535d8261531c565b602082019050919050565b6000602082019050818103600083015261538181615345565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006153e4603283613f21565b91506153ef82615388565b604082019050919050565b60006020820190508181036000830152615413816153d7565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615450601983613f21565b915061545b8261541a565b602082019050919050565b6000602082019050818103600083015261547f81615443565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006154bc602083613f21565b91506154c782615486565b602082019050919050565b600060208201905081810360008301526154eb816154af565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615528601c83613f21565b9150615533826154f2565b602082019050919050565b600060208201905081810360008301526155578161551b565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006155858261555e565b61558f8185615569565b935061559f818560208601613f32565b6155a881613f65565b840191505092915050565b60006080820190506155c86000830187614034565b6155d56020830186614034565b6155e2604083018561409e565b81810360608301526155f4818461557a565b905095945050505050565b60008151905061560e81613da5565b92915050565b60006020828403121561562a57615629613d6f565b5b6000615638848285016155ff565b91505092915050565b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b600061569d603583613f21565b91506156a882615641565b604082019050919050565b600060208201905081810360008301526156cc81615690565b9050919050565b60006156de82613fd1565b91506156e983613fd1565b9250828210156156fc576156fb6145f9565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122045dede4059f2a6981c5e82c0cae142ab1c98a9089ce5cbb1f1f024106a5f6aa364736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000800000000000000000000000009f0da414075f7952f1bdcf1b2f9cb0d8daf8b9bd00000000000000000000000061a35258107563f6b6f102ae25490901c8760b12000000000000000000000000032167473a2a2996754481a26c778ec4570b2d180000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5941784235344a767961563134414b6761466269786774766a754738454535724e344d6b53566e62454a666f2f00000000000000000000
Deployed Bytecode
0x60806040526004361061027d5760003560e01c8063715018a61161014f578063c002d23d116100c1578063e985e9c51161007a578063e985e9c5146108cc578063ee82cb7314610909578063eed6809514610932578063f2fde38b1461094e578063f76f8d7814610977578063fa977c28146109a25761027d565b8063c002d23d146107d6578063c87b56dd14610801578063c929ccf31461083e578063cc3561d51461085a578063d02982cf14610876578063d3964b7d146108a15761027d565b8063a22cb46511610113578063a22cb465146106f8578063a3f4df7e14610721578063aa8c5c951461074c578063abe515d214610775578063b88d4fde14610791578063bbf46b84146107ba5761027d565b8063715018a6146106655780638456cb591461067c5780638da5cb5b1461068657806395d89b41146106b1578063a0712d68146106dc5761027d565b80633f4ba83a116101f357806355f804b3116101ac57806355f804b31461055d5780635c975abb146105795780635d0b11cd146105a457806362f9f841146105c05780636352211e146105eb57806370a08231146106285761027d565b80633f4ba83a1461047d578063425d512a1461048757806342842e0e146104a357806342966c68146104cc5780634f6ccce7146104f557806351b96d92146105325761027d565b806318160ddd1161024557806318160ddd1461036c57806323b872dd146103975780632a55205a146103c05780632f745c59146103fe57806332cb6b0c1461043b5780633ccfd60b146104665761027d565b806301ffc9a71461028257806302fa7c47146102bf57806306fdde03146102db578063081812fc14610306578063095ea7b314610343575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190613dd1565b6109cd565b6040516102b69190613e19565b60405180910390f35b6102d960048036038101906102d49190613ed6565b6109df565b005b3480156102e757600080fd5b506102f06109f5565b6040516102fd9190613faf565b60405180910390f35b34801561031257600080fd5b5061032d60048036038101906103289190614007565b610a87565b60405161033a9190614043565b60405180910390f35b34801561034f57600080fd5b5061036a6004803603810190610365919061405e565b610acd565b005b34801561037857600080fd5b50610381610b7d565b60405161038e91906140ad565b60405180910390f35b3480156103a357600080fd5b506103be60048036038101906103b991906140c8565b610b8a565b005b3480156103cc57600080fd5b506103e760048036038101906103e2919061411b565b610c88565b6040516103f592919061415b565b60405180910390f35b34801561040a57600080fd5b506104256004803603810190610420919061405e565b610e73565b60405161043291906140ad565b60405180910390f35b34801561044757600080fd5b50610450610f18565b60405161045d91906140ad565b60405180910390f35b34801561047257600080fd5b5061047b610f1e565b005b610485610fcf565b005b6104a1600480360381019061049c9190614184565b610fe1565b005b3480156104af57600080fd5b506104ca60048036038101906104c591906140c8565b61102d565b005b3480156104d857600080fd5b506104f360048036038101906104ee9190614007565b61112b565b005b34801561050157600080fd5b5061051c60048036038101906105179190614007565b611187565b60405161052991906140ad565b60405180910390f35b34801561053e57600080fd5b506105476111f8565b60405161055491906140ad565b60405180910390f35b610577600480360381019061057291906142e6565b6111fd565b005b34801561058557600080fd5b5061058e61121f565b60405161059b9190613e19565b60405180910390f35b6105be60048036038101906105b9919061435b565b611236565b005b3480156105cc57600080fd5b506105d561125b565b6040516105e29190613e19565b60405180910390f35b3480156105f757600080fd5b50610612600480360381019061060d9190614007565b611316565b60405161061f9190614043565b60405180910390f35b34801561063457600080fd5b5061064f600480360381019061064a9190614184565b61139d565b60405161065c91906140ad565b60405180910390f35b34801561067157600080fd5b5061067a611455565b005b610684611469565b005b34801561069257600080fd5b5061069b61147b565b6040516106a89190614043565b60405180910390f35b3480156106bd57600080fd5b506106c66114a5565b6040516106d39190613faf565b60405180910390f35b6106f660048036038101906106f19190614007565b611537565b005b34801561070457600080fd5b5061071f600480360381019061071a9190614388565b611744565b005b34801561072d57600080fd5b506107366117f4565b6040516107439190613faf565b60405180910390f35b34801561075857600080fd5b50610773600480360381019061076e919061405e565b61182d565b005b61078f600480360381019061078a919061435b565b611927565b005b34801561079d57600080fd5b506107b860048036038101906107b39190614469565b61194c565b005b6107d460048036038101906107cf9190614388565b611a4c565b005b3480156107e257600080fd5b506107eb611aaf565b6040516107f891906140ad565b60405180910390f35b34801561080d57600080fd5b5061082860048036038101906108239190614007565b611aba565b6040516108359190613faf565b60405180910390f35b61085860048036038101906108539190614007565b611acc565b005b610874600480360381019061086f9190614388565b611ade565b005b34801561088257600080fd5b5061088b611b41565b6040516108989190613e19565b60405180910390f35b3480156108ad57600080fd5b506108b6611b5f565b6040516108c39190613e19565b60405180910390f35b3480156108d857600080fd5b506108f360048036038101906108ee91906144ec565b611c22565b6040516109009190613e19565b60405180910390f35b34801561091557600080fd5b50610930600480360381019061092b919061435b565b611cb6565b005b61094c60048036038101906109479190614184565b611cdb565b005b34801561095a57600080fd5b5061097560048036038101906109709190614184565b611d27565b005b34801561098357600080fd5b5061098c611dab565b6040516109999190613faf565b60405180910390f35b3480156109ae57600080fd5b506109b7611de4565b6040516109c49190613e19565b60405180910390f35b60006109d882611df7565b9050919050565b6109e7611e71565b6109f18282611eef565b5050565b606060008054610a049061455b565b80601f0160208091040260200160405190810160405280929190818152602001828054610a309061455b565b8015610a7d5780601f10610a5257610100808354040283529160200191610a7d565b820191906000526020600020905b815481529060010190602001808311610a6057829003601f168201915b5050505050905090565b6000610a9282612085565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b601360009054906101000a900460ff1615610b6f57601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b65906145d9565b60405180910390fd5b5b610b7982826120d0565b5050565b6000600880549050905090565b601360019054906101000a900460ff1615610c7857601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610c405750601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15610c77576040517f61cbe48300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b610c838383836121e8565b505050565b6000806000600c60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610e1e57600b6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610e28612248565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610e549190614628565b610e5e91906146b1565b90508160000151819350935050509250929050565b6000610e7e8361139d565b8210610ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb690614754565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c3081565b610f26611e71565b610f2e612252565b600047905060008111610f76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6d906147c0565b60405180910390fd5b610f7e61147b565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610fc3573d6000803e3d6000fd5b5050610fcd6122a2565b565b610fd7611e71565b610fdf6122ac565b565b610fe9611e71565b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b601360019054906101000a900460ff161561111b57601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806110e35750601560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b1561111a576040517f61cbe48300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b61112683838361230f565b505050565b61113c61113661232f565b82612337565b61117b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117290614852565b60405180910390fd5b611184816123cc565b50565b6000611191610b7d565b82106111d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c9906148e4565b60405180910390fd5b600882815481106111e6576111e5614904565b5b90600052602060002001549050919050565b600a81565b611205611e71565b80600f908051906020019061121b929190613c82565b5050565b6000600d60009054906101000a900460ff16905090565b61123e611e71565b80601360006101000a81548160ff02191690831515021790555050565b600080601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082316112a461232f565b6040518263ffffffff1660e01b81526004016112c09190614043565b60206040518083038186803b1580156112d857600080fd5b505afa1580156112ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113109190614948565b11905090565b600080611322836123d8565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138b906149c1565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561140e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140590614a53565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61145d611e71565b6114676000612415565b565b611471611e71565b6114796124db565b565b6000600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546114b49061455b565b80601f01602080910402602001604051908101604052809291908181526020018280546114e09061455b565b801561152d5780601f106115025761010080835404028352916020019161152d565b820191906000526020600020905b81548152906001019060200180831161151057829003601f168201915b5050505050905090565b61153f612252565b61154761253e565b610c3081611553610b7d565b61155d9190614a73565b111561159e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159590614b15565b60405180910390fd5b600a8111156115e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d990614ba7565b60405180910390fd5b8066d529ae9e8600006115f59190614628565b341015611637576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162e90614c39565b60405180910390fd5b601360029054906101000a900460ff161561169457611654611b41565b611693576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168a90614ccb565b60405180910390fd5b5b60005b8181101561173857600060125490506116b76116b161232f565b82612588565b601260008154809291906116ca90614ceb565b91905055506116d761232f565b73ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161171c91906140ad565b60405180910390a250808061173090614ceb565b915050611697565b506117416122a2565b50565b601360009054906101000a900460ff16156117e657601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166117e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117dc906145d9565b60405180910390fd5b5b6117f082826125a6565b5050565b6040518060400160405280600a81526020017f4b4f4c4c454b544956450000000000000000000000000000000000000000000081525081565b611835611e71565b610c3081611841610b7d565b61184b9190614a73565b111561188c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188390614d80565b60405180910390fd5b60005b8181101561192257600060125490506118a88482612588565b601260008154809291906118bb90614ceb565b91905055508373ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968858260405161190691906140ad565b60405180910390a250808061191a90614ceb565b91505061188f565b505050565b61192f611e71565b80601360016101000a81548160ff02191690831515021790555050565b601360019054906101000a900460ff1615611a3a57601560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680611a025750601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15611a39576040517f61cbe48300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b611a46848484846125bc565b50505050565b611a54611e71565b80601460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b66d529ae9e86000081565b6060611ac58261261e565b9050919050565b611ad4611e71565b8060128190555050565b611ae6611e71565b80601560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000611b4b61125b565b80611b5a5750611b59611b5f565b5b905090565b600080600090506000601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1662fdd58e611bad61232f565b846040518363ffffffff1660e01b8152600401611bcb92919061415b565b60206040518083038186803b158015611be357600080fd5b505afa158015611bf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1b9190614948565b1191505090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611cbe611e71565b80601360026101000a81548160ff02191690831515021790555050565b611ce3611e71565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611d2f611e71565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9690614e12565b60405180910390fd5b611da881612415565b50565b6040518060400160405280600a81526020017f4b4f4c4c454b544956450000000000000000000000000000000000000000000081525081565b601360029054906101000a900460ff1681565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e6a5750611e6982612731565b5b9050919050565b611e7961232f565b73ffffffffffffffffffffffffffffffffffffffff16611e9761147b565b73ffffffffffffffffffffffffffffffffffffffff1614611eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee490614e7e565b60405180910390fd5b565b611ef7612248565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611f55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f4c90614f10565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fbc90614f7c565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600b60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b61208e816127ab565b6120cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c4906149c1565b60405180910390fd5b50565b60006120db82611316565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561214c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121439061500e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1661216b61232f565b73ffffffffffffffffffffffffffffffffffffffff16148061219a57506121998161219461232f565b611c22565b5b6121d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121d0906150a0565b60405180910390fd5b6121e383836127ec565b505050565b6121f96121f361232f565b82612337565b612238576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222f90614852565b60405180910390fd5b6122438383836128a5565b505050565b6000612710905090565b6002600e541415612298576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228f9061510c565b60405180910390fd5b6002600e81905550565b6001600e81905550565b6122b4612b9f565b6000600d60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6122f861232f565b6040516123059190614043565b60405180910390a1565b61232a8383836040518060200160405280600081525061194c565b505050565b600033905090565b60008061234383611316565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061238557506123848185611c22565b5b806123c357508373ffffffffffffffffffffffffffffffffffffffff166123ab84610a87565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6123d581612be8565b50565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600d60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600d60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6124e361253e565b6001600d60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861252761232f565b6040516125349190614043565b60405180910390a1565b61254661121f565b15612586576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257d90615178565b60405180910390fd5b565b6125a2828260405180602001604052806000815250612c3b565b5050565b6125b86125b161232f565b8383612c96565b5050565b6125cd6125c761232f565b83612337565b61260c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260390614852565b60405180910390fd5b61261884848484612e03565b50505050565b606061262982612085565b6000600a600084815260200190815260200160002080546126499061455b565b80601f01602080910402602001604051908101604052809291908181526020018280546126759061455b565b80156126c25780601f10612697576101008083540402835291602001916126c2565b820191906000526020600020905b8154815290600101906020018083116126a557829003601f168201915b5050505050905060006126d3612e5f565b90506000815114156126e957819250505061272c565b60008251111561271e5780826040516020016127069291906151d4565b6040516020818303038152906040529250505061272c565b61272784612ef1565b925050505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806127a457506127a382612f59565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166127cd836123d8565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661285f83611316565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b8273ffffffffffffffffffffffffffffffffffffffff166128c582611316565b73ffffffffffffffffffffffffffffffffffffffff161461291b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129129061526a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561298b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612982906152fc565b60405180910390fd5b612998838383600161303b565b8273ffffffffffffffffffffffffffffffffffffffff166129b882611316565b73ffffffffffffffffffffffffffffffffffffffff1614612a0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a059061526a565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612b9a8383836001613055565b505050565b612ba761121f565b612be6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bdd90615368565b60405180910390fd5b565b612bf18161305b565b6000600a60008381526020019081526020016000208054612c119061455b565b905014612c3857600a60008281526020019081526020016000206000612c379190613d08565b5b50565b612c4583836131a9565b612c5260008484846133c7565b612c91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c88906153fa565b60405180910390fd5b505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612d05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cfc90615466565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612df69190613e19565b60405180910390a3505050565b612e0e8484846128a5565b612e1a848484846133c7565b612e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e50906153fa565b60405180910390fd5b50505050565b6060600f8054612e6e9061455b565b80601f0160208091040260200160405190810160405280929190818152602001828054612e9a9061455b565b8015612ee75780601f10612ebc57610100808354040283529160200191612ee7565b820191906000526020600020905b815481529060010190602001808311612eca57829003601f168201915b5050505050905090565b6060612efc82612085565b6000612f06612e5f565b90506000815111612f265760405180602001604052806000815250612f51565b80612f308461355e565b604051602001612f419291906151d4565b6040516020818303038152906040525b915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061302457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613034575061303382613636565b5b9050919050565b61304361253e565b61304f848484846136a0565b50505050565b50505050565b600061306682611316565b905061307681600084600161303b565b61307f82611316565b90506004600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46131a5816000846001613055565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613219576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613210906154d2565b60405180910390fd5b613222816127ab565b15613262576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132599061553e565b60405180910390fd5b61327060008383600161303b565b613279816127ab565b156132b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016132b09061553e565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46133c3600083836001613055565b5050565b60006133e88473ffffffffffffffffffffffffffffffffffffffff16613800565b15613551578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261341161232f565b8786866040518563ffffffff1660e01b815260040161343394939291906155b3565b602060405180830381600087803b15801561344d57600080fd5b505af192505050801561347e57506040513d601f19601f8201168201806040525081019061347b9190615614565b60015b613501573d80600081146134ae576040519150601f19603f3d011682016040523d82523d6000602084013e6134b3565b606091505b506000815114156134f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134f0906153fa565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613556565b600190505b949350505050565b60606000600161356d84613823565b01905060008167ffffffffffffffff81111561358c5761358b6141bb565b5b6040519080825280601f01601f1916602001820160405280156135be5781602001600182028036833780820191505090505b509050600082602001820190505b60011561362b578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161361557613614614682565b5b04945060008514156136265761362b565b6135cc565b819350505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6136ac84848484613976565b60018111156136f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136e7906156b3565b60405180910390fd5b6000829050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613738576137338161397c565b613777565b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16146137765761377585826139c5565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156137ba576137b581613b32565b6137f9565b8473ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146137f8576137f78482613c03565b5b5b5050505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613881577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161387757613876614682565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106138be576d04ee2d6d415b85acef810000000083816138b4576138b3614682565b5b0492506020810190505b662386f26fc1000083106138ed57662386f26fc1000083816138e3576138e2614682565b5b0492506010810190505b6305f5e1008310613916576305f5e100838161390c5761390b614682565b5b0492506008810190505b612710831061393b57612710838161393157613930614682565b5b0492506004810190505b6064831061395e576064838161395457613953614682565b5b0492506002810190505b600a831061396d576001810190505b80915050919050565b50505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016139d28461139d565b6139dc91906156d3565b9050600060076000848152602001908152602001600020549050818114613ac1576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613b4691906156d3565b9050600060096000848152602001908152602001600020549050600060088381548110613b7657613b75614904565b5b906000526020600020015490508060088381548110613b9857613b97614904565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613be757613be6615707565b5b6001900381819060005260206000200160009055905550505050565b6000613c0e8361139d565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054613c8e9061455b565b90600052602060002090601f016020900481019282613cb05760008555613cf7565b82601f10613cc957805160ff1916838001178555613cf7565b82800160010185558215613cf7579182015b82811115613cf6578251825591602001919060010190613cdb565b5b509050613d049190613d48565b5090565b508054613d149061455b565b6000825580601f10613d265750613d45565b601f016020900490600052602060002090810190613d449190613d48565b5b50565b5b80821115613d61576000816000905550600101613d49565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613dae81613d79565b8114613db957600080fd5b50565b600081359050613dcb81613da5565b92915050565b600060208284031215613de757613de6613d6f565b5b6000613df584828501613dbc565b91505092915050565b60008115159050919050565b613e1381613dfe565b82525050565b6000602082019050613e2e6000830184613e0a565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e5f82613e34565b9050919050565b613e6f81613e54565b8114613e7a57600080fd5b50565b600081359050613e8c81613e66565b92915050565b60006bffffffffffffffffffffffff82169050919050565b613eb381613e92565b8114613ebe57600080fd5b50565b600081359050613ed081613eaa565b92915050565b60008060408385031215613eed57613eec613d6f565b5b6000613efb85828601613e7d565b9250506020613f0c85828601613ec1565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613f50578082015181840152602081019050613f35565b83811115613f5f576000848401525b50505050565b6000601f19601f8301169050919050565b6000613f8182613f16565b613f8b8185613f21565b9350613f9b818560208601613f32565b613fa481613f65565b840191505092915050565b60006020820190508181036000830152613fc98184613f76565b905092915050565b6000819050919050565b613fe481613fd1565b8114613fef57600080fd5b50565b60008135905061400181613fdb565b92915050565b60006020828403121561401d5761401c613d6f565b5b600061402b84828501613ff2565b91505092915050565b61403d81613e54565b82525050565b60006020820190506140586000830184614034565b92915050565b6000806040838503121561407557614074613d6f565b5b600061408385828601613e7d565b925050602061409485828601613ff2565b9150509250929050565b6140a781613fd1565b82525050565b60006020820190506140c2600083018461409e565b92915050565b6000806000606084860312156140e1576140e0613d6f565b5b60006140ef86828701613e7d565b935050602061410086828701613e7d565b925050604061411186828701613ff2565b9150509250925092565b6000806040838503121561413257614131613d6f565b5b600061414085828601613ff2565b925050602061415185828601613ff2565b9150509250929050565b60006040820190506141706000830185614034565b61417d602083018461409e565b9392505050565b60006020828403121561419a57614199613d6f565b5b60006141a884828501613e7d565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6141f382613f65565b810181811067ffffffffffffffff82111715614212576142116141bb565b5b80604052505050565b6000614225613d65565b905061423182826141ea565b919050565b600067ffffffffffffffff821115614251576142506141bb565b5b61425a82613f65565b9050602081019050919050565b82818337600083830152505050565b600061428961428484614236565b61421b565b9050828152602081018484840111156142a5576142a46141b6565b5b6142b0848285614267565b509392505050565b600082601f8301126142cd576142cc6141b1565b5b81356142dd848260208601614276565b91505092915050565b6000602082840312156142fc576142fb613d6f565b5b600082013567ffffffffffffffff81111561431a57614319613d74565b5b614326848285016142b8565b91505092915050565b61433881613dfe565b811461434357600080fd5b50565b6000813590506143558161432f565b92915050565b60006020828403121561437157614370613d6f565b5b600061437f84828501614346565b91505092915050565b6000806040838503121561439f5761439e613d6f565b5b60006143ad85828601613e7d565b92505060206143be85828601614346565b9150509250929050565b600067ffffffffffffffff8211156143e3576143e26141bb565b5b6143ec82613f65565b9050602081019050919050565b600061440c614407846143c8565b61421b565b905082815260208101848484011115614428576144276141b6565b5b614433848285614267565b509392505050565b600082601f8301126144505761444f6141b1565b5b81356144608482602086016143f9565b91505092915050565b6000806000806080858703121561448357614482613d6f565b5b600061449187828801613e7d565b94505060206144a287828801613e7d565b93505060406144b387828801613ff2565b925050606085013567ffffffffffffffff8111156144d4576144d3613d74565b5b6144e08782880161443b565b91505092959194509250565b6000806040838503121561450357614502613d6f565b5b600061451185828601613e7d565b925050602061452285828601613e7d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061457357607f821691505b602082108114156145875761458661452c565b5b50919050565b7f4b6f6c6c656b746976653a20696e76616c6964204d61726b6574706c61636500600082015250565b60006145c3601f83613f21565b91506145ce8261458d565b602082019050919050565b600060208201905081810360008301526145f2816145b6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061463382613fd1565b915061463e83613fd1565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614677576146766145f9565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006146bc82613fd1565b91506146c783613fd1565b9250826146d7576146d6614682565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b600061473e602b83613f21565b9150614749826146e2565b604082019050919050565b6000602082019050818103600083015261476d81614731565b9050919050565b7f4e6f2045544820746f2077697468647261770000000000000000000000000000600082015250565b60006147aa601283613f21565b91506147b582614774565b602082019050919050565b600060208201905081810360008301526147d98161479d565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b600061483c602d83613f21565b9150614847826147e0565b604082019050919050565b6000602082019050818103600083015261486b8161482f565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b60006148ce602c83613f21565b91506148d982614872565b604082019050919050565b600060208201905081810360008301526148fd816148c1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008151905061494281613fdb565b92915050565b60006020828403121561495e5761495d613d6f565b5b600061496c84828501614933565b91505092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006149ab601883613f21565b91506149b682614975565b602082019050919050565b600060208201905081810360008301526149da8161499e565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b6000614a3d602983613f21565b9150614a48826149e1565b604082019050919050565b60006020820190508181036000830152614a6c81614a30565b9050919050565b6000614a7e82613fd1565b9150614a8983613fd1565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614abe57614abd6145f9565b5b828201905092915050565b7f4b6f6c6c656b746976653a2072656163686564206d617820737570706c792100600082015250565b6000614aff601f83613f21565b9150614b0a82614ac9565b602082019050919050565b60006020820190508181036000830152614b2e81614af2565b9050919050565b7f4b6f6c6c656b746976653a2065786365656473206d617820706572207472616e60008201527f73616374696f6e00000000000000000000000000000000000000000000000000602082015250565b6000614b91602783613f21565b9150614b9c82614b35565b604082019050919050565b60006020820190508181036000830152614bc081614b84565b9050919050565b7f4b6f6c6c656b746976653a20696e73756666696369656e74204554482073656e60008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614c23602183613f21565b9150614c2e82614bc7565b604082019050919050565b60006020820190508181036000830152614c5281614c16565b9050919050565b7f4b6f6c6c656b746976653a206e6f7420612044414f206e6f7220524b206d656d60008201527f6265720000000000000000000000000000000000000000000000000000000000602082015250565b6000614cb5602383613f21565b9150614cc082614c59565b604082019050919050565b60006020820190508181036000830152614ce481614ca8565b9050919050565b6000614cf682613fd1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614d2957614d286145f9565b5b600182019050919050565b7f52656163686564206d617820737570706c792100000000000000000000000000600082015250565b6000614d6a601383613f21565b9150614d7582614d34565b602082019050919050565b60006020820190508181036000830152614d9981614d5d565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614dfc602683613f21565b9150614e0782614da0565b604082019050919050565b60006020820190508181036000830152614e2b81614def565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614e68602083613f21565b9150614e7382614e32565b602082019050919050565b60006020820190508181036000830152614e9781614e5b565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b6000614efa602a83613f21565b9150614f0582614e9e565b604082019050919050565b60006020820190508181036000830152614f2981614eed565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b6000614f66601983613f21565b9150614f7182614f30565b602082019050919050565b60006020820190508181036000830152614f9581614f59565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614ff8602183613f21565b915061500382614f9c565b604082019050919050565b6000602082019050818103600083015261502781614feb565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b600061508a603d83613f21565b91506150958261502e565b604082019050919050565b600060208201905081810360008301526150b98161507d565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006150f6601f83613f21565b9150615101826150c0565b602082019050919050565b60006020820190508181036000830152615125816150e9565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b6000615162601083613f21565b915061516d8261512c565b602082019050919050565b6000602082019050818103600083015261519181615155565b9050919050565b600081905092915050565b60006151ae82613f16565b6151b88185615198565b93506151c8818560208601613f32565b80840191505092915050565b60006151e082856151a3565b91506151ec82846151a3565b91508190509392505050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b6000615254602583613f21565b915061525f826151f8565b604082019050919050565b6000602082019050818103600083015261528381615247565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006152e6602483613f21565b91506152f18261528a565b604082019050919050565b60006020820190508181036000830152615315816152d9565b9050919050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000615352601483613f21565b915061535d8261531c565b602082019050919050565b6000602082019050818103600083015261538181615345565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006153e4603283613f21565b91506153ef82615388565b604082019050919050565b60006020820190508181036000830152615413816153d7565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615450601983613f21565b915061545b8261541a565b602082019050919050565b6000602082019050818103600083015261547f81615443565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b60006154bc602083613f21565b91506154c782615486565b602082019050919050565b600060208201905081810360008301526154eb816154af565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615528601c83613f21565b9150615533826154f2565b602082019050919050565b600060208201905081810360008301526155578161551b565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006155858261555e565b61558f8185615569565b935061559f818560208601613f32565b6155a881613f65565b840191505092915050565b60006080820190506155c86000830187614034565b6155d56020830186614034565b6155e2604083018561409e565b81810360608301526155f4818461557a565b905095945050505050565b60008151905061560e81613da5565b92915050565b60006020828403121561562a57615629613d6f565b5b6000615638848285016155ff565b91505092915050565b7f455243373231456e756d657261626c653a20636f6e736563757469766520747260008201527f616e7366657273206e6f7420737570706f727465640000000000000000000000602082015250565b600061569d603583613f21565b91506156a882615641565b604082019050919050565b600060208201905081810360008301526156cc81615690565b9050919050565b60006156de82613fd1565b91506156e983613fd1565b9250828210156156fc576156fb6145f9565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122045dede4059f2a6981c5e82c0cae142ab1c98a9089ce5cbb1f1f024106a5f6aa364736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000800000000000000000000000009f0da414075f7952f1bdcf1b2f9cb0d8daf8b9bd00000000000000000000000061a35258107563f6b6f102ae25490901c8760b12000000000000000000000000032167473a2a2996754481a26c778ec4570b2d180000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d5941784235344a767961563134414b6761466269786774766a754738454535724e344d6b53566e62454a666f2f00000000000000000000
-----Decoded View---------------
Arg [0] : _uri (string): ipfs://QmYAxB54JvyaV14AKgaFbixgtvjuG8EE5rN4MkSVnbEJfo/
Arg [1] : _rk (address): 0x9f0dA414075f7952f1bdcF1B2F9cB0D8dAF8b9bD
Arg [2] : _kitty (address): 0x61a35258107563f6B6f102aE25490901C8760b12
Arg [3] : _royalty (address): 0x032167473a2A2996754481A26c778Ec4570B2d18
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000009f0da414075f7952f1bdcf1b2f9cb0d8daf8b9bd
Arg [2] : 00000000000000000000000061a35258107563f6b6f102ae25490901c8760b12
Arg [3] : 000000000000000000000000032167473a2a2996754481a26c778ec4570b2d18
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [5] : 697066733a2f2f516d5941784235344a767961563134414b6761466269786774
Arg [6] : 766a754738454535724e344d6b53566e62454a666f2f00000000000000000000
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.