ERC-721
NFT
Overview
Max Total Supply
333 SPLOOT
Holders
154
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Sploot
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"; /* $$$$$$\ $$$$$$$\ $$\ $$$$$$\ $$$$$$\ $$$$$$$$\ $$ __$$\ $$ __$$\ $$ | $$ __$$\ $$ __$$\\__$$ __| $$ / \__|$$ | $$ |$$ | $$ / $$ |$$ / $$ | $$ | \$$$$$$\ $$$$$$$ |$$ | $$ | $$ |$$ | $$ | $$ | \____$$\ $$ ____/ $$ | $$ | $$ |$$ | $$ | $$ | $$\ $$ |$$ | $$ | $$ | $$ |$$ | $$ | $$ | \$$$$$$ |$$ | $$$$$$$$\ $$$$$$ | $$$$$$ | $$ | \______/ \__| \________|\______/ \______/ \__| What is worth more, art or life? */ // Contract by @beeble_xyz // Thanks to Dittos and Devotion for the inspiration for some of this contract contract Sploot is ERC721A, Ownable { // Checks if your address has minted mapping(address => bool) public addressHasMinted; // Tracks the splootId to the URI mapping(uint => string) public splootmation; // Contract address -> token id -> bool mapping(address => mapping(uint => bool)) public addressTokensplootted; bytes4 private ERC721InterfaceId = 0x80ac58cd; bytes4 private ERC1155MetadataInterfaceId = 0x0e89341c; uint public price = 0.025 ether; uint public wlprice = 0.02 ether; uint public splootCount; uint public constant MAX_SUPPLY = 333; string public _baseTokenURI; bytes32 private merkleRoot; bool mintEnabled; bool wlmintEnabled; bool splootEnabled; mapping(address => uint256) public wlClaimed; mapping(address => uint256) public mintClaimed; address public withdrawAddress = 0x9482dD08C6324e1AB0E65009A04499005c1530DA; // Errors error AlreadyMinted(); error Alreadysplootted(); error MintClosed(); error MintedOut(); error NoContracts(); error MuseumSecurity(); error WrongPrice(); // Events event Setter(uint indexed splootId, address indexed usingContractNFT, uint indexed tokenId); // Constructor constructor() ERC721A("SPLOOT by De la Dondi", "SPLOOT") { _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 hasTokenBeensplootted(address _contractAddress, uint _tokenId) view public returns (bool){ return addressTokensplootted[_contractAddress][_tokenId]; } // Once someone sploots an NFT, you can't sploot that same NFT again function sploot(uint splootId, address usingContractNFT, uint usingTokenId) external { // Security is everywhere, no splootting...yet. if (splootEnabled == false) revert MuseumSecurity(); // Prevents a token from being re-splootted if (hasTokenBeensplootted(usingContractNFT, usingTokenId)) revert Alreadysplootted(); require(ownerOf(splootId) == msg.sender, "Not your sploot"); // 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)); splootmation[splootId] = uri; addressTokensplootted[usingContractNFT][usingTokenId] = true; unchecked { ++splootCount; } emit Setter(splootId, 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)); splootmation[splootId] = uri; addressTokensplootted[usingContractNFT][usingTokenId] = true; unchecked { ++splootCount; } emit Setter(splootId, usingContractNFT, usingTokenId); // Punks check } else if (usingContractNFT == 0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB) { string memory uri = string.concat('punk ', toString(usingTokenId)); splootmation[splootId] = uri; addressTokensplootted[usingContractNFT][usingTokenId] = true; unchecked { ++splootCount; } emit Setter(splootId, 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 setsplootOpen(bool _val) external onlyOwner { splootEnabled = _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":"Alreadysplootted","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":"splootId","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":"addressTokensplootted","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":"hasTokenBeensplootted","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":[],"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":"setsplootOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"splootId","type":"uint256"},{"internalType":"address","name":"usingContractNFT","type":"address"},{"internalType":"uint256","name":"usingTokenId","type":"uint256"}],"name":"sploot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"splootCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"splootmation","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","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
60806040526380ac58cd60e01b600c60006101000a81548163ffffffff021916908360e01c0217905550630e89341c60e01b600c60046101000a81548163ffffffff021916908360e01c02179055506658d15e17628000600d5566470de4df820000600e55739482dd08c6324e1ab0e65009a04499005c1530da601560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015620000c657600080fd5b506040518060400160405280601581526020017f53504c4f4f54206279204465206c6120446f6e646900000000000000000000008152506040518060400160405280600681526020017f53504c4f4f54000000000000000000000000000000000000000000000000000081525081600290816200014491906200075c565b5080600390816200015691906200075c565b5062000167620001a860201b60201c565b60008190555050506200018f62000183620001ad60201b60201c565b620001b560201b60201c565b620001a23360016200027b60201b60201c565b62000843565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008054905060008203620002bc576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b620002d160008483856200046260201b60201c565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555062000360836200034260008660006200046860201b60201c565b62000353856200049860201b60201c565b17620004a860201b60201c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146200040357808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050620003c6565b50600082036200043f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506200045d6000848385620004d360201b60201c565b505050565b50505050565b60008060e883901c905060e862000487868684620004d960201b60201c565b62ffffff16901b9150509392505050565b60006001821460e11b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60009392505050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200056457607f821691505b6020821081036200057a57620005796200051c565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005e47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620005a5565b620005f08683620005a5565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200063d62000637620006318462000608565b62000612565b62000608565b9050919050565b6000819050919050565b62000659836200061c565b62000671620006688262000644565b848454620005b2565b825550505050565b600090565b6200068862000679565b620006958184846200064e565b505050565b5b81811015620006bd57620006b16000826200067e565b6001810190506200069b565b5050565b601f8211156200070c57620006d68162000580565b620006e18462000595565b81016020851015620006f1578190505b62000709620007008562000595565b8301826200069a565b50505b505050565b600082821c905092915050565b6000620007316000198460080262000711565b1980831691505092915050565b60006200074c83836200071e565b9150826002028217905092915050565b6200076782620004e2565b67ffffffffffffffff811115620007835762000782620004ed565b5b6200078f82546200054b565b6200079c828285620006c1565b600060209050601f831160018114620007d45760008415620007bf578287015190505b620007cb85826200073e565b8655506200083b565b601f198416620007e48662000580565b60005b828110156200080e57848901518255600182019150602085019450602081019050620007e7565b868310156200082e57848901516200082a601f8916826200071e565b8355505b6001600288020188555050505b505050505050565b61456780620008536000396000f3fe60806040526004361061023b5760003560e01c80637cb647591161012e578063b88d4fde116100ab578063dc544ca71161006f578063dc544ca714610843578063e985e9c51461086e578063f2fde38b146108ab578063f8004d31146108d4578063fff093fd146108fd5761023b565b8063b88d4fde1461076b578063c2236c2e14610787578063c87b56dd146107b0578063cee9923c146107ed578063cfc86f7b146108185761023b565b8063a035b1fe116100f2578063a035b1fe14610695578063a0712d68146106c0578063a22cb465146106dc578063a2a3eb4d14610705578063b2a098d91461072e5761023b565b80637cb64759146105c4578063870b9580146105ed5780638da5cb5b1461061657806391b7f5ed1461064157806395d89b411461066a5761023b565b806332cb6b0c116101bc5780635a089b30116101805780635a089b30146104b95780636352211e146104f65780636c4cc97b1461053357806370a0823114610570578063715018a6146105ad5761023b565b806332cb6b0c146103f55780633ccfd60b1461042057806342842e0e1461043757806344ba71af1461045357806355f804b3146104905761023b565b80631237e5e8116102035780631237e5e81461031d5780631581b6001461035a57806318160ddd1461038557806323b872dd146103b05780632d09675a146103cc5761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e55780630a2e370a14610301575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190612fa8565b61093a565b6040516102749190612ff0565b60405180910390f35b34801561028957600080fd5b506102926109cc565b60405161029f919061309b565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca91906130f3565b610a5e565b6040516102dc9190613161565b60405180910390f35b6102ff60048036038101906102fa91906131a8565b610add565b005b61031b60048036038101906103169190613366565b610c21565b005b34801561032957600080fd5b50610344600480360381019061033f91906133c2565b610ecf565b60405161035191906133fe565b60405180910390f35b34801561036657600080fd5b5061036f610ee7565b60405161037c9190613161565b60405180910390f35b34801561039157600080fd5b5061039a610f0d565b6040516103a791906133fe565b60405180910390f35b6103ca60048036038101906103c59190613419565b610f24565b005b3480156103d857600080fd5b506103f360048036038101906103ee9190613498565b611246565b005b34801561040157600080fd5b5061040a61126b565b60405161041791906133fe565b60405180910390f35b34801561042c57600080fd5b50610435611271565b005b610451600480360381019061044c9190613419565b61134a565b005b34801561045f57600080fd5b5061047a600480360381019061047591906130f3565b61136a565b604051610487919061309b565b60405180910390f35b34801561049c57600080fd5b506104b760048036038101906104b29190613520565b61140a565b005b3480156104c557600080fd5b506104e060048036038101906104db91906133c2565b611428565b6040516104ed91906133fe565b60405180910390f35b34801561050257600080fd5b5061051d600480360381019061051891906130f3565b611440565b60405161052a9190613161565b60405180910390f35b34801561053f57600080fd5b5061055a600480360381019061055591906131a8565b611452565b6040516105679190612ff0565b60405180910390f35b34801561057c57600080fd5b50610597600480360381019061059291906133c2565b6114ba565b6040516105a491906133fe565b60405180910390f35b3480156105b957600080fd5b506105c2611572565b005b3480156105d057600080fd5b506105eb60048036038101906105e6919061356d565b611586565b005b3480156105f957600080fd5b50610614600480360381019061060f9190613498565b611598565b005b34801561062257600080fd5b5061062b6115bd565b6040516106389190613161565b60405180910390f35b34801561064d57600080fd5b50610668600480360381019061066391906130f3565b6115e7565b005b34801561067657600080fd5b5061067f6115f9565b60405161068c919061309b565b60405180910390f35b3480156106a157600080fd5b506106aa61168b565b6040516106b791906133fe565b60405180910390f35b6106da60048036038101906106d591906130f3565b611691565b005b3480156106e857600080fd5b5061070360048036038101906106fe919061359a565b6118bf565b005b34801561071157600080fd5b5061072c600480360381019061072791906131a8565b6119ca565b005b34801561073a57600080fd5b50610755600480360381019061075091906133c2565b611a2e565b6040516107629190612ff0565b60405180910390f35b6107856004803603810190610780919061368f565b611a4e565b005b34801561079357600080fd5b506107ae60048036038101906107a99190613712565b611ac1565b005b3480156107bc57600080fd5b506107d760048036038101906107d291906130f3565b612211565b6040516107e4919061309b565b60405180910390f35b3480156107f957600080fd5b506108026122af565b60405161080f91906133fe565b60405180910390f35b34801561082457600080fd5b5061082d6122b5565b60405161083a919061309b565b60405180910390f35b34801561084f57600080fd5b50610858612343565b60405161086591906133fe565b60405180910390f35b34801561087a57600080fd5b5061089560048036038101906108909190613765565b612349565b6040516108a29190612ff0565b60405180910390f35b3480156108b757600080fd5b506108d260048036038101906108cd91906133c2565b6123dd565b005b3480156108e057600080fd5b506108fb60048036038101906108f69190613498565b612460565b005b34801561090957600080fd5b50610924600480360381019061091f91906131a8565b612485565b6040516109319190612ff0565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109c55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546109db906137d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a07906137d4565b8015610a545780601f10610a2957610100808354040283529160200191610a54565b820191906000526020600020905b815481529060010190602001808311610a3757829003601f168201915b5050505050905090565b6000610a69826124b4565b610a9f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae882611440565b90508073ffffffffffffffffffffffffffffffffffffffff16610b09612513565b73ffffffffffffffffffffffffffffffffffffffff1614610b6c57610b3581610b30612513565b612349565b610b6b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c86576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60001515601260019054906101000a900460ff16151503610cd3576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600e54610ce19190613834565b3414610d19576040517ff7760f2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61014d82610d25610f0d565b610d2f9190613876565b1115610d67576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d7161251b565b604051602001610d8191906138f2565b604051602081830303815290604052805190602001209050610da68260115483612523565b610de5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddc90613959565b60405180910390fd5b600283601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e329190613876565b1115610e73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6a906139c5565b60405180910390fd5b82601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550610eca338461253a565b505050565b60146020528060005260406000206000915090505481565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610f176126f5565b6001546000540303905090565b6000610f2f826126fa565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f96576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610fa2846127c6565b91509150610fb88187610fb3612513565b6127ed565b61100457610fcd86610fc8612513565b612349565b611003576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361106a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110778686866001612831565b801561108257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111508561112c888887612837565b7c02000000000000000000000000000000000000000000000000000000001761285f565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036111d657600060018501905060006004600083815260200190815260200160002054036111d45760005481146111d3578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461123e868686600161288a565b505050505050565b61124e612890565b80601260026101000a81548160ff02191690831515021790555050565b61014d81565b611279612890565b6000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516112c190613a16565b60006040518083038185875af1925050503d80600081146112fe576040519150601f19603f3d011682016040523d82523d6000602084013e611303565b606091505b5050905080611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e90613a77565b60405180910390fd5b50565b61136583838360405180602001604052806000815250611a4e565b505050565b600a6020528060005260406000206000915090508054611389906137d4565b80601f01602080910402602001604051908101604052809291908181526020018280546113b5906137d4565b80156114025780601f106113d757610100808354040283529160200191611402565b820191906000526020600020905b8154815290600101906020018083116113e557829003601f168201915b505050505081565b611412612890565b818160109182611423929190613c4e565b505050565b60136020528060005260406000206000915090505481565b600061144b826126fa565b9050919050565b6000600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009054906101000a900460ff16905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611521576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61157a612890565b611584600061290e565b565b61158e612890565b8060118190555050565b6115a0612890565b80601260016101000a81548160ff02191690831515021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6115ef612890565b80600d8190555050565b606060038054611608906137d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611634906137d4565b80156116815780601f1061165657610100808354040283529160200191611681565b820191906000526020600020905b81548152906001019060200180831161166457829003601f168201915b5050505050905090565b600d5481565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116f6576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60001515601260009054906101000a900460ff16151503611743576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61014d8161174f610f0d565b6117599190613876565b1115611791576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d5461179f9190613834565b34146117d7576040517ff7760f2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600281601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546118249190613876565b1115611865576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185c90613d6a565b60405180910390fd5b80601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506118bc338261253a565b50565b80600760006118cc612513565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611979612513565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119be9190612ff0565b60405180910390a35050565b6119d2612890565b61014d816119de610f0d565b6119e89190613876565b1115611a20576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a2a828261253a565b5050565b60096020528060005260406000206000915054906101000a900460ff1681565b611a59848484610f24565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611abb57611a84848484846129d4565b611aba576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60001515601260029054906101000a900460ff16151503611b0e576040517fabd4d92500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b188282611452565b15611b4f576040517fb945df3900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16611b6f84611440565b73ffffffffffffffffffffffffffffffffffffffff1614611bc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbc90613dd6565b60405180910390fd5b611bde82600c60009054906101000a900460e01b612b24565b15611e1e576000808373ffffffffffffffffffffffffffffffffffffffff1683604051602401611c0e91906133fe565b6040516020818303038152906040527fc87b56dd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611c989190613e32565b6000604051808303816000865af19150503d8060008114611cd5576040519150601f19603f3d011682016040523d82523d6000602084013e611cda565b606091505b509150915081611d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1690613e95565b60405180910390fd5b600081806020019051810190611d359190613f56565b905080600a60008881526020019081526020016000209081611d579190613f9f565b506001600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550838573ffffffffffffffffffffffffffffffffffffffff16877f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a450505061220c565b611e3782600c60049054906101000a900460e01b612b24565b15612077576000808373ffffffffffffffffffffffffffffffffffffffff1683604051602401611e6791906133fe565b6040516020818303038152906040527f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611ef19190613e32565b6000604051808303816000865af19150503d8060008114611f2e576040519150601f19603f3d011682016040523d82523d6000602084013e611f33565b606091505b509150915081611f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6f906140bd565b60405180910390fd5b600081806020019051810190611f8e9190613f56565b905080600a60008881526020019081526020016000209081611fb09190613f9f565b506001600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550838573ffffffffffffffffffffffffffffffffffffffff16877f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a450505061220b565b73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036121cf5760006120c982612b49565b6040516020016120d9919061413f565b604051602081830303815290604052905080600a6000868152602001908152602001600020908161210a9190613f9f565b506001600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550818373ffffffffffffffffffffffffffffffffffffffff16857f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a45061220a565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612201906141b1565b60405180910390fd5b5b5b505050565b606061221c826124b4565b612252576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061225c612ca9565b9050600081510361227c57604051806020016040528060008152506122a7565b8061228684612d3b565b6040516020016122979291906141d1565b6040516020818303038152906040525b915050919050565b600f5481565b601080546122c2906137d4565b80601f01602080910402602001604051908101604052809291908181526020018280546122ee906137d4565b801561233b5780601f106123105761010080835404028352916020019161233b565b820191906000526020600020905b81548152906001019060200180831161231e57829003601f168201915b505050505081565b600e5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6123e5612890565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244b90614267565b60405180910390fd5b61245d8161290e565b50565b612468612890565b80601260006101000a81548160ff02191690831515021790555050565b600b6020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6000816124bf6126f5565b111580156124ce575060005482105b801561250c575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600033905090565b6000826125308584612d8b565b1490509392505050565b6000805490506000820361257a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125876000848385612831565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506125fe836125ef6000866000612837565b6125f885612e00565b1761285f565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461269f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612664565b50600082036126da576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506126f0600084838561288a565b505050565b600090565b600080829050806127096126f5565b1161278f5760005481101561278e5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361278c575b60008103612782576004600083600190039350838152602001908152602001600020549050612758565b80925050506127c1565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861284e868684612e10565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61289861251b565b73ffffffffffffffffffffffffffffffffffffffff166128b66115bd565b73ffffffffffffffffffffffffffffffffffffffff161461290c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612903906142d3565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026129fa612513565b8786866040518563ffffffff1660e01b8152600401612a1c949392919061433d565b6020604051808303816000875af1925050508015612a5857506040513d601f19601f82011682018060405250810190612a55919061439e565b60015b612ad1573d8060008114612a88576040519150601f19603f3d011682016040523d82523d6000602084013e612a8d565b606091505b506000815103612ac9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000612b2f83612e19565b8015612b415750612b408383612e66565b5b905092915050565b606060008203612b90576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ca4565b600082905060005b60008214612bc2578080612bab906143cb565b915050600a82612bbb9190614442565b9150612b98565b60008167ffffffffffffffff811115612bde57612bdd6131ed565b5b6040519080825280601f01601f191660200182016040528015612c105781602001600182028036833780820191505090505b5090505b60008514612c9d57600182612c299190614473565b9150600a85612c3891906144a7565b6030612c449190613876565b60f81b818381518110612c5a57612c596144d8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612c969190614442565b9450612c14565b8093505050505b919050565b606060108054612cb8906137d4565b80601f0160208091040260200160405190810160405280929190818152602001828054612ce4906137d4565b8015612d315780601f10612d0657610100808354040283529160200191612d31565b820191906000526020600020905b815481529060010190602001808311612d1457829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612d7657600184039350600a81066030018453600a8104905080612d54575b50828103602084039350808452505050919050565b60008082905060005b8451811015612df5576000858281518110612db257612db16144d8565b5b60200260200101519050808311612dd457612dcd8382612f25565b9250612de1565b612dde8184612f25565b92505b508080612ded906143cb565b915050612d94565b508091505092915050565b60006001821460e11b9050919050565b60009392505050565b6000612e45827f01ffc9a700000000000000000000000000000000000000000000000000000000612e66565b8015612e5f5750612e5d8263ffffffff60e01b612e66565b155b9050919050565b6000806301ffc9a760e01b83604051602401612e829190614516565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000806000602060008551602087018a617530fa92503d91506000519050828015612f0d575060208210155b8015612f195750600081115b94505050505092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f8581612f50565b8114612f9057600080fd5b50565b600081359050612fa281612f7c565b92915050565b600060208284031215612fbe57612fbd612f46565b5b6000612fcc84828501612f93565b91505092915050565b60008115159050919050565b612fea81612fd5565b82525050565b60006020820190506130056000830184612fe1565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561304557808201518184015260208101905061302a565b60008484015250505050565b6000601f19601f8301169050919050565b600061306d8261300b565b6130778185613016565b9350613087818560208601613027565b61309081613051565b840191505092915050565b600060208201905081810360008301526130b58184613062565b905092915050565b6000819050919050565b6130d0816130bd565b81146130db57600080fd5b50565b6000813590506130ed816130c7565b92915050565b60006020828403121561310957613108612f46565b5b6000613117848285016130de565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061314b82613120565b9050919050565b61315b81613140565b82525050565b60006020820190506131766000830184613152565b92915050565b61318581613140565b811461319057600080fd5b50565b6000813590506131a28161317c565b92915050565b600080604083850312156131bf576131be612f46565b5b60006131cd85828601613193565b92505060206131de858286016130de565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61322582613051565b810181811067ffffffffffffffff82111715613244576132436131ed565b5b80604052505050565b6000613257612f3c565b9050613263828261321c565b919050565b600067ffffffffffffffff821115613283576132826131ed565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b6132ac81613299565b81146132b757600080fd5b50565b6000813590506132c9816132a3565b92915050565b60006132e26132dd84613268565b61324d565b9050808382526020820190506020840283018581111561330557613304613294565b5b835b8181101561332e578061331a88826132ba565b845260208401935050602081019050613307565b5050509392505050565b600082601f83011261334d5761334c6131e8565b5b813561335d8482602086016132cf565b91505092915050565b6000806040838503121561337d5761337c612f46565b5b600061338b858286016130de565b925050602083013567ffffffffffffffff8111156133ac576133ab612f4b565b5b6133b885828601613338565b9150509250929050565b6000602082840312156133d8576133d7612f46565b5b60006133e684828501613193565b91505092915050565b6133f8816130bd565b82525050565b600060208201905061341360008301846133ef565b92915050565b60008060006060848603121561343257613431612f46565b5b600061344086828701613193565b935050602061345186828701613193565b9250506040613462868287016130de565b9150509250925092565b61347581612fd5565b811461348057600080fd5b50565b6000813590506134928161346c565b92915050565b6000602082840312156134ae576134ad612f46565b5b60006134bc84828501613483565b91505092915050565b600080fd5b60008083601f8401126134e0576134df6131e8565b5b8235905067ffffffffffffffff8111156134fd576134fc6134c5565b5b60208301915083600182028301111561351957613518613294565b5b9250929050565b6000806020838503121561353757613536612f46565b5b600083013567ffffffffffffffff81111561355557613554612f4b565b5b613561858286016134ca565b92509250509250929050565b60006020828403121561358357613582612f46565b5b6000613591848285016132ba565b91505092915050565b600080604083850312156135b1576135b0612f46565b5b60006135bf85828601613193565b92505060206135d085828601613483565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156135fa576135f96131ed565b5b61360382613051565b9050602081019050919050565b82818337600083830152505050565b600061363261362d846135df565b61324d565b90508281526020810184848401111561364e5761364d6135da565b5b613659848285613610565b509392505050565b600082601f830112613676576136756131e8565b5b813561368684826020860161361f565b91505092915050565b600080600080608085870312156136a9576136a8612f46565b5b60006136b787828801613193565b94505060206136c887828801613193565b93505060406136d9878288016130de565b925050606085013567ffffffffffffffff8111156136fa576136f9612f4b565b5b61370687828801613661565b91505092959194509250565b60008060006060848603121561372b5761372a612f46565b5b6000613739868287016130de565b935050602061374a86828701613193565b925050604061375b868287016130de565b9150509250925092565b6000806040838503121561377c5761377b612f46565b5b600061378a85828601613193565b925050602061379b85828601613193565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806137ec57607f821691505b6020821081036137ff576137fe6137a5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061383f826130bd565b915061384a836130bd565b9250828202613858816130bd565b9150828204841483151761386f5761386e613805565b5b5092915050565b6000613881826130bd565b915061388c836130bd565b92508282019050808211156138a4576138a3613805565b5b92915050565b60008160601b9050919050565b60006138c2826138aa565b9050919050565b60006138d4826138b7565b9050919050565b6138ec6138e782613140565b6138c9565b82525050565b60006138fe82846138db565b60148201915081905092915050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b6000613943600e83613016565b915061394e8261390d565b602082019050919050565b6000602082019050818103600083015261397281613936565b9050919050565b7f574c5f4d41584544000000000000000000000000000000000000000000000000600082015250565b60006139af600883613016565b91506139ba82613979565b602082019050919050565b600060208201905081810360008301526139de816139a2565b9050919050565b600081905092915050565b50565b6000613a006000836139e5565b9150613a0b826139f0565b600082019050919050565b6000613a21826139f3565b9150819050919050565b7f5769746864726177206661696c65640000000000000000000000000000000000600082015250565b6000613a61600f83613016565b9150613a6c82613a2b565b602082019050919050565b60006020820190508181036000830152613a9081613a54565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613b047fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613ac7565b613b0e8683613ac7565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613b4b613b46613b41846130bd565b613b26565b6130bd565b9050919050565b6000819050919050565b613b6583613b30565b613b79613b7182613b52565b848454613ad4565b825550505050565b600090565b613b8e613b81565b613b99818484613b5c565b505050565b5b81811015613bbd57613bb2600082613b86565b600181019050613b9f565b5050565b601f821115613c0257613bd381613aa2565b613bdc84613ab7565b81016020851015613beb578190505b613bff613bf785613ab7565b830182613b9e565b50505b505050565b600082821c905092915050565b6000613c2560001984600802613c07565b1980831691505092915050565b6000613c3e8383613c14565b9150826002028217905092915050565b613c588383613a97565b67ffffffffffffffff811115613c7157613c706131ed565b5b613c7b82546137d4565b613c86828285613bc1565b6000601f831160018114613cb55760008415613ca3578287013590505b613cad8582613c32565b865550613d15565b601f198416613cc386613aa2565b60005b82811015613ceb57848901358255600182019150602085019450602081019050613cc6565b86831015613d085784890135613d04601f891682613c14565b8355505b6001600288020188555050505b50505050505050565b7f4d494e545f4d4158454400000000000000000000000000000000000000000000600082015250565b6000613d54600a83613016565b9150613d5f82613d1e565b602082019050919050565b60006020820190508181036000830152613d8381613d47565b9050919050565b7f4e6f7420796f75722073706c6f6f740000000000000000000000000000000000600082015250565b6000613dc0600f83613016565b9150613dcb82613d8a565b602082019050919050565b60006020820190508181036000830152613def81613db3565b9050919050565b600081519050919050565b6000613e0c82613df6565b613e1681856139e5565b9350613e26818560208601613027565b80840191505092915050565b6000613e3e8284613e01565b915081905092915050565b7f4572726f722067657474696e6720746f6b656e55524920646174610000000000600082015250565b6000613e7f601b83613016565b9150613e8a82613e49565b602082019050919050565b60006020820190508181036000830152613eae81613e72565b9050919050565b600067ffffffffffffffff821115613ed057613ecf6131ed565b5b613ed982613051565b9050602081019050919050565b6000613ef9613ef484613eb5565b61324d565b905082815260208101848484011115613f1557613f146135da565b5b613f20848285613027565b509392505050565b600082601f830112613f3d57613f3c6131e8565b5b8151613f4d848260208601613ee6565b91505092915050565b600060208284031215613f6c57613f6b612f46565b5b600082015167ffffffffffffffff811115613f8a57613f89612f4b565b5b613f9684828501613f28565b91505092915050565b613fa88261300b565b67ffffffffffffffff811115613fc157613fc06131ed565b5b613fcb82546137d4565b613fd6828285613bc1565b600060209050601f8311600181146140095760008415613ff7578287015190505b6140018582613c32565b865550614069565b601f19841661401786613aa2565b60005b8281101561403f5784890151825560018201915060208501945060208101905061401a565b8683101561405c5784890151614058601f891682613c14565b8355505b6001600288020188555050505b505050505050565b7f4572726f722067657474696e6720555249206461746100000000000000000000600082015250565b60006140a7601683613016565b91506140b282614071565b602082019050919050565b600060208201905081810360008301526140d68161409a565b9050919050565b7f70756e6b20000000000000000000000000000000000000000000000000000000815250565b600081905092915050565b60006141198261300b565b6141238185614103565b9350614133818560208601613027565b80840191505092915050565b600061414a826140dd565b60058201915061415a828461410e565b915081905092915050565b7f4e6f7420616e204552432d373231206f72204552432d31313535000000000000600082015250565b600061419b601a83613016565b91506141a682614165565b602082019050919050565b600060208201905081810360008301526141ca8161418e565b9050919050565b60006141dd828561410e565b91506141e9828461410e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614251602683613016565b915061425c826141f5565b604082019050919050565b6000602082019050818103600083015261428081614244565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006142bd602083613016565b91506142c882614287565b602082019050919050565b600060208201905081810360008301526142ec816142b0565b9050919050565b600082825260208201905092915050565b600061430f82613df6565b61431981856142f3565b9350614329818560208601613027565b61433281613051565b840191505092915050565b60006080820190506143526000830187613152565b61435f6020830186613152565b61436c60408301856133ef565b818103606083015261437e8184614304565b905095945050505050565b60008151905061439881612f7c565b92915050565b6000602082840312156143b4576143b3612f46565b5b60006143c284828501614389565b91505092915050565b60006143d6826130bd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361440857614407613805565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061444d826130bd565b9150614458836130bd565b92508261446857614467614413565b5b828204905092915050565b600061447e826130bd565b9150614489836130bd565b92508282039050818111156144a1576144a0613805565b5b92915050565b60006144b2826130bd565b91506144bd836130bd565b9250826144cd576144cc614413565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b61451081612f50565b82525050565b600060208201905061452b6000830184614507565b9291505056fea2646970667358221220225c570d3004aa00c87779b2b29f960dc3087d48eeb1ac94428804f9db39f60564736f6c63430008110033
Deployed Bytecode
0x60806040526004361061023b5760003560e01c80637cb647591161012e578063b88d4fde116100ab578063dc544ca71161006f578063dc544ca714610843578063e985e9c51461086e578063f2fde38b146108ab578063f8004d31146108d4578063fff093fd146108fd5761023b565b8063b88d4fde1461076b578063c2236c2e14610787578063c87b56dd146107b0578063cee9923c146107ed578063cfc86f7b146108185761023b565b8063a035b1fe116100f2578063a035b1fe14610695578063a0712d68146106c0578063a22cb465146106dc578063a2a3eb4d14610705578063b2a098d91461072e5761023b565b80637cb64759146105c4578063870b9580146105ed5780638da5cb5b1461061657806391b7f5ed1461064157806395d89b411461066a5761023b565b806332cb6b0c116101bc5780635a089b30116101805780635a089b30146104b95780636352211e146104f65780636c4cc97b1461053357806370a0823114610570578063715018a6146105ad5761023b565b806332cb6b0c146103f55780633ccfd60b1461042057806342842e0e1461043757806344ba71af1461045357806355f804b3146104905761023b565b80631237e5e8116102035780631237e5e81461031d5780631581b6001461035a57806318160ddd1461038557806323b872dd146103b05780632d09675a146103cc5761023b565b806301ffc9a71461024057806306fdde031461027d578063081812fc146102a8578063095ea7b3146102e55780630a2e370a14610301575b600080fd5b34801561024c57600080fd5b5061026760048036038101906102629190612fa8565b61093a565b6040516102749190612ff0565b60405180910390f35b34801561028957600080fd5b506102926109cc565b60405161029f919061309b565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca91906130f3565b610a5e565b6040516102dc9190613161565b60405180910390f35b6102ff60048036038101906102fa91906131a8565b610add565b005b61031b60048036038101906103169190613366565b610c21565b005b34801561032957600080fd5b50610344600480360381019061033f91906133c2565b610ecf565b60405161035191906133fe565b60405180910390f35b34801561036657600080fd5b5061036f610ee7565b60405161037c9190613161565b60405180910390f35b34801561039157600080fd5b5061039a610f0d565b6040516103a791906133fe565b60405180910390f35b6103ca60048036038101906103c59190613419565b610f24565b005b3480156103d857600080fd5b506103f360048036038101906103ee9190613498565b611246565b005b34801561040157600080fd5b5061040a61126b565b60405161041791906133fe565b60405180910390f35b34801561042c57600080fd5b50610435611271565b005b610451600480360381019061044c9190613419565b61134a565b005b34801561045f57600080fd5b5061047a600480360381019061047591906130f3565b61136a565b604051610487919061309b565b60405180910390f35b34801561049c57600080fd5b506104b760048036038101906104b29190613520565b61140a565b005b3480156104c557600080fd5b506104e060048036038101906104db91906133c2565b611428565b6040516104ed91906133fe565b60405180910390f35b34801561050257600080fd5b5061051d600480360381019061051891906130f3565b611440565b60405161052a9190613161565b60405180910390f35b34801561053f57600080fd5b5061055a600480360381019061055591906131a8565b611452565b6040516105679190612ff0565b60405180910390f35b34801561057c57600080fd5b50610597600480360381019061059291906133c2565b6114ba565b6040516105a491906133fe565b60405180910390f35b3480156105b957600080fd5b506105c2611572565b005b3480156105d057600080fd5b506105eb60048036038101906105e6919061356d565b611586565b005b3480156105f957600080fd5b50610614600480360381019061060f9190613498565b611598565b005b34801561062257600080fd5b5061062b6115bd565b6040516106389190613161565b60405180910390f35b34801561064d57600080fd5b50610668600480360381019061066391906130f3565b6115e7565b005b34801561067657600080fd5b5061067f6115f9565b60405161068c919061309b565b60405180910390f35b3480156106a157600080fd5b506106aa61168b565b6040516106b791906133fe565b60405180910390f35b6106da60048036038101906106d591906130f3565b611691565b005b3480156106e857600080fd5b5061070360048036038101906106fe919061359a565b6118bf565b005b34801561071157600080fd5b5061072c600480360381019061072791906131a8565b6119ca565b005b34801561073a57600080fd5b50610755600480360381019061075091906133c2565b611a2e565b6040516107629190612ff0565b60405180910390f35b6107856004803603810190610780919061368f565b611a4e565b005b34801561079357600080fd5b506107ae60048036038101906107a99190613712565b611ac1565b005b3480156107bc57600080fd5b506107d760048036038101906107d291906130f3565b612211565b6040516107e4919061309b565b60405180910390f35b3480156107f957600080fd5b506108026122af565b60405161080f91906133fe565b60405180910390f35b34801561082457600080fd5b5061082d6122b5565b60405161083a919061309b565b60405180910390f35b34801561084f57600080fd5b50610858612343565b60405161086591906133fe565b60405180910390f35b34801561087a57600080fd5b5061089560048036038101906108909190613765565b612349565b6040516108a29190612ff0565b60405180910390f35b3480156108b757600080fd5b506108d260048036038101906108cd91906133c2565b6123dd565b005b3480156108e057600080fd5b506108fb60048036038101906108f69190613498565b612460565b005b34801561090957600080fd5b50610924600480360381019061091f91906131a8565b612485565b6040516109319190612ff0565b60405180910390f35b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061099557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109c55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546109db906137d4565b80601f0160208091040260200160405190810160405280929190818152602001828054610a07906137d4565b8015610a545780601f10610a2957610100808354040283529160200191610a54565b820191906000526020600020905b815481529060010190602001808311610a3757829003601f168201915b5050505050905090565b6000610a69826124b4565b610a9f576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ae882611440565b90508073ffffffffffffffffffffffffffffffffffffffff16610b09612513565b73ffffffffffffffffffffffffffffffffffffffff1614610b6c57610b3581610b30612513565b612349565b610b6b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c86576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60001515601260019054906101000a900460ff16151503610cd3576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600e54610ce19190613834565b3414610d19576040517ff7760f2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61014d82610d25610f0d565b610d2f9190613876565b1115610d67576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d7161251b565b604051602001610d8191906138f2565b604051602081830303815290604052805190602001209050610da68260115483612523565b610de5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ddc90613959565b60405180910390fd5b600283601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e329190613876565b1115610e73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6a906139c5565b60405180910390fd5b82601360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550610eca338461253a565b505050565b60146020528060005260406000206000915090505481565b601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610f176126f5565b6001546000540303905090565b6000610f2f826126fa565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610f96576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610fa2846127c6565b91509150610fb88187610fb3612513565b6127ed565b61100457610fcd86610fc8612513565b612349565b611003576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361106a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110778686866001612831565b801561108257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506111508561112c888887612837565b7c02000000000000000000000000000000000000000000000000000000001761285f565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036111d657600060018501905060006004600083815260200190815260200160002054036111d45760005481146111d3578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461123e868686600161288a565b505050505050565b61124e612890565b80601260026101000a81548160ff02191690831515021790555050565b61014d81565b611279612890565b6000601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16476040516112c190613a16565b60006040518083038185875af1925050503d80600081146112fe576040519150601f19603f3d011682016040523d82523d6000602084013e611303565b606091505b5050905080611347576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133e90613a77565b60405180910390fd5b50565b61136583838360405180602001604052806000815250611a4e565b505050565b600a6020528060005260406000206000915090508054611389906137d4565b80601f01602080910402602001604051908101604052809291908181526020018280546113b5906137d4565b80156114025780601f106113d757610100808354040283529160200191611402565b820191906000526020600020905b8154815290600101906020018083116113e557829003601f168201915b505050505081565b611412612890565b818160109182611423929190613c4e565b505050565b60136020528060005260406000206000915090505481565b600061144b826126fa565b9050919050565b6000600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002060009054906101000a900460ff16905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611521576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61157a612890565b611584600061290e565b565b61158e612890565b8060118190555050565b6115a0612890565b80601260016101000a81548160ff02191690831515021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6115ef612890565b80600d8190555050565b606060038054611608906137d4565b80601f0160208091040260200160405190810160405280929190818152602001828054611634906137d4565b80156116815780601f1061165657610100808354040283529160200191611681565b820191906000526020600020905b81548152906001019060200180831161166457829003601f168201915b5050505050905090565b600d5481565b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116f6576040517f875fdad700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60001515601260009054906101000a900460ff16151503611743576040517f589ed34b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61014d8161174f610f0d565b6117599190613876565b1115611791576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600d5461179f9190613834565b34146117d7576040517ff7760f2500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600281601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546118249190613876565b1115611865576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185c90613d6a565b60405180910390fd5b80601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506118bc338261253a565b50565b80600760006118cc612513565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611979612513565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119be9190612ff0565b60405180910390a35050565b6119d2612890565b61014d816119de610f0d565b6119e89190613876565b1115611a20576040517f846fb9e200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a2a828261253a565b5050565b60096020528060005260406000206000915054906101000a900460ff1681565b611a59848484610f24565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611abb57611a84848484846129d4565b611aba576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b60001515601260029054906101000a900460ff16151503611b0e576040517fabd4d92500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611b188282611452565b15611b4f576040517fb945df3900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff16611b6f84611440565b73ffffffffffffffffffffffffffffffffffffffff1614611bc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bbc90613dd6565b60405180910390fd5b611bde82600c60009054906101000a900460e01b612b24565b15611e1e576000808373ffffffffffffffffffffffffffffffffffffffff1683604051602401611c0e91906133fe565b6040516020818303038152906040527fc87b56dd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611c989190613e32565b6000604051808303816000865af19150503d8060008114611cd5576040519150601f19603f3d011682016040523d82523d6000602084013e611cda565b606091505b509150915081611d1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d1690613e95565b60405180910390fd5b600081806020019051810190611d359190613f56565b905080600a60008881526020019081526020016000209081611d579190613f9f565b506001600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550838573ffffffffffffffffffffffffffffffffffffffff16877f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a450505061220c565b611e3782600c60049054906101000a900460e01b612b24565b15612077576000808373ffffffffffffffffffffffffffffffffffffffff1683604051602401611e6791906133fe565b6040516020818303038152906040527f0e89341c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051611ef19190613e32565b6000604051808303816000865af19150503d8060008114611f2e576040519150601f19603f3d011682016040523d82523d6000602084013e611f33565b606091505b509150915081611f78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6f906140bd565b60405180910390fd5b600081806020019051810190611f8e9190613f56565b905080600a60008881526020019081526020016000209081611fb09190613f9f565b506001600b60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600086815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550838573ffffffffffffffffffffffffffffffffffffffff16877f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a450505061220b565b73b47e3cd837ddf8e4c57f05d70ab865de6e193bbb73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036121cf5760006120c982612b49565b6040516020016120d9919061413f565b604051602081830303815290604052905080600a6000868152602001908152602001600020908161210a9190613f9f565b506001600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002060006101000a81548160ff021916908315150217905550600f6000815460010191905081905550818373ffffffffffffffffffffffffffffffffffffffff16857f02afdd11de29f5914b1f41f930d8ab2e444671f00e14a09ae0e0ff6b506bdc6460405160405180910390a45061220a565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612201906141b1565b60405180910390fd5b5b5b505050565b606061221c826124b4565b612252576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061225c612ca9565b9050600081510361227c57604051806020016040528060008152506122a7565b8061228684612d3b565b6040516020016122979291906141d1565b6040516020818303038152906040525b915050919050565b600f5481565b601080546122c2906137d4565b80601f01602080910402602001604051908101604052809291908181526020018280546122ee906137d4565b801561233b5780601f106123105761010080835404028352916020019161233b565b820191906000526020600020905b81548152906001019060200180831161231e57829003601f168201915b505050505081565b600e5481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6123e5612890565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161244b90614267565b60405180910390fd5b61245d8161290e565b50565b612468612890565b80601260006101000a81548160ff02191690831515021790555050565b600b6020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6000816124bf6126f5565b111580156124ce575060005482105b801561250c575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600033905090565b6000826125308584612d8b565b1490509392505050565b6000805490506000820361257a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125876000848385612831565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506125fe836125ef6000866000612837565b6125f885612e00565b1761285f565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461269f57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612664565b50600082036126da576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506126f0600084838561288a565b505050565b600090565b600080829050806127096126f5565b1161278f5760005481101561278e5760006004600083815260200190815260200160002054905060007c010000000000000000000000000000000000000000000000000000000082160361278c575b60008103612782576004600083600190039350838152602001908152602001600020549050612758565b80925050506127c1565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e861284e868684612e10565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b61289861251b565b73ffffffffffffffffffffffffffffffffffffffff166128b66115bd565b73ffffffffffffffffffffffffffffffffffffffff161461290c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612903906142d3565b60405180910390fd5b565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026129fa612513565b8786866040518563ffffffff1660e01b8152600401612a1c949392919061433d565b6020604051808303816000875af1925050508015612a5857506040513d601f19601f82011682018060405250810190612a55919061439e565b60015b612ad1573d8060008114612a88576040519150601f19603f3d011682016040523d82523d6000602084013e612a8d565b606091505b506000815103612ac9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6000612b2f83612e19565b8015612b415750612b408383612e66565b5b905092915050565b606060008203612b90576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ca4565b600082905060005b60008214612bc2578080612bab906143cb565b915050600a82612bbb9190614442565b9150612b98565b60008167ffffffffffffffff811115612bde57612bdd6131ed565b5b6040519080825280601f01601f191660200182016040528015612c105781602001600182028036833780820191505090505b5090505b60008514612c9d57600182612c299190614473565b9150600a85612c3891906144a7565b6030612c449190613876565b60f81b818381518110612c5a57612c596144d8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612c969190614442565b9450612c14565b8093505050505b919050565b606060108054612cb8906137d4565b80601f0160208091040260200160405190810160405280929190818152602001828054612ce4906137d4565b8015612d315780601f10612d0657610100808354040283529160200191612d31565b820191906000526020600020905b815481529060010190602001808311612d1457829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b600115612d7657600184039350600a81066030018453600a8104905080612d54575b50828103602084039350808452505050919050565b60008082905060005b8451811015612df5576000858281518110612db257612db16144d8565b5b60200260200101519050808311612dd457612dcd8382612f25565b9250612de1565b612dde8184612f25565b92505b508080612ded906143cb565b915050612d94565b508091505092915050565b60006001821460e11b9050919050565b60009392505050565b6000612e45827f01ffc9a700000000000000000000000000000000000000000000000000000000612e66565b8015612e5f5750612e5d8263ffffffff60e01b612e66565b155b9050919050565b6000806301ffc9a760e01b83604051602401612e829190614516565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000806000602060008551602087018a617530fa92503d91506000519050828015612f0d575060208210155b8015612f195750600081115b94505050505092915050565b600082600052816020526040600020905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612f8581612f50565b8114612f9057600080fd5b50565b600081359050612fa281612f7c565b92915050565b600060208284031215612fbe57612fbd612f46565b5b6000612fcc84828501612f93565b91505092915050565b60008115159050919050565b612fea81612fd5565b82525050565b60006020820190506130056000830184612fe1565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561304557808201518184015260208101905061302a565b60008484015250505050565b6000601f19601f8301169050919050565b600061306d8261300b565b6130778185613016565b9350613087818560208601613027565b61309081613051565b840191505092915050565b600060208201905081810360008301526130b58184613062565b905092915050565b6000819050919050565b6130d0816130bd565b81146130db57600080fd5b50565b6000813590506130ed816130c7565b92915050565b60006020828403121561310957613108612f46565b5b6000613117848285016130de565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061314b82613120565b9050919050565b61315b81613140565b82525050565b60006020820190506131766000830184613152565b92915050565b61318581613140565b811461319057600080fd5b50565b6000813590506131a28161317c565b92915050565b600080604083850312156131bf576131be612f46565b5b60006131cd85828601613193565b92505060206131de858286016130de565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61322582613051565b810181811067ffffffffffffffff82111715613244576132436131ed565b5b80604052505050565b6000613257612f3c565b9050613263828261321c565b919050565b600067ffffffffffffffff821115613283576132826131ed565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b6132ac81613299565b81146132b757600080fd5b50565b6000813590506132c9816132a3565b92915050565b60006132e26132dd84613268565b61324d565b9050808382526020820190506020840283018581111561330557613304613294565b5b835b8181101561332e578061331a88826132ba565b845260208401935050602081019050613307565b5050509392505050565b600082601f83011261334d5761334c6131e8565b5b813561335d8482602086016132cf565b91505092915050565b6000806040838503121561337d5761337c612f46565b5b600061338b858286016130de565b925050602083013567ffffffffffffffff8111156133ac576133ab612f4b565b5b6133b885828601613338565b9150509250929050565b6000602082840312156133d8576133d7612f46565b5b60006133e684828501613193565b91505092915050565b6133f8816130bd565b82525050565b600060208201905061341360008301846133ef565b92915050565b60008060006060848603121561343257613431612f46565b5b600061344086828701613193565b935050602061345186828701613193565b9250506040613462868287016130de565b9150509250925092565b61347581612fd5565b811461348057600080fd5b50565b6000813590506134928161346c565b92915050565b6000602082840312156134ae576134ad612f46565b5b60006134bc84828501613483565b91505092915050565b600080fd5b60008083601f8401126134e0576134df6131e8565b5b8235905067ffffffffffffffff8111156134fd576134fc6134c5565b5b60208301915083600182028301111561351957613518613294565b5b9250929050565b6000806020838503121561353757613536612f46565b5b600083013567ffffffffffffffff81111561355557613554612f4b565b5b613561858286016134ca565b92509250509250929050565b60006020828403121561358357613582612f46565b5b6000613591848285016132ba565b91505092915050565b600080604083850312156135b1576135b0612f46565b5b60006135bf85828601613193565b92505060206135d085828601613483565b9150509250929050565b600080fd5b600067ffffffffffffffff8211156135fa576135f96131ed565b5b61360382613051565b9050602081019050919050565b82818337600083830152505050565b600061363261362d846135df565b61324d565b90508281526020810184848401111561364e5761364d6135da565b5b613659848285613610565b509392505050565b600082601f830112613676576136756131e8565b5b813561368684826020860161361f565b91505092915050565b600080600080608085870312156136a9576136a8612f46565b5b60006136b787828801613193565b94505060206136c887828801613193565b93505060406136d9878288016130de565b925050606085013567ffffffffffffffff8111156136fa576136f9612f4b565b5b61370687828801613661565b91505092959194509250565b60008060006060848603121561372b5761372a612f46565b5b6000613739868287016130de565b935050602061374a86828701613193565b925050604061375b868287016130de565b9150509250925092565b6000806040838503121561377c5761377b612f46565b5b600061378a85828601613193565b925050602061379b85828601613193565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806137ec57607f821691505b6020821081036137ff576137fe6137a5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061383f826130bd565b915061384a836130bd565b9250828202613858816130bd565b9150828204841483151761386f5761386e613805565b5b5092915050565b6000613881826130bd565b915061388c836130bd565b92508282019050808211156138a4576138a3613805565b5b92915050565b60008160601b9050919050565b60006138c2826138aa565b9050919050565b60006138d4826138b7565b9050919050565b6138ec6138e782613140565b6138c9565b82525050565b60006138fe82846138db565b60148201915081905092915050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b6000613943600e83613016565b915061394e8261390d565b602082019050919050565b6000602082019050818103600083015261397281613936565b9050919050565b7f574c5f4d41584544000000000000000000000000000000000000000000000000600082015250565b60006139af600883613016565b91506139ba82613979565b602082019050919050565b600060208201905081810360008301526139de816139a2565b9050919050565b600081905092915050565b50565b6000613a006000836139e5565b9150613a0b826139f0565b600082019050919050565b6000613a21826139f3565b9150819050919050565b7f5769746864726177206661696c65640000000000000000000000000000000000600082015250565b6000613a61600f83613016565b9150613a6c82613a2b565b602082019050919050565b60006020820190508181036000830152613a9081613a54565b9050919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302613b047fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82613ac7565b613b0e8683613ac7565b95508019841693508086168417925050509392505050565b6000819050919050565b6000613b4b613b46613b41846130bd565b613b26565b6130bd565b9050919050565b6000819050919050565b613b6583613b30565b613b79613b7182613b52565b848454613ad4565b825550505050565b600090565b613b8e613b81565b613b99818484613b5c565b505050565b5b81811015613bbd57613bb2600082613b86565b600181019050613b9f565b5050565b601f821115613c0257613bd381613aa2565b613bdc84613ab7565b81016020851015613beb578190505b613bff613bf785613ab7565b830182613b9e565b50505b505050565b600082821c905092915050565b6000613c2560001984600802613c07565b1980831691505092915050565b6000613c3e8383613c14565b9150826002028217905092915050565b613c588383613a97565b67ffffffffffffffff811115613c7157613c706131ed565b5b613c7b82546137d4565b613c86828285613bc1565b6000601f831160018114613cb55760008415613ca3578287013590505b613cad8582613c32565b865550613d15565b601f198416613cc386613aa2565b60005b82811015613ceb57848901358255600182019150602085019450602081019050613cc6565b86831015613d085784890135613d04601f891682613c14565b8355505b6001600288020188555050505b50505050505050565b7f4d494e545f4d4158454400000000000000000000000000000000000000000000600082015250565b6000613d54600a83613016565b9150613d5f82613d1e565b602082019050919050565b60006020820190508181036000830152613d8381613d47565b9050919050565b7f4e6f7420796f75722073706c6f6f740000000000000000000000000000000000600082015250565b6000613dc0600f83613016565b9150613dcb82613d8a565b602082019050919050565b60006020820190508181036000830152613def81613db3565b9050919050565b600081519050919050565b6000613e0c82613df6565b613e1681856139e5565b9350613e26818560208601613027565b80840191505092915050565b6000613e3e8284613e01565b915081905092915050565b7f4572726f722067657474696e6720746f6b656e55524920646174610000000000600082015250565b6000613e7f601b83613016565b9150613e8a82613e49565b602082019050919050565b60006020820190508181036000830152613eae81613e72565b9050919050565b600067ffffffffffffffff821115613ed057613ecf6131ed565b5b613ed982613051565b9050602081019050919050565b6000613ef9613ef484613eb5565b61324d565b905082815260208101848484011115613f1557613f146135da565b5b613f20848285613027565b509392505050565b600082601f830112613f3d57613f3c6131e8565b5b8151613f4d848260208601613ee6565b91505092915050565b600060208284031215613f6c57613f6b612f46565b5b600082015167ffffffffffffffff811115613f8a57613f89612f4b565b5b613f9684828501613f28565b91505092915050565b613fa88261300b565b67ffffffffffffffff811115613fc157613fc06131ed565b5b613fcb82546137d4565b613fd6828285613bc1565b600060209050601f8311600181146140095760008415613ff7578287015190505b6140018582613c32565b865550614069565b601f19841661401786613aa2565b60005b8281101561403f5784890151825560018201915060208501945060208101905061401a565b8683101561405c5784890151614058601f891682613c14565b8355505b6001600288020188555050505b505050505050565b7f4572726f722067657474696e6720555249206461746100000000000000000000600082015250565b60006140a7601683613016565b91506140b282614071565b602082019050919050565b600060208201905081810360008301526140d68161409a565b9050919050565b7f70756e6b20000000000000000000000000000000000000000000000000000000815250565b600081905092915050565b60006141198261300b565b6141238185614103565b9350614133818560208601613027565b80840191505092915050565b600061414a826140dd565b60058201915061415a828461410e565b915081905092915050565b7f4e6f7420616e204552432d373231206f72204552432d31313535000000000000600082015250565b600061419b601a83613016565b91506141a682614165565b602082019050919050565b600060208201905081810360008301526141ca8161418e565b9050919050565b60006141dd828561410e565b91506141e9828461410e565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614251602683613016565b915061425c826141f5565b604082019050919050565b6000602082019050818103600083015261428081614244565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006142bd602083613016565b91506142c882614287565b602082019050919050565b600060208201905081810360008301526142ec816142b0565b9050919050565b600082825260208201905092915050565b600061430f82613df6565b61431981856142f3565b9350614329818560208601613027565b61433281613051565b840191505092915050565b60006080820190506143526000830187613152565b61435f6020830186613152565b61436c60408301856133ef565b818103606083015261437e8184614304565b905095945050505050565b60008151905061439881612f7c565b92915050565b6000602082840312156143b4576143b3612f46565b5b60006143c284828501614389565b91505092915050565b60006143d6826130bd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361440857614407613805565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061444d826130bd565b9150614458836130bd565b92508261446857614467614413565b5b828204905092915050565b600061447e826130bd565b9150614489836130bd565b92508282039050818111156144a1576144a0613805565b5b92915050565b60006144b2826130bd565b91506144bd836130bd565b9250826144cd576144cc614413565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b61451081612f50565b82525050565b600060208201905061452b6000830184614507565b9291505056fea2646970667358221220225c570d3004aa00c87779b2b29f960dc3087d48eeb1ac94428804f9db39f60564736f6c63430008110033
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.