Overview
ETH Balance
0.045 ETH
Eth Value
$117.44 (@ $2,609.80/ETH)More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 18 from a total of 18 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 17356337 | 508 days ago | IN | 0 ETH | 0.00102286 | ||||
Set Approval For... | 13444827 | 1094 days ago | IN | 0 ETH | 0.00375384 | ||||
Nft Buy | 13441117 | 1095 days ago | IN | 0.1 ETH | 0.0129884 | ||||
Nft Buy | 13338134 | 1111 days ago | IN | 0.1 ETH | 0.01378768 | ||||
Transfer From | 13337039 | 1111 days ago | IN | 0 ETH | 0.00587336 | ||||
Transfer | 13337018 | 1111 days ago | IN | 0 ETH | 0.00185857 | ||||
Nft Buy | 13332774 | 1112 days ago | IN | 0.1 ETH | 0.01640532 | ||||
Nft Buy | 13330631 | 1112 days ago | IN | 0.1 ETH | 0.01559614 | ||||
Nft Buy | 13330534 | 1112 days ago | IN | 0.1 ETH | 0.04310434 | ||||
Nft Buy | 13330370 | 1112 days ago | IN | 0.1 ETH | 0.02100965 | ||||
Nft Buy | 13330350 | 1112 days ago | IN | 0.1 ETH | 0.01756516 | ||||
Nft Buy | 13330201 | 1112 days ago | IN | 0.1 ETH | 0.02017796 | ||||
Nft Buy | 13330155 | 1112 days ago | IN | 0.1 ETH | 0.02983485 | ||||
Unpause | 13330079 | 1112 days ago | IN | 0 ETH | 0.01034364 | ||||
Set Royalty | 13329673 | 1113 days ago | IN | 0 ETH | 0.00346044 | ||||
Set Contract URI | 13285718 | 1119 days ago | IN | 0 ETH | 0.00633314 | ||||
Set Base URI | 13285717 | 1119 days ago | IN | 0 ETH | 0.00508464 | ||||
0x60806040 | 13285668 | 1119 days ago | IN | 0 ETH | 0.31149739 |
Latest 18 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
13441117 | 1095 days ago | 0.075 ETH | ||||
13441117 | 1095 days ago | 0.02 ETH | ||||
13338134 | 1111 days ago | 0.075 ETH | ||||
13338134 | 1111 days ago | 0.02 ETH | ||||
13332774 | 1112 days ago | 0.075 ETH | ||||
13332774 | 1112 days ago | 0.02 ETH | ||||
13330631 | 1112 days ago | 0.075 ETH | ||||
13330631 | 1112 days ago | 0.02 ETH | ||||
13330534 | 1112 days ago | 0.075 ETH | ||||
13330534 | 1112 days ago | 0.02 ETH | ||||
13330370 | 1112 days ago | 0.075 ETH | ||||
13330370 | 1112 days ago | 0.02 ETH | ||||
13330350 | 1112 days ago | 0.075 ETH | ||||
13330350 | 1112 days ago | 0.02 ETH | ||||
13330201 | 1112 days ago | 0.075 ETH | ||||
13330201 | 1112 days ago | 0.02 ETH | ||||
13330155 | 1112 days ago | 0.075 ETH | ||||
13330155 | 1112 days ago | 0.02 ETH |
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Nft
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED // Code by zipzinger and cmtzco // DEFIBOYS // defiboys.com pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; import "./Unlockable.sol"; import "./NftManager.sol"; library SwapMapping { struct Map { uint256[] tradableNfts; mapping(uint256 => uint256) price; mapping(uint256 => uint256) indexOf; mapping(uint256 => bool) inserted; } function get(Map storage map, uint256 nftId) external view returns (uint256) { return map.price[nftId]; } function getKeyAtIndex(Map storage map, uint256 index) external view returns (uint256) { return map.tradableNfts[index]; } function size(Map storage map) external view returns (uint256) { return map.tradableNfts.length; } function set( Map storage map, uint256 key, uint256 val ) public { if (map.inserted[key]) { map.price[key] = val; } else { map.inserted[key] = true; map.price[key] = val; map.indexOf[key] = map.tradableNfts.length; map.tradableNfts.push(key); } } function remove(Map storage map, uint256 key) public { if (!map.inserted[key]) { return; } delete map.inserted[key]; delete map.price[key]; uint256 index = map.indexOf[key]; uint256 lastIndex = map.tradableNfts.length - 1; uint256 lastKey = map.tradableNfts[lastIndex]; map.indexOf[lastKey] = index; delete map.indexOf[key]; map.tradableNfts[index] = lastKey; map.tradableNfts.pop(); } } contract Nft is ERC721Enumerable, ERC721Pausable, Ownable, Unlockable { using Address for address payable; using SwapMapping for SwapMapping.Map; event NFTRoyaltyPaid(address payable addressPaid, uint256 paymentAmount); SwapMapping.Map private _swapMap; string public baseURI; uint256 public nftIndex; uint256 public maxNftCount; uint256 public currentPrice; address payable public artistAddress; address payable public nftManagerAddress; mapping(uint256 => address payable) public royaltyRecipients; mapping(uint256 => uint256) public royaltyPercents; uint256 public royaltyCount; string public contractMetadataURI; constructor( uint256 _maxNftCount, address payable _nftManagerAddress, uint256 _currentPrice, address payable _artistAddress, uint256 _royaltyPercent, string memory nftName, string memory nftSymbol, bool _unlockable ) ERC721(nftName, nftSymbol) { require(_currentPrice > 0, "NFT sale price cant be 0"); _pause(); unlockableContent = _unlockable; nftIndex = 0; royaltyCount = 0; maxNftCount = _maxNftCount; currentPrice = _currentPrice; artistAddress = _artistAddress; setNewRoyalty(_artistAddress, _royaltyPercent); uint256 nftPercent = SafeMath.sub(9500, _royaltyPercent); nftManagerAddress = _nftManagerAddress; address payable nftWallet = payable(msg.sender); setNewRoyalty(nftWallet, nftPercent); } function unpause() external onlyOwner { _unpause(); } function listedTokens() external view returns (uint256[] memory) { return _swapMap.tradableNfts; } function ownedTokens(address payable _addr) external view returns (uint256[] memory) { uint256 balance = balanceOf(_addr); uint256[] memory result = new uint256[](balance); uint256 balId; for (balId = 0; balId < balance; balId++) { result[balId] = tokenOfOwnerByIndex(_addr, balId); } return result; } function sumRoyalties() private view returns (uint256) { uint256 royaltySum = 0; uint256 id; if (royaltyCount == 0) { return 0; } for (id = 1; id <= royaltyCount; id++) { royaltySum = SafeMath.add(royaltySum, royaltyPercents[id]); } return royaltySum; } function setRoyalty( uint256 _id, address payable _addr, uint256 _royaltyPercent ) external onlyOwner { require(_id <= royaltyCount, "Invalid royalty id provided"); uint256 newRoyaltySum = SafeMath.sub( SafeMath.add(sumRoyalties(), _royaltyPercent), royaltyPercents[_id] ); require(newRoyaltySum <= 9500, "Royalty overflow"); setRoyaltyAddress(_id, _addr); setRoyaltyPercent(_id, _royaltyPercent); } function setNewRoyalty(address payable _addr, uint256 _royaltyPercent) public onlyOwner { uint256 newRoyaltySum = SafeMath.add(sumRoyalties(), _royaltyPercent); require(newRoyaltySum <= 9500, "Royalty overflow"); uint256 _id = SafeMath.add(royaltyCount, 1); setRoyaltyAddress(_id, _addr); setRoyaltyPercent(_id, _royaltyPercent); royaltyCount += 1; } function setRoyaltyAddress(uint256 _id, address payable _addr) internal { royaltyRecipients[_id] = _addr; } function setRoyaltyPercent(uint256 _id, uint256 _royaltyPercent) internal { royaltyPercents[_id] = _royaltyPercent; } function setArtistAddress(address payable _artistAddress) external onlyOwner { royaltyRecipients[1] = _artistAddress; } function setCurrentPrice(uint256 _currentPrice) external onlyOwner { require(_currentPrice > 0, "NFT sale price must be higher than 0."); currentPrice = _currentPrice; } function setMaxNFTCount(uint256 _count) external onlyOwner { require(_count >= nftIndex, "maxNFTCount must be larger than nftIndex"); maxNftCount = _count; } function collectDust() external onlyOwner { msg.sender.call{value: address(this).balance}(""); } function nftBuy() external payable { require(msg.value >= currentPrice, "Send more money. Buy failed"); require(!paused(), "Nft not released yet"); uint256 testNum = SafeMath.add(nftIndex, 1); require(testNum <= maxNftCount, "NFT sold out"); nftIndex += 1; _safeMint(msg.sender, nftIndex); _swapMap.remove(nftIndex); _payRoyalties(2, msg.value); _payRoyalties(1, msg.value); } function _payRoyalties(uint256 _royaltyIndex, uint256 _value) private { require(_royaltyIndex > 0, "Invalid royaltyIndex"); uint256 payPercent = royaltyPercents[_royaltyIndex]; uint256 paymentAmount = SafeMath.div( SafeMath.mul(uint256(_value), uint256(payPercent)), uint256(10000) ); Address.sendValue(royaltyRecipients[_royaltyIndex], paymentAmount); if (_royaltyIndex == 1) { emit NFTRoyaltyPaid( royaltyRecipients[_royaltyIndex], paymentAmount ); } } function nftList(uint256 _id, uint256 _price) external { require( _isApprovedOrOwner(msg.sender, _id), "You aren't the owner of this NFT" ); require(_price > 0, "Swap price must be > 0"); approve(nftManagerAddress, _id); _swapMap.set(_id, _price); } function nftSwap(uint256 _id) external payable { require(_swapMap.inserted[_id], "NFT: NFT not available for swap"); require(_swapMap.price[_id] > 0, "NFT: NFT not available for swap"); require( msg.value >= _swapMap.price[_id], "NFT: Insufficient money sent for swap" ); address payable originalOwner = payable(ownerOf(_id)); _nftManagerSwap(msg.sender, _id); uint256 maxPayoutForRoyalties = SafeMath.div( SafeMath.mul(uint256(msg.value), uint256(2000)), uint256(10000) ); uint256 salePayoutForSeller = SafeMath.sub( msg.value, maxPayoutForRoyalties ); Address.sendValue(originalOwner, salePayoutForSeller); _payRoyalties(2, maxPayoutForRoyalties); _payRoyalties(1, maxPayoutForRoyalties); _swapMap.remove(_id); } function nftListCancel(uint256 _id) public { require( _isApprovedOrOwner(msg.sender, _id), "You arent the owner of this NFT" ); _swapMap.remove(_id); } function setManagerAddress(address payable _addr) external onlyOwner { nftManagerAddress = _addr; } function _nftManagerSwap(address _recipient, uint256 _id) private { NftManager(nftManagerAddress).swap(_recipient, _id); } function nftManagerPerformSwap(address _recipient, uint256 _tokenID) external { require(msg.sender == nftManagerAddress, "Caller not nftManager"); address originalOwner = ownerOf(_tokenID); safeTransferFrom(originalOwner, _recipient, _tokenID); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { return baseURI; } function _baseURI() internal view virtual override returns (string memory) { return baseURI; } function setBaseURI(string memory _baseURIInput) external onlyOwner { baseURI = _baseURIInput; } function getTradeStatus(uint256 _id) public view returns (bool) { if (!_swapMap.inserted[_id]) { return false; } return _swapMap.inserted[_id]; } function getTradePrice(uint256 _id) external view returns (uint256) { if (!_swapMap.inserted[_id]) { return 0; } return _swapMap.price[_id]; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721Enumerable, ERC721Pausable) { ERC721Enumerable._beforeTokenTransfer(from, to, tokenId); ERC721Pausable._beforeTokenTransfer(from, to, tokenId); if (getTradeStatus(tokenId)) { nftListCancel(tokenId); } } function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); if (getTradeStatus(tokenId)) { nftListCancel(tokenId); } _approve(to, tokenId); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable) returns (bool) { super.supportsInterface(interfaceId); } function setContractURI(string memory _uri) external onlyOwner { contractMetadataURI = _uri; } function contractURI() external view returns (string memory) { return contractMetadataURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) private _owners; // Mapping owner address to token count mapping (address => uint256) private _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev 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(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT 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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; contract Unlockable is Ownable { bool public unlockableContent; function enableUnlockable() public onlyOwner returns (bool) { unlockableContent = true; return unlockableContent; } function disableUnlockable() public onlyOwner returns (bool) { unlockableContent = false; return unlockableContent; } function getUnlockStatus() public view returns (bool) { return unlockableContent; } }
// SPDX-License-Identifier: UNLICENSED // Code by zipzinger and cmtzco // DEFIBOYS // defiboys.com pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Nft.sol"; contract NftManager is Ownable { mapping(address => bool) public approvedContracts; function swap(address _recipient, uint256 _tokenID) external { require( approvedContracts[msg.sender], "Run setApprovedContract for NFT Contract" ); Nft(msg.sender).nftManagerPerformSwap(_recipient, _tokenID); } function setApprovedContract(address addr, bool status) external onlyOwner { approvedContracts[addr] = status; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": { "/home/ubuntu/environment/contracts/contracts/Nft.sol": { "SwapMapping": "0x907F5730034c83B08cfB9265B58B38B8514f1DEd" } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_maxNftCount","type":"uint256"},{"internalType":"address payable","name":"_nftManagerAddress","type":"address"},{"internalType":"uint256","name":"_currentPrice","type":"uint256"},{"internalType":"address payable","name":"_artistAddress","type":"address"},{"internalType":"uint256","name":"_royaltyPercent","type":"uint256"},{"internalType":"string","name":"nftName","type":"string"},{"internalType":"string","name":"nftSymbol","type":"string"},{"internalType":"bool","name":"_unlockable","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address payable","name":"addressPaid","type":"address"},{"indexed":false,"internalType":"uint256","name":"paymentAmount","type":"uint256"}],"name":"NFTRoyaltyPaid","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artistAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectDust","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractMetadataURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disableUnlockable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"enableUnlockable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"uint256","name":"_id","type":"uint256"}],"name":"getTradePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getTradeStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUnlockStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"listedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxNftCount","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":"nftBuy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"nftIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"nftList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"nftListCancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nftManagerAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_tokenID","type":"uint256"}],"name":"nftManagerPerformSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"nftSwap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_addr","type":"address"}],"name":"ownedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"royaltyPercents","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"royaltyRecipients","outputs":[{"internalType":"address payable","name":"","type":"address"}],"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 payable","name":"_artistAddress","type":"address"}],"name":"setArtistAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURIInput","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_currentPrice","type":"uint256"}],"name":"setCurrentPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_addr","type":"address"}],"name":"setManagerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"setMaxNFTCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_addr","type":"address"},{"internalType":"uint256","name":"_royaltyPercent","type":"uint256"}],"name":"setNewRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address payable","name":"_addr","type":"address"},{"internalType":"uint256","name":"_royaltyPercent","type":"uint256"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockableContent","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162006dee38038062006dee833981810160405281019062000037919062000794565b828281600090805190602001906200005192919062000621565b5080600190805190602001906200006a92919062000621565b5050506000600a60006101000a81548160ff02191690831515021790555060006200009a6200029f60201b60201c565b905080600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a350600086116200017f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200017690620009cb565b60405180910390fd5b6200018f620002a760201b60201c565b80600a60156101000a81548160ff02191690831515021790555060006010819055506000601781905550876011819055508560128190555084601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200021a85856200035f60201b60201c565b60006200023561251c86620004c460201b62002ca21760201c565b905087601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060003390506200028f81836200035f60201b60201c565b5050505050505050505062000de7565b600033905090565b620002b7620004dc60201b60201c565b15620002fa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620002f19062000987565b60405180910390fd5b6001600a60006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620003466200029f60201b60201c565b60405162000355919062000948565b60405180910390a1565b6200036f6200029f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000395620004f360201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620003ee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003e590620009a9565b60405180910390fd5b600062000416620004046200051d60201b60201c565b836200059760201b62002cb81760201c565b905061251c81111562000460576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620004579062000965565b60405180910390fd5b60006200047c60175460016200059760201b62002cb81760201c565b9050620004908185620005af60201b60201c565b620004a281846200060560201b60201c565b600160176000828254620004b7919062000a5d565b9250508190555050505050565b60008183620004d4919062000aba565b905092915050565b6000600a60009054906101000a900460ff16905090565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000806000905060008060175414156200053d5760009250505062000594565b600190505b60175481116200058e57620005768260166000848152602001908152602001600020546200059760201b62002cb81760201c565b91508080620005859062000bf5565b91505062000542565b81925050505b90565b60008183620005a7919062000a5d565b905092915050565b806015600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b8060166000848152602001908152602001600020819055505050565b8280546200062f9062000b89565b90600052602060002090601f0160209004810192826200065357600085556200069f565b82601f106200066e57805160ff19168380011785556200069f565b828001600101855582156200069f579182015b828111156200069e57825182559160200191906001019062000681565b5b509050620006ae9190620006b2565b5090565b5b80821115620006cd576000816000905550600101620006b3565b5090565b6000620006e8620006e28462000a16565b620009ed565b90508281526020810184848401111562000707576200070662000cd5565b5b6200071484828562000b53565b509392505050565b6000815190506200072d8162000d99565b92915050565b600081519050620007448162000db3565b92915050565b600082601f83011262000762576200076162000cd0565b5b815162000774848260208601620006d1565b91505092915050565b6000815190506200078e8162000dcd565b92915050565b600080600080600080600080610100898b031215620007b857620007b762000cdf565b5b6000620007c88b828c016200077d565b9850506020620007db8b828c016200071c565b9750506040620007ee8b828c016200077d565b9650506060620008018b828c016200071c565b9550506080620008148b828c016200077d565b94505060a089015167ffffffffffffffff81111562000838576200083762000cda565b5b620008468b828c016200074a565b93505060c089015167ffffffffffffffff8111156200086a576200086962000cda565b5b620008788b828c016200074a565b92505060e06200088b8b828c0162000733565b9150509295985092959890939650565b620008a68162000af5565b82525050565b6000620008bb60108362000a4c565b9150620008c88262000cf5565b602082019050919050565b6000620008e260108362000a4c565b9150620008ef8262000d1e565b602082019050919050565b60006200090960208362000a4c565b9150620009168262000d47565b602082019050919050565b60006200093060188362000a4c565b91506200093d8262000d70565b602082019050919050565b60006020820190506200095f60008301846200089b565b92915050565b600060208201905081810360008301526200098081620008ac565b9050919050565b60006020820190508181036000830152620009a281620008d3565b9050919050565b60006020820190508181036000830152620009c481620008fa565b9050919050565b60006020820190508181036000830152620009e68162000921565b9050919050565b6000620009f962000a0c565b905062000a07828262000bbf565b919050565b6000604051905090565b600067ffffffffffffffff82111562000a345762000a3362000ca1565b5b62000a3f8262000ce4565b9050602081019050919050565b600082825260208201905092915050565b600062000a6a8262000b49565b915062000a778362000b49565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111562000aaf5762000aae62000c43565b5b828201905092915050565b600062000ac78262000b49565b915062000ad48362000b49565b92508282101562000aea5762000ae962000c43565b5b828203905092915050565b600062000b028262000b29565b9050919050565b600062000b168262000b29565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b8381101562000b7357808201518184015260208101905062000b56565b8381111562000b83576000848401525b50505050565b6000600282049050600182168062000ba257607f821691505b6020821081141562000bb95762000bb862000c72565b5b50919050565b62000bca8262000ce4565b810181811067ffffffffffffffff8211171562000bec5762000beb62000ca1565b5b80604052505050565b600062000c028262000b49565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141562000c385762000c3762000c43565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f526f79616c7479206f766572666c6f7700000000000000000000000000000000600082015250565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4e46542073616c652070726963652063616e7420626520300000000000000000600082015250565b62000da48162000b09565b811462000db057600080fd5b50565b62000dbe8162000b1d565b811462000dca57600080fd5b50565b62000dd88162000b49565b811462000de457600080fd5b50565b615ff78062000df76000396000f3fe6080604052600436106103355760003560e01c80637794e682116101ab578063b12ab40f116100f7578063e8a3d48511610095578063f2fde38b1161006f578063f2fde38b14610bfd578063fd99e61a14610c26578063fe86483814610c42578063ffbe48e414610c6b57610335565b8063e8a3d48514610b6c578063e985e9c514610b97578063eff83c3414610bd457610335565b8063c87b56dd116100d1578063c87b56dd14610ab0578063d5aa93c814610aed578063d7eb3f3a14610b18578063e237306a14610b4357610335565b8063b12ab40f14610a0d578063b36e88ba14610a4a578063b88d4fde14610a8757610335565b8063938e3d7b116101645780639e8197141161013e5780639e81971414610953578063a0d7d8911461097e578063a22cb465146109bb578063a22e4faa146109e457610335565b8063938e3d7b146108d457806395d89b41146108fd5780639d1b464a1461092857610335565b80637794e682146107e857806377f3e5d6146108135780637d28166f1461082a5780637db3c8281461085557806389de38c41461087e5780638da5cb5b146108a957610335565b806345084414116102855780636f977b2211610223578063723db69f116101fd578063723db69f1461075f57806372df93e41461078a57806373e92784146107b357806375092320146107de57610335565b80636f977b22146106e257806370a082311461070b578063715018a61461074857610335565b806355f804b31161025f57806355f804b3146106265780635c975abb1461064f5780636352211e1461067a5780636c0360eb146106b757610335565b806345084414146105935780634a3d6bda146105be5780634f6ccce7146105e957610335565b806318b20071116102f25780632f745c59116102cc5780632f745c59146104ed5780633f4ba83a1461052a578063414319081461054157806342842e0e1461056a57610335565b806318b200711461047057806323b872dd146104995780632771b12e146104c257610335565b806301ffc9a71461033a57806306fdde0314610377578063081812fc146103a2578063095ea7b3146103df5780630bb8a4651461040857806318160ddd14610445575b600080fd5b34801561034657600080fd5b50610361600480360381019061035c919061447e565b610ca8565b60405161036e9190614d21565b60405180910390f35b34801561038357600080fd5b5061038c610cb9565b6040516103999190614d3c565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c49190614521565b610d4b565b6040516103d69190614c2b565b60405180910390f35b3480156103eb57600080fd5b506104066004803603810190610401919061443e565b610dd0565b005b34801561041457600080fd5b5061042f600480360381019061042a9190614521565b610f00565b60405161043c919061521e565b60405180910390f35b34801561045157600080fd5b5061045a610f52565b604051610467919061521e565b60405180910390f35b34801561047c57600080fd5b5061049760048036038101906104929190614521565b610f5f565b005b3480156104a557600080fd5b506104c060048036038101906104bb9190614328565b611028565b005b3480156104ce57600080fd5b506104d7611088565b6040516104e4919061521e565b60405180910390f35b3480156104f957600080fd5b50610514600480360381019061050f919061443e565b61108e565b604051610521919061521e565b60405180910390f35b34801561053657600080fd5b5061053f611133565b005b34801561054d57600080fd5b506105686004803603810190610563919061427b565b6111b9565b005b34801561057657600080fd5b50610591600480360381019061058c9190614328565b611279565b005b34801561059f57600080fd5b506105a8611299565b6040516105b5919061521e565b60405180910390f35b3480156105ca57600080fd5b506105d361129f565b6040516105e09190614cff565b60405180910390f35b3480156105f557600080fd5b50610610600480360381019061060b9190614521565b6112fa565b60405161061d919061521e565b60405180910390f35b34801561063257600080fd5b5061064d600480360381019061064891906144d8565b61136b565b005b34801561065b57600080fd5b50610664611401565b6040516106719190614d21565b60405180910390f35b34801561068657600080fd5b506106a1600480360381019061069c9190614521565b611418565b6040516106ae9190614c2b565b60405180910390f35b3480156106c357600080fd5b506106cc6114ca565b6040516106d99190614d3c565b60405180910390f35b3480156106ee57600080fd5b50610709600480360381019061070491906142a8565b611558565b005b34801561071757600080fd5b50610732600480360381019061072d919061424e565b611673565b60405161073f919061521e565b60405180910390f35b34801561075457600080fd5b5061075d61172b565b005b34801561076b57600080fd5b50610774611868565b6040516107819190614d21565b60405180910390f35b34801561079657600080fd5b506107b160048036038101906107ac9190614521565b61187f565b005b3480156107bf57600080fd5b506107c8611937565b6040516107d59190614d3c565b60405180910390f35b6107e66119c5565b005b3480156107f457600080fd5b506107fd611b55565b60405161080a9190614d21565b60405180910390f35b34801561081f57600080fd5b50610828611c03565b005b34801561083657600080fd5b5061083f611cea565b60405161084c9190614d21565b60405180910390f35b34801561086157600080fd5b5061087c6004803603810190610877919061454e565b611cfd565b005b34801561088a57600080fd5b50610893611e4e565b6040516108a0919061521e565b60405180910390f35b3480156108b557600080fd5b506108be611e54565b6040516108cb9190614c2b565b60405180910390f35b3480156108e057600080fd5b506108fb60048036038101906108f691906144d8565b611e7e565b005b34801561090957600080fd5b50610912611f14565b60405161091f9190614d3c565b60405180910390f35b34801561093457600080fd5b5061093d611fa6565b60405161094a919061521e565b60405180910390f35b34801561095f57600080fd5b50610968611fac565b6040516109759190614d21565b60405180910390f35b34801561098a57600080fd5b506109a560048036038101906109a09190614521565b61205a565b6040516109b29190614c46565b60405180910390f35b3480156109c757600080fd5b506109e260048036038101906109dd91906143fe565b61208d565b005b3480156109f057600080fd5b50610a0b6004803603810190610a06919061427b565b61220e565b005b348015610a1957600080fd5b50610a346004803603810190610a2f919061427b565b6122e0565b604051610a419190614cff565b60405180910390f35b348015610a5657600080fd5b50610a716004803603810190610a6c9190614521565b61238e565b604051610a7e9190614d21565b60405180910390f35b348015610a9357600080fd5b50610aae6004803603810190610aa9919061437b565b6123ed565b005b348015610abc57600080fd5b50610ad76004803603810190610ad29190614521565b61244f565b604051610ae49190614d3c565b60405180910390f35b348015610af957600080fd5b50610b026124e3565b604051610b0f9190614c46565b60405180910390f35b348015610b2457600080fd5b50610b2d612509565b604051610b3a9190614c46565b60405180910390f35b348015610b4f57600080fd5b50610b6a6004803603810190610b65919061443e565b61252f565b005b348015610b7857600080fd5b50610b816125dc565b604051610b8e9190614d3c565b60405180910390f35b348015610ba357600080fd5b50610bbe6004803603810190610bb991906142e8565b61266e565b604051610bcb9190614d21565b60405180910390f35b348015610be057600080fd5b50610bfb6004803603810190610bf69190614521565b612702565b005b348015610c0957600080fd5b50610c246004803603810190610c1f919061424e565b6127cd565b005b610c406004803603810190610c3b9190614521565b612979565b005b348015610c4e57600080fd5b50610c696004803603810190610c6491906145a1565b612b60565b005b348015610c7757600080fd5b50610c926004803603810190610c8d9190614521565b612c8a565b604051610c9f919061521e565b60405180910390f35b6000610cb382612cce565b50919050565b606060008054610cc890615519565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf490615519565b8015610d415780601f10610d1657610100808354040283529160200191610d41565b820191906000526020600020905b815481529060010190602001808311610d2457829003601f168201915b5050505050905090565b6000610d5682612d48565b610d95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8c9061503e565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ddb82611418565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e43906150de565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e6b612db4565b73ffffffffffffffffffffffffffffffffffffffff161480610e9a5750610e9981610e94612db4565b61266e565b5b610ed9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed090614f9e565b60405180910390fd5b610ee28261238e565b15610ef157610ef08261187f565b5b610efb8383612dbc565b505050565b6000600b600301600083815260200190815260200160002060009054906101000a900460ff16610f335760009050610f4d565b600b60010160008381526020019081526020016000205490505b919050565b6000600880549050905090565b610f67612db4565b73ffffffffffffffffffffffffffffffffffffffff16610f85611e54565b73ffffffffffffffffffffffffffffffffffffffff1614610fdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd29061505e565b60405180910390fd5b6000811161101e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101590614fbe565b60405180910390fd5b8060128190555050565b611039611033612db4565b82612e75565b611078576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106f9061511e565b60405180910390fd5b611083838383612f53565b505050565b60175481565b600061109983611673565b82106110da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d190614d9e565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61113b612db4565b73ffffffffffffffffffffffffffffffffffffffff16611159611e54565b73ffffffffffffffffffffffffffffffffffffffff16146111af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a69061505e565b60405180910390fd5b6111b76131af565b565b6111c1612db4565b73ffffffffffffffffffffffffffffffffffffffff166111df611e54565b73ffffffffffffffffffffffffffffffffffffffff1614611235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122c9061505e565b60405180910390fd5b80601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611294838383604051806020016040528060008152506123ed565b505050565b60115481565b6060600b6000018054806020026020016040519081016040528092919081815260200182805480156112f057602002820191906000526020600020905b8154815260200190600101908083116112dc575b5050505050905090565b6000611304610f52565b8210611345576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133c9061515e565b60405180910390fd5b6008828154811061135957611358615681565b5b90600052602060002001549050919050565b611373612db4565b73ffffffffffffffffffffffffffffffffffffffff16611391611e54565b73ffffffffffffffffffffffffffffffffffffffff16146113e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113de9061505e565b60405180910390fd5b80600f90805190602001906113fd92919061404d565b5050565b6000600a60009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b890614ffe565b60405180910390fd5b80915050919050565b600f80546114d790615519565b80601f016020809104026020016040519081016040528092919081815260200182805461150390615519565b80156115505780601f1061152557610100808354040283529160200191611550565b820191906000526020600020905b81548152906001019060200180831161153357829003601f168201915b505050505081565b611560612db4565b73ffffffffffffffffffffffffffffffffffffffff1661157e611e54565b73ffffffffffffffffffffffffffffffffffffffff16146115d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cb9061505e565b60405180910390fd5b60006115e76115e1613251565b83612cb8565b905061251c81111561162e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162590614e5e565b60405180910390fd5b600061163d6017546001612cb8565b905061164981856132b8565b611653818461330e565b600160176000828254611666919061533c565b9250508190555050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116db90614fde565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611733612db4565b73ffffffffffffffffffffffffffffffffffffffff16611751611e54565b73ffffffffffffffffffffffffffffffffffffffff16146117a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179e9061505e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000600a60159054906101000a900460ff16905090565b6118893382612e75565b6118c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bf9061513e565b60405180910390fd5b600b73907f5730034c83b08cfb9265b58b38b8514f1ded63c1e7808b9091836040518363ffffffff1660e01b81526004016119049291906151be565b60006040518083038186803b15801561191c57600080fd5b505af4158015611930573d6000803e3d6000fd5b5050505050565b6018805461194490615519565b80601f016020809104026020016040519081016040528092919081815260200182805461197090615519565b80156119bd5780601f10611992576101008083540402835291602001916119bd565b820191906000526020600020905b8154815290600101906020018083116119a057829003601f168201915b505050505081565b601254341015611a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0190614e7e565b60405180910390fd5b611a12611401565b15611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a49906150fe565b60405180910390fd5b6000611a616010546001612cb8565b9050601154811115611aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9f906150be565b60405180910390fd5b600160106000828254611abb919061533c565b92505081905550611ace3360105461332a565b600b73907f5730034c83b08cfb9265b58b38b8514f1ded63c1e7808b90916010546040518363ffffffff1660e01b8152600401611b0c9291906151be565b60006040518083038186803b158015611b2457600080fd5b505af4158015611b38573d6000803e3d6000fd5b50505050611b47600234613348565b611b52600134613348565b50565b6000611b5f612db4565b73ffffffffffffffffffffffffffffffffffffffff16611b7d611e54565b73ffffffffffffffffffffffffffffffffffffffff1614611bd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bca9061505e565b60405180910390fd5b6001600a60156101000a81548160ff021916908315150217905550600a60159054906101000a900460ff16905090565b611c0b612db4565b73ffffffffffffffffffffffffffffffffffffffff16611c29611e54565b73ffffffffffffffffffffffffffffffffffffffff1614611c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c769061505e565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1647604051611ca390614c16565b60006040518083038185875af1925050503d8060008114611ce0576040519150601f19603f3d011682016040523d82523d6000602084013e611ce5565b606091505b505050565b600a60159054906101000a900460ff1681565b611d05612db4565b73ffffffffffffffffffffffffffffffffffffffff16611d23611e54565b73ffffffffffffffffffffffffffffffffffffffff1614611d79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d709061505e565b60405180910390fd5b601754831115611dbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db590614dde565b60405180910390fd5b6000611ded611dd4611dce613251565b84612cb8565b6016600087815260200190815260200160002054612ca2565b905061251c811115611e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2b90614e5e565b60405180910390fd5b611e3e84846132b8565b611e48848361330e565b50505050565b60105481565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611e86612db4565b73ffffffffffffffffffffffffffffffffffffffff16611ea4611e54565b73ffffffffffffffffffffffffffffffffffffffff1614611efa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef19061505e565b60405180910390fd5b8060189080519060200190611f1092919061404d565b5050565b606060018054611f2390615519565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4f90615519565b8015611f9c5780601f10611f7157610100808354040283529160200191611f9c565b820191906000526020600020905b815481529060010190602001808311611f7f57829003601f168201915b5050505050905090565b60125481565b6000611fb6612db4565b73ffffffffffffffffffffffffffffffffffffffff16611fd4611e54565b73ffffffffffffffffffffffffffffffffffffffff161461202a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120219061505e565b60405180910390fd5b6000600a60156101000a81548160ff021916908315150217905550600a60159054906101000a900460ff16905090565b60156020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612095612db4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fa90614ebe565b60405180910390fd5b8060056000612110612db4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166121bd612db4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122029190614d21565b60405180910390a35050565b612216612db4565b73ffffffffffffffffffffffffffffffffffffffff16612234611e54565b73ffffffffffffffffffffffffffffffffffffffff161461228a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122819061505e565b60405180910390fd5b80601560006001815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060006122ed83611673565b905060008167ffffffffffffffff81111561230b5761230a6156b0565b5b6040519080825280602002602001820160405280156123395781602001602082028036833780820191505090505b50905060005b8281101561238357612351858261108e565b82828151811061236457612363615681565b5b602002602001018181525050808061237b9061557c565b91505061233f565b819350505050919050565b6000600b600301600083815260200190815260200160002060009054906101000a900460ff166123c157600090506123e8565b600b600301600083815260200190815260200160002060009054906101000a900460ff1690505b919050565b6123fe6123f8612db4565b83612e75565b61243d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124349061511e565b60405180910390fd5b61244984848484613475565b50505050565b6060600f805461245e90615519565b80601f016020809104026020016040519081016040528092919081815260200182805461248a90615519565b80156124d75780601f106124ac576101008083540402835291602001916124d7565b820191906000526020600020905b8154815290600101906020018083116124ba57829003601f168201915b50505050509050919050565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146125bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b690614f3e565b60405180910390fd5b60006125ca82611418565b90506125d7818484611279565b505050565b6060601880546125eb90615519565b80601f016020809104026020016040519081016040528092919081815260200182805461261790615519565b80156126645780601f1061263957610100808354040283529160200191612664565b820191906000526020600020905b81548152906001019060200180831161264757829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61270a612db4565b73ffffffffffffffffffffffffffffffffffffffff16612728611e54565b73ffffffffffffffffffffffffffffffffffffffff161461277e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127759061505e565b60405180910390fd5b6010548110156127c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ba9061519e565b60405180910390fd5b8060118190555050565b6127d5612db4565b73ffffffffffffffffffffffffffffffffffffffff166127f3611e54565b73ffffffffffffffffffffffffffffffffffffffff1614612849576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128409061505e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b090614dfe565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b600301600082815260200190815260200160002060009054906101000a900460ff166129dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d39061517e565b60405180910390fd5b6000600b60010160008381526020019081526020016000205411612a35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2c9061517e565b60405180910390fd5b600b600101600082815260200190815260200160002054341015612a8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8590614e1e565b60405180910390fd5b6000612a9982611418565b9050612aa533836134d1565b6000612abe612ab6346107d0613564565b61271061357a565b90506000612acc3483612ca2565b9050612ad88382613590565b612ae3600283613348565b612aee600183613348565b600b73907f5730034c83b08cfb9265b58b38b8514f1ded63c1e7808b9091866040518363ffffffff1660e01b8152600401612b2a9291906151be565b60006040518083038186803b158015612b4257600080fd5b505af4158015612b56573d6000803e3d6000fd5b5050505050505050565b612b6a3383612e75565b612ba9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba090614ede565b60405180910390fd5b60008111612bec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be390614f7e565b60405180910390fd5b612c18601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683610dd0565b600b73907f5730034c83b08cfb9265b58b38b8514f1ded633a6025bd909184846040518463ffffffff1660e01b8152600401612c56939291906151e7565b60006040518083038186803b158015612c6e57600080fd5b505af4158015612c82573d6000803e3d6000fd5b505050505050565b60166020528060005260406000206000915090505481565b60008183612cb0919061541d565b905092915050565b60008183612cc6919061533c565b905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d415750612d4082613684565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612e2f83611418565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612e8082612d48565b612ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb690614f5e565b60405180910390fd5b6000612eca83611418565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f3957508373ffffffffffffffffffffffffffffffffffffffff16612f2184610d4b565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f4a5750612f49818561266e565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612f7382611418565b73ffffffffffffffffffffffffffffffffffffffff1614612fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc09061507e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613039576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161303090614e9e565b60405180910390fd5b613044838383613766565b61304f600082612dbc565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461309f919061541d565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130f6919061533c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6131b7611401565b6131f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ed90614d7e565b60405180910390fd5b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61323a612db4565b6040516132479190614c2b565b60405180910390a1565b60008060009050600080601754141561326f576000925050506132b5565b600190505b60175481116132af5761329a826016600084815260200190815260200160002054612cb8565b915080806132a79061557c565b915050613274565b81925050505b90565b806015600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b8060166000848152602001908152602001600020819055505050565b613344828260405180602001604052806000815250613799565b5050565b6000821161338b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133829061509e565b60405180910390fd5b60006016600084815260200190815260200160002054905060006133ba6133b28484613564565b61271061357a565b90506133f96015600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682613590565b600184141561346f577f4474b9f13296e8e07ee10aeca6f574d9a227961896e05623f8617f604c427a5e6015600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051613466929190614c61565b60405180910390a15b50505050565b613480848484612f53565b61348c848484846137f4565b6134cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c290614dbe565b60405180910390fd5b50505050565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d004f0f783836040518363ffffffff1660e01b815260040161352e929190614cd6565b600060405180830381600087803b15801561354857600080fd5b505af115801561355c573d6000803e3d6000fd5b505050505050565b6000818361357291906153c3565b905092915050565b600081836135889190615392565b905092915050565b804710156135d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135ca90614f1e565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516135f990614c16565b60006040518083038185875af1925050503d8060008114613636576040519150601f19603f3d011682016040523d82523d6000602084013e61363b565b606091505b505090508061367f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161367690614efe565b60405180910390fd5b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061374f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061375f575061375e8261398b565b5b9050919050565b6137718383836139f5565b61377c838383613b09565b6137858161238e565b15613794576137938161187f565b5b505050565b6137a38383613b61565b6137b060008484846137f4565b6137ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137e690614dbe565b60405180910390fd5b505050565b60006138158473ffffffffffffffffffffffffffffffffffffffff16613d2f565b1561397e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261383e612db4565b8786866040518563ffffffff1660e01b81526004016138609493929190614c8a565b602060405180830381600087803b15801561387a57600080fd5b505af19250505080156138ab57506040513d601f19601f820116820180604052508101906138a891906144ab565b60015b61392e573d80600081146138db576040519150601f19603f3d011682016040523d82523d6000602084013e6138e0565b606091505b50600081511415613926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161391d90614dbe565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613983565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613a00838383613d42565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613a4357613a3e81613d47565b613a82565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613a8157613a808382613d90565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613ac557613ac081613efd565b613b04565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613b0357613b028282613fce565b5b5b505050565b613b148383836139f5565b613b1c611401565b15613b5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b5390614d5e565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bc89061501e565b60405180910390fd5b613bda81612d48565b15613c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c1190614e3e565b60405180910390fd5b613c2660008383613766565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613c76919061533c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613d9d84611673565b613da7919061541d565b9050600060076000848152602001908152602001600020549050818114613e8c576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613f11919061541d565b9050600060096000848152602001908152602001600020549050600060088381548110613f4157613f40615681565b5b906000526020600020015490508060088381548110613f6357613f62615681565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613fb257613fb1615652565b5b6001900381819060005260206000200160009055905550505050565b6000613fd983611673565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b82805461405990615519565b90600052602060002090601f01602090048101928261407b57600085556140c2565b82601f1061409457805160ff19168380011785556140c2565b828001600101855582156140c2579182015b828111156140c15782518255916020019190600101906140a6565b5b5090506140cf91906140d3565b5090565b5b808211156140ec5760008160009055506001016140d4565b5090565b60006141036140fe8461525e565b615239565b90508281526020810184848401111561411f5761411e6156e4565b5b61412a8482856154d7565b509392505050565b60006141456141408461528f565b615239565b905082815260208101848484011115614161576141606156e4565b5b61416c8482856154d7565b509392505050565b60008135905061418381615f4e565b92915050565b60008135905061419881615f65565b92915050565b6000813590506141ad81615f7c565b92915050565b6000813590506141c281615f93565b92915050565b6000815190506141d781615f93565b92915050565b600082601f8301126141f2576141f16156df565b5b81356142028482602086016140f0565b91505092915050565b600082601f8301126142205761421f6156df565b5b8135614230848260208601614132565b91505092915050565b60008135905061424881615faa565b92915050565b600060208284031215614264576142636156ee565b5b600061427284828501614174565b91505092915050565b600060208284031215614291576142906156ee565b5b600061429f84828501614189565b91505092915050565b600080604083850312156142bf576142be6156ee565b5b60006142cd85828601614189565b92505060206142de85828601614239565b9150509250929050565b600080604083850312156142ff576142fe6156ee565b5b600061430d85828601614174565b925050602061431e85828601614174565b9150509250929050565b600080600060608486031215614341576143406156ee565b5b600061434f86828701614174565b935050602061436086828701614174565b925050604061437186828701614239565b9150509250925092565b60008060008060808587031215614395576143946156ee565b5b60006143a387828801614174565b94505060206143b487828801614174565b93505060406143c587828801614239565b925050606085013567ffffffffffffffff8111156143e6576143e56156e9565b5b6143f2878288016141dd565b91505092959194509250565b60008060408385031215614415576144146156ee565b5b600061442385828601614174565b92505060206144348582860161419e565b9150509250929050565b60008060408385031215614455576144546156ee565b5b600061446385828601614174565b925050602061447485828601614239565b9150509250929050565b600060208284031215614494576144936156ee565b5b60006144a2848285016141b3565b91505092915050565b6000602082840312156144c1576144c06156ee565b5b60006144cf848285016141c8565b91505092915050565b6000602082840312156144ee576144ed6156ee565b5b600082013567ffffffffffffffff81111561450c5761450b6156e9565b5b6145188482850161420b565b91505092915050565b600060208284031215614537576145366156ee565b5b600061454584828501614239565b91505092915050565b600080600060608486031215614567576145666156ee565b5b600061457586828701614239565b935050602061458686828701614189565b925050604061459786828701614239565b9150509250925092565b600080604083850312156145b8576145b76156ee565b5b60006145c685828601614239565b92505060206145d785828601614239565b9150509250929050565b60006145ed8383614be9565b60208301905092915050565b61460281615463565b82525050565b61461181615451565b82525050565b6000614622826152d0565b61462c81856152fe565b9350614637836152c0565b8060005b8381101561466857815161464f88826145e1565b975061465a836152f1565b92505060018101905061463b565b5085935050505092915050565b61467e81615475565b82525050565b600061468f826152db565b614699818561530f565b93506146a98185602086016154e6565b6146b2816156f3565b840191505092915050565b60006146c8826152e6565b6146d2818561532b565b93506146e28185602086016154e6565b6146eb816156f3565b840191505092915050565b6000614703602b8361532b565b915061470e82615704565b604082019050919050565b600061472660148361532b565b915061473182615753565b602082019050919050565b6000614749602b8361532b565b91506147548261577c565b604082019050919050565b600061476c60328361532b565b9150614777826157cb565b604082019050919050565b600061478f601b8361532b565b915061479a8261581a565b602082019050919050565b60006147b260268361532b565b91506147bd82615843565b604082019050919050565b60006147d560258361532b565b91506147e082615892565b604082019050919050565b60006147f8601c8361532b565b9150614803826158e1565b602082019050919050565b600061481b60108361532b565b91506148268261590a565b602082019050919050565b600061483e601b8361532b565b915061484982615933565b602082019050919050565b600061486160248361532b565b915061486c8261595c565b604082019050919050565b600061488460198361532b565b915061488f826159ab565b602082019050919050565b60006148a760208361532b565b91506148b2826159d4565b602082019050919050565b60006148ca603a8361532b565b91506148d5826159fd565b604082019050919050565b60006148ed601d8361532b565b91506148f882615a4c565b602082019050919050565b600061491060158361532b565b915061491b82615a75565b602082019050919050565b6000614933602c8361532b565b915061493e82615a9e565b604082019050919050565b600061495660168361532b565b915061496182615aed565b602082019050919050565b600061497960388361532b565b915061498482615b16565b604082019050919050565b600061499c60258361532b565b91506149a782615b65565b604082019050919050565b60006149bf602a8361532b565b91506149ca82615bb4565b604082019050919050565b60006149e260298361532b565b91506149ed82615c03565b604082019050919050565b6000614a0560208361532b565b9150614a1082615c52565b602082019050919050565b6000614a28602c8361532b565b9150614a3382615c7b565b604082019050919050565b6000614a4b60208361532b565b9150614a5682615cca565b602082019050919050565b6000614a6e60298361532b565b9150614a7982615cf3565b604082019050919050565b6000614a9160148361532b565b9150614a9c82615d42565b602082019050919050565b6000614ab4600c8361532b565b9150614abf82615d6b565b602082019050919050565b6000614ad760218361532b565b9150614ae282615d94565b604082019050919050565b6000614afa60148361532b565b9150614b0582615de3565b602082019050919050565b6000614b1d600083615320565b9150614b2882615e0c565b600082019050919050565b6000614b4060318361532b565b9150614b4b82615e0f565b604082019050919050565b6000614b63601f8361532b565b9150614b6e82615e5e565b602082019050919050565b6000614b86602c8361532b565b9150614b9182615e87565b604082019050919050565b6000614ba9601f8361532b565b9150614bb482615ed6565b602082019050919050565b6000614bcc60288361532b565b9150614bd782615eff565b604082019050919050565b8082525050565b614bf2816154cd565b82525050565b614c01816154cd565b82525050565b614c10816154cd565b82525050565b6000614c2182614b10565b9150819050919050565b6000602082019050614c406000830184614608565b92915050565b6000602082019050614c5b60008301846145f9565b92915050565b6000604082019050614c7660008301856145f9565b614c836020830184614bf8565b9392505050565b6000608082019050614c9f6000830187614608565b614cac6020830186614608565b614cb96040830185614bf8565b8181036060830152614ccb8184614684565b905095945050505050565b6000604082019050614ceb6000830185614608565b614cf86020830184614bf8565b9392505050565b60006020820190508181036000830152614d198184614617565b905092915050565b6000602082019050614d366000830184614675565b92915050565b60006020820190508181036000830152614d5681846146bd565b905092915050565b60006020820190508181036000830152614d77816146f6565b9050919050565b60006020820190508181036000830152614d9781614719565b9050919050565b60006020820190508181036000830152614db78161473c565b9050919050565b60006020820190508181036000830152614dd78161475f565b9050919050565b60006020820190508181036000830152614df781614782565b9050919050565b60006020820190508181036000830152614e17816147a5565b9050919050565b60006020820190508181036000830152614e37816147c8565b9050919050565b60006020820190508181036000830152614e57816147eb565b9050919050565b60006020820190508181036000830152614e778161480e565b9050919050565b60006020820190508181036000830152614e9781614831565b9050919050565b60006020820190508181036000830152614eb781614854565b9050919050565b60006020820190508181036000830152614ed781614877565b9050919050565b60006020820190508181036000830152614ef78161489a565b9050919050565b60006020820190508181036000830152614f17816148bd565b9050919050565b60006020820190508181036000830152614f37816148e0565b9050919050565b60006020820190508181036000830152614f5781614903565b9050919050565b60006020820190508181036000830152614f7781614926565b9050919050565b60006020820190508181036000830152614f9781614949565b9050919050565b60006020820190508181036000830152614fb78161496c565b9050919050565b60006020820190508181036000830152614fd78161498f565b9050919050565b60006020820190508181036000830152614ff7816149b2565b9050919050565b60006020820190508181036000830152615017816149d5565b9050919050565b60006020820190508181036000830152615037816149f8565b9050919050565b6000602082019050818103600083015261505781614a1b565b9050919050565b6000602082019050818103600083015261507781614a3e565b9050919050565b6000602082019050818103600083015261509781614a61565b9050919050565b600060208201905081810360008301526150b781614a84565b9050919050565b600060208201905081810360008301526150d781614aa7565b9050919050565b600060208201905081810360008301526150f781614aca565b9050919050565b6000602082019050818103600083015261511781614aed565b9050919050565b6000602082019050818103600083015261513781614b33565b9050919050565b6000602082019050818103600083015261515781614b56565b9050919050565b6000602082019050818103600083015261517781614b79565b9050919050565b6000602082019050818103600083015261519781614b9c565b9050919050565b600060208201905081810360008301526151b781614bbf565b9050919050565b60006040820190506151d36000830185614be2565b6151e06020830184614c07565b9392505050565b60006060820190506151fc6000830186614be2565b6152096020830185614c07565b6152166040830184614c07565b949350505050565b60006020820190506152336000830184614bf8565b92915050565b6000615243615254565b905061524f828261554b565b919050565b6000604051905090565b600067ffffffffffffffff821115615279576152786156b0565b5b615282826156f3565b9050602081019050919050565b600067ffffffffffffffff8211156152aa576152a96156b0565b5b6152b3826156f3565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000615347826154cd565b9150615352836154cd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615387576153866155c5565b5b828201905092915050565b600061539d826154cd565b91506153a8836154cd565b9250826153b8576153b76155f4565b5b828204905092915050565b60006153ce826154cd565b91506153d9836154cd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615412576154116155c5565b5b828202905092915050565b6000615428826154cd565b9150615433836154cd565b925082821015615446576154456155c5565b5b828203905092915050565b600061545c826154ad565b9050919050565b600061546e826154ad565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156155045780820151818401526020810190506154e9565b83811115615513576000848401525b50505050565b6000600282049050600182168061553157607f821691505b6020821081141561554557615544615623565b5b50919050565b615554826156f3565b810181811067ffffffffffffffff82111715615573576155726156b0565b5b80604052505050565b6000615587826154cd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156155ba576155b96155c5565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4552433732315061757361626c653a20746f6b656e207472616e73666572207760008201527f68696c6520706175736564000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f496e76616c696420726f79616c74792069642070726f76696465640000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e46543a20496e73756666696369656e74206d6f6e65792073656e7420666f7260008201527f2073776170000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f526f79616c7479206f766572666c6f7700000000000000000000000000000000600082015250565b7f53656e64206d6f7265206d6f6e65792e20427579206661696c65640000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f596f75206172656e277420746865206f776e6572206f662074686973204e4654600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f43616c6c6572206e6f74206e66744d616e616765720000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53776170207072696365206d757374206265203e203000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4e46542073616c65207072696365206d7573742062652068696768657220746860008201527f616e20302e000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f496e76616c696420726f79616c7479496e646578000000000000000000000000600082015250565b7f4e465420736f6c64206f75740000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e6674206e6f742072656c656173656420796574000000000000000000000000600082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f596f75206172656e7420746865206f776e6572206f662074686973204e465400600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4e46543a204e4654206e6f7420617661696c61626c6520666f72207377617000600082015250565b7f6d61784e4654436f756e74206d757374206265206c6172676572207468616e2060008201527f6e6674496e646578000000000000000000000000000000000000000000000000602082015250565b615f5781615451565b8114615f6257600080fd5b50565b615f6e81615463565b8114615f7957600080fd5b50565b615f8581615475565b8114615f9057600080fd5b50565b615f9c81615481565b8114615fa757600080fd5b50565b615fb3816154cd565b8114615fbe57600080fd5b5056fea26469706673582212208bc17cddaae3b1a2e8400a256b8b6fd458a9d73a1f92b9ac00cc39d8e2988cfc64736f6c63430008070033000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000b0eb88dcc48fd8bbede196ba772ec9b0a3e14c9e000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000d2c410081eeaf885193dea62b87fc9af244a5e030000000000000000000000000000000000000000000000000000000000001d4c000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001544756e67656f6e20447261676f6e2053696c766572000000000000000000000000000000000000000000000000000000000000000000000000000000000000114855534c2d42555354412d5248594d4553000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103355760003560e01c80637794e682116101ab578063b12ab40f116100f7578063e8a3d48511610095578063f2fde38b1161006f578063f2fde38b14610bfd578063fd99e61a14610c26578063fe86483814610c42578063ffbe48e414610c6b57610335565b8063e8a3d48514610b6c578063e985e9c514610b97578063eff83c3414610bd457610335565b8063c87b56dd116100d1578063c87b56dd14610ab0578063d5aa93c814610aed578063d7eb3f3a14610b18578063e237306a14610b4357610335565b8063b12ab40f14610a0d578063b36e88ba14610a4a578063b88d4fde14610a8757610335565b8063938e3d7b116101645780639e8197141161013e5780639e81971414610953578063a0d7d8911461097e578063a22cb465146109bb578063a22e4faa146109e457610335565b8063938e3d7b146108d457806395d89b41146108fd5780639d1b464a1461092857610335565b80637794e682146107e857806377f3e5d6146108135780637d28166f1461082a5780637db3c8281461085557806389de38c41461087e5780638da5cb5b146108a957610335565b806345084414116102855780636f977b2211610223578063723db69f116101fd578063723db69f1461075f57806372df93e41461078a57806373e92784146107b357806375092320146107de57610335565b80636f977b22146106e257806370a082311461070b578063715018a61461074857610335565b806355f804b31161025f57806355f804b3146106265780635c975abb1461064f5780636352211e1461067a5780636c0360eb146106b757610335565b806345084414146105935780634a3d6bda146105be5780634f6ccce7146105e957610335565b806318b20071116102f25780632f745c59116102cc5780632f745c59146104ed5780633f4ba83a1461052a578063414319081461054157806342842e0e1461056a57610335565b806318b200711461047057806323b872dd146104995780632771b12e146104c257610335565b806301ffc9a71461033a57806306fdde0314610377578063081812fc146103a2578063095ea7b3146103df5780630bb8a4651461040857806318160ddd14610445575b600080fd5b34801561034657600080fd5b50610361600480360381019061035c919061447e565b610ca8565b60405161036e9190614d21565b60405180910390f35b34801561038357600080fd5b5061038c610cb9565b6040516103999190614d3c565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c49190614521565b610d4b565b6040516103d69190614c2b565b60405180910390f35b3480156103eb57600080fd5b506104066004803603810190610401919061443e565b610dd0565b005b34801561041457600080fd5b5061042f600480360381019061042a9190614521565b610f00565b60405161043c919061521e565b60405180910390f35b34801561045157600080fd5b5061045a610f52565b604051610467919061521e565b60405180910390f35b34801561047c57600080fd5b5061049760048036038101906104929190614521565b610f5f565b005b3480156104a557600080fd5b506104c060048036038101906104bb9190614328565b611028565b005b3480156104ce57600080fd5b506104d7611088565b6040516104e4919061521e565b60405180910390f35b3480156104f957600080fd5b50610514600480360381019061050f919061443e565b61108e565b604051610521919061521e565b60405180910390f35b34801561053657600080fd5b5061053f611133565b005b34801561054d57600080fd5b506105686004803603810190610563919061427b565b6111b9565b005b34801561057657600080fd5b50610591600480360381019061058c9190614328565b611279565b005b34801561059f57600080fd5b506105a8611299565b6040516105b5919061521e565b60405180910390f35b3480156105ca57600080fd5b506105d361129f565b6040516105e09190614cff565b60405180910390f35b3480156105f557600080fd5b50610610600480360381019061060b9190614521565b6112fa565b60405161061d919061521e565b60405180910390f35b34801561063257600080fd5b5061064d600480360381019061064891906144d8565b61136b565b005b34801561065b57600080fd5b50610664611401565b6040516106719190614d21565b60405180910390f35b34801561068657600080fd5b506106a1600480360381019061069c9190614521565b611418565b6040516106ae9190614c2b565b60405180910390f35b3480156106c357600080fd5b506106cc6114ca565b6040516106d99190614d3c565b60405180910390f35b3480156106ee57600080fd5b50610709600480360381019061070491906142a8565b611558565b005b34801561071757600080fd5b50610732600480360381019061072d919061424e565b611673565b60405161073f919061521e565b60405180910390f35b34801561075457600080fd5b5061075d61172b565b005b34801561076b57600080fd5b50610774611868565b6040516107819190614d21565b60405180910390f35b34801561079657600080fd5b506107b160048036038101906107ac9190614521565b61187f565b005b3480156107bf57600080fd5b506107c8611937565b6040516107d59190614d3c565b60405180910390f35b6107e66119c5565b005b3480156107f457600080fd5b506107fd611b55565b60405161080a9190614d21565b60405180910390f35b34801561081f57600080fd5b50610828611c03565b005b34801561083657600080fd5b5061083f611cea565b60405161084c9190614d21565b60405180910390f35b34801561086157600080fd5b5061087c6004803603810190610877919061454e565b611cfd565b005b34801561088a57600080fd5b50610893611e4e565b6040516108a0919061521e565b60405180910390f35b3480156108b557600080fd5b506108be611e54565b6040516108cb9190614c2b565b60405180910390f35b3480156108e057600080fd5b506108fb60048036038101906108f691906144d8565b611e7e565b005b34801561090957600080fd5b50610912611f14565b60405161091f9190614d3c565b60405180910390f35b34801561093457600080fd5b5061093d611fa6565b60405161094a919061521e565b60405180910390f35b34801561095f57600080fd5b50610968611fac565b6040516109759190614d21565b60405180910390f35b34801561098a57600080fd5b506109a560048036038101906109a09190614521565b61205a565b6040516109b29190614c46565b60405180910390f35b3480156109c757600080fd5b506109e260048036038101906109dd91906143fe565b61208d565b005b3480156109f057600080fd5b50610a0b6004803603810190610a06919061427b565b61220e565b005b348015610a1957600080fd5b50610a346004803603810190610a2f919061427b565b6122e0565b604051610a419190614cff565b60405180910390f35b348015610a5657600080fd5b50610a716004803603810190610a6c9190614521565b61238e565b604051610a7e9190614d21565b60405180910390f35b348015610a9357600080fd5b50610aae6004803603810190610aa9919061437b565b6123ed565b005b348015610abc57600080fd5b50610ad76004803603810190610ad29190614521565b61244f565b604051610ae49190614d3c565b60405180910390f35b348015610af957600080fd5b50610b026124e3565b604051610b0f9190614c46565b60405180910390f35b348015610b2457600080fd5b50610b2d612509565b604051610b3a9190614c46565b60405180910390f35b348015610b4f57600080fd5b50610b6a6004803603810190610b65919061443e565b61252f565b005b348015610b7857600080fd5b50610b816125dc565b604051610b8e9190614d3c565b60405180910390f35b348015610ba357600080fd5b50610bbe6004803603810190610bb991906142e8565b61266e565b604051610bcb9190614d21565b60405180910390f35b348015610be057600080fd5b50610bfb6004803603810190610bf69190614521565b612702565b005b348015610c0957600080fd5b50610c246004803603810190610c1f919061424e565b6127cd565b005b610c406004803603810190610c3b9190614521565b612979565b005b348015610c4e57600080fd5b50610c696004803603810190610c6491906145a1565b612b60565b005b348015610c7757600080fd5b50610c926004803603810190610c8d9190614521565b612c8a565b604051610c9f919061521e565b60405180910390f35b6000610cb382612cce565b50919050565b606060008054610cc890615519565b80601f0160208091040260200160405190810160405280929190818152602001828054610cf490615519565b8015610d415780601f10610d1657610100808354040283529160200191610d41565b820191906000526020600020905b815481529060010190602001808311610d2457829003601f168201915b5050505050905090565b6000610d5682612d48565b610d95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8c9061503e565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ddb82611418565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e43906150de565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610e6b612db4565b73ffffffffffffffffffffffffffffffffffffffff161480610e9a5750610e9981610e94612db4565b61266e565b5b610ed9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed090614f9e565b60405180910390fd5b610ee28261238e565b15610ef157610ef08261187f565b5b610efb8383612dbc565b505050565b6000600b600301600083815260200190815260200160002060009054906101000a900460ff16610f335760009050610f4d565b600b60010160008381526020019081526020016000205490505b919050565b6000600880549050905090565b610f67612db4565b73ffffffffffffffffffffffffffffffffffffffff16610f85611e54565b73ffffffffffffffffffffffffffffffffffffffff1614610fdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd29061505e565b60405180910390fd5b6000811161101e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101590614fbe565b60405180910390fd5b8060128190555050565b611039611033612db4565b82612e75565b611078576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106f9061511e565b60405180910390fd5b611083838383612f53565b505050565b60175481565b600061109983611673565b82106110da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d190614d9e565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b61113b612db4565b73ffffffffffffffffffffffffffffffffffffffff16611159611e54565b73ffffffffffffffffffffffffffffffffffffffff16146111af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a69061505e565b60405180910390fd5b6111b76131af565b565b6111c1612db4565b73ffffffffffffffffffffffffffffffffffffffff166111df611e54565b73ffffffffffffffffffffffffffffffffffffffff1614611235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122c9061505e565b60405180910390fd5b80601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b611294838383604051806020016040528060008152506123ed565b505050565b60115481565b6060600b6000018054806020026020016040519081016040528092919081815260200182805480156112f057602002820191906000526020600020905b8154815260200190600101908083116112dc575b5050505050905090565b6000611304610f52565b8210611345576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133c9061515e565b60405180910390fd5b6008828154811061135957611358615681565b5b90600052602060002001549050919050565b611373612db4565b73ffffffffffffffffffffffffffffffffffffffff16611391611e54565b73ffffffffffffffffffffffffffffffffffffffff16146113e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113de9061505e565b60405180910390fd5b80600f90805190602001906113fd92919061404d565b5050565b6000600a60009054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b890614ffe565b60405180910390fd5b80915050919050565b600f80546114d790615519565b80601f016020809104026020016040519081016040528092919081815260200182805461150390615519565b80156115505780601f1061152557610100808354040283529160200191611550565b820191906000526020600020905b81548152906001019060200180831161153357829003601f168201915b505050505081565b611560612db4565b73ffffffffffffffffffffffffffffffffffffffff1661157e611e54565b73ffffffffffffffffffffffffffffffffffffffff16146115d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cb9061505e565b60405180910390fd5b60006115e76115e1613251565b83612cb8565b905061251c81111561162e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161162590614e5e565b60405180910390fd5b600061163d6017546001612cb8565b905061164981856132b8565b611653818461330e565b600160176000828254611666919061533c565b9250508190555050505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156116e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116db90614fde565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611733612db4565b73ffffffffffffffffffffffffffffffffffffffff16611751611e54565b73ffffffffffffffffffffffffffffffffffffffff16146117a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161179e9061505e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000600a60159054906101000a900460ff16905090565b6118893382612e75565b6118c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bf9061513e565b60405180910390fd5b600b73907f5730034c83b08cfb9265b58b38b8514f1ded63c1e7808b9091836040518363ffffffff1660e01b81526004016119049291906151be565b60006040518083038186803b15801561191c57600080fd5b505af4158015611930573d6000803e3d6000fd5b5050505050565b6018805461194490615519565b80601f016020809104026020016040519081016040528092919081815260200182805461197090615519565b80156119bd5780601f10611992576101008083540402835291602001916119bd565b820191906000526020600020905b8154815290600101906020018083116119a057829003601f168201915b505050505081565b601254341015611a0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0190614e7e565b60405180910390fd5b611a12611401565b15611a52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a49906150fe565b60405180910390fd5b6000611a616010546001612cb8565b9050601154811115611aa8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9f906150be565b60405180910390fd5b600160106000828254611abb919061533c565b92505081905550611ace3360105461332a565b600b73907f5730034c83b08cfb9265b58b38b8514f1ded63c1e7808b90916010546040518363ffffffff1660e01b8152600401611b0c9291906151be565b60006040518083038186803b158015611b2457600080fd5b505af4158015611b38573d6000803e3d6000fd5b50505050611b47600234613348565b611b52600134613348565b50565b6000611b5f612db4565b73ffffffffffffffffffffffffffffffffffffffff16611b7d611e54565b73ffffffffffffffffffffffffffffffffffffffff1614611bd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bca9061505e565b60405180910390fd5b6001600a60156101000a81548160ff021916908315150217905550600a60159054906101000a900460ff16905090565b611c0b612db4565b73ffffffffffffffffffffffffffffffffffffffff16611c29611e54565b73ffffffffffffffffffffffffffffffffffffffff1614611c7f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c769061505e565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff1647604051611ca390614c16565b60006040518083038185875af1925050503d8060008114611ce0576040519150601f19603f3d011682016040523d82523d6000602084013e611ce5565b606091505b505050565b600a60159054906101000a900460ff1681565b611d05612db4565b73ffffffffffffffffffffffffffffffffffffffff16611d23611e54565b73ffffffffffffffffffffffffffffffffffffffff1614611d79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d709061505e565b60405180910390fd5b601754831115611dbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611db590614dde565b60405180910390fd5b6000611ded611dd4611dce613251565b84612cb8565b6016600087815260200190815260200160002054612ca2565b905061251c811115611e34576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2b90614e5e565b60405180910390fd5b611e3e84846132b8565b611e48848361330e565b50505050565b60105481565b6000600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611e86612db4565b73ffffffffffffffffffffffffffffffffffffffff16611ea4611e54565b73ffffffffffffffffffffffffffffffffffffffff1614611efa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef19061505e565b60405180910390fd5b8060189080519060200190611f1092919061404d565b5050565b606060018054611f2390615519565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4f90615519565b8015611f9c5780601f10611f7157610100808354040283529160200191611f9c565b820191906000526020600020905b815481529060010190602001808311611f7f57829003601f168201915b5050505050905090565b60125481565b6000611fb6612db4565b73ffffffffffffffffffffffffffffffffffffffff16611fd4611e54565b73ffffffffffffffffffffffffffffffffffffffff161461202a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120219061505e565b60405180910390fd5b6000600a60156101000a81548160ff021916908315150217905550600a60159054906101000a900460ff16905090565b60156020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612095612db4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120fa90614ebe565b60405180910390fd5b8060056000612110612db4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166121bd612db4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122029190614d21565b60405180910390a35050565b612216612db4565b73ffffffffffffffffffffffffffffffffffffffff16612234611e54565b73ffffffffffffffffffffffffffffffffffffffff161461228a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122819061505e565b60405180910390fd5b80601560006001815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606060006122ed83611673565b905060008167ffffffffffffffff81111561230b5761230a6156b0565b5b6040519080825280602002602001820160405280156123395781602001602082028036833780820191505090505b50905060005b8281101561238357612351858261108e565b82828151811061236457612363615681565b5b602002602001018181525050808061237b9061557c565b91505061233f565b819350505050919050565b6000600b600301600083815260200190815260200160002060009054906101000a900460ff166123c157600090506123e8565b600b600301600083815260200190815260200160002060009054906101000a900460ff1690505b919050565b6123fe6123f8612db4565b83612e75565b61243d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124349061511e565b60405180910390fd5b61244984848484613475565b50505050565b6060600f805461245e90615519565b80601f016020809104026020016040519081016040528092919081815260200182805461248a90615519565b80156124d75780601f106124ac576101008083540402835291602001916124d7565b820191906000526020600020905b8154815290600101906020018083116124ba57829003601f168201915b50505050509050919050565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146125bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125b690614f3e565b60405180910390fd5b60006125ca82611418565b90506125d7818484611279565b505050565b6060601880546125eb90615519565b80601f016020809104026020016040519081016040528092919081815260200182805461261790615519565b80156126645780601f1061263957610100808354040283529160200191612664565b820191906000526020600020905b81548152906001019060200180831161264757829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61270a612db4565b73ffffffffffffffffffffffffffffffffffffffff16612728611e54565b73ffffffffffffffffffffffffffffffffffffffff161461277e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127759061505e565b60405180910390fd5b6010548110156127c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127ba9061519e565b60405180910390fd5b8060118190555050565b6127d5612db4565b73ffffffffffffffffffffffffffffffffffffffff166127f3611e54565b73ffffffffffffffffffffffffffffffffffffffff1614612849576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128409061505e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156128b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128b090614dfe565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600a60019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b600301600082815260200190815260200160002060009054906101000a900460ff166129dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d39061517e565b60405180910390fd5b6000600b60010160008381526020019081526020016000205411612a35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2c9061517e565b60405180910390fd5b600b600101600082815260200190815260200160002054341015612a8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a8590614e1e565b60405180910390fd5b6000612a9982611418565b9050612aa533836134d1565b6000612abe612ab6346107d0613564565b61271061357a565b90506000612acc3483612ca2565b9050612ad88382613590565b612ae3600283613348565b612aee600183613348565b600b73907f5730034c83b08cfb9265b58b38b8514f1ded63c1e7808b9091866040518363ffffffff1660e01b8152600401612b2a9291906151be565b60006040518083038186803b158015612b4257600080fd5b505af4158015612b56573d6000803e3d6000fd5b5050505050505050565b612b6a3383612e75565b612ba9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ba090614ede565b60405180910390fd5b60008111612bec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be390614f7e565b60405180910390fd5b612c18601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683610dd0565b600b73907f5730034c83b08cfb9265b58b38b8514f1ded633a6025bd909184846040518463ffffffff1660e01b8152600401612c56939291906151e7565b60006040518083038186803b158015612c6e57600080fd5b505af4158015612c82573d6000803e3d6000fd5b505050505050565b60166020528060005260406000206000915090505481565b60008183612cb0919061541d565b905092915050565b60008183612cc6919061533c565b905092915050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d415750612d4082613684565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612e2f83611418565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612e8082612d48565b612ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612eb690614f5e565b60405180910390fd5b6000612eca83611418565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f3957508373ffffffffffffffffffffffffffffffffffffffff16612f2184610d4b565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f4a5750612f49818561266e565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612f7382611418565b73ffffffffffffffffffffffffffffffffffffffff1614612fc9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc09061507e565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613039576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161303090614e9e565b60405180910390fd5b613044838383613766565b61304f600082612dbc565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461309f919061541d565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130f6919061533c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6131b7611401565b6131f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131ed90614d7e565b60405180910390fd5b6000600a60006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61323a612db4565b6040516132479190614c2b565b60405180910390a1565b60008060009050600080601754141561326f576000925050506132b5565b600190505b60175481116132af5761329a826016600084815260200190815260200160002054612cb8565b915080806132a79061557c565b915050613274565b81925050505b90565b806015600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b8060166000848152602001908152602001600020819055505050565b613344828260405180602001604052806000815250613799565b5050565b6000821161338b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133829061509e565b60405180910390fd5b60006016600084815260200190815260200160002054905060006133ba6133b28484613564565b61271061357a565b90506133f96015600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682613590565b600184141561346f577f4474b9f13296e8e07ee10aeca6f574d9a227961896e05623f8617f604c427a5e6015600086815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051613466929190614c61565b60405180910390a15b50505050565b613480848484612f53565b61348c848484846137f4565b6134cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c290614dbe565b60405180910390fd5b50505050565b601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d004f0f783836040518363ffffffff1660e01b815260040161352e929190614cd6565b600060405180830381600087803b15801561354857600080fd5b505af115801561355c573d6000803e3d6000fd5b505050505050565b6000818361357291906153c3565b905092915050565b600081836135889190615392565b905092915050565b804710156135d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135ca90614f1e565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff16826040516135f990614c16565b60006040518083038185875af1925050503d8060008114613636576040519150601f19603f3d011682016040523d82523d6000602084013e61363b565b606091505b505090508061367f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161367690614efe565b60405180910390fd5b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061374f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061375f575061375e8261398b565b5b9050919050565b6137718383836139f5565b61377c838383613b09565b6137858161238e565b15613794576137938161187f565b5b505050565b6137a38383613b61565b6137b060008484846137f4565b6137ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137e690614dbe565b60405180910390fd5b505050565b60006138158473ffffffffffffffffffffffffffffffffffffffff16613d2f565b1561397e578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261383e612db4565b8786866040518563ffffffff1660e01b81526004016138609493929190614c8a565b602060405180830381600087803b15801561387a57600080fd5b505af19250505080156138ab57506040513d601f19601f820116820180604052508101906138a891906144ab565b60015b61392e573d80600081146138db576040519150601f19603f3d011682016040523d82523d6000602084013e6138e0565b606091505b50600081511415613926576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161391d90614dbe565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613983565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b613a00838383613d42565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415613a4357613a3e81613d47565b613a82565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613a8157613a808382613d90565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613ac557613ac081613efd565b613b04565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614613b0357613b028282613fce565b5b5b505050565b613b148383836139f5565b613b1c611401565b15613b5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b5390614d5e565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613bc89061501e565b60405180910390fd5b613bda81612d48565b15613c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c1190614e3e565b60405180910390fd5b613c2660008383613766565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613c76919061533c565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613d9d84611673565b613da7919061541d565b9050600060076000848152602001908152602001600020549050818114613e8c576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613f11919061541d565b9050600060096000848152602001908152602001600020549050600060088381548110613f4157613f40615681565b5b906000526020600020015490508060088381548110613f6357613f62615681565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613fb257613fb1615652565b5b6001900381819060005260206000200160009055905550505050565b6000613fd983611673565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b82805461405990615519565b90600052602060002090601f01602090048101928261407b57600085556140c2565b82601f1061409457805160ff19168380011785556140c2565b828001600101855582156140c2579182015b828111156140c15782518255916020019190600101906140a6565b5b5090506140cf91906140d3565b5090565b5b808211156140ec5760008160009055506001016140d4565b5090565b60006141036140fe8461525e565b615239565b90508281526020810184848401111561411f5761411e6156e4565b5b61412a8482856154d7565b509392505050565b60006141456141408461528f565b615239565b905082815260208101848484011115614161576141606156e4565b5b61416c8482856154d7565b509392505050565b60008135905061418381615f4e565b92915050565b60008135905061419881615f65565b92915050565b6000813590506141ad81615f7c565b92915050565b6000813590506141c281615f93565b92915050565b6000815190506141d781615f93565b92915050565b600082601f8301126141f2576141f16156df565b5b81356142028482602086016140f0565b91505092915050565b600082601f8301126142205761421f6156df565b5b8135614230848260208601614132565b91505092915050565b60008135905061424881615faa565b92915050565b600060208284031215614264576142636156ee565b5b600061427284828501614174565b91505092915050565b600060208284031215614291576142906156ee565b5b600061429f84828501614189565b91505092915050565b600080604083850312156142bf576142be6156ee565b5b60006142cd85828601614189565b92505060206142de85828601614239565b9150509250929050565b600080604083850312156142ff576142fe6156ee565b5b600061430d85828601614174565b925050602061431e85828601614174565b9150509250929050565b600080600060608486031215614341576143406156ee565b5b600061434f86828701614174565b935050602061436086828701614174565b925050604061437186828701614239565b9150509250925092565b60008060008060808587031215614395576143946156ee565b5b60006143a387828801614174565b94505060206143b487828801614174565b93505060406143c587828801614239565b925050606085013567ffffffffffffffff8111156143e6576143e56156e9565b5b6143f2878288016141dd565b91505092959194509250565b60008060408385031215614415576144146156ee565b5b600061442385828601614174565b92505060206144348582860161419e565b9150509250929050565b60008060408385031215614455576144546156ee565b5b600061446385828601614174565b925050602061447485828601614239565b9150509250929050565b600060208284031215614494576144936156ee565b5b60006144a2848285016141b3565b91505092915050565b6000602082840312156144c1576144c06156ee565b5b60006144cf848285016141c8565b91505092915050565b6000602082840312156144ee576144ed6156ee565b5b600082013567ffffffffffffffff81111561450c5761450b6156e9565b5b6145188482850161420b565b91505092915050565b600060208284031215614537576145366156ee565b5b600061454584828501614239565b91505092915050565b600080600060608486031215614567576145666156ee565b5b600061457586828701614239565b935050602061458686828701614189565b925050604061459786828701614239565b9150509250925092565b600080604083850312156145b8576145b76156ee565b5b60006145c685828601614239565b92505060206145d785828601614239565b9150509250929050565b60006145ed8383614be9565b60208301905092915050565b61460281615463565b82525050565b61461181615451565b82525050565b6000614622826152d0565b61462c81856152fe565b9350614637836152c0565b8060005b8381101561466857815161464f88826145e1565b975061465a836152f1565b92505060018101905061463b565b5085935050505092915050565b61467e81615475565b82525050565b600061468f826152db565b614699818561530f565b93506146a98185602086016154e6565b6146b2816156f3565b840191505092915050565b60006146c8826152e6565b6146d2818561532b565b93506146e28185602086016154e6565b6146eb816156f3565b840191505092915050565b6000614703602b8361532b565b915061470e82615704565b604082019050919050565b600061472660148361532b565b915061473182615753565b602082019050919050565b6000614749602b8361532b565b91506147548261577c565b604082019050919050565b600061476c60328361532b565b9150614777826157cb565b604082019050919050565b600061478f601b8361532b565b915061479a8261581a565b602082019050919050565b60006147b260268361532b565b91506147bd82615843565b604082019050919050565b60006147d560258361532b565b91506147e082615892565b604082019050919050565b60006147f8601c8361532b565b9150614803826158e1565b602082019050919050565b600061481b60108361532b565b91506148268261590a565b602082019050919050565b600061483e601b8361532b565b915061484982615933565b602082019050919050565b600061486160248361532b565b915061486c8261595c565b604082019050919050565b600061488460198361532b565b915061488f826159ab565b602082019050919050565b60006148a760208361532b565b91506148b2826159d4565b602082019050919050565b60006148ca603a8361532b565b91506148d5826159fd565b604082019050919050565b60006148ed601d8361532b565b91506148f882615a4c565b602082019050919050565b600061491060158361532b565b915061491b82615a75565b602082019050919050565b6000614933602c8361532b565b915061493e82615a9e565b604082019050919050565b600061495660168361532b565b915061496182615aed565b602082019050919050565b600061497960388361532b565b915061498482615b16565b604082019050919050565b600061499c60258361532b565b91506149a782615b65565b604082019050919050565b60006149bf602a8361532b565b91506149ca82615bb4565b604082019050919050565b60006149e260298361532b565b91506149ed82615c03565b604082019050919050565b6000614a0560208361532b565b9150614a1082615c52565b602082019050919050565b6000614a28602c8361532b565b9150614a3382615c7b565b604082019050919050565b6000614a4b60208361532b565b9150614a5682615cca565b602082019050919050565b6000614a6e60298361532b565b9150614a7982615cf3565b604082019050919050565b6000614a9160148361532b565b9150614a9c82615d42565b602082019050919050565b6000614ab4600c8361532b565b9150614abf82615d6b565b602082019050919050565b6000614ad760218361532b565b9150614ae282615d94565b604082019050919050565b6000614afa60148361532b565b9150614b0582615de3565b602082019050919050565b6000614b1d600083615320565b9150614b2882615e0c565b600082019050919050565b6000614b4060318361532b565b9150614b4b82615e0f565b604082019050919050565b6000614b63601f8361532b565b9150614b6e82615e5e565b602082019050919050565b6000614b86602c8361532b565b9150614b9182615e87565b604082019050919050565b6000614ba9601f8361532b565b9150614bb482615ed6565b602082019050919050565b6000614bcc60288361532b565b9150614bd782615eff565b604082019050919050565b8082525050565b614bf2816154cd565b82525050565b614c01816154cd565b82525050565b614c10816154cd565b82525050565b6000614c2182614b10565b9150819050919050565b6000602082019050614c406000830184614608565b92915050565b6000602082019050614c5b60008301846145f9565b92915050565b6000604082019050614c7660008301856145f9565b614c836020830184614bf8565b9392505050565b6000608082019050614c9f6000830187614608565b614cac6020830186614608565b614cb96040830185614bf8565b8181036060830152614ccb8184614684565b905095945050505050565b6000604082019050614ceb6000830185614608565b614cf86020830184614bf8565b9392505050565b60006020820190508181036000830152614d198184614617565b905092915050565b6000602082019050614d366000830184614675565b92915050565b60006020820190508181036000830152614d5681846146bd565b905092915050565b60006020820190508181036000830152614d77816146f6565b9050919050565b60006020820190508181036000830152614d9781614719565b9050919050565b60006020820190508181036000830152614db78161473c565b9050919050565b60006020820190508181036000830152614dd78161475f565b9050919050565b60006020820190508181036000830152614df781614782565b9050919050565b60006020820190508181036000830152614e17816147a5565b9050919050565b60006020820190508181036000830152614e37816147c8565b9050919050565b60006020820190508181036000830152614e57816147eb565b9050919050565b60006020820190508181036000830152614e778161480e565b9050919050565b60006020820190508181036000830152614e9781614831565b9050919050565b60006020820190508181036000830152614eb781614854565b9050919050565b60006020820190508181036000830152614ed781614877565b9050919050565b60006020820190508181036000830152614ef78161489a565b9050919050565b60006020820190508181036000830152614f17816148bd565b9050919050565b60006020820190508181036000830152614f37816148e0565b9050919050565b60006020820190508181036000830152614f5781614903565b9050919050565b60006020820190508181036000830152614f7781614926565b9050919050565b60006020820190508181036000830152614f9781614949565b9050919050565b60006020820190508181036000830152614fb78161496c565b9050919050565b60006020820190508181036000830152614fd78161498f565b9050919050565b60006020820190508181036000830152614ff7816149b2565b9050919050565b60006020820190508181036000830152615017816149d5565b9050919050565b60006020820190508181036000830152615037816149f8565b9050919050565b6000602082019050818103600083015261505781614a1b565b9050919050565b6000602082019050818103600083015261507781614a3e565b9050919050565b6000602082019050818103600083015261509781614a61565b9050919050565b600060208201905081810360008301526150b781614a84565b9050919050565b600060208201905081810360008301526150d781614aa7565b9050919050565b600060208201905081810360008301526150f781614aca565b9050919050565b6000602082019050818103600083015261511781614aed565b9050919050565b6000602082019050818103600083015261513781614b33565b9050919050565b6000602082019050818103600083015261515781614b56565b9050919050565b6000602082019050818103600083015261517781614b79565b9050919050565b6000602082019050818103600083015261519781614b9c565b9050919050565b600060208201905081810360008301526151b781614bbf565b9050919050565b60006040820190506151d36000830185614be2565b6151e06020830184614c07565b9392505050565b60006060820190506151fc6000830186614be2565b6152096020830185614c07565b6152166040830184614c07565b949350505050565b60006020820190506152336000830184614bf8565b92915050565b6000615243615254565b905061524f828261554b565b919050565b6000604051905090565b600067ffffffffffffffff821115615279576152786156b0565b5b615282826156f3565b9050602081019050919050565b600067ffffffffffffffff8211156152aa576152a96156b0565b5b6152b3826156f3565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b6000615347826154cd565b9150615352836154cd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115615387576153866155c5565b5b828201905092915050565b600061539d826154cd565b91506153a8836154cd565b9250826153b8576153b76155f4565b5b828204905092915050565b60006153ce826154cd565b91506153d9836154cd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615412576154116155c5565b5b828202905092915050565b6000615428826154cd565b9150615433836154cd565b925082821015615446576154456155c5565b5b828203905092915050565b600061545c826154ad565b9050919050565b600061546e826154ad565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156155045780820151818401526020810190506154e9565b83811115615513576000848401525b50505050565b6000600282049050600182168061553157607f821691505b6020821081141561554557615544615623565b5b50919050565b615554826156f3565b810181811067ffffffffffffffff82111715615573576155726156b0565b5b80604052505050565b6000615587826154cd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156155ba576155b96155c5565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4552433732315061757361626c653a20746f6b656e207472616e73666572207760008201527f68696c6520706175736564000000000000000000000000000000000000000000602082015250565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f496e76616c696420726f79616c74792069642070726f76696465640000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4e46543a20496e73756666696369656e74206d6f6e65792073656e7420666f7260008201527f2073776170000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f526f79616c7479206f766572666c6f7700000000000000000000000000000000600082015250565b7f53656e64206d6f7265206d6f6e65792e20427579206661696c65640000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f596f75206172656e277420746865206f776e6572206f662074686973204e4654600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f43616c6c6572206e6f74206e66744d616e616765720000000000000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f53776170207072696365206d757374206265203e203000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4e46542073616c65207072696365206d7573742062652068696768657220746860008201527f616e20302e000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f496e76616c696420726f79616c7479496e646578000000000000000000000000600082015250565b7f4e465420736f6c64206f75740000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e6674206e6f742072656c656173656420796574000000000000000000000000600082015250565b50565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f596f75206172656e7420746865206f776e6572206f662074686973204e465400600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4e46543a204e4654206e6f7420617661696c61626c6520666f72207377617000600082015250565b7f6d61784e4654436f756e74206d757374206265206c6172676572207468616e2060008201527f6e6674496e646578000000000000000000000000000000000000000000000000602082015250565b615f5781615451565b8114615f6257600080fd5b50565b615f6e81615463565b8114615f7957600080fd5b50565b615f8581615475565b8114615f9057600080fd5b50565b615f9c81615481565b8114615fa757600080fd5b50565b615fb3816154cd565b8114615fbe57600080fd5b5056fea26469706673582212208bc17cddaae3b1a2e8400a256b8b6fd458a9d73a1f92b9ac00cc39d8e2988cfc64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000b0eb88dcc48fd8bbede196ba772ec9b0a3e14c9e000000000000000000000000000000000000000000000000016345785d8a0000000000000000000000000000d2c410081eeaf885193dea62b87fc9af244a5e030000000000000000000000000000000000000000000000000000000000001d4c000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001544756e67656f6e20447261676f6e2053696c766572000000000000000000000000000000000000000000000000000000000000000000000000000000000000114855534c2d42555354412d5248594d4553000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _maxNftCount (uint256): 300
Arg [1] : _nftManagerAddress (address): 0xB0EB88Dcc48Fd8BBedE196Ba772Ec9b0A3E14c9e
Arg [2] : _currentPrice (uint256): 100000000000000000
Arg [3] : _artistAddress (address): 0xd2C410081EEAF885193dea62b87Fc9Af244a5e03
Arg [4] : _royaltyPercent (uint256): 7500
Arg [5] : nftName (string): Dungeon Dragon Silver
Arg [6] : nftSymbol (string): HUSL-BUSTA-RHYMES
Arg [7] : _unlockable (bool): False
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [1] : 000000000000000000000000b0eb88dcc48fd8bbede196ba772ec9b0a3e14c9e
Arg [2] : 000000000000000000000000000000000000000000000000016345785d8a0000
Arg [3] : 000000000000000000000000d2c410081eeaf885193dea62b87fc9af244a5e03
Arg [4] : 0000000000000000000000000000000000000000000000000000000000001d4c
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [9] : 44756e67656f6e20447261676f6e2053696c7665720000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [11] : 4855534c2d42555354412d5248594d4553000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $2,609.17 | 0.045 | $117.41 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.