Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
1,536 TRAP
Holders
849
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 TRAPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CritterzWTF
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /* _____ _____ _____ _____ _____ _____ _____ _____ /\ \ /\ \ /\ \ /\ \ /\ \ /\ \ /\ \ /\ \ /::\ \ /::\ \ /::\ \ /::\ \ /::\ \ /::\ \ /::\ \ /::\ \ /::::\ \ /::::\ \ \:::\ \ \:::\ \ \:::\ \ /::::\ \ /::::\ \ \:::\ \ /::::::\ \ /::::::\ \ \:::\ \ \:::\ \ \:::\ \ /::::::\ \ /::::::\ \ \:::\ \ /:::/\:::\ \ /:::/\:::\ \ \:::\ \ \:::\ \ \:::\ \ /:::/\:::\ \ /:::/\:::\ \ \:::\ \ /:::/ \:::\ \ /:::/__\:::\ \ \:::\ \ \:::\ \ \:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ \:::\ \ /:::/ \:::\ \ /::::\ \:::\ \ /::::\ \ /::::\ \ /::::\ \ /::::\ \:::\ \ /::::\ \:::\ \ \:::\ \ /:::/ / \:::\ \ /::::::\ \:::\ \ ____ /::::::\ \ /::::::\ \ /::::::\ \ /::::::\ \:::\ \ /::::::\ \:::\ \ \:::\ \ /:::/ / \:::\ \ /:::/\:::\ \:::\____\ /\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \:::\ \ /:::/\:::\ \:::\____\ \:::\ \ /:::/____/ \:::\____/:::/ \:::\ \:::| /::\ \/:::/ \:::\____\/:::/ \:::\____\/:::/ \:::\____/:::/__\:::\ \:::\____/:::/ \:::\ \:::| _______________\:::\____\ \:::\ \ \::/ \::/ |::::\ /:::|____\:::\ /:::/ \::/ /:::/ \::/ /:::/ \::/ \:::\ \:::\ \::/ \::/ |::::\ /:::|____\::::::::::::::::::/ / \:::\ \ \/____/ \/____|:::::\/:::/ / \:::\/:::/ / \/____/:::/ / \/____/:::/ / \/____/ \:::\ \:::\ \/____/ \/____|:::::\/:::/ / \::::::::::::::::/____/ \:::\ \ |:::::::::/ / \::::::/ / /:::/ / /:::/ / \:::\ \:::\ \ |:::::::::/ / \:::\~~~~\~~~~~~ \:::\ \ |::|\::::/ / \::::/____/ /:::/ / /:::/ / \:::\ \:::\____\ |::|\::::/ / \:::\ \ \:::\ \ |::| \::/____/ \:::\ \ \::/ / \::/ / \:::\ \::/ / |::| \::/____/ \:::\ \ \:::\ \ |::| ~| \:::\ \ \/____/ \/____/ \:::\ \/____/ |::| ~| \:::\ \ \:::\ \ |::| | \:::\ \ \:::\ \ |::| | \:::\ \ \:::\____\ \::| | \:::\____\ \:::\____\ \::| | \:::\____\ \::/ / \:| | \::/ / \::/ / \:| | \::/ / \/____/ \|___| \/____/ \/____/ \|___| \/____/ */ contract CritterzWTF is ERC721AQueryable, Ownable { // ============ State Variables ============ mapping(uint256 => bool) public usedHoboTownTokenIds; mapping(uint256 => bool) public usedHoboLootTokenIds; string public uriPrefix = ""; string public uriSuffix = ".json"; string public hiddenMetadataUri; bool public paused = true; bool public revealed = false; IERC721A hoboTownWTF; IERC721A hoboLootWTF; // ============ Modifiers ============ modifier onlyWhenNotPaused() { require(!paused, "the uh... contract is currently paused"); _; } modifier callerIsUser() { require(tx.origin == msg.sender, "the caller is another contract"); _; } // ============ Constructor ============ constructor( string memory _tokenName, string memory _tokenSymbol, string memory _hiddenMetadataUri, address HoboTownWTFAddress, address HoboLootWTFAddress ) ERC721A(_tokenName, _tokenSymbol) { setHiddenMetadataUri(_hiddenMetadataUri); hoboTownWTF = IERC721A(HoboTownWTFAddress); hoboLootWTF = IERC721A(HoboLootWTFAddress); } // ============ Core functions ============ function mint( uint256[] memory unusedHoboTownTokenIds, uint256[] memory unusedHoboLootTokenIds ) external onlyWhenNotPaused callerIsUser { for ( uint256 i; i < ( unusedHoboTownTokenIds.length > unusedHoboLootTokenIds.length ? unusedHoboLootTokenIds.length : unusedHoboTownTokenIds.length ); ) { require( hoboTownWTF.ownerOf(unusedHoboTownTokenIds[i]) == _msgSender() && !usedHoboTownTokenIds[unusedHoboTownTokenIds[i]], "u ain't the owner or them token ids already been used" ); require( hoboLootWTF.ownerOf(unusedHoboLootTokenIds[i]) == _msgSender() && !usedHoboLootTokenIds[unusedHoboLootTokenIds[i]], "u ain't the owner or them token ids already been used" ); usedHoboTownTokenIds[unusedHoboTownTokenIds[i]] = true; usedHoboLootTokenIds[unusedHoboLootTokenIds[i]] = true; unchecked { i++; } } _mint( _msgSender(), unusedHoboTownTokenIds.length > unusedHoboLootTokenIds.length ? unusedHoboLootTokenIds.length : unusedHoboTownTokenIds.length ); } function mintMany(address[] calldata _to, uint256[] calldata _amount) external payable onlyOwner { for (uint256 i; i < _to.length; ) { _mint(_to[i], _amount[i]); unchecked { i++; } } } function withdraw() external onlyOwner { require(address(this).balance > 0, "the uhh.. contract has no funds"); (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } function checkIfHoboTownTokenUsed(uint256 tokenId) public view returns (bool) { return usedHoboTownTokenIds[tokenId]; } function checkIfHoboLootTokenUsed(uint256 tokenId) public view returns (bool) { return usedHoboLootTokenIds[tokenId]; } // ============ Overrides ============ function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (revealed == false) { return hiddenMetadataUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, _toString(_tokenId), uriSuffix ) ) : ""; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } // ============ Setters (OnlyOwner) ============ function setRevealed(bool _state) external onlyOwner { revealed = _state; } function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function setUriPrefix(string memory _uriPrefix) external onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) external onlyOwner { uriSuffix = _uriSuffix; } function setPaused(bool _state) external onlyOwner { paused = _state; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * - `extraData` = `0` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * - `extraData` = `<Extra data when token was burned>` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` * - `extraData` = `<Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), 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-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 { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. * This includes minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // 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); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @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); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"string","name":"_hiddenMetadataUri","type":"string"},{"internalType":"address","name":"HoboTownWTFAddress","type":"address"},{"internalType":"address","name":"HoboLootWTFAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkIfHoboLootTokenUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"checkIfHoboTownTokenUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"unusedHoboTownTokenIds","type":"uint256[]"},{"internalType":"uint256[]","name":"unusedHoboLootTokenIds","type":"uint256[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_to","type":"address[]"},{"internalType":"uint256[]","name":"_amount","type":"uint256[]"}],"name":"mintMany","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"usedHoboLootTokenIds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"usedHoboTownTokenIds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260405180602001604052806000815250600b90805190602001906200002b92919062000399565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600c90805190602001906200007992919062000399565b506001600e60006101000a81548160ff0219169083151502179055506000600e60016101000a81548160ff021916908315150217905550348015620000bd57600080fd5b5060405162004ccc38038062004ccc8339818101604052810190620000e39190620004d2565b84848160029080519060200190620000fd92919062000399565b5080600390805190602001906200011692919062000399565b5062000127620001ed60201b60201c565b60008190555050506200014f62000143620001f660201b60201c565b620001fe60201b60201c565b6200016083620002c460201b60201c565b81600e60026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050620007e0565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002d4620001f660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002fa6200036f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000353576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200034a90620005c6565b60405180910390fd5b80600d90805190602001906200036b92919062000399565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620003a790620006c2565b90600052602060002090601f016020900481019282620003cb576000855562000417565b82601f10620003e657805160ff191683800117855562000417565b8280016001018555821562000417579182015b8281111562000416578251825591602001919060010190620003f9565b5b5090506200042691906200042a565b5090565b5b80821115620004455760008160009055506001016200042b565b5090565b6000620004606200045a8462000611565b620005e8565b9050828152602081018484840111156200047957600080fd5b620004868482856200068c565b509392505050565b6000815190506200049f81620007c6565b92915050565b600082601f830112620004b757600080fd5b8151620004c984826020860162000449565b91505092915050565b600080600080600060a08688031215620004eb57600080fd5b600086015167ffffffffffffffff8111156200050657600080fd5b6200051488828901620004a5565b955050602086015167ffffffffffffffff8111156200053257600080fd5b6200054088828901620004a5565b945050604086015167ffffffffffffffff8111156200055e57600080fd5b6200056c88828901620004a5565b93505060606200057f888289016200048e565b925050608062000592888289016200048e565b9150509295509295909350565b6000620005ae60208362000647565b9150620005bb826200079d565b602082019050919050565b60006020820190508181036000830152620005e1816200059f565b9050919050565b6000620005f462000607565b9050620006028282620006f8565b919050565b6000604051905090565b600067ffffffffffffffff8211156200062f576200062e6200075d565b5b6200063a826200078c565b9050602081019050919050565b600082825260208201905092915050565b600062000665826200066c565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60005b83811015620006ac5780820151818401526020810190506200068f565b83811115620006bc576000848401525b50505050565b60006002820490506001821680620006db57607f821691505b60208210811415620006f257620006f16200072e565b5b50919050565b62000703826200078c565b810181811067ffffffffffffffff821117156200072557620007246200075d565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b620007d18162000658565b8114620007dd57600080fd5b50565b6144dc80620007f06000396000f3fe6080604052600436106102255760003560e01c806362b99ad41161012357806399a2557a116100ab578063c756480b1161006f578063c756480b14610830578063c87b56dd1461086d578063e0a80853146108aa578063e985e9c5146108d3578063f2fde38b1461091057610225565b806399a2557a14610739578063a22cb46514610776578063a45ba8e71461079f578063b88d4fde146107ca578063c23dc68f146107f357610225565b80637ec4a659116100f25780637ec4a659146106405780638462151c146106695780638da5cb5b146106a6578063958a2923146106d157806395d89b411461070e57610225565b806362b99ad4146105845780636352211e146105af57806370a08231146105ec578063715018a61461062957610225565b80632f49c787116101b15780634fdd43cb116101755780634fdd43cb1461049d57806351830227146104c65780635503a0e8146104f15780635bbb21771461051c5780635c975abb1461055957610225565b80632f49c787146103db5780633ccfd60b146104185780633d5d190c1461042f5780634029a3ce1461045857806342842e0e1461047457610225565b806316ba10e0116101f857806316ba10e0146102f857806316c38b3c1461032157806318160ddd1461034a5780631ec0772d1461037557806323b872dd146103b257610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190613815565b610939565b60405161025e9190613e0a565b60405180910390f35b34801561027357600080fd5b5061027c6109cb565b6040516102899190613e25565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b491906138a8565b610a5d565b6040516102c69190613d5f565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f1919061363f565b610ad9565b005b34801561030457600080fd5b5061031f600480360381019061031a9190613867565b610c1a565b005b34801561032d57600080fd5b50610348600480360381019061034391906137ec565b610cb0565b005b34801561035657600080fd5b5061035f610d49565b60405161036c9190613f42565b60405180910390f35b34801561038157600080fd5b5061039c600480360381019061039791906138a8565b610d60565b6040516103a99190613e0a565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d49190613539565b610d80565b005b3480156103e757600080fd5b5061040260048036038101906103fd91906138a8565b6110a5565b60405161040f9190613e0a565b60405180910390f35b34801561042457600080fd5b5061042d6110cf565b005b34801561043b57600080fd5b5061045660048036038101906104519190613780565b61120e565b005b610472600480360381019061046d91906136ca565b611788565b005b34801561048057600080fd5b5061049b60048036038101906104969190613539565b6118bc565b005b3480156104a957600080fd5b506104c460048036038101906104bf9190613867565b6118dc565b005b3480156104d257600080fd5b506104db611972565b6040516104e89190613e0a565b60405180910390f35b3480156104fd57600080fd5b50610506611985565b6040516105139190613e25565b60405180910390f35b34801561052857600080fd5b50610543600480360381019061053e919061373f565b611a13565b6040516105509190613dc6565b60405180910390f35b34801561056557600080fd5b5061056e611b46565b60405161057b9190613e0a565b60405180910390f35b34801561059057600080fd5b50610599611b59565b6040516105a69190613e25565b60405180910390f35b3480156105bb57600080fd5b506105d660048036038101906105d191906138a8565b611be7565b6040516105e39190613d5f565b60405180910390f35b3480156105f857600080fd5b50610613600480360381019061060e91906134ab565b611bf9565b6040516106209190613f42565b60405180910390f35b34801561063557600080fd5b5061063e611cb2565b005b34801561064c57600080fd5b5061066760048036038101906106629190613867565b611d3a565b005b34801561067557600080fd5b50610690600480360381019061068b91906134ab565b611dd0565b60405161069d9190613de8565b60405180910390f35b3480156106b257600080fd5b506106bb611f66565b6040516106c89190613d5f565b60405180910390f35b3480156106dd57600080fd5b506106f860048036038101906106f391906138a8565b611f90565b6040516107059190613e0a565b60405180910390f35b34801561071a57600080fd5b50610723611fb0565b6040516107309190613e25565b60405180910390f35b34801561074557600080fd5b50610760600480360381019061075b919061367b565b612042565b60405161076d9190613de8565b60405180910390f35b34801561078257600080fd5b5061079d60048036038101906107989190613603565b6122a2565b005b3480156107ab57600080fd5b506107b461241a565b6040516107c19190613e25565b60405180910390f35b3480156107d657600080fd5b506107f160048036038101906107ec9190613588565b6124a8565b005b3480156107ff57600080fd5b5061081a600480360381019061081591906138a8565b61251b565b6040516108279190613f27565b60405180910390f35b34801561083c57600080fd5b50610857600480360381019061085291906138a8565b612585565b6040516108649190613e0a565b60405180910390f35b34801561087957600080fd5b50610894600480360381019061088f91906138a8565b6125af565b6040516108a19190613e25565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc91906137ec565b612708565b005b3480156108df57600080fd5b506108fa60048036038101906108f591906134fd565b6127a1565b6040516109079190613e0a565b60405180910390f35b34801561091c57600080fd5b50610937600480360381019061093291906134ab565b612835565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099457506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109c45750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546109da906141be565b80601f0160208091040260200160405190810160405280929190818152602001828054610a06906141be565b8015610a535780601f10610a2857610100808354040283529160200191610a53565b820191906000526020600020905b815481529060010190602001808311610a3657829003601f168201915b5050505050905090565b6000610a688261292d565b610a9e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae482611be7565b90508073ffffffffffffffffffffffffffffffffffffffff16610b0561298c565b73ffffffffffffffffffffffffffffffffffffffff1614610b6857610b3181610b2c61298c565b6127a1565b610b67576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610c22612994565b73ffffffffffffffffffffffffffffffffffffffff16610c40611f66565b73ffffffffffffffffffffffffffffffffffffffff1614610c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8d90613e67565b60405180910390fd5b80600c9080519060200190610cac929190613141565b5050565b610cb8612994565b73ffffffffffffffffffffffffffffffffffffffff16610cd6611f66565b73ffffffffffffffffffffffffffffffffffffffff1614610d2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2390613e67565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b6000610d5361299c565b6001546000540303905090565b600a6020528060005260406000206000915054906101000a900460ff1681565b6000610d8b826129a5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610df2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610dfe84612a73565b91509150610e148187610e0f61298c565b612a95565b610e6057610e2986610e2461298c565b6127a1565b610e5f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610ec7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ed48686866001612ad9565b8015610edf57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610fad85610f89888887612adf565b7c020000000000000000000000000000000000000000000000000000000017612b07565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611035576000600185019050600060046000838152602001908152602001600020541415611033576000548114611032578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461109d8686866001612b32565b505050505050565b60006009600083815260200190815260200160002060009054906101000a900460ff169050919050565b6110d7612994565b73ffffffffffffffffffffffffffffffffffffffff166110f5611f66565b73ffffffffffffffffffffffffffffffffffffffff161461114b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114290613e67565b60405180910390fd5b6000471161118e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118590613e87565b60405180910390fd5b6000611198611f66565b73ffffffffffffffffffffffffffffffffffffffff16476040516111bb90613d4a565b60006040518083038185875af1925050503d80600081146111f8576040519150601f19603f3d011682016040523d82523d6000602084013e6111fd565b606091505b505090508061120b57600080fd5b50565b600e60009054906101000a900460ff161561125e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125590613f07565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146112cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c390613ee7565b60405180910390fd5b60005b81518351116112df5782516112e2565b81515b811015611760576112f1612994565b73ffffffffffffffffffffffffffffffffffffffff16600e60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e85848151811061137e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016113a29190613f42565b60206040518083038186803b1580156113ba57600080fd5b505afa1580156113ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f291906134d4565b73ffffffffffffffffffffffffffffffffffffffff1614801561147357506009600084838151811061144d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060009054906101000a900460ff16155b6114b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a990613ea7565b60405180910390fd5b6114ba612994565b73ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e848481518110611547577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161156b9190613f42565b60206040518083038186803b15801561158357600080fd5b505afa158015611597573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115bb91906134d4565b73ffffffffffffffffffffffffffffffffffffffff1614801561163c5750600a6000838381518110611616577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060009054906101000a900460ff16155b61167b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167290613ea7565b60405180910390fd5b6001600960008584815181106116ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600a6000848481518110611726577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806001019150506112cf565b5061178461176c612994565b825184511161177c57835161177f565b82515b612b38565b5050565b611790612994565b73ffffffffffffffffffffffffffffffffffffffff166117ae611f66565b73ffffffffffffffffffffffffffffffffffffffff1614611804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fb90613e67565b60405180910390fd5b60005b848490508110156118b5576118a885858381811061184e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061186391906134ab565b84848481811061189c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135612b38565b8080600101915050611807565b5050505050565b6118d7838383604051806020016040528060008152506124a8565b505050565b6118e4612994565b73ffffffffffffffffffffffffffffffffffffffff16611902611f66565b73ffffffffffffffffffffffffffffffffffffffff1614611958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194f90613e67565b60405180910390fd5b80600d908051906020019061196e929190613141565b5050565b600e60019054906101000a900460ff1681565b600c8054611992906141be565b80601f01602080910402602001604051908101604052809291908181526020018280546119be906141be565b8015611a0b5780601f106119e057610100808354040283529160200191611a0b565b820191906000526020600020905b8154815290600101906020018083116119ee57829003601f168201915b505050505081565b606060008251905060008167ffffffffffffffff811115611a5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611a9657816020015b611a836131c7565b815260200190600190039081611a7b5790505b50905060005b828114611b3b57611aec858281518110611adf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015161251b565b828281518110611b25577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181905250806001019050611a9c565b508092505050919050565b600e60009054906101000a900460ff1681565b600b8054611b66906141be565b80601f0160208091040260200160405190810160405280929190818152602001828054611b92906141be565b8015611bdf5780601f10611bb457610100808354040283529160200191611bdf565b820191906000526020600020905b815481529060010190602001808311611bc257829003601f168201915b505050505081565b6000611bf2826129a5565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c61576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611cba612994565b73ffffffffffffffffffffffffffffffffffffffff16611cd8611f66565b73ffffffffffffffffffffffffffffffffffffffff1614611d2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2590613e67565b60405180910390fd5b611d386000612d0c565b565b611d42612994565b73ffffffffffffffffffffffffffffffffffffffff16611d60611f66565b73ffffffffffffffffffffffffffffffffffffffff1614611db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dad90613e67565b60405180910390fd5b80600b9080519060200190611dcc929190613141565b5050565b60606000806000611de085611bf9565b905060008167ffffffffffffffff811115611e24577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611e525781602001602082028036833780820191505090505b509050611e5d6131c7565b6000611e6761299c565b90505b838614611f5857611e7a81612dd2565b9150816040015115611e8b57611f4d565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611ecb57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611f4c5780838780600101985081518110611f3f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b5b806001019050611e6a565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60096020528060005260406000206000915054906101000a900460ff1681565b606060038054611fbf906141be565b80601f0160208091040260200160405190810160405280929190818152602001828054611feb906141be565b80156120385780601f1061200d57610100808354040283529160200191612038565b820191906000526020600020905b81548152906001019060200180831161201b57829003601f168201915b5050505050905090565b606081831061207d576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612088612dfd565b905061209261299c565b8510156120a4576120a161299c565b94505b808411156120b0578093505b60006120bb87611bf9565b9050848610156120de5760008686039050818110156120d8578091505b506120e3565b600090505b60008167ffffffffffffffff811115612125577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156121535781602001602082028036833780820191505090505b509050600082141561216b578094505050505061229b565b60006121768861251b565b90506000816040015161218b57816000015190505b60008990505b8881141580156121a15750848714155b1561228d576121af81612dd2565b92508260400151156121c057612282565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461220057826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122815780848880600101995081518110612274577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b5b806001019050612191565b508583528296505050505050505b9392505050565b6122aa61298c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561230f576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061231c61298c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123c961298c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161240e9190613e0a565b60405180910390a35050565b600d8054612427906141be565b80601f0160208091040260200160405190810160405280929190818152602001828054612453906141be565b80156124a05780601f10612475576101008083540402835291602001916124a0565b820191906000526020600020905b81548152906001019060200180831161248357829003601f168201915b505050505081565b6124b3848484610d80565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612515576124de84848484612e06565b612514576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6125236131c7565b61252b6131c7565b61253361299c565b8310806125475750612543612dfd565b8310155b156125555780915050612580565b61255e83612dd2565b90508060400151156125735780915050612580565b61257c83612f66565b9150505b919050565b6000600a600083815260200190815260200160002060009054906101000a900460ff169050919050565b60606125ba8261292d565b6125f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f090613ec7565b60405180910390fd5b60001515600e60019054906101000a900460ff16151514156126a757600d8054612622906141be565b80601f016020809104026020016040519081016040528092919081815260200182805461264e906141be565b801561269b5780601f106126705761010080835404028352916020019161269b565b820191906000526020600020905b81548152906001019060200180831161267e57829003601f168201915b50505050509050612703565b60006126b1612f86565b905060008151116126d157604051806020016040528060008152506126ff565b806126db84613018565b600c6040516020016126ef93929190613d19565b6040516020818303038152906040525b9150505b919050565b612710612994565b73ffffffffffffffffffffffffffffffffffffffff1661272e611f66565b73ffffffffffffffffffffffffffffffffffffffff1614612784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277b90613e67565b60405180910390fd5b80600e60016101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61283d612994565b73ffffffffffffffffffffffffffffffffffffffff1661285b611f66565b73ffffffffffffffffffffffffffffffffffffffff16146128b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a890613e67565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612921576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291890613e47565b60405180910390fd5b61292a81612d0c565b50565b60008161293861299c565b11158015612947575060005482105b8015612985575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600033905090565b60006001905090565b600080829050806129b461299c565b11612a3c57600054811015612a3b5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612a39575b6000811415612a2f576004600083600190039350838152602001908152602001600020549050612a04565b8092505050612a6e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612af6868684613072565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ba5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612be0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612bed6000848385612ad9565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612c6483612c556000866000612adf565b612c5e8561307b565b17612b07565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612c8857806000819055505050612d076000848385612b32565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612dda6131c7565b612df6600460008481526020019081526020016000205461308b565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e2c61298c565b8786866040518563ffffffff1660e01b8152600401612e4e9493929190613d7a565b602060405180830381600087803b158015612e6857600080fd5b505af1925050508015612e9957506040513d601f19601f82011682018060405250810190612e96919061383e565b60015b612f13573d8060008114612ec9576040519150601f19603f3d011682016040523d82523d6000602084013e612ece565b606091505b50600081511415612f0b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612f6e6131c7565b612f7f612f7a836129a5565b61308b565b9050919050565b6060600b8054612f95906141be565b80601f0160208091040260200160405190810160405280929190818152602001828054612fc1906141be565b801561300e5780601f10612fe35761010080835404028352916020019161300e565b820191906000526020600020905b815481529060010190602001808311612ff157829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561305e57600183039250600a81066030018353600a8104905061303e565b508181036020830392508083525050919050565b60009392505050565b60006001821460e11b9050919050565b6130936131c7565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b82805461314d906141be565b90600052602060002090601f01602090048101928261316f57600085556131b6565b82601f1061318857805160ff19168380011785556131b6565b828001600101855582156131b6579182015b828111156131b557825182559160200191906001019061319a565b5b5090506131c39190613216565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561322f576000816000905550600101613217565b5090565b600061324661324184613f82565b613f5d565b9050808382526020820190508285602086028201111561326557600080fd5b60005b85811015613295578161327b8882613496565b845260208401935060208301925050600181019050613268565b5050509392505050565b60006132b26132ad84613fae565b613f5d565b9050828152602081018484840111156132ca57600080fd5b6132d584828561417c565b509392505050565b60006132f06132eb84613fdf565b613f5d565b90508281526020810184848401111561330857600080fd5b61331384828561417c565b509392505050565b60008135905061332a8161444a565b92915050565b60008151905061333f8161444a565b92915050565b60008083601f84011261335757600080fd5b8235905067ffffffffffffffff81111561337057600080fd5b60208301915083602082028301111561338857600080fd5b9250929050565b60008083601f8401126133a157600080fd5b8235905067ffffffffffffffff8111156133ba57600080fd5b6020830191508360208202830111156133d257600080fd5b9250929050565b600082601f8301126133ea57600080fd5b81356133fa848260208601613233565b91505092915050565b60008135905061341281614461565b92915050565b60008135905061342781614478565b92915050565b60008151905061343c81614478565b92915050565b600082601f83011261345357600080fd5b813561346384826020860161329f565b91505092915050565b600082601f83011261347d57600080fd5b813561348d8482602086016132dd565b91505092915050565b6000813590506134a58161448f565b92915050565b6000602082840312156134bd57600080fd5b60006134cb8482850161331b565b91505092915050565b6000602082840312156134e657600080fd5b60006134f484828501613330565b91505092915050565b6000806040838503121561351057600080fd5b600061351e8582860161331b565b925050602061352f8582860161331b565b9150509250929050565b60008060006060848603121561354e57600080fd5b600061355c8682870161331b565b935050602061356d8682870161331b565b925050604061357e86828701613496565b9150509250925092565b6000806000806080858703121561359e57600080fd5b60006135ac8782880161331b565b94505060206135bd8782880161331b565b93505060406135ce87828801613496565b925050606085013567ffffffffffffffff8111156135eb57600080fd5b6135f787828801613442565b91505092959194509250565b6000806040838503121561361657600080fd5b60006136248582860161331b565b925050602061363585828601613403565b9150509250929050565b6000806040838503121561365257600080fd5b60006136608582860161331b565b925050602061367185828601613496565b9150509250929050565b60008060006060848603121561369057600080fd5b600061369e8682870161331b565b93505060206136af86828701613496565b92505060406136c086828701613496565b9150509250925092565b600080600080604085870312156136e057600080fd5b600085013567ffffffffffffffff8111156136fa57600080fd5b61370687828801613345565b9450945050602085013567ffffffffffffffff81111561372557600080fd5b6137318782880161338f565b925092505092959194509250565b60006020828403121561375157600080fd5b600082013567ffffffffffffffff81111561376b57600080fd5b613777848285016133d9565b91505092915050565b6000806040838503121561379357600080fd5b600083013567ffffffffffffffff8111156137ad57600080fd5b6137b9858286016133d9565b925050602083013567ffffffffffffffff8111156137d657600080fd5b6137e2858286016133d9565b9150509250929050565b6000602082840312156137fe57600080fd5b600061380c84828501613403565b91505092915050565b60006020828403121561382757600080fd5b600061383584828501613418565b91505092915050565b60006020828403121561385057600080fd5b600061385e8482850161342d565b91505092915050565b60006020828403121561387957600080fd5b600082013567ffffffffffffffff81111561389357600080fd5b61389f8482850161346c565b91505092915050565b6000602082840312156138ba57600080fd5b60006138c884828501613496565b91505092915050565b60006138dd8383613c33565b60808301905092915050565b60006138f58383613cec565b60208301905092915050565b61390a816140e5565b82525050565b613919816140e5565b82525050565b600061392a82614045565b613934818561408b565b935061393f83614010565b8060005b8381101561397057815161395788826138d1565b975061396283614071565b925050600181019050613943565b5085935050505092915050565b600061398882614050565b613992818561409c565b935061399d83614020565b8060005b838110156139ce5781516139b588826138e9565b97506139c08361407e565b9250506001810190506139a1565b5085935050505092915050565b6139e4816140f7565b82525050565b6139f3816140f7565b82525050565b6000613a048261405b565b613a0e81856140ad565b9350613a1e81856020860161418b565b613a278161427f565b840191505092915050565b6000613a3d82614066565b613a4781856140c9565b9350613a5781856020860161418b565b613a608161427f565b840191505092915050565b6000613a7682614066565b613a8081856140da565b9350613a9081856020860161418b565b80840191505092915050565b60008154613aa9816141be565b613ab381866140da565b94506001821660008114613ace5760018114613adf57613b12565b60ff19831686528186019350613b12565b613ae885614030565b60005b83811015613b0a57815481890152600182019150602081019050613aeb565b838801955050505b50505092915050565b6000613b286026836140c9565b9150613b3382614290565b604082019050919050565b6000613b4b6020836140c9565b9150613b56826142df565b602082019050919050565b6000613b6e601f836140c9565b9150613b7982614308565b602082019050919050565b6000613b916035836140c9565b9150613b9c82614331565b604082019050919050565b6000613bb4602f836140c9565b9150613bbf82614380565b604082019050919050565b6000613bd76000836140be565b9150613be2826143cf565b600082019050919050565b6000613bfa601e836140c9565b9150613c05826143d2565b602082019050919050565b6000613c1d6026836140c9565b9150613c28826143fb565b604082019050919050565b608082016000820151613c496000850182613901565b506020820151613c5c6020850182613d0a565b506040820151613c6f60408501826139db565b506060820151613c826060850182613cdd565b50505050565b608082016000820151613c9e6000850182613901565b506020820151613cb16020850182613d0a565b506040820151613cc460408501826139db565b506060820151613cd76060850182613cdd565b50505050565b613ce68161414f565b82525050565b613cf58161415e565b82525050565b613d048161415e565b82525050565b613d1381614168565b82525050565b6000613d258286613a6b565b9150613d318285613a6b565b9150613d3d8284613a9c565b9150819050949350505050565b6000613d5582613bca565b9150819050919050565b6000602082019050613d746000830184613910565b92915050565b6000608082019050613d8f6000830187613910565b613d9c6020830186613910565b613da96040830185613cfb565b8181036060830152613dbb81846139f9565b905095945050505050565b60006020820190508181036000830152613de0818461391f565b905092915050565b60006020820190508181036000830152613e02818461397d565b905092915050565b6000602082019050613e1f60008301846139ea565b92915050565b60006020820190508181036000830152613e3f8184613a32565b905092915050565b60006020820190508181036000830152613e6081613b1b565b9050919050565b60006020820190508181036000830152613e8081613b3e565b9050919050565b60006020820190508181036000830152613ea081613b61565b9050919050565b60006020820190508181036000830152613ec081613b84565b9050919050565b60006020820190508181036000830152613ee081613ba7565b9050919050565b60006020820190508181036000830152613f0081613bed565b9050919050565b60006020820190508181036000830152613f2081613c10565b9050919050565b6000608082019050613f3c6000830184613c88565b92915050565b6000602082019050613f576000830184613cfb565b92915050565b6000613f67613f78565b9050613f7382826141f0565b919050565b6000604051905090565b600067ffffffffffffffff821115613f9d57613f9c614250565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613fc957613fc8614250565b5b613fd28261427f565b9050602081019050919050565b600067ffffffffffffffff821115613ffa57613ff9614250565b5b6140038261427f565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006140f08261412f565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156141a957808201518184015260208101905061418e565b838111156141b8576000848401525b50505050565b600060028204905060018216806141d657607f821691505b602082108114156141ea576141e9614221565b5b50919050565b6141f98261427f565b810181811067ffffffffffffffff8211171561421857614217614250565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f746865207568682e2e20636f6e747261637420686173206e6f2066756e647300600082015250565b7f752061696e277420746865206f776e6572206f72207468656d20746f6b656e2060008201527f69647320616c7265616479206265656e20757365640000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b50565b7f7468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f7468652075682e2e2e20636f6e74726163742069732063757272656e746c792060008201527f7061757365640000000000000000000000000000000000000000000000000000602082015250565b614453816140e5565b811461445e57600080fd5b50565b61446a816140f7565b811461447557600080fd5b50565b61448181614103565b811461448c57600080fd5b50565b6144988161415e565b81146144a357600080fd5b5056fea2646970667358221220a91ab5dbaf0b9995a6164161dab2cdcfc5268edadde55ce89a785a3a508581aa64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000006e0418050387c6c3d4cd206d8b89788bbd432525000000000000000000000000154874ab720ca3569b55806cb61abba7ccd6e4ae000000000000000000000000000000000000000000000000000000000000000b437269747465727a575446000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000454524150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d4e74365a4c50524e3663564b614b37665953664831446379686953704e764e6a7a7a344a786d4a39677766422f00000000000000000000
Deployed Bytecode
0x6080604052600436106102255760003560e01c806362b99ad41161012357806399a2557a116100ab578063c756480b1161006f578063c756480b14610830578063c87b56dd1461086d578063e0a80853146108aa578063e985e9c5146108d3578063f2fde38b1461091057610225565b806399a2557a14610739578063a22cb46514610776578063a45ba8e71461079f578063b88d4fde146107ca578063c23dc68f146107f357610225565b80637ec4a659116100f25780637ec4a659146106405780638462151c146106695780638da5cb5b146106a6578063958a2923146106d157806395d89b411461070e57610225565b806362b99ad4146105845780636352211e146105af57806370a08231146105ec578063715018a61461062957610225565b80632f49c787116101b15780634fdd43cb116101755780634fdd43cb1461049d57806351830227146104c65780635503a0e8146104f15780635bbb21771461051c5780635c975abb1461055957610225565b80632f49c787146103db5780633ccfd60b146104185780633d5d190c1461042f5780634029a3ce1461045857806342842e0e1461047457610225565b806316ba10e0116101f857806316ba10e0146102f857806316c38b3c1461032157806318160ddd1461034a5780631ec0772d1461037557806323b872dd146103b257610225565b806301ffc9a71461022a57806306fdde0314610267578063081812fc14610292578063095ea7b3146102cf575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c9190613815565b610939565b60405161025e9190613e0a565b60405180910390f35b34801561027357600080fd5b5061027c6109cb565b6040516102899190613e25565b60405180910390f35b34801561029e57600080fd5b506102b960048036038101906102b491906138a8565b610a5d565b6040516102c69190613d5f565b60405180910390f35b3480156102db57600080fd5b506102f660048036038101906102f1919061363f565b610ad9565b005b34801561030457600080fd5b5061031f600480360381019061031a9190613867565b610c1a565b005b34801561032d57600080fd5b50610348600480360381019061034391906137ec565b610cb0565b005b34801561035657600080fd5b5061035f610d49565b60405161036c9190613f42565b60405180910390f35b34801561038157600080fd5b5061039c600480360381019061039791906138a8565b610d60565b6040516103a99190613e0a565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d49190613539565b610d80565b005b3480156103e757600080fd5b5061040260048036038101906103fd91906138a8565b6110a5565b60405161040f9190613e0a565b60405180910390f35b34801561042457600080fd5b5061042d6110cf565b005b34801561043b57600080fd5b5061045660048036038101906104519190613780565b61120e565b005b610472600480360381019061046d91906136ca565b611788565b005b34801561048057600080fd5b5061049b60048036038101906104969190613539565b6118bc565b005b3480156104a957600080fd5b506104c460048036038101906104bf9190613867565b6118dc565b005b3480156104d257600080fd5b506104db611972565b6040516104e89190613e0a565b60405180910390f35b3480156104fd57600080fd5b50610506611985565b6040516105139190613e25565b60405180910390f35b34801561052857600080fd5b50610543600480360381019061053e919061373f565b611a13565b6040516105509190613dc6565b60405180910390f35b34801561056557600080fd5b5061056e611b46565b60405161057b9190613e0a565b60405180910390f35b34801561059057600080fd5b50610599611b59565b6040516105a69190613e25565b60405180910390f35b3480156105bb57600080fd5b506105d660048036038101906105d191906138a8565b611be7565b6040516105e39190613d5f565b60405180910390f35b3480156105f857600080fd5b50610613600480360381019061060e91906134ab565b611bf9565b6040516106209190613f42565b60405180910390f35b34801561063557600080fd5b5061063e611cb2565b005b34801561064c57600080fd5b5061066760048036038101906106629190613867565b611d3a565b005b34801561067557600080fd5b50610690600480360381019061068b91906134ab565b611dd0565b60405161069d9190613de8565b60405180910390f35b3480156106b257600080fd5b506106bb611f66565b6040516106c89190613d5f565b60405180910390f35b3480156106dd57600080fd5b506106f860048036038101906106f391906138a8565b611f90565b6040516107059190613e0a565b60405180910390f35b34801561071a57600080fd5b50610723611fb0565b6040516107309190613e25565b60405180910390f35b34801561074557600080fd5b50610760600480360381019061075b919061367b565b612042565b60405161076d9190613de8565b60405180910390f35b34801561078257600080fd5b5061079d60048036038101906107989190613603565b6122a2565b005b3480156107ab57600080fd5b506107b461241a565b6040516107c19190613e25565b60405180910390f35b3480156107d657600080fd5b506107f160048036038101906107ec9190613588565b6124a8565b005b3480156107ff57600080fd5b5061081a600480360381019061081591906138a8565b61251b565b6040516108279190613f27565b60405180910390f35b34801561083c57600080fd5b50610857600480360381019061085291906138a8565b612585565b6040516108649190613e0a565b60405180910390f35b34801561087957600080fd5b50610894600480360381019061088f91906138a8565b6125af565b6040516108a19190613e25565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc91906137ec565b612708565b005b3480156108df57600080fd5b506108fa60048036038101906108f591906134fd565b6127a1565b6040516109079190613e0a565b60405180910390f35b34801561091c57600080fd5b50610937600480360381019061093291906134ab565b612835565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099457506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109c45750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546109da906141be565b80601f0160208091040260200160405190810160405280929190818152602001828054610a06906141be565b8015610a535780601f10610a2857610100808354040283529160200191610a53565b820191906000526020600020905b815481529060010190602001808311610a3657829003601f168201915b5050505050905090565b6000610a688261292d565b610a9e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae482611be7565b90508073ffffffffffffffffffffffffffffffffffffffff16610b0561298c565b73ffffffffffffffffffffffffffffffffffffffff1614610b6857610b3181610b2c61298c565b6127a1565b610b67576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610c22612994565b73ffffffffffffffffffffffffffffffffffffffff16610c40611f66565b73ffffffffffffffffffffffffffffffffffffffff1614610c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8d90613e67565b60405180910390fd5b80600c9080519060200190610cac929190613141565b5050565b610cb8612994565b73ffffffffffffffffffffffffffffffffffffffff16610cd6611f66565b73ffffffffffffffffffffffffffffffffffffffff1614610d2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d2390613e67565b60405180910390fd5b80600e60006101000a81548160ff02191690831515021790555050565b6000610d5361299c565b6001546000540303905090565b600a6020528060005260406000206000915054906101000a900460ff1681565b6000610d8b826129a5565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610df2576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610dfe84612a73565b91509150610e148187610e0f61298c565b612a95565b610e6057610e2986610e2461298c565b6127a1565b610e5f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610ec7576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ed48686866001612ad9565b8015610edf57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610fad85610f89888887612adf565b7c020000000000000000000000000000000000000000000000000000000017612b07565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084161415611035576000600185019050600060046000838152602001908152602001600020541415611033576000548114611032578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461109d8686866001612b32565b505050505050565b60006009600083815260200190815260200160002060009054906101000a900460ff169050919050565b6110d7612994565b73ffffffffffffffffffffffffffffffffffffffff166110f5611f66565b73ffffffffffffffffffffffffffffffffffffffff161461114b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114290613e67565b60405180910390fd5b6000471161118e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118590613e87565b60405180910390fd5b6000611198611f66565b73ffffffffffffffffffffffffffffffffffffffff16476040516111bb90613d4a565b60006040518083038185875af1925050503d80600081146111f8576040519150601f19603f3d011682016040523d82523d6000602084013e6111fd565b606091505b505090508061120b57600080fd5b50565b600e60009054906101000a900460ff161561125e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125590613f07565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146112cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c390613ee7565b60405180910390fd5b60005b81518351116112df5782516112e2565b81515b811015611760576112f1612994565b73ffffffffffffffffffffffffffffffffffffffff16600e60029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e85848151811061137e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b81526004016113a29190613f42565b60206040518083038186803b1580156113ba57600080fd5b505afa1580156113ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f291906134d4565b73ffffffffffffffffffffffffffffffffffffffff1614801561147357506009600084838151811061144d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060009054906101000a900460ff16155b6114b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114a990613ea7565b60405180910390fd5b6114ba612994565b73ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e848481518110611547577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101516040518263ffffffff1660e01b815260040161156b9190613f42565b60206040518083038186803b15801561158357600080fd5b505afa158015611597573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115bb91906134d4565b73ffffffffffffffffffffffffffffffffffffffff1614801561163c5750600a6000838381518110611616577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060009054906101000a900460ff16155b61167b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167290613ea7565b60405180910390fd5b6001600960008584815181106116ba577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600a6000848481518110611726577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806001019150506112cf565b5061178461176c612994565b825184511161177c57835161177f565b82515b612b38565b5050565b611790612994565b73ffffffffffffffffffffffffffffffffffffffff166117ae611f66565b73ffffffffffffffffffffffffffffffffffffffff1614611804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fb90613e67565b60405180910390fd5b60005b848490508110156118b5576118a885858381811061184e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b905060200201602081019061186391906134ab565b84848481811061189c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90506020020135612b38565b8080600101915050611807565b5050505050565b6118d7838383604051806020016040528060008152506124a8565b505050565b6118e4612994565b73ffffffffffffffffffffffffffffffffffffffff16611902611f66565b73ffffffffffffffffffffffffffffffffffffffff1614611958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194f90613e67565b60405180910390fd5b80600d908051906020019061196e929190613141565b5050565b600e60019054906101000a900460ff1681565b600c8054611992906141be565b80601f01602080910402602001604051908101604052809291908181526020018280546119be906141be565b8015611a0b5780601f106119e057610100808354040283529160200191611a0b565b820191906000526020600020905b8154815290600101906020018083116119ee57829003601f168201915b505050505081565b606060008251905060008167ffffffffffffffff811115611a5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611a9657816020015b611a836131c7565b815260200190600190039081611a7b5790505b50905060005b828114611b3b57611aec858281518110611adf577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015161251b565b828281518110611b25577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181905250806001019050611a9c565b508092505050919050565b600e60009054906101000a900460ff1681565b600b8054611b66906141be565b80601f0160208091040260200160405190810160405280929190818152602001828054611b92906141be565b8015611bdf5780601f10611bb457610100808354040283529160200191611bdf565b820191906000526020600020905b815481529060010190602001808311611bc257829003601f168201915b505050505081565b6000611bf2826129a5565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c61576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611cba612994565b73ffffffffffffffffffffffffffffffffffffffff16611cd8611f66565b73ffffffffffffffffffffffffffffffffffffffff1614611d2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2590613e67565b60405180910390fd5b611d386000612d0c565b565b611d42612994565b73ffffffffffffffffffffffffffffffffffffffff16611d60611f66565b73ffffffffffffffffffffffffffffffffffffffff1614611db6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dad90613e67565b60405180910390fd5b80600b9080519060200190611dcc929190613141565b5050565b60606000806000611de085611bf9565b905060008167ffffffffffffffff811115611e24577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051908082528060200260200182016040528015611e525781602001602082028036833780820191505090505b509050611e5d6131c7565b6000611e6761299c565b90505b838614611f5857611e7a81612dd2565b9150816040015115611e8b57611f4d565b600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff1614611ecb57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415611f4c5780838780600101985081518110611f3f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b5b806001019050611e6a565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60096020528060005260406000206000915054906101000a900460ff1681565b606060038054611fbf906141be565b80601f0160208091040260200160405190810160405280929190818152602001828054611feb906141be565b80156120385780601f1061200d57610100808354040283529160200191612038565b820191906000526020600020905b81548152906001019060200180831161201b57829003601f168201915b5050505050905090565b606081831061207d576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612088612dfd565b905061209261299c565b8510156120a4576120a161299c565b94505b808411156120b0578093505b60006120bb87611bf9565b9050848610156120de5760008686039050818110156120d8578091505b506120e3565b600090505b60008167ffffffffffffffff811115612125577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156121535781602001602082028036833780820191505090505b509050600082141561216b578094505050505061229b565b60006121768861251b565b90506000816040015161218b57816000015190505b60008990505b8881141580156121a15750848714155b1561228d576121af81612dd2565b92508260400151156121c057612282565b600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff161461220057826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122815780848880600101995081518110612274577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010181815250505b5b806001019050612191565b508583528296505050505050505b9392505050565b6122aa61298c565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561230f576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061231c61298c565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123c961298c565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161240e9190613e0a565b60405180910390a35050565b600d8054612427906141be565b80601f0160208091040260200160405190810160405280929190818152602001828054612453906141be565b80156124a05780601f10612475576101008083540402835291602001916124a0565b820191906000526020600020905b81548152906001019060200180831161248357829003601f168201915b505050505081565b6124b3848484610d80565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612515576124de84848484612e06565b612514576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6125236131c7565b61252b6131c7565b61253361299c565b8310806125475750612543612dfd565b8310155b156125555780915050612580565b61255e83612dd2565b90508060400151156125735780915050612580565b61257c83612f66565b9150505b919050565b6000600a600083815260200190815260200160002060009054906101000a900460ff169050919050565b60606125ba8261292d565b6125f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125f090613ec7565b60405180910390fd5b60001515600e60019054906101000a900460ff16151514156126a757600d8054612622906141be565b80601f016020809104026020016040519081016040528092919081815260200182805461264e906141be565b801561269b5780601f106126705761010080835404028352916020019161269b565b820191906000526020600020905b81548152906001019060200180831161267e57829003601f168201915b50505050509050612703565b60006126b1612f86565b905060008151116126d157604051806020016040528060008152506126ff565b806126db84613018565b600c6040516020016126ef93929190613d19565b6040516020818303038152906040525b9150505b919050565b612710612994565b73ffffffffffffffffffffffffffffffffffffffff1661272e611f66565b73ffffffffffffffffffffffffffffffffffffffff1614612784576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277b90613e67565b60405180910390fd5b80600e60016101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61283d612994565b73ffffffffffffffffffffffffffffffffffffffff1661285b611f66565b73ffffffffffffffffffffffffffffffffffffffff16146128b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128a890613e67565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612921576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161291890613e47565b60405180910390fd5b61292a81612d0c565b50565b60008161293861299c565b11158015612947575060005482105b8015612985575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600033905090565b60006001905090565b600080829050806129b461299c565b11612a3c57600054811015612a3b5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082161415612a39575b6000811415612a2f576004600083600190039350838152602001908152602001600020549050612a04565b8092505050612a6e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612af6868684613072565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612ba5576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821415612be0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612bed6000848385612ad9565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612c6483612c556000866000612adf565b612c5e8561307b565b17612b07565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210612c8857806000819055505050612d076000848385612b32565b505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612dda6131c7565b612df6600460008481526020019081526020016000205461308b565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612e2c61298c565b8786866040518563ffffffff1660e01b8152600401612e4e9493929190613d7a565b602060405180830381600087803b158015612e6857600080fd5b505af1925050508015612e9957506040513d601f19601f82011682018060405250810190612e96919061383e565b60015b612f13573d8060008114612ec9576040519150601f19603f3d011682016040523d82523d6000602084013e612ece565b606091505b50600081511415612f0b576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b612f6e6131c7565b612f7f612f7a836129a5565b61308b565b9050919050565b6060600b8054612f95906141be565b80601f0160208091040260200160405190810160405280929190818152602001828054612fc1906141be565b801561300e5780601f10612fe35761010080835404028352916020019161300e565b820191906000526020600020905b815481529060010190602001808311612ff157829003601f168201915b5050505050905090565b60606080604051019050806040528082600183039250600a81066030018353600a810490505b801561305e57600183039250600a81066030018353600a8104905061303e565b508181036020830392508083525050919050565b60009392505050565b60006001821460e11b9050919050565b6130936131c7565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b82805461314d906141be565b90600052602060002090601f01602090048101928261316f57600085556131b6565b82601f1061318857805160ff19168380011785556131b6565b828001600101855582156131b6579182015b828111156131b557825182559160200191906001019061319a565b5b5090506131c39190613216565b5090565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b5b8082111561322f576000816000905550600101613217565b5090565b600061324661324184613f82565b613f5d565b9050808382526020820190508285602086028201111561326557600080fd5b60005b85811015613295578161327b8882613496565b845260208401935060208301925050600181019050613268565b5050509392505050565b60006132b26132ad84613fae565b613f5d565b9050828152602081018484840111156132ca57600080fd5b6132d584828561417c565b509392505050565b60006132f06132eb84613fdf565b613f5d565b90508281526020810184848401111561330857600080fd5b61331384828561417c565b509392505050565b60008135905061332a8161444a565b92915050565b60008151905061333f8161444a565b92915050565b60008083601f84011261335757600080fd5b8235905067ffffffffffffffff81111561337057600080fd5b60208301915083602082028301111561338857600080fd5b9250929050565b60008083601f8401126133a157600080fd5b8235905067ffffffffffffffff8111156133ba57600080fd5b6020830191508360208202830111156133d257600080fd5b9250929050565b600082601f8301126133ea57600080fd5b81356133fa848260208601613233565b91505092915050565b60008135905061341281614461565b92915050565b60008135905061342781614478565b92915050565b60008151905061343c81614478565b92915050565b600082601f83011261345357600080fd5b813561346384826020860161329f565b91505092915050565b600082601f83011261347d57600080fd5b813561348d8482602086016132dd565b91505092915050565b6000813590506134a58161448f565b92915050565b6000602082840312156134bd57600080fd5b60006134cb8482850161331b565b91505092915050565b6000602082840312156134e657600080fd5b60006134f484828501613330565b91505092915050565b6000806040838503121561351057600080fd5b600061351e8582860161331b565b925050602061352f8582860161331b565b9150509250929050565b60008060006060848603121561354e57600080fd5b600061355c8682870161331b565b935050602061356d8682870161331b565b925050604061357e86828701613496565b9150509250925092565b6000806000806080858703121561359e57600080fd5b60006135ac8782880161331b565b94505060206135bd8782880161331b565b93505060406135ce87828801613496565b925050606085013567ffffffffffffffff8111156135eb57600080fd5b6135f787828801613442565b91505092959194509250565b6000806040838503121561361657600080fd5b60006136248582860161331b565b925050602061363585828601613403565b9150509250929050565b6000806040838503121561365257600080fd5b60006136608582860161331b565b925050602061367185828601613496565b9150509250929050565b60008060006060848603121561369057600080fd5b600061369e8682870161331b565b93505060206136af86828701613496565b92505060406136c086828701613496565b9150509250925092565b600080600080604085870312156136e057600080fd5b600085013567ffffffffffffffff8111156136fa57600080fd5b61370687828801613345565b9450945050602085013567ffffffffffffffff81111561372557600080fd5b6137318782880161338f565b925092505092959194509250565b60006020828403121561375157600080fd5b600082013567ffffffffffffffff81111561376b57600080fd5b613777848285016133d9565b91505092915050565b6000806040838503121561379357600080fd5b600083013567ffffffffffffffff8111156137ad57600080fd5b6137b9858286016133d9565b925050602083013567ffffffffffffffff8111156137d657600080fd5b6137e2858286016133d9565b9150509250929050565b6000602082840312156137fe57600080fd5b600061380c84828501613403565b91505092915050565b60006020828403121561382757600080fd5b600061383584828501613418565b91505092915050565b60006020828403121561385057600080fd5b600061385e8482850161342d565b91505092915050565b60006020828403121561387957600080fd5b600082013567ffffffffffffffff81111561389357600080fd5b61389f8482850161346c565b91505092915050565b6000602082840312156138ba57600080fd5b60006138c884828501613496565b91505092915050565b60006138dd8383613c33565b60808301905092915050565b60006138f58383613cec565b60208301905092915050565b61390a816140e5565b82525050565b613919816140e5565b82525050565b600061392a82614045565b613934818561408b565b935061393f83614010565b8060005b8381101561397057815161395788826138d1565b975061396283614071565b925050600181019050613943565b5085935050505092915050565b600061398882614050565b613992818561409c565b935061399d83614020565b8060005b838110156139ce5781516139b588826138e9565b97506139c08361407e565b9250506001810190506139a1565b5085935050505092915050565b6139e4816140f7565b82525050565b6139f3816140f7565b82525050565b6000613a048261405b565b613a0e81856140ad565b9350613a1e81856020860161418b565b613a278161427f565b840191505092915050565b6000613a3d82614066565b613a4781856140c9565b9350613a5781856020860161418b565b613a608161427f565b840191505092915050565b6000613a7682614066565b613a8081856140da565b9350613a9081856020860161418b565b80840191505092915050565b60008154613aa9816141be565b613ab381866140da565b94506001821660008114613ace5760018114613adf57613b12565b60ff19831686528186019350613b12565b613ae885614030565b60005b83811015613b0a57815481890152600182019150602081019050613aeb565b838801955050505b50505092915050565b6000613b286026836140c9565b9150613b3382614290565b604082019050919050565b6000613b4b6020836140c9565b9150613b56826142df565b602082019050919050565b6000613b6e601f836140c9565b9150613b7982614308565b602082019050919050565b6000613b916035836140c9565b9150613b9c82614331565b604082019050919050565b6000613bb4602f836140c9565b9150613bbf82614380565b604082019050919050565b6000613bd76000836140be565b9150613be2826143cf565b600082019050919050565b6000613bfa601e836140c9565b9150613c05826143d2565b602082019050919050565b6000613c1d6026836140c9565b9150613c28826143fb565b604082019050919050565b608082016000820151613c496000850182613901565b506020820151613c5c6020850182613d0a565b506040820151613c6f60408501826139db565b506060820151613c826060850182613cdd565b50505050565b608082016000820151613c9e6000850182613901565b506020820151613cb16020850182613d0a565b506040820151613cc460408501826139db565b506060820151613cd76060850182613cdd565b50505050565b613ce68161414f565b82525050565b613cf58161415e565b82525050565b613d048161415e565b82525050565b613d1381614168565b82525050565b6000613d258286613a6b565b9150613d318285613a6b565b9150613d3d8284613a9c565b9150819050949350505050565b6000613d5582613bca565b9150819050919050565b6000602082019050613d746000830184613910565b92915050565b6000608082019050613d8f6000830187613910565b613d9c6020830186613910565b613da96040830185613cfb565b8181036060830152613dbb81846139f9565b905095945050505050565b60006020820190508181036000830152613de0818461391f565b905092915050565b60006020820190508181036000830152613e02818461397d565b905092915050565b6000602082019050613e1f60008301846139ea565b92915050565b60006020820190508181036000830152613e3f8184613a32565b905092915050565b60006020820190508181036000830152613e6081613b1b565b9050919050565b60006020820190508181036000830152613e8081613b3e565b9050919050565b60006020820190508181036000830152613ea081613b61565b9050919050565b60006020820190508181036000830152613ec081613b84565b9050919050565b60006020820190508181036000830152613ee081613ba7565b9050919050565b60006020820190508181036000830152613f0081613bed565b9050919050565b60006020820190508181036000830152613f2081613c10565b9050919050565b6000608082019050613f3c6000830184613c88565b92915050565b6000602082019050613f576000830184613cfb565b92915050565b6000613f67613f78565b9050613f7382826141f0565b919050565b6000604051905090565b600067ffffffffffffffff821115613f9d57613f9c614250565b5b602082029050602081019050919050565b600067ffffffffffffffff821115613fc957613fc8614250565b5b613fd28261427f565b9050602081019050919050565b600067ffffffffffffffff821115613ffa57613ff9614250565b5b6140038261427f565b9050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006140f08261412f565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062ffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156141a957808201518184015260208101905061418e565b838111156141b8576000848401525b50505050565b600060028204905060018216806141d657607f821691505b602082108114156141ea576141e9614221565b5b50919050565b6141f98261427f565b810181811067ffffffffffffffff8211171561421857614217614250565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f746865207568682e2e20636f6e747261637420686173206e6f2066756e647300600082015250565b7f752061696e277420746865206f776e6572206f72207468656d20746f6b656e2060008201527f69647320616c7265616479206265656e20757365640000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b50565b7f7468652063616c6c657220697320616e6f7468657220636f6e74726163740000600082015250565b7f7468652075682e2e2e20636f6e74726163742069732063757272656e746c792060008201527f7061757365640000000000000000000000000000000000000000000000000000602082015250565b614453816140e5565b811461445e57600080fd5b50565b61446a816140f7565b811461447557600080fd5b50565b61448181614103565b811461448c57600080fd5b50565b6144988161415e565b81146144a357600080fd5b5056fea2646970667358221220a91ab5dbaf0b9995a6164161dab2cdcfc5268edadde55ce89a785a3a508581aa64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000006e0418050387c6c3d4cd206d8b89788bbd432525000000000000000000000000154874ab720ca3569b55806cb61abba7ccd6e4ae000000000000000000000000000000000000000000000000000000000000000b437269747465727a575446000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000454524150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d4e74365a4c50524e3663564b614b37665953664831446379686953704e764e6a7a7a344a786d4a39677766422f00000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): CritterzWTF
Arg [1] : _tokenSymbol (string): TRAP
Arg [2] : _hiddenMetadataUri (string): ipfs://QmNt6ZLPRN6cVKaK7fYSfH1DcyhiSpNvNjzz4JxmJ9gwfB/
Arg [3] : HoboTownWTFAddress (address): 0x6e0418050387C6C3d4Cd206d8b89788BBd432525
Arg [4] : HoboLootWTFAddress (address): 0x154874Ab720CA3569B55806cb61aBba7CCd6e4ae
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000006e0418050387c6c3d4cd206d8b89788bbd432525
Arg [4] : 000000000000000000000000154874ab720ca3569b55806cb61abba7ccd6e4ae
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000b
Arg [6] : 437269747465727a575446000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 5452415000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [10] : 697066733a2f2f516d4e74365a4c50524e3663564b614b376659536648314463
Arg [11] : 79686953704e764e6a7a7a344a786d4a39677766422f00000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.