ERC-721
Overview
Max Total Supply
222 DURMANN
Holders
84
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 DURMANNLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
DURMANN
Compiler Version
v0.8.17+commit.8df45f5f
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.17; import { ERC721A } from "erc721a/contracts/ERC721A.sol"; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { ERC165Checker } from "@openzeppelin/contracts/utils/introspection/ERC165Checker.sol"; import "@openzeppelin/[email protected]/utils/cryptography/MerkleProof.sol"; /* ) ( ( ) )\ ) )\ ) ( ` ( ( /( ( /( ( /( )\))( ( /( ( (()/( ( (()/( )\))( )\ )\()) )\()) )\())((_)()\ )\()) )\ ) /(_)) )\ /(_))((_)()\((((_)( ((_)\ ((_)\ ((_)\ (()((_) ((_)\ (()/( (_))_ _ ((_)(_)) (_()((_))\ _ )\ _((_) _((_) / (_) | __| | |(_) )(_)) | \ | | | || _ \ | \/ |(_)_\(_)| \| || \| | | | _ |__ \ | '_ \| || | | |) || |_| || / | |\/| | / _ \ | .` || .` | |_|(_) |___/ |_.__/ \_, | |___/ \___/ |_|_\ |_| |_|/_/ \_\ |_|\_||_|\_| |__/ We can still make it. */ contract DURMANN is ERC721A, Ownable { // Checks if your address has minted mapping(address => bool) public addressHasMinted; // Tracks the paintId to the URI mapping(uint => string) public paintURL; // Contract address -> token id -> bool mapping(address => mapping(uint => bool)) public addressTokenpaintted; bytes4 private ERC721InterfaceId = 0x80ac58cd; bytes4 private ERC1155MetadataInterfaceId = 0x0e89341c; uint public price = 0.02 ether; uint public wlprice = 0.02 ether; uint public paintedCount; uint public constant MAX_SUPPLY = 222; string public _baseTokenURI; bytes32 private merkleRoot; bool mintEnabled; bool wlmintEnabled; bool paintEnabled; mapping(address => uint256) public wlClaimed; mapping(address => uint256) public mintClaimed; address public withdrawAddress = 0x9482dD08C6324e1AB0E65009A04499005c1530DA; // Errors error AlreadyMinted(); error Alreadypaintted(); error MintClosed(); error MintedOut(); error NoContracts(); error MuseumSecurity(); error WrongPrice(); // Events event Setter(uint indexed paintId, address indexed usingContractNFT, uint indexed tokenId); // Constructor constructor() ERC721A("ONE.5 Degrees X Black Paint X SPLOOT by DURMANN", "DURMANN") { _mint(msg.sender, 1); } // Mint function wlmint(uint256 _quantity, bytes32[] memory _merkleProof) external payable { if (msg.sender != tx.origin) revert NoContracts(); if (wlmintEnabled == false) revert MintClosed(); if (msg.value != wlprice*_quantity) revert WrongPrice(); if (totalSupply() + _quantity > MAX_SUPPLY) revert MintedOut(); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require(MerkleProof.verify(_merkleProof, merkleRoot, leaf), 'Invalid proof!'); require(wlClaimed[msg.sender] + _quantity <= 2, "WL_MAXED"); unchecked { wlClaimed[msg.sender] += _quantity; } _mint(msg.sender, _quantity); } function mint(uint256 _quantity) external payable { if (msg.sender != tx.origin) revert NoContracts(); if (mintEnabled == false) revert MintClosed(); if (totalSupply() + _quantity > MAX_SUPPLY) revert MintedOut(); if (msg.value != price*_quantity) revert WrongPrice(); require(mintClaimed[msg.sender] + _quantity <= 2, "MINT_MAXED"); unchecked { mintClaimed[msg.sender] += _quantity; } _mint(msg.sender, _quantity); } function hasTokenBeenPainted(address _contractAddress, uint _tokenId) view public returns (bool){ return addressTokenpaintted[_contractAddress][_tokenId]; } // Once someone paints an NFT, you can't paint that same NFT again function paint(uint paintId, address usingContractNFT, uint usingTokenId) external { // Security is everywhere, no paintting...yet. if (paintEnabled == false) revert MuseumSecurity(); // Prevents a token from being re-paintted if (hasTokenBeenPainted(usingContractNFT, usingTokenId)) revert Alreadypaintted(); require(ownerOf(paintId) == msg.sender, "Not your paint"); // ERC-721 check if (ERC165Checker.supportsInterface(usingContractNFT, ERC721InterfaceId)) { (bool success, bytes memory bytesUri) = usingContractNFT.call( abi.encodeWithSignature("tokenURI(uint256)", usingTokenId) ); require(success, "Error getting tokenURI data"); string memory uri = abi.decode(bytesUri, (string)); paintURL[paintId] = uri; addressTokenpaintted[usingContractNFT][usingTokenId] = true; unchecked { ++paintedCount; } emit Setter(paintId, usingContractNFT, usingTokenId); // ERC-1155 check } else if (ERC165Checker.supportsInterface(usingContractNFT,ERC1155MetadataInterfaceId)) { (bool success, bytes memory bytesUri) = usingContractNFT.call( abi.encodeWithSignature("uri(uint256)", usingTokenId) ); require(success, "Error getting URI data"); string memory uri = abi.decode(bytesUri, (string)); paintURL[paintId] = uri; addressTokenpaintted[usingContractNFT][usingTokenId] = true; unchecked { ++paintedCount; } emit Setter(paintId, usingContractNFT, usingTokenId); // Punks check } else if (usingContractNFT == 0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB) { string memory uri = string.concat('punk ', toString(usingTokenId)); paintURL[paintId] = uri; addressTokenpaintted[usingContractNFT][usingTokenId] = true; unchecked { ++paintedCount; } emit Setter(paintId, usingContractNFT, usingTokenId); } else { revert("Not an ERC-721 or ERC-1155"); } } // Retrieved from OpenZeppelin's Strings.sol function toString(uint value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint temp = value; uint digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } function promoMint(address _to, uint _count) external onlyOwner { if (totalSupply() + _count > MAX_SUPPLY) revert MintedOut(); _mint(_to, _count); } function _startTokenId() internal view virtual override returns (uint) { return 0; } // Setters function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } function setBaseURI(string calldata _baseURI) external onlyOwner { _baseTokenURI = _baseURI; } function setMintOpen(bool _val) external onlyOwner { mintEnabled = _val; } function setWLMintOpen(bool _val) external onlyOwner { wlmintEnabled = _val; } function setpaintOpen(bool _val) external onlyOwner { paintEnabled = _val; } function setPrice(uint _wei) external onlyOwner { price = _wei; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } // Withdraw function withdraw() external onlyOwner { (bool sent, ) = payable(withdrawAddress).call{value: address(this).balance}(""); require(sent, "Withdraw failed"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.2) (utils/introspection/ERC165Checker.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165Checker { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /** * @dev Returns true if `account` supports the {IERC165} interface, */ function supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return _supportsERC165Interface(account, type(IERC165).interfaceId) && !_supportsERC165Interface(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return supportsERC165(account) && _supportsERC165Interface(account, interfaceId); } /** * @dev Returns a boolean array where each value corresponds to the * interfaces passed in and whether they're supported or not. This allows * you to batch check interfaces for a contract where your expectation * is that some interfaces may not be supported. * * See {IERC165-supportsInterface}. * * _Available since v3.4._ */ function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) { // an array of booleans corresponding to interfaceIds and whether they're supported or not bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); // query support of ERC165 itself if (supportsERC165(account)) { // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]); } } return interfaceIdsSupported; } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!supportsERC165(account)) { return false; } // query support of each interface in _interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!_supportsERC165Interface(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with {supportsERC165}. * Interface identification is specified in ERC-165. */ function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) { // prepare call bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId); // perform static call bool success; uint256 returnSize; uint256 returnValue; assembly { success := staticcall(30000, account, add(encodedParams, 0x20), mload(encodedParams), 0x00, 0x20) returnSize := returndatasize() returnValue := mload(0x00) } return success && returnSize >= 0x20 && returnValue > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // 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 `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID 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 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @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 virtual 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 virtual 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 virtual 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 virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual 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 virtual { 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; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ 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: [ERC165](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. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ 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 ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * 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 initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev 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); } /** * @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 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)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @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) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @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) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @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. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(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 `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @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 memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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 Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns 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)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @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 virtual { uint256 startTokenId = _currentIndex; 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 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _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 virtual { 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 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 virtual { _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 Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @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) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(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++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { 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 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 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; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @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 virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * 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(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores 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 via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @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() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 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`, * 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, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` 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 payable; /** * @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 payable; /** * @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](https://eips.ethereum.org/EIPS/eip-2309) 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/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"Alreadypaintted","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintClosed","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedOut","type":"error"},{"inputs":[],"name":"MuseumSecurity","type":"error"},{"inputs":[],"name":"NoContracts","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"},{"inputs":[],"name":"WrongPrice","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":"uint256","name":"paintId","type":"uint256"},{"indexed":true,"internalType":"address","name":"usingContractNFT","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Setter","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressHasMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"addressTokenpaintted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"hasTokenBeenPainted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[{"internalType":"uint256","name":"paintId","type":"uint256"},{"internalType":"address","name":"usingContractNFT","type":"address"},{"internalType":"uint256","name":"usingTokenId","type":"uint256"}],"name":"paint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"paintURL","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"promoMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","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":"payable","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":"payable","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":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setMintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_wei","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setWLMintOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_val","type":"bool"}],"name":"setpaintOpen","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":[],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wlClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"wlmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"wlprice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526380ac58cd60e01b600c60006101000a81548163ffffffff021916908360e01c0217905550630e89341c60e01b600c60046101000a81548163ffffffff021916908360e01c021790555066470de4df820000600d5566470de4df820000600e55739482dd08c6324e1ab0e65009a04499005c1530da601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000c657600080fd5b506040518060600160405280602f815260200162004d9a602f91396040518060400160405280600781526020017f4455524d414e4e00000000000000000000000000000000000000000000000000815250816002908162000128919062000740565b5080600390816200013a919062000740565b506200014b6200018c60201b60201c565b600081905550505062000173620001676200019160201b60201c565b6200019960201b60201c565b620001863360016200025f60201b60201c565b62000827565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905060008203620002a0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620002b560008483856200044660201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555062000344836200032660008660006200044c60201b60201c565b62000337856200047c60201b60201c565b176200048c60201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114620003e757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050620003aa565b506000820362000423576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806000819055505050620004416000848385620004b760201b60201c565b505050565b50505050565b60008060e883901c905060e86200046b868684620004bd60201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60009392505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200054857607f821691505b6020821081036200055e576200055d62000500565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005c87fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000589565b620005d4868362000589565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620006216200061b6200061584620005ec565b620005f6565b620005ec565b9050919050565b6000819050919050565b6200063d8362000600565b620006556200064c8262000628565b84845462000596565b825550505050565b600090565b6200066c6200065d565b6200067981848462000632565b505050565b5b81811015620006a1576200069560008262000662565b6001810190506200067f565b5050565b601f821115620006f057620006ba8162000564565b620006c58462000579565b81016020851015620006d5578190505b620006ed620006e48562000579565b8301826200067e565b50505b505050565b600082821c905092915050565b60006200071560001984600802620006f5565b1980831691505092915050565b600062000730838362000702565b9150826002028217905092915050565b6200074b82620004c6565b67ffffffffffffffff811115620007675762000766620004d1565b5b6200077382546200052f565b62000780828285620006a5565b600060209050601f831160018114620007b85760008415620007a3578287015190505b620007af858262000722565b8655506200081f565b601f198416620007c88662000564565b60005b82811015620007f257848901518255600182019150602085019450602081019050620007cb565b868310156200081257848901516200080e601f89168262000702565b8355505b6001600288020188555050505b505050505050565b61456380620008376000396000f3fe60806040526004361061023b5760003560e01c8063870b95801161012e578063bc7809bc116100ab578063e985e9c51161006f578063e985e9c514610859578063f2fde38b14610896578063f8004d31146108bf578063fc5e219c146108e8578063fc772261146109115761023b565b8063bc7809bc1461075e578063c87b56dd14610789578063cfc86f7b146107c6578063dc544ca7146107f1578063e38a34451461081c5761023b565b8063a0712d68116100f2578063a0712d6814610697578063a22cb465146106b3578063a2a3eb4d146106dc578063b2a098d914610705578063b88d4fde146107425761023b565b8063870b9580146105c45780638da5cb5b146105ed57806391b7f5ed1461061857806395d89b4114610641578063a035b1fe1461066c5761023b565b80633ccfd60b116101bc57806366473da11161018057806366473da1146104cd57806370a082311461050a578063715018a6146105475780637bb0f2d51461055e5780637cb647591461059b5761023b565b80633ccfd60b146103f757806342842e0e1461040e57806355f804b31461042a5780635a089b30146104535780636352211e146104905761023b565b80631237e5e8116102035780631237e5e81461031d5780631581b6001461035a57806318160ddd1461038557806323b872dd146103b057806332cb6b0c146103cc5761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e55780630a2e370a14610301575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190612fa4565b61093a565b6040516102749190612fec565b60405180910390f35b34801561028957600080fd5b506102926109cc565b60405161029f9190613097565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca91906130ef565b610a5e565b6040516102dc919061315d565b60405180910390f35b6102ff60048036038101906102fa91906131a4565b610add565b005b61031b60048036038101906103169190613362565b610c21565b005b34801561032957600080fd5b50610344600480360381019061033f91906133be565b610ece565b60405161035191906133fa565b60405180910390f35b34801561036657600080fd5b5061036f610ee6565b60405161037c919061315d565b60405180910390f35b34801561039157600080fd5b5061039a610f0c565b6040516103a791906133fa565b60405180910390f35b6103ca60048036038101906103c59190613415565b610f23565b005b3480156103d857600080fd5b506103e1611245565b6040516103ee91906133fa565b60405180910390f35b34801561040357600080fd5b5061040c61124a565b005b61042860048036038101906104239190613415565b611323565b005b34801561043657600080fd5b50610451600480360381019061044c91906134c3565b611343565b005b34801561045f57600080fd5b5061047a600480360381019061047591906133be565b611361565b60405161048791906133fa565b60405180910390f35b34801561049c57600080fd5b506104b760048036038101906104b291906130ef565b611379565b6040516104c4919061315d565b60405180910390f35b3480156104d957600080fd5b506104f460048036038101906104ef91906131a4565b61138b565b6040516105019190612fec565b60405180910390f35b34801561051657600080fd5b50610531600480360381019061052c91906133be565b6113ba565b60405161053e91906133fa565b60405180910390f35b34801561055357600080fd5b5061055c611472565b005b34801561056a57600080fd5b50610585600480360381019061058091906130ef565b611486565b6040516105929190613097565b60405180910390f35b3480156105a757600080fd5b506105c260048036038101906105bd9190613510565b611526565b005b3480156105d057600080fd5b506105eb60048036038101906105e69190613569565b611538565b005b3480156105f957600080fd5b5061060261155d565b60405161060f919061315d565b60405180910390f35b34801561062457600080fd5b5061063f600480360381019061063a91906130ef565b611587565b005b34801561064d57600080fd5b50610656611599565b6040516106639190613097565b60405180910390f35b34801561067857600080fd5b5061068161162b565b60405161068e91906133fa565b60405180910390f35b6106b160048036038101906106ac91906130ef565b611631565b005b3480156106bf57600080fd5b506106da60048036038101906106d59190613596565b61185e565b005b3480156106e857600080fd5b5061070360048036038101906106fe91906131a4565b611969565b005b34801561071157600080fd5b5061072c600480360381019061072791906133be565b6119cc565b6040516107399190612fec565b60405180910390f35b61075c6004803603810190610757919061368b565b6119ec565b005b34801561076a57600080fd5b50610773611a5f565b60405161078091906133fa565b60405180910390f35b34801561079557600080fd5b506107b060048036038101906107ab91906130ef565b611a65565b6040516107bd9190613097565b60405180910390f35b3480156107d257600080fd5b506107db611b03565b6040516107e89190613097565b60405180910390f35b3480156107fd57600080fd5b50610806611b91565b60405161081391906133fa565b60405180910390f35b34801561082857600080fd5b50610843600480360381019061083e91906131a4565b611b97565b6040516108509190612fec565b60405180910390f35b34801561086557600080fd5b50610880600480360381019061087b919061370e565b611bff565b60405161088d9190612fec565b60405180910390f35b3480156108a257600080fd5b506108bd60048036038101906108b891906133be565b611c93565b005b3480156108cb57600080fd5b506108e660048036038101906108e19190613569565b611d16565b005b3480156108f457600080fd5b5061090f600480360381019061090a9190613569565b611d3b565b005b34801561091d57600080fd5b506109386004803603810190610933919061374e565b611d60565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109c55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546109db906137d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a07906137d0565b8015610a545780601f10610a2957610100808354040283529160200191610a54565b820191906000526020600020905b815481529060010190602001808311610a3757829003601f168201915b5050505050905090565b6000610a69826124b0565b610a9f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae882611379565b90508073ffffffffffffffffffffffffffffffffffffffff16610b0961250f565b73ffffffffffffffffffffffffffffffffffffffff1614610b6c57610b3581610b3061250f565b611bff565b610b6b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c86576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60001515601260019054906101000a900460ff16151503610cd3576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600e54610ce19190613830565b3414610d19576040517ff7760f2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60de82610d24610f0c565b610d2e9190613872565b1115610d66576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d70612517565b604051602001610d8091906138ee565b604051602081830303815290604052805190602001209050610da5826011548361251f565b610de4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddb90613955565b60405180910390fd5b600283601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e319190613872565b1115610e72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e69906139c1565b60405180910390fd5b82601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550610ec93384612536565b505050565b60146020528060005260406000206000915090505481565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610f166126f1565b6001546000540303905090565b6000610f2e826126f6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f95576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610fa1846127c2565b91509150610fb78187610fb261250f565b6127e9565b61100357610fcc86610fc761250f565b611bff565b611002576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611069576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611076868686600161282d565b801561108157600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061114f8561112b888887612833565b7c02000000000000000000000000000000000000000000000000000000001761285b565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036111d557600060018501905060006004600083815260200190815260200160002054036111d35760005481146111d2578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461123d8686866001612886565b505050505050565b60de81565b61125261288c565b6000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161129a90613a12565b60006040518083038185875af1925050503d80600081146112d7576040519150601f19603f3d011682016040523d82523d6000602084013e6112dc565b606091505b5050905080611320576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131790613a73565b60405180910390fd5b50565b61133e838383604051806020016040528060008152506119ec565b505050565b61134b61288c565b81816010918261135c929190613c4a565b505050565b60136020528060005260406000206000915090505481565b6000611384826126f6565b9050919050565b600b6020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611421576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61147a61288c565b611484600061290a565b565b600a60205280600052604060002060009150905080546114a5906137d0565b80601f01602080910402602001604051908101604052809291908181526020018280546114d1906137d0565b801561151e5780601f106114f35761010080835404028352916020019161151e565b820191906000526020600020905b81548152906001019060200180831161150157829003601f168201915b505050505081565b61152e61288c565b8060118190555050565b61154061288c565b80601260016101000a81548160ff02191690831515021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61158f61288c565b80600d8190555050565b6060600380546115a8906137d0565b80601f01602080910402602001604051908101604052809291908181526020018280546115d4906137d0565b80156116215780601f106115f657610100808354040283529160200191611621565b820191906000526020600020905b81548152906001019060200180831161160457829003601f168201915b5050505050905090565b600d5481565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611696576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60001515601260009054906101000a900460ff161515036116e3576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60de816116ee610f0c565b6116f89190613872565b1115611730576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d5461173e9190613830565b3414611776576040517ff7760f2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600281601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117c39190613872565b1115611804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fb90613d66565b60405180910390fd5b80601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061185b3382612536565b50565b806007600061186b61250f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661191861250f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161195d9190612fec565b60405180910390a35050565b61197161288c565b60de8161197c610f0c565b6119869190613872565b11156119be576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119c88282612536565b5050565b60096020528060005260406000206000915054906101000a900460ff1681565b6119f7848484610f23565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611a5957611a22848484846129d0565b611a58576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600f5481565b6060611a70826124b0565b611aa6576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ab0612b20565b90506000815103611ad05760405180602001604052806000815250611afb565b80611ada84612bb2565b604051602001611aeb929190613dc2565b6040516020818303038152906040525b915050919050565b60108054611b10906137d0565b80601f0160208091040260200160405190810160405280929190818152602001828054611b3c906137d0565b8015611b895780601f10611b5e57610100808354040283529160200191611b89565b820191906000526020600020905b815481529060010190602001808311611b6c57829003601f168201915b505050505081565b600e5481565b6000600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c9b61288c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0190613e58565b60405180910390fd5b611d138161290a565b50565b611d1e61288c565b80601260006101000a81548160ff02191690831515021790555050565b611d4361288c565b80601260026101000a81548160ff02191690831515021790555050565b60001515601260029054906101000a900460ff16151503611dad576040517fabd4d92500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611db78282611b97565b15611dee576040517f787bc53900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16611e0e84611379565b73ffffffffffffffffffffffffffffffffffffffff1614611e64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5b90613ec4565b60405180910390fd5b611e7d82600c60009054906101000a900460e01b612c02565b156120bd576000808373ffffffffffffffffffffffffffffffffffffffff1683604051602401611ead91906133fa565b6040516020818303038152906040527fc87b56dd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611f379190613f20565b6000604051808303816000865af19150503d8060008114611f74576040519150601f19603f3d011682016040523d82523d6000602084013e611f79565b606091505b509150915081611fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb590613f83565b60405180910390fd5b600081806020019051810190611fd49190614044565b905080600a60008881526020019081526020016000209081611ff6919061408d565b506001600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550838573ffffffffffffffffffffffffffffffffffffffff16877f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a45050506124ab565b6120d682600c60049054906101000a900460e01b612c02565b15612316576000808373ffffffffffffffffffffffffffffffffffffffff168360405160240161210691906133fa565b6040516020818303038152906040527f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516121909190613f20565b6000604051808303816000865af19150503d80600081146121cd576040519150601f19603f3d011682016040523d82523d6000602084013e6121d2565b606091505b509150915081612217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220e906141ab565b60405180910390fd5b60008180602001905181019061222d9190614044565b905080600a6000888152602001908152602001600020908161224f919061408d565b506001600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550838573ffffffffffffffffffffffffffffffffffffffff16877f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a45050506124aa565b73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361246e57600061236882612c27565b60405160200161237891906141f1565b604051602081830303815290604052905080600a600086815260200190815260200160002090816123a9919061408d565b506001600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550818373ffffffffffffffffffffffffffffffffffffffff16857f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a4506124a9565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a090614263565b60405180910390fd5b5b5b505050565b6000816124bb6126f1565b111580156124ca575060005482105b8015612508575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600033905090565b60008261252c8584612d87565b1490509392505050565b60008054905060008203612576576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612583600084838561282d565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506125fa836125eb6000866000612833565b6125f485612dfc565b1761285b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461269b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612660565b50600082036126d6576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506126ec6000848385612886565b505050565b600090565b600080829050806127056126f1565b1161278b5760005481101561278a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612788575b6000810361277e576004600083600190039350838152602001908152602001600020549050612754565b80925050506127bd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861284a868684612e0c565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612894612517565b73ffffffffffffffffffffffffffffffffffffffff166128b261155d565b73ffffffffffffffffffffffffffffffffffffffff1614612908576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ff906142cf565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026129f661250f565b8786866040518563ffffffff1660e01b8152600401612a189493929190614339565b6020604051808303816000875af1925050508015612a5457506040513d601f19601f82011682018060405250810190612a51919061439a565b60015b612acd573d8060008114612a84576040519150601f19603f3d011682016040523d82523d6000602084013e612a89565b606091505b506000815103612ac5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060108054612b2f906137d0565b80601f0160208091040260200160405190810160405280929190818152602001828054612b5b906137d0565b8015612ba85780601f10612b7d57610100808354040283529160200191612ba8565b820191906000526020600020905b815481529060010190602001808311612b8b57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612bed57600184039350600a81066030018453600a8104905080612bcb575b50828103602084039350808452505050919050565b6000612c0d83612e15565b8015612c1f5750612c1e8383612e62565b5b905092915050565b606060008203612c6e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d82565b600082905060005b60008214612ca0578080612c89906143c7565b915050600a82612c99919061443e565b9150612c76565b60008167ffffffffffffffff811115612cbc57612cbb6131e9565b5b6040519080825280601f01601f191660200182016040528015612cee5781602001600182028036833780820191505090505b5090505b60008514612d7b57600182612d07919061446f565b9150600a85612d1691906144a3565b6030612d229190613872565b60f81b818381518110612d3857612d376144d4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d74919061443e565b9450612cf2565b8093505050505b919050565b60008082905060005b8451811015612df1576000858281518110612dae57612dad6144d4565b5b60200260200101519050808311612dd057612dc98382612f21565b9250612ddd565b612dda8184612f21565b92505b508080612de9906143c7565b915050612d90565b508091505092915050565b60006001821460e11b9050919050565b60009392505050565b6000612e41827f01ffc9a700000000000000000000000000000000000000000000000000000000612e62565b8015612e5b5750612e598263ffffffff60e01b612e62565b155b9050919050565b6000806301ffc9a760e01b83604051602401612e7e9190614512565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000806000602060008551602087018a617530fa92503d91506000519050828015612f09575060208210155b8015612f155750600081115b94505050505092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f8181612f4c565b8114612f8c57600080fd5b50565b600081359050612f9e81612f78565b92915050565b600060208284031215612fba57612fb9612f42565b5b6000612fc884828501612f8f565b91505092915050565b60008115159050919050565b612fe681612fd1565b82525050565b60006020820190506130016000830184612fdd565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613041578082015181840152602081019050613026565b60008484015250505050565b6000601f19601f8301169050919050565b600061306982613007565b6130738185613012565b9350613083818560208601613023565b61308c8161304d565b840191505092915050565b600060208201905081810360008301526130b1818461305e565b905092915050565b6000819050919050565b6130cc816130b9565b81146130d757600080fd5b50565b6000813590506130e9816130c3565b92915050565b60006020828403121561310557613104612f42565b5b6000613113848285016130da565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131478261311c565b9050919050565b6131578161313c565b82525050565b6000602082019050613172600083018461314e565b92915050565b6131818161313c565b811461318c57600080fd5b50565b60008135905061319e81613178565b92915050565b600080604083850312156131bb576131ba612f42565b5b60006131c98582860161318f565b92505060206131da858286016130da565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6132218261304d565b810181811067ffffffffffffffff821117156132405761323f6131e9565b5b80604052505050565b6000613253612f38565b905061325f8282613218565b919050565b600067ffffffffffffffff82111561327f5761327e6131e9565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b6132a881613295565b81146132b357600080fd5b50565b6000813590506132c58161329f565b92915050565b60006132de6132d984613264565b613249565b9050808382526020820190506020840283018581111561330157613300613290565b5b835b8181101561332a578061331688826132b6565b845260208401935050602081019050613303565b5050509392505050565b600082601f830112613349576133486131e4565b5b81356133598482602086016132cb565b91505092915050565b6000806040838503121561337957613378612f42565b5b6000613387858286016130da565b925050602083013567ffffffffffffffff8111156133a8576133a7612f47565b5b6133b485828601613334565b9150509250929050565b6000602082840312156133d4576133d3612f42565b5b60006133e28482850161318f565b91505092915050565b6133f4816130b9565b82525050565b600060208201905061340f60008301846133eb565b92915050565b60008060006060848603121561342e5761342d612f42565b5b600061343c8682870161318f565b935050602061344d8682870161318f565b925050604061345e868287016130da565b9150509250925092565b600080fd5b60008083601f840112613483576134826131e4565b5b8235905067ffffffffffffffff8111156134a05761349f613468565b5b6020830191508360018202830111156134bc576134bb613290565b5b9250929050565b600080602083850312156134da576134d9612f42565b5b600083013567ffffffffffffffff8111156134f8576134f7612f47565b5b6135048582860161346d565b92509250509250929050565b60006020828403121561352657613525612f42565b5b6000613534848285016132b6565b91505092915050565b61354681612fd1565b811461355157600080fd5b50565b6000813590506135638161353d565b92915050565b60006020828403121561357f5761357e612f42565b5b600061358d84828501613554565b91505092915050565b600080604083850312156135ad576135ac612f42565b5b60006135bb8582860161318f565b92505060206135cc85828601613554565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156135f6576135f56131e9565b5b6135ff8261304d565b9050602081019050919050565b82818337600083830152505050565b600061362e613629846135db565b613249565b90508281526020810184848401111561364a576136496135d6565b5b61365584828561360c565b509392505050565b600082601f830112613672576136716131e4565b5b813561368284826020860161361b565b91505092915050565b600080600080608085870312156136a5576136a4612f42565b5b60006136b38782880161318f565b94505060206136c48782880161318f565b93505060406136d5878288016130da565b925050606085013567ffffffffffffffff8111156136f6576136f5612f47565b5b6137028782880161365d565b91505092959194509250565b6000806040838503121561372557613724612f42565b5b60006137338582860161318f565b92505060206137448582860161318f565b9150509250929050565b60008060006060848603121561376757613766612f42565b5b6000613775868287016130da565b93505060206137868682870161318f565b9250506040613797868287016130da565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806137e857607f821691505b6020821081036137fb576137fa6137a1565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061383b826130b9565b9150613846836130b9565b9250828202613854816130b9565b9150828204841483151761386b5761386a613801565b5b5092915050565b600061387d826130b9565b9150613888836130b9565b92508282019050808211156138a05761389f613801565b5b92915050565b60008160601b9050919050565b60006138be826138a6565b9050919050565b60006138d0826138b3565b9050919050565b6138e86138e38261313c565b6138c5565b82525050565b60006138fa82846138d7565b60148201915081905092915050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b600061393f600e83613012565b915061394a82613909565b602082019050919050565b6000602082019050818103600083015261396e81613932565b9050919050565b7f574c5f4d41584544000000000000000000000000000000000000000000000000600082015250565b60006139ab600883613012565b91506139b682613975565b602082019050919050565b600060208201905081810360008301526139da8161399e565b9050919050565b600081905092915050565b50565b60006139fc6000836139e1565b9150613a07826139ec565b600082019050919050565b6000613a1d826139ef565b9150819050919050565b7f5769746864726177206661696c65640000000000000000000000000000000000600082015250565b6000613a5d600f83613012565b9150613a6882613a27565b602082019050919050565b60006020820190508181036000830152613a8c81613a50565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613b007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613ac3565b613b0a8683613ac3565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613b47613b42613b3d846130b9565b613b22565b6130b9565b9050919050565b6000819050919050565b613b6183613b2c565b613b75613b6d82613b4e565b848454613ad0565b825550505050565b600090565b613b8a613b7d565b613b95818484613b58565b505050565b5b81811015613bb957613bae600082613b82565b600181019050613b9b565b5050565b601f821115613bfe57613bcf81613a9e565b613bd884613ab3565b81016020851015613be7578190505b613bfb613bf385613ab3565b830182613b9a565b50505b505050565b600082821c905092915050565b6000613c2160001984600802613c03565b1980831691505092915050565b6000613c3a8383613c10565b9150826002028217905092915050565b613c548383613a93565b67ffffffffffffffff811115613c6d57613c6c6131e9565b5b613c7782546137d0565b613c82828285613bbd565b6000601f831160018114613cb15760008415613c9f578287013590505b613ca98582613c2e565b865550613d11565b601f198416613cbf86613a9e565b60005b82811015613ce757848901358255600182019150602085019450602081019050613cc2565b86831015613d045784890135613d00601f891682613c10565b8355505b6001600288020188555050505b50505050505050565b7f4d494e545f4d4158454400000000000000000000000000000000000000000000600082015250565b6000613d50600a83613012565b9150613d5b82613d1a565b602082019050919050565b60006020820190508181036000830152613d7f81613d43565b9050919050565b600081905092915050565b6000613d9c82613007565b613da68185613d86565b9350613db6818560208601613023565b80840191505092915050565b6000613dce8285613d91565b9150613dda8284613d91565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613e42602683613012565b9150613e4d82613de6565b604082019050919050565b60006020820190508181036000830152613e7181613e35565b9050919050565b7f4e6f7420796f7572207061696e74000000000000000000000000000000000000600082015250565b6000613eae600e83613012565b9150613eb982613e78565b602082019050919050565b60006020820190508181036000830152613edd81613ea1565b9050919050565b600081519050919050565b6000613efa82613ee4565b613f0481856139e1565b9350613f14818560208601613023565b80840191505092915050565b6000613f2c8284613eef565b915081905092915050565b7f4572726f722067657474696e6720746f6b656e55524920646174610000000000600082015250565b6000613f6d601b83613012565b9150613f7882613f37565b602082019050919050565b60006020820190508181036000830152613f9c81613f60565b9050919050565b600067ffffffffffffffff821115613fbe57613fbd6131e9565b5b613fc78261304d565b9050602081019050919050565b6000613fe7613fe284613fa3565b613249565b905082815260208101848484011115614003576140026135d6565b5b61400e848285613023565b509392505050565b600082601f83011261402b5761402a6131e4565b5b815161403b848260208601613fd4565b91505092915050565b60006020828403121561405a57614059612f42565b5b600082015167ffffffffffffffff81111561407857614077612f47565b5b61408484828501614016565b91505092915050565b61409682613007565b67ffffffffffffffff8111156140af576140ae6131e9565b5b6140b982546137d0565b6140c4828285613bbd565b600060209050601f8311600181146140f757600084156140e5578287015190505b6140ef8582613c2e565b865550614157565b601f19841661410586613a9e565b60005b8281101561412d57848901518255600182019150602085019450602081019050614108565b8683101561414a5784890151614146601f891682613c10565b8355505b6001600288020188555050505b505050505050565b7f4572726f722067657474696e6720555249206461746100000000000000000000600082015250565b6000614195601683613012565b91506141a08261415f565b602082019050919050565b600060208201905081810360008301526141c481614188565b9050919050565b7f70756e6b20000000000000000000000000000000000000000000000000000000815250565b60006141fc826141cb565b60058201915061420c8284613d91565b915081905092915050565b7f4e6f7420616e204552432d373231206f72204552432d31313535000000000000600082015250565b600061424d601a83613012565b915061425882614217565b602082019050919050565b6000602082019050818103600083015261427c81614240565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006142b9602083613012565b91506142c482614283565b602082019050919050565b600060208201905081810360008301526142e8816142ac565b9050919050565b600082825260208201905092915050565b600061430b82613ee4565b61431581856142ef565b9350614325818560208601613023565b61432e8161304d565b840191505092915050565b600060808201905061434e600083018761314e565b61435b602083018661314e565b61436860408301856133eb565b818103606083015261437a8184614300565b905095945050505050565b60008151905061439481612f78565b92915050565b6000602082840312156143b0576143af612f42565b5b60006143be84828501614385565b91505092915050565b60006143d2826130b9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361440457614403613801565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614449826130b9565b9150614454836130b9565b9250826144645761446361440f565b5b828204905092915050565b600061447a826130b9565b9150614485836130b9565b925082820390508181111561449d5761449c613801565b5b92915050565b60006144ae826130b9565b91506144b9836130b9565b9250826144c9576144c861440f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b61450c81612f4c565b82525050565b60006020820190506145276000830184614503565b9291505056fea26469706673582212201b14e8f91439910df34ec72c12f69255db06995e08124cbe89d6c471f4ccd99364736f6c634300081100334f4e452e352044656772656573205820426c61636b205061696e7420582053504c4f4f54206279204455524d414e4e
Deployed Bytecode
0x60806040526004361061023b5760003560e01c8063870b95801161012e578063bc7809bc116100ab578063e985e9c51161006f578063e985e9c514610859578063f2fde38b14610896578063f8004d31146108bf578063fc5e219c146108e8578063fc772261146109115761023b565b8063bc7809bc1461075e578063c87b56dd14610789578063cfc86f7b146107c6578063dc544ca7146107f1578063e38a34451461081c5761023b565b8063a0712d68116100f2578063a0712d6814610697578063a22cb465146106b3578063a2a3eb4d146106dc578063b2a098d914610705578063b88d4fde146107425761023b565b8063870b9580146105c45780638da5cb5b146105ed57806391b7f5ed1461061857806395d89b4114610641578063a035b1fe1461066c5761023b565b80633ccfd60b116101bc57806366473da11161018057806366473da1146104cd57806370a082311461050a578063715018a6146105475780637bb0f2d51461055e5780637cb647591461059b5761023b565b80633ccfd60b146103f757806342842e0e1461040e57806355f804b31461042a5780635a089b30146104535780636352211e146104905761023b565b80631237e5e8116102035780631237e5e81461031d5780631581b6001461035a57806318160ddd1461038557806323b872dd146103b057806332cb6b0c146103cc5761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e55780630a2e370a14610301575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190612fa4565b61093a565b6040516102749190612fec565b60405180910390f35b34801561028957600080fd5b506102926109cc565b60405161029f9190613097565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca91906130ef565b610a5e565b6040516102dc919061315d565b60405180910390f35b6102ff60048036038101906102fa91906131a4565b610add565b005b61031b60048036038101906103169190613362565b610c21565b005b34801561032957600080fd5b50610344600480360381019061033f91906133be565b610ece565b60405161035191906133fa565b60405180910390f35b34801561036657600080fd5b5061036f610ee6565b60405161037c919061315d565b60405180910390f35b34801561039157600080fd5b5061039a610f0c565b6040516103a791906133fa565b60405180910390f35b6103ca60048036038101906103c59190613415565b610f23565b005b3480156103d857600080fd5b506103e1611245565b6040516103ee91906133fa565b60405180910390f35b34801561040357600080fd5b5061040c61124a565b005b61042860048036038101906104239190613415565b611323565b005b34801561043657600080fd5b50610451600480360381019061044c91906134c3565b611343565b005b34801561045f57600080fd5b5061047a600480360381019061047591906133be565b611361565b60405161048791906133fa565b60405180910390f35b34801561049c57600080fd5b506104b760048036038101906104b291906130ef565b611379565b6040516104c4919061315d565b60405180910390f35b3480156104d957600080fd5b506104f460048036038101906104ef91906131a4565b61138b565b6040516105019190612fec565b60405180910390f35b34801561051657600080fd5b50610531600480360381019061052c91906133be565b6113ba565b60405161053e91906133fa565b60405180910390f35b34801561055357600080fd5b5061055c611472565b005b34801561056a57600080fd5b50610585600480360381019061058091906130ef565b611486565b6040516105929190613097565b60405180910390f35b3480156105a757600080fd5b506105c260048036038101906105bd9190613510565b611526565b005b3480156105d057600080fd5b506105eb60048036038101906105e69190613569565b611538565b005b3480156105f957600080fd5b5061060261155d565b60405161060f919061315d565b60405180910390f35b34801561062457600080fd5b5061063f600480360381019061063a91906130ef565b611587565b005b34801561064d57600080fd5b50610656611599565b6040516106639190613097565b60405180910390f35b34801561067857600080fd5b5061068161162b565b60405161068e91906133fa565b60405180910390f35b6106b160048036038101906106ac91906130ef565b611631565b005b3480156106bf57600080fd5b506106da60048036038101906106d59190613596565b61185e565b005b3480156106e857600080fd5b5061070360048036038101906106fe91906131a4565b611969565b005b34801561071157600080fd5b5061072c600480360381019061072791906133be565b6119cc565b6040516107399190612fec565b60405180910390f35b61075c6004803603810190610757919061368b565b6119ec565b005b34801561076a57600080fd5b50610773611a5f565b60405161078091906133fa565b60405180910390f35b34801561079557600080fd5b506107b060048036038101906107ab91906130ef565b611a65565b6040516107bd9190613097565b60405180910390f35b3480156107d257600080fd5b506107db611b03565b6040516107e89190613097565b60405180910390f35b3480156107fd57600080fd5b50610806611b91565b60405161081391906133fa565b60405180910390f35b34801561082857600080fd5b50610843600480360381019061083e91906131a4565b611b97565b6040516108509190612fec565b60405180910390f35b34801561086557600080fd5b50610880600480360381019061087b919061370e565b611bff565b60405161088d9190612fec565b60405180910390f35b3480156108a257600080fd5b506108bd60048036038101906108b891906133be565b611c93565b005b3480156108cb57600080fd5b506108e660048036038101906108e19190613569565b611d16565b005b3480156108f457600080fd5b5061090f600480360381019061090a9190613569565b611d3b565b005b34801561091d57600080fd5b506109386004803603810190610933919061374e565b611d60565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109c55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546109db906137d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610a07906137d0565b8015610a545780601f10610a2957610100808354040283529160200191610a54565b820191906000526020600020905b815481529060010190602001808311610a3757829003601f168201915b5050505050905090565b6000610a69826124b0565b610a9f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae882611379565b90508073ffffffffffffffffffffffffffffffffffffffff16610b0961250f565b73ffffffffffffffffffffffffffffffffffffffff1614610b6c57610b3581610b3061250f565b611bff565b610b6b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c86576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60001515601260019054906101000a900460ff16151503610cd3576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600e54610ce19190613830565b3414610d19576040517ff7760f2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60de82610d24610f0c565b610d2e9190613872565b1115610d66576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d70612517565b604051602001610d8091906138ee565b604051602081830303815290604052805190602001209050610da5826011548361251f565b610de4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddb90613955565b60405180910390fd5b600283601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e319190613872565b1115610e72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e69906139c1565b60405180910390fd5b82601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550610ec93384612536565b505050565b60146020528060005260406000206000915090505481565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610f166126f1565b6001546000540303905090565b6000610f2e826126f6565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f95576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610fa1846127c2565b91509150610fb78187610fb261250f565b6127e9565b61100357610fcc86610fc761250f565b611bff565b611002576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611069576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611076868686600161282d565b801561108157600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061114f8561112b888887612833565b7c02000000000000000000000000000000000000000000000000000000001761285b565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036111d557600060018501905060006004600083815260200190815260200160002054036111d35760005481146111d2578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461123d8686866001612886565b505050505050565b60de81565b61125261288c565b6000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff164760405161129a90613a12565b60006040518083038185875af1925050503d80600081146112d7576040519150601f19603f3d011682016040523d82523d6000602084013e6112dc565b606091505b5050905080611320576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131790613a73565b60405180910390fd5b50565b61133e838383604051806020016040528060008152506119ec565b505050565b61134b61288c565b81816010918261135c929190613c4a565b505050565b60136020528060005260406000206000915090505481565b6000611384826126f6565b9050919050565b600b6020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611421576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61147a61288c565b611484600061290a565b565b600a60205280600052604060002060009150905080546114a5906137d0565b80601f01602080910402602001604051908101604052809291908181526020018280546114d1906137d0565b801561151e5780601f106114f35761010080835404028352916020019161151e565b820191906000526020600020905b81548152906001019060200180831161150157829003601f168201915b505050505081565b61152e61288c565b8060118190555050565b61154061288c565b80601260016101000a81548160ff02191690831515021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61158f61288c565b80600d8190555050565b6060600380546115a8906137d0565b80601f01602080910402602001604051908101604052809291908181526020018280546115d4906137d0565b80156116215780601f106115f657610100808354040283529160200191611621565b820191906000526020600020905b81548152906001019060200180831161160457829003601f168201915b5050505050905090565b600d5481565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611696576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60001515601260009054906101000a900460ff161515036116e3576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60de816116ee610f0c565b6116f89190613872565b1115611730576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d5461173e9190613830565b3414611776576040517ff7760f2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600281601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117c39190613872565b1115611804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fb90613d66565b60405180910390fd5b80601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555061185b3382612536565b50565b806007600061186b61250f565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661191861250f565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161195d9190612fec565b60405180910390a35050565b61197161288c565b60de8161197c610f0c565b6119869190613872565b11156119be576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6119c88282612536565b5050565b60096020528060005260406000206000915054906101000a900460ff1681565b6119f7848484610f23565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611a5957611a22848484846129d0565b611a58576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b600f5481565b6060611a70826124b0565b611aa6576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ab0612b20565b90506000815103611ad05760405180602001604052806000815250611afb565b80611ada84612bb2565b604051602001611aeb929190613dc2565b6040516020818303038152906040525b915050919050565b60108054611b10906137d0565b80601f0160208091040260200160405190810160405280929190818152602001828054611b3c906137d0565b8015611b895780601f10611b5e57610100808354040283529160200191611b89565b820191906000526020600020905b815481529060010190602001808311611b6c57829003601f168201915b505050505081565b600e5481565b6000600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c9b61288c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611d0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0190613e58565b60405180910390fd5b611d138161290a565b50565b611d1e61288c565b80601260006101000a81548160ff02191690831515021790555050565b611d4361288c565b80601260026101000a81548160ff02191690831515021790555050565b60001515601260029054906101000a900460ff16151503611dad576040517fabd4d92500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611db78282611b97565b15611dee576040517f787bc53900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16611e0e84611379565b73ffffffffffffffffffffffffffffffffffffffff1614611e64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5b90613ec4565b60405180910390fd5b611e7d82600c60009054906101000a900460e01b612c02565b156120bd576000808373ffffffffffffffffffffffffffffffffffffffff1683604051602401611ead91906133fa565b6040516020818303038152906040527fc87b56dd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611f379190613f20565b6000604051808303816000865af19150503d8060008114611f74576040519150601f19603f3d011682016040523d82523d6000602084013e611f79565b606091505b509150915081611fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb590613f83565b60405180910390fd5b600081806020019051810190611fd49190614044565b905080600a60008881526020019081526020016000209081611ff6919061408d565b506001600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550838573ffffffffffffffffffffffffffffffffffffffff16877f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a45050506124ab565b6120d682600c60049054906101000a900460e01b612c02565b15612316576000808373ffffffffffffffffffffffffffffffffffffffff168360405160240161210691906133fa565b6040516020818303038152906040527f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040516121909190613f20565b6000604051808303816000865af19150503d80600081146121cd576040519150601f19603f3d011682016040523d82523d6000602084013e6121d2565b606091505b509150915081612217576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161220e906141ab565b60405180910390fd5b60008180602001905181019061222d9190614044565b905080600a6000888152602001908152602001600020908161224f919061408d565b506001600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550838573ffffffffffffffffffffffffffffffffffffffff16877f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a45050506124aa565b73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361246e57600061236882612c27565b60405160200161237891906141f1565b604051602081830303815290604052905080600a600086815260200190815260200160002090816123a9919061408d565b506001600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550818373ffffffffffffffffffffffffffffffffffffffff16857f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a4506124a9565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a090614263565b60405180910390fd5b5b5b505050565b6000816124bb6126f1565b111580156124ca575060005482105b8015612508575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600033905090565b60008261252c8584612d87565b1490509392505050565b60008054905060008203612576576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612583600084838561282d565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506125fa836125eb6000866000612833565b6125f485612dfc565b1761285b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461269b57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612660565b50600082036126d6576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506126ec6000848385612886565b505050565b600090565b600080829050806127056126f1565b1161278b5760005481101561278a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612788575b6000810361277e576004600083600190039350838152602001908152602001600020549050612754565b80925050506127bd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861284a868684612e0c565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612894612517565b73ffffffffffffffffffffffffffffffffffffffff166128b261155d565b73ffffffffffffffffffffffffffffffffffffffff1614612908576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ff906142cf565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026129f661250f565b8786866040518563ffffffff1660e01b8152600401612a189493929190614339565b6020604051808303816000875af1925050508015612a5457506040513d601f19601f82011682018060405250810190612a51919061439a565b60015b612acd573d8060008114612a84576040519150601f19603f3d011682016040523d82523d6000602084013e612a89565b606091505b506000815103612ac5576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060108054612b2f906137d0565b80601f0160208091040260200160405190810160405280929190818152602001828054612b5b906137d0565b8015612ba85780601f10612b7d57610100808354040283529160200191612ba8565b820191906000526020600020905b815481529060010190602001808311612b8b57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612bed57600184039350600a81066030018453600a8104905080612bcb575b50828103602084039350808452505050919050565b6000612c0d83612e15565b8015612c1f5750612c1e8383612e62565b5b905092915050565b606060008203612c6e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d82565b600082905060005b60008214612ca0578080612c89906143c7565b915050600a82612c99919061443e565b9150612c76565b60008167ffffffffffffffff811115612cbc57612cbb6131e9565b5b6040519080825280601f01601f191660200182016040528015612cee5781602001600182028036833780820191505090505b5090505b60008514612d7b57600182612d07919061446f565b9150600a85612d1691906144a3565b6030612d229190613872565b60f81b818381518110612d3857612d376144d4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d74919061443e565b9450612cf2565b8093505050505b919050565b60008082905060005b8451811015612df1576000858281518110612dae57612dad6144d4565b5b60200260200101519050808311612dd057612dc98382612f21565b9250612ddd565b612dda8184612f21565b92505b508080612de9906143c7565b915050612d90565b508091505092915050565b60006001821460e11b9050919050565b60009392505050565b6000612e41827f01ffc9a700000000000000000000000000000000000000000000000000000000612e62565b8015612e5b5750612e598263ffffffff60e01b612e62565b155b9050919050565b6000806301ffc9a760e01b83604051602401612e7e9190614512565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000806000602060008551602087018a617530fa92503d91506000519050828015612f09575060208210155b8015612f155750600081115b94505050505092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f8181612f4c565b8114612f8c57600080fd5b50565b600081359050612f9e81612f78565b92915050565b600060208284031215612fba57612fb9612f42565b5b6000612fc884828501612f8f565b91505092915050565b60008115159050919050565b612fe681612fd1565b82525050565b60006020820190506130016000830184612fdd565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613041578082015181840152602081019050613026565b60008484015250505050565b6000601f19601f8301169050919050565b600061306982613007565b6130738185613012565b9350613083818560208601613023565b61308c8161304d565b840191505092915050565b600060208201905081810360008301526130b1818461305e565b905092915050565b6000819050919050565b6130cc816130b9565b81146130d757600080fd5b50565b6000813590506130e9816130c3565b92915050565b60006020828403121561310557613104612f42565b5b6000613113848285016130da565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006131478261311c565b9050919050565b6131578161313c565b82525050565b6000602082019050613172600083018461314e565b92915050565b6131818161313c565b811461318c57600080fd5b50565b60008135905061319e81613178565b92915050565b600080604083850312156131bb576131ba612f42565b5b60006131c98582860161318f565b92505060206131da858286016130da565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6132218261304d565b810181811067ffffffffffffffff821117156132405761323f6131e9565b5b80604052505050565b6000613253612f38565b905061325f8282613218565b919050565b600067ffffffffffffffff82111561327f5761327e6131e9565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b6132a881613295565b81146132b357600080fd5b50565b6000813590506132c58161329f565b92915050565b60006132de6132d984613264565b613249565b9050808382526020820190506020840283018581111561330157613300613290565b5b835b8181101561332a578061331688826132b6565b845260208401935050602081019050613303565b5050509392505050565b600082601f830112613349576133486131e4565b5b81356133598482602086016132cb565b91505092915050565b6000806040838503121561337957613378612f42565b5b6000613387858286016130da565b925050602083013567ffffffffffffffff8111156133a8576133a7612f47565b5b6133b485828601613334565b9150509250929050565b6000602082840312156133d4576133d3612f42565b5b60006133e28482850161318f565b91505092915050565b6133f4816130b9565b82525050565b600060208201905061340f60008301846133eb565b92915050565b60008060006060848603121561342e5761342d612f42565b5b600061343c8682870161318f565b935050602061344d8682870161318f565b925050604061345e868287016130da565b9150509250925092565b600080fd5b60008083601f840112613483576134826131e4565b5b8235905067ffffffffffffffff8111156134a05761349f613468565b5b6020830191508360018202830111156134bc576134bb613290565b5b9250929050565b600080602083850312156134da576134d9612f42565b5b600083013567ffffffffffffffff8111156134f8576134f7612f47565b5b6135048582860161346d565b92509250509250929050565b60006020828403121561352657613525612f42565b5b6000613534848285016132b6565b91505092915050565b61354681612fd1565b811461355157600080fd5b50565b6000813590506135638161353d565b92915050565b60006020828403121561357f5761357e612f42565b5b600061358d84828501613554565b91505092915050565b600080604083850312156135ad576135ac612f42565b5b60006135bb8582860161318f565b92505060206135cc85828601613554565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156135f6576135f56131e9565b5b6135ff8261304d565b9050602081019050919050565b82818337600083830152505050565b600061362e613629846135db565b613249565b90508281526020810184848401111561364a576136496135d6565b5b61365584828561360c565b509392505050565b600082601f830112613672576136716131e4565b5b813561368284826020860161361b565b91505092915050565b600080600080608085870312156136a5576136a4612f42565b5b60006136b38782880161318f565b94505060206136c48782880161318f565b93505060406136d5878288016130da565b925050606085013567ffffffffffffffff8111156136f6576136f5612f47565b5b6137028782880161365d565b91505092959194509250565b6000806040838503121561372557613724612f42565b5b60006137338582860161318f565b92505060206137448582860161318f565b9150509250929050565b60008060006060848603121561376757613766612f42565b5b6000613775868287016130da565b93505060206137868682870161318f565b9250506040613797868287016130da565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806137e857607f821691505b6020821081036137fb576137fa6137a1565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061383b826130b9565b9150613846836130b9565b9250828202613854816130b9565b9150828204841483151761386b5761386a613801565b5b5092915050565b600061387d826130b9565b9150613888836130b9565b92508282019050808211156138a05761389f613801565b5b92915050565b60008160601b9050919050565b60006138be826138a6565b9050919050565b60006138d0826138b3565b9050919050565b6138e86138e38261313c565b6138c5565b82525050565b60006138fa82846138d7565b60148201915081905092915050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b600061393f600e83613012565b915061394a82613909565b602082019050919050565b6000602082019050818103600083015261396e81613932565b9050919050565b7f574c5f4d41584544000000000000000000000000000000000000000000000000600082015250565b60006139ab600883613012565b91506139b682613975565b602082019050919050565b600060208201905081810360008301526139da8161399e565b9050919050565b600081905092915050565b50565b60006139fc6000836139e1565b9150613a07826139ec565b600082019050919050565b6000613a1d826139ef565b9150819050919050565b7f5769746864726177206661696c65640000000000000000000000000000000000600082015250565b6000613a5d600f83613012565b9150613a6882613a27565b602082019050919050565b60006020820190508181036000830152613a8c81613a50565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613b007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613ac3565b613b0a8683613ac3565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613b47613b42613b3d846130b9565b613b22565b6130b9565b9050919050565b6000819050919050565b613b6183613b2c565b613b75613b6d82613b4e565b848454613ad0565b825550505050565b600090565b613b8a613b7d565b613b95818484613b58565b505050565b5b81811015613bb957613bae600082613b82565b600181019050613b9b565b5050565b601f821115613bfe57613bcf81613a9e565b613bd884613ab3565b81016020851015613be7578190505b613bfb613bf385613ab3565b830182613b9a565b50505b505050565b600082821c905092915050565b6000613c2160001984600802613c03565b1980831691505092915050565b6000613c3a8383613c10565b9150826002028217905092915050565b613c548383613a93565b67ffffffffffffffff811115613c6d57613c6c6131e9565b5b613c7782546137d0565b613c82828285613bbd565b6000601f831160018114613cb15760008415613c9f578287013590505b613ca98582613c2e565b865550613d11565b601f198416613cbf86613a9e565b60005b82811015613ce757848901358255600182019150602085019450602081019050613cc2565b86831015613d045784890135613d00601f891682613c10565b8355505b6001600288020188555050505b50505050505050565b7f4d494e545f4d4158454400000000000000000000000000000000000000000000600082015250565b6000613d50600a83613012565b9150613d5b82613d1a565b602082019050919050565b60006020820190508181036000830152613d7f81613d43565b9050919050565b600081905092915050565b6000613d9c82613007565b613da68185613d86565b9350613db6818560208601613023565b80840191505092915050565b6000613dce8285613d91565b9150613dda8284613d91565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613e42602683613012565b9150613e4d82613de6565b604082019050919050565b60006020820190508181036000830152613e7181613e35565b9050919050565b7f4e6f7420796f7572207061696e74000000000000000000000000000000000000600082015250565b6000613eae600e83613012565b9150613eb982613e78565b602082019050919050565b60006020820190508181036000830152613edd81613ea1565b9050919050565b600081519050919050565b6000613efa82613ee4565b613f0481856139e1565b9350613f14818560208601613023565b80840191505092915050565b6000613f2c8284613eef565b915081905092915050565b7f4572726f722067657474696e6720746f6b656e55524920646174610000000000600082015250565b6000613f6d601b83613012565b9150613f7882613f37565b602082019050919050565b60006020820190508181036000830152613f9c81613f60565b9050919050565b600067ffffffffffffffff821115613fbe57613fbd6131e9565b5b613fc78261304d565b9050602081019050919050565b6000613fe7613fe284613fa3565b613249565b905082815260208101848484011115614003576140026135d6565b5b61400e848285613023565b509392505050565b600082601f83011261402b5761402a6131e4565b5b815161403b848260208601613fd4565b91505092915050565b60006020828403121561405a57614059612f42565b5b600082015167ffffffffffffffff81111561407857614077612f47565b5b61408484828501614016565b91505092915050565b61409682613007565b67ffffffffffffffff8111156140af576140ae6131e9565b5b6140b982546137d0565b6140c4828285613bbd565b600060209050601f8311600181146140f757600084156140e5578287015190505b6140ef8582613c2e565b865550614157565b601f19841661410586613a9e565b60005b8281101561412d57848901518255600182019150602085019450602081019050614108565b8683101561414a5784890151614146601f891682613c10565b8355505b6001600288020188555050505b505050505050565b7f4572726f722067657474696e6720555249206461746100000000000000000000600082015250565b6000614195601683613012565b91506141a08261415f565b602082019050919050565b600060208201905081810360008301526141c481614188565b9050919050565b7f70756e6b20000000000000000000000000000000000000000000000000000000815250565b60006141fc826141cb565b60058201915061420c8284613d91565b915081905092915050565b7f4e6f7420616e204552432d373231206f72204552432d31313535000000000000600082015250565b600061424d601a83613012565b915061425882614217565b602082019050919050565b6000602082019050818103600083015261427c81614240565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006142b9602083613012565b91506142c482614283565b602082019050919050565b600060208201905081810360008301526142e8816142ac565b9050919050565b600082825260208201905092915050565b600061430b82613ee4565b61431581856142ef565b9350614325818560208601613023565b61432e8161304d565b840191505092915050565b600060808201905061434e600083018761314e565b61435b602083018661314e565b61436860408301856133eb565b818103606083015261437a8184614300565b905095945050505050565b60008151905061439481612f78565b92915050565b6000602082840312156143b0576143af612f42565b5b60006143be84828501614385565b91505092915050565b60006143d2826130b9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361440457614403613801565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614449826130b9565b9150614454836130b9565b9250826144645761446361440f565b5b828204905092915050565b600061447a826130b9565b9150614485836130b9565b925082820390508181111561449d5761449c613801565b5b92915050565b60006144ae826130b9565b91506144b9836130b9565b9250826144c9576144c861440f565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b61450c81612f4c565b82525050565b60006020820190506145276000830184614503565b9291505056fea26469706673582212201b14e8f91439910df34ec72c12f69255db06995e08124cbe89d6c471f4ccd99364736f6c63430008110033
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.