ERC-721
Overview
Max Total Supply
1,023 ABCG
Holders
652
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 ABCGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AlphaBeesClub
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9 <0.9.0; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract AlphaBeesClub is ERC721AQueryable, Ownable, ReentrancyGuard { using Strings for uint256; enum MintStatus { PAUSED, WHITELIST_MINT, PUBLIC_MINT } bytes32 public merkleRoot; mapping(address => bool) public addressClaimed; string public uriPrefix = ""; string public uriSuffix = ".json"; string public hiddenMetadataUri; uint256 public cost = 0.088 ether; uint256 public maxSupply = 1150; uint256 public maxMintAmountPerTx = 5; MintStatus public mintStatus = MintStatus.PAUSED; bool public revealed = false; constructor(string memory _hiddenMetadataUri) ERC721A("Alpha Bees Club Genesis", "ABCG") { setHiddenMetadataUri(_hiddenMetadataUri); } modifier mintCompliance(uint256 _mintAmount) { require( _mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, "Invalid mint amount!" ); require( totalSupply() + _mintAmount <= maxSupply, "Max supply exceeded!" ); _; } modifier mintPriceCompliance(uint256 _mintAmount) { require(msg.value >= cost * _mintAmount, "Insufficient funds!"); _; } //burn the remaining nfts function burn() external onlyOwner { setMaxSupply(totalSupply()); } function teamMintBatch1() external onlyOwner { require(totalSupply() + 50 <= maxSupply, "Max supply exceeded!"); _safeMint(_msgSender(), 50); } function teamMintBatch2() external onlyOwner { setMintStatus(MintStatus.PAUSED); uint256 amount = maxSupply - totalSupply() < 100 ? maxSupply - totalSupply() : 100; _safeMint(_msgSender(), amount); } function whitelistMint(bytes32[] calldata _merkleProof) public payable mintCompliance(1) mintPriceCompliance(1) nonReentrant { require( mintStatus == MintStatus.PUBLIC_MINT || mintStatus == MintStatus.WHITELIST_MINT, "The whitelist sale is not started!" ); require(msg.sender == tx.origin, "Please no contract"); require(!addressClaimed[_msgSender()], "Address already minted!"); bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); require( MerkleProof.verify(_merkleProof, merkleRoot, leaf), "Invalid proof!" ); addressClaimed[_msgSender()] = true; _safeMint(_msgSender(), 1); } function mint(uint256 amount) public payable mintCompliance(amount) mintPriceCompliance(amount) nonReentrant { require( mintStatus == MintStatus.PUBLIC_MINT, "The public sale is not started!" ); require(msg.sender == tx.origin, "Please no contract"); _safeMint(_msgSender(), amount); } function mintForAddress(uint256 _mintAmount, address _receiver) public mintCompliance(_mintAmount) onlyOwner { _safeMint(_receiver, _mintAmount); } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI(uint256 _tokenId) public view virtual override(ERC721A, IERC721A) returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (revealed == false) { return hiddenMetadataUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked( currentBaseURI, _tokenId.toString(), uriSuffix ) ) : ""; } function setRevealed(bool _state) public onlyOwner { revealed = _state; } function setCost(uint256 _cost) public onlyOwner { cost = _cost; } function setMaxSupply(uint256 _maxSupply) internal onlyOwner { maxSupply = _maxSupply; } function setMaxMintAmountPerTx(uint256 _maxMintAmountPerTx) public onlyOwner { maxMintAmountPerTx = _maxMintAmountPerTx; } function setHiddenMetadataUri(string memory _hiddenMetadataUri) public onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function setUriPrefix(string memory _uriPrefix) public onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string memory _uriSuffix) public onlyOwner { uriSuffix = _uriSuffix; } function setMintStatus(MintStatus _status) public onlyOwner { mintStatus = _status; } function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function withdraw() public onlyOwner nonReentrant { (bool os, ) = payable(owner()).call{value: address(this).balance}(""); require(os); } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * - `extraData` = `0` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * - `extraData` = `<Extra data when token was burned>` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` * - `extraData` = `<Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ 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 Merkle 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 v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, * including the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at `_startTokenId()` * (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with `_mintERC2309`. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to `_mintERC2309` // is required to cause an overflow, which is unrealistic. uint256 private constant MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> BITPOS_EXTRA_DATA); } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, BITMASK_ADDRESS) // `owner | (block.timestamp << BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << BITPOS_NEXT_INITIALIZED`. result := shl(BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 tokenId = startTokenId; uint256 end = startTokenId + quantity; do { emit Transfer(address(0), to, tokenId++); } while (tokenId < end); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { mapping(uint256 => address) storage tokenApprovalsPtr = _tokenApprovals; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { // Compute the slot. mstore(0x00, tokenId) mstore(0x20, tokenApprovalsPtr.slot) approvedAddressSlot := keccak256(0x00, 0x40) // Load the slot's value from storage. approvedAddress := sload(approvedAddressSlot) } } /** * @dev Returns whether the `approvedAddress` is equals to `from` or `msgSender`. */ function _isOwnerOrApproved( address approvedAddress, address from, address msgSender ) private pure returns (bool result) { assembly { // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean. from := and(from, BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, BITMASK_ADDRESS) // `msgSender == from || msgSender == approvedAddress`. result := or(eq(msgSender, from), eq(msgSender, approvedAddress)) } } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isOwnerOrApproved(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (BITMASK_BURNED | BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << BITPOS_EXTRA_DATA; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. * This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. * This includes minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.1.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set through `_extraData`. uint24 extraData; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================== // IERC2309 // ============================== /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` (inclusive) is transferred from `from` to `to`, * as defined in the ERC2309 standard. See `_mintERC2309` for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintStatus","outputs":[{"internalType":"enum AlphaBeesClub.MintStatus","name":"","type":"uint8"}],"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":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxMintAmountPerTx","type":"uint256"}],"name":"setMaxMintAmountPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum AlphaBeesClub.MintStatus","name":"_status","type":"uint8"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamMintBatch1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"teamMintBatch2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405260405180602001604052806000815250600c908162000024919062000606565b506040518060400160405280600581526020017f2e6a736f6e000000000000000000000000000000000000000000000000000000815250600d90816200006b919062000606565b50670138a388a43c0000600f5561047e60105560056011556000601260006101000a81548160ff02191690836002811115620000ac57620000ab620006ed565b5b02179055506000601260016101000a81548160ff021916908315150217905550348015620000d957600080fd5b5060405162005d1138038062005d118339818101604052810190620000ff91906200088a565b6040518060400160405280601781526020017f416c706861204265657320436c75622047656e657369730000000000000000008152506040518060400160405280600481526020017f414243470000000000000000000000000000000000000000000000000000000081525081600290816200017c919062000606565b5080600390816200018e919062000606565b506200019f620001e760201b60201c565b6000819055505050620001c7620001bb620001f060201b60201c565b620001f860201b60201c565b6001600981905550620001e081620002be60201b60201c565b506200095e565b60006001905090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b620002ce620001f060201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620002f46200036260201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16146200034d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000344906200093c565b60405180910390fd5b80600e90816200035e919062000606565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200040e57607f821691505b602082108103620004245762000423620003c6565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200048e7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826200044f565b6200049a86836200044f565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004e7620004e1620004db84620004b2565b620004bc565b620004b2565b9050919050565b6000819050919050565b6200050383620004c6565b6200051b6200051282620004ee565b8484546200045c565b825550505050565b600090565b6200053262000523565b6200053f818484620004f8565b505050565b5b8181101562000567576200055b60008262000528565b60018101905062000545565b5050565b601f821115620005b65762000580816200042a565b6200058b846200043f565b810160208510156200059b578190505b620005b3620005aa856200043f565b83018262000544565b50505b505050565b600082821c905092915050565b6000620005db60001984600802620005bb565b1980831691505092915050565b6000620005f68383620005c8565b9150826002028217905092915050565b62000611826200038c565b67ffffffffffffffff8111156200062d576200062c62000397565b5b620006398254620003f5565b620006468282856200056b565b600060209050601f8311600181146200067e576000841562000669578287015190505b620006758582620005e8565b865550620006e5565b601f1984166200068e866200042a565b60005b82811015620006b85784890151825560018201915060208501945060208101905062000691565b86831015620006d85784890151620006d4601f891682620005c8565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b62000756826200073a565b810181811067ffffffffffffffff8211171562000778576200077762000397565b5b80604052505050565b60006200078d6200071c565b90506200079b82826200074b565b919050565b600067ffffffffffffffff821115620007be57620007bd62000397565b5b620007c9826200073a565b9050602081019050919050565b60005b83811015620007f6578082015181840152602081019050620007d9565b8381111562000806576000848401525b50505050565b6000620008236200081d84620007a0565b62000781565b90508281526020810184848401111562000842576200084162000735565b5b6200084f848285620007d6565b509392505050565b600082601f8301126200086f576200086e62000730565b5b8151620008818482602086016200080c565b91505092915050565b600060208284031215620008a357620008a262000726565b5b600082015167ffffffffffffffff811115620008c457620008c36200072b565b5b620008d28482850162000857565b91505092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000924602083620008db565b91506200093182620008ec565b602082019050919050565b60006020820190508181036000830152620009578162000915565b9050919050565b6153a3806200096e6000396000f3fe60806040526004361061027d5760003560e01c8063715018a61161014f578063a0712d68116100c1578063c87b56dd1161007a578063c87b56dd14610942578063d5abeb011461097f578063e0a80853146109aa578063e985e9c5146109d3578063efbd73f414610a10578063f2fde38b14610a395761027d565b8063a0712d6814610843578063a22cb4651461085f578063a45ba8e714610888578063b071401b146108b3578063b88d4fde146108dc578063c23dc68f146109055761027d565b80638462151c116101135780638462151c1461071d5780638da5cb5b1461075a57806394354fd01461078557806395d89b41146107b057806399a2557a146107db5780639da3f8fd146108185761027d565b8063715018a61461064e578063772dc32f146106655780637cb64759146106a25780637ec4a659146106cb578063814c8c55146106f45761027d565b8063372f657c116101f357806351830227116101ac57806351830227146105165780635503a0e8146105415780635bbb21771461056c57806362b99ad4146105a95780636352211e146105d457806370a08231146106115761027d565b8063372f657c146104515780633ccfd60b1461046d57806342842e0e1461048457806344a0d68a146104ad57806344df8e70146104d65780634fdd43cb146104ed5761027d565b806316ba10e01161024557806316ba10e01461037b57806318160ddd146103a457806323b872dd146103cf5780632eb4a7ab146103f8578063307389cf1461042357806331a111f91461043a5761027d565b806301ffc9a71461028257806306fdde03146102bf578063081812fc146102ea578063095ea7b31461032757806313faede614610350575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190613976565b610a62565b6040516102b691906139be565b60405180910390f35b3480156102cb57600080fd5b506102d4610af4565b6040516102e19190613a72565b60405180910390f35b3480156102f657600080fd5b50610311600480360381019061030c9190613aca565b610b86565b60405161031e9190613b38565b60405180910390f35b34801561033357600080fd5b5061034e60048036038101906103499190613b7f565b610c02565b005b34801561035c57600080fd5b50610365610d43565b6040516103729190613bce565b60405180910390f35b34801561038757600080fd5b506103a2600480360381019061039d9190613d1e565b610d49565b005b3480156103b057600080fd5b506103b9610dd8565b6040516103c69190613bce565b60405180910390f35b3480156103db57600080fd5b506103f660048036038101906103f19190613d67565b610def565b005b34801561040457600080fd5b5061040d611111565b60405161041a9190613dd3565b60405180910390f35b34801561042f57600080fd5b50610438611117565b005b34801561044657600080fd5b5061044f6111ff565b005b61046b60048036038101906104669190613e4e565b6112d6565b005b34801561047957600080fd5b50610482611713565b005b34801561049057600080fd5b506104ab60048036038101906104a69190613d67565b611864565b005b3480156104b957600080fd5b506104d460048036038101906104cf9190613aca565b611884565b005b3480156104e257600080fd5b506104eb61190a565b005b3480156104f957600080fd5b50610514600480360381019061050f9190613d1e565b611998565b005b34801561052257600080fd5b5061052b611a27565b60405161053891906139be565b60405180910390f35b34801561054d57600080fd5b50610556611a3a565b6040516105639190613a72565b60405180910390f35b34801561057857600080fd5b50610593600480360381019061058e9190613f5e565b611ac8565b6040516105a0919061410a565b60405180910390f35b3480156105b557600080fd5b506105be611b89565b6040516105cb9190613a72565b60405180910390f35b3480156105e057600080fd5b506105fb60048036038101906105f69190613aca565b611c17565b6040516106089190613b38565b60405180910390f35b34801561061d57600080fd5b506106386004803603810190610633919061412c565b611c29565b6040516106459190613bce565b60405180910390f35b34801561065a57600080fd5b50610663611ce1565b005b34801561067157600080fd5b5061068c6004803603810190610687919061412c565b611d69565b60405161069991906139be565b60405180910390f35b3480156106ae57600080fd5b506106c960048036038101906106c49190614185565b611d89565b005b3480156106d757600080fd5b506106f260048036038101906106ed9190613d1e565b611e0f565b005b34801561070057600080fd5b5061071b600480360381019061071691906141d7565b611e9e565b005b34801561072957600080fd5b50610744600480360381019061073f919061412c565b611f47565b60405161075191906142c2565b60405180910390f35b34801561076657600080fd5b5061076f61208a565b60405161077c9190613b38565b60405180910390f35b34801561079157600080fd5b5061079a6120b4565b6040516107a79190613bce565b60405180910390f35b3480156107bc57600080fd5b506107c56120ba565b6040516107d29190613a72565b60405180910390f35b3480156107e757600080fd5b5061080260048036038101906107fd91906142e4565b61214c565b60405161080f91906142c2565b60405180910390f35b34801561082457600080fd5b5061082d612358565b60405161083a91906143ae565b60405180910390f35b61085d60048036038101906108589190613aca565b61236b565b005b34801561086b57600080fd5b50610886600480360381019061088191906143f5565b6125b3565b005b34801561089457600080fd5b5061089d61272a565b6040516108aa9190613a72565b60405180910390f35b3480156108bf57600080fd5b506108da60048036038101906108d59190613aca565b6127b8565b005b3480156108e857600080fd5b5061090360048036038101906108fe91906144d6565b61283e565b005b34801561091157600080fd5b5061092c60048036038101906109279190613aca565b6128b1565b60405161093991906145ae565b60405180910390f35b34801561094e57600080fd5b5061096960048036038101906109649190613aca565b61291b565b6040516109769190613a72565b60405180910390f35b34801561098b57600080fd5b50610994612a73565b6040516109a19190613bce565b60405180910390f35b3480156109b657600080fd5b506109d160048036038101906109cc91906145c9565b612a79565b005b3480156109df57600080fd5b506109fa60048036038101906109f591906145f6565b612b12565b604051610a0791906139be565b60405180910390f35b348015610a1c57600080fd5b50610a376004803603810190610a329190614636565b612ba6565b005b348015610a4557600080fd5b50610a606004803603810190610a5b919061412c565b612cda565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610abd57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610aed5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610b03906146a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2f906146a5565b8015610b7c5780601f10610b5157610100808354040283529160200191610b7c565b820191906000526020600020905b815481529060010190602001808311610b5f57829003601f168201915b5050505050905090565b6000610b9182612dd1565b610bc7576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0d82611c17565b90508073ffffffffffffffffffffffffffffffffffffffff16610c2e612e30565b73ffffffffffffffffffffffffffffffffffffffff1614610c9157610c5a81610c55612e30565b612b12565b610c90576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600f5481565b610d51612e38565b73ffffffffffffffffffffffffffffffffffffffff16610d6f61208a565b73ffffffffffffffffffffffffffffffffffffffff1614610dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbc90614722565b60405180910390fd5b80600d9081610dd491906148ee565b5050565b6000610de2612e40565b6001546000540303905090565b6000610dfa82612e49565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e61576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610e6d84612f15565b91509150610e838187610e7e612e30565b612f37565b610ecf57610e9886610e93612e30565b612b12565b610ece576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f35576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f428686866001612f7b565b8015610f4d57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061101b85610ff7888887612f81565b7c020000000000000000000000000000000000000000000000000000000017612fa9565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036110a1576000600185019050600060046000838152602001908152602001600020540361109f57600054811461109e578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111098686866001612fd4565b505050505050565b600a5481565b61111f612e38565b73ffffffffffffffffffffffffffffffffffffffff1661113d61208a565b73ffffffffffffffffffffffffffffffffffffffff1614611193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118a90614722565b60405180910390fd5b60105460326111a0610dd8565b6111aa91906149ef565b11156111eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e290614a91565b60405180910390fd5b6111fd6111f6612e38565b6032612fda565b565b611207612e38565b73ffffffffffffffffffffffffffffffffffffffff1661122561208a565b73ffffffffffffffffffffffffffffffffffffffff161461127b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127290614722565b60405180910390fd5b6112856000611e9e565b60006064611291610dd8565b60105461129e9190614ab1565b106112aa5760646112c0565b6112b2610dd8565b6010546112bf9190614ab1565b5b90506112d36112cd612e38565b82612fda565b50565b60016000811180156112ea57506011548111155b611329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132090614b31565b60405180910390fd5b60105481611335610dd8565b61133f91906149ef565b1115611380576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137790614a91565b60405180910390fd5b600180600f546113909190614b51565b3410156113d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c990614bf7565b60405180910390fd5b600260095403611417576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140e90614c63565b60405180910390fd5b600260098190555060028081111561143257611431614337565b5b601260009054906101000a900460ff16600281111561145457611453614337565b5b148061149357506001600281111561146f5761146e614337565b5b601260009054906101000a900460ff16600281111561149157611490614337565b5b145b6114d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c990614cf5565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611540576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153790614d61565b60405180910390fd5b600b600061154c612e38565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156115d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cb90614dcd565b60405180910390fd5b60006115de612e38565b6040516020016115ee9190614e35565b604051602081830303815290604052805190602001209050611654858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5483612ff8565b611693576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168a90614e9c565b60405180910390fd5b6001600b60006116a1612e38565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117046116fd612e38565b6001612fda565b50600160098190555050505050565b61171b612e38565b73ffffffffffffffffffffffffffffffffffffffff1661173961208a565b73ffffffffffffffffffffffffffffffffffffffff161461178f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178690614722565b60405180910390fd5b6002600954036117d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cb90614c63565b60405180910390fd5b600260098190555060006117e661208a565b73ffffffffffffffffffffffffffffffffffffffff164760405161180990614eed565b60006040518083038185875af1925050503d8060008114611846576040519150601f19603f3d011682016040523d82523d6000602084013e61184b565b606091505b505090508061185957600080fd5b506001600981905550565b61187f8383836040518060200160405280600081525061283e565b505050565b61188c612e38565b73ffffffffffffffffffffffffffffffffffffffff166118aa61208a565b73ffffffffffffffffffffffffffffffffffffffff1614611900576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f790614722565b60405180910390fd5b80600f8190555050565b611912612e38565b73ffffffffffffffffffffffffffffffffffffffff1661193061208a565b73ffffffffffffffffffffffffffffffffffffffff1614611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197d90614722565b60405180910390fd5b611996611991610dd8565b61300f565b565b6119a0612e38565b73ffffffffffffffffffffffffffffffffffffffff166119be61208a565b73ffffffffffffffffffffffffffffffffffffffff1614611a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0b90614722565b60405180910390fd5b80600e9081611a2391906148ee565b5050565b601260019054906101000a900460ff1681565b600d8054611a47906146a5565b80601f0160208091040260200160405190810160405280929190818152602001828054611a73906146a5565b8015611ac05780601f10611a9557610100808354040283529160200191611ac0565b820191906000526020600020905b815481529060010190602001808311611aa357829003601f168201915b505050505081565b606060008251905060008167ffffffffffffffff811115611aec57611aeb613bf3565b5b604051908082528060200260200182016040528015611b2557816020015b611b126138bb565b815260200190600190039081611b0a5790505b50905060005b828114611b7e57611b55858281518110611b4857611b47614f02565b5b60200260200101516128b1565b828281518110611b6857611b67614f02565b5b6020026020010181905250806001019050611b2b565b508092505050919050565b600c8054611b96906146a5565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc2906146a5565b8015611c0f5780601f10611be457610100808354040283529160200191611c0f565b820191906000526020600020905b815481529060010190602001808311611bf257829003601f168201915b505050505081565b6000611c2282612e49565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c90576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611ce9612e38565b73ffffffffffffffffffffffffffffffffffffffff16611d0761208a565b73ffffffffffffffffffffffffffffffffffffffff1614611d5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5490614722565b60405180910390fd5b611d676000613095565b565b600b6020528060005260406000206000915054906101000a900460ff1681565b611d91612e38565b73ffffffffffffffffffffffffffffffffffffffff16611daf61208a565b73ffffffffffffffffffffffffffffffffffffffff1614611e05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dfc90614722565b60405180910390fd5b80600a8190555050565b611e17612e38565b73ffffffffffffffffffffffffffffffffffffffff16611e3561208a565b73ffffffffffffffffffffffffffffffffffffffff1614611e8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8290614722565b60405180910390fd5b80600c9081611e9a91906148ee565b5050565b611ea6612e38565b73ffffffffffffffffffffffffffffffffffffffff16611ec461208a565b73ffffffffffffffffffffffffffffffffffffffff1614611f1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1190614722565b60405180910390fd5b80601260006101000a81548160ff02191690836002811115611f3f57611f3e614337565b5b021790555050565b60606000806000611f5785611c29565b905060008167ffffffffffffffff811115611f7557611f74613bf3565b5b604051908082528060200260200182016040528015611fa35781602001602082028036833780820191505090505b509050611fae6138bb565b6000611fb8612e40565b90505b83861461207c57611fcb8161315b565b9150816040015161207157600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461201657816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612070578083878060010198508151811061206357612062614f02565b5b6020026020010181815250505b5b806001019050611fbb565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60115481565b6060600380546120c9906146a5565b80601f01602080910402602001604051908101604052809291908181526020018280546120f5906146a5565b80156121425780601f1061211757610100808354040283529160200191612142565b820191906000526020600020905b81548152906001019060200180831161212557829003601f168201915b5050505050905090565b6060818310612187576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612192613186565b905061219c612e40565b8510156121ae576121ab612e40565b94505b808411156121ba578093505b60006121c587611c29565b9050848610156121e85760008686039050818110156121e2578091505b506121ed565b600090505b60008167ffffffffffffffff81111561220957612208613bf3565b5b6040519080825280602002602001820160405280156122375781602001602082028036833780820191505090505b5090506000820361224e5780945050505050612351565b6000612259886128b1565b90506000816040015161226e57816000015190505b60008990505b8881141580156122845750848714155b15612343576122928161315b565b9250826040015161233857600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146122dd57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612337578084888060010199508151811061232a57612329614f02565b5b6020026020010181815250505b5b806001019050612274565b508583528296505050505050505b9392505050565b601260009054906101000a900460ff1681565b8060008111801561237e57506011548111155b6123bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b490614b31565b60405180910390fd5b601054816123c9610dd8565b6123d391906149ef565b1115612414576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240b90614a91565b60405180910390fd5b8180600f546124239190614b51565b341015612465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245c90614bf7565b60405180910390fd5b6002600954036124aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a190614c63565b60405180910390fd5b60026009819055506002808111156124c5576124c4614337565b5b601260009054906101000a900460ff1660028111156124e7576124e6614337565b5b14612527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251e90614f7d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612595576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258c90614d61565b60405180910390fd5b6125a66125a0612e38565b84612fda565b6001600981905550505050565b6125bb612e30565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361261f576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061262c612e30565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166126d9612e30565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161271e91906139be565b60405180910390a35050565b600e8054612737906146a5565b80601f0160208091040260200160405190810160405280929190818152602001828054612763906146a5565b80156127b05780601f10612785576101008083540402835291602001916127b0565b820191906000526020600020905b81548152906001019060200180831161279357829003601f168201915b505050505081565b6127c0612e38565b73ffffffffffffffffffffffffffffffffffffffff166127de61208a565b73ffffffffffffffffffffffffffffffffffffffff1614612834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282b90614722565b60405180910390fd5b8060118190555050565b612849848484610def565b60008373ffffffffffffffffffffffffffffffffffffffff163b146128ab576128748484848461318f565b6128aa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6128b96138bb565b6128c16138bb565b6128c9612e40565b8310806128dd57506128d9613186565b8310155b156128eb5780915050612916565b6128f48361315b565b90508060400151156129095780915050612916565b612912836132df565b9150505b919050565b606061292682612dd1565b612965576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295c9061500f565b60405180910390fd5b60001515601260019054906101000a900460ff16151503612a1257600e805461298d906146a5565b80601f01602080910402602001604051908101604052809291908181526020018280546129b9906146a5565b8015612a065780601f106129db57610100808354040283529160200191612a06565b820191906000526020600020905b8154815290600101906020018083116129e957829003601f168201915b50505050509050612a6e565b6000612a1c6132ff565b90506000815111612a3c5760405180602001604052806000815250612a6a565b80612a4684613391565b600d604051602001612a5a939291906150ee565b6040516020818303038152906040525b9150505b919050565b60105481565b612a81612e38565b73ffffffffffffffffffffffffffffffffffffffff16612a9f61208a565b73ffffffffffffffffffffffffffffffffffffffff1614612af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aec90614722565b60405180910390fd5b80601260016101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b81600081118015612bb957506011548111155b612bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bef90614b31565b60405180910390fd5b60105481612c04610dd8565b612c0e91906149ef565b1115612c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4690614a91565b60405180910390fd5b612c57612e38565b73ffffffffffffffffffffffffffffffffffffffff16612c7561208a565b73ffffffffffffffffffffffffffffffffffffffff1614612ccb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc290614722565b60405180910390fd5b612cd58284612fda565b505050565b612ce2612e38565b73ffffffffffffffffffffffffffffffffffffffff16612d0061208a565b73ffffffffffffffffffffffffffffffffffffffff1614612d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4d90614722565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dbc90615191565b60405180910390fd5b612dce81613095565b50565b600081612ddc612e40565b11158015612deb575060005482105b8015612e29575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600033905090565b60006001905090565b60008082905080612e58612e40565b11612ede57600054811015612edd5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612edb575b60008103612ed1576004600083600190039350838152602001908152602001600020549050612ea7565b8092505050612f10565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612f988686846134f1565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612ff48282604051806020016040528060008152506134fa565b5050565b6000826130058584613597565b1490509392505050565b613017612e38565b73ffffffffffffffffffffffffffffffffffffffff1661303561208a565b73ffffffffffffffffffffffffffffffffffffffff161461308b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308290614722565b60405180910390fd5b8060108190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6131636138bb565b61317f600460008481526020019081526020016000205461360c565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131b5612e30565b8786866040518563ffffffff1660e01b81526004016131d79493929190615206565b6020604051808303816000875af192505050801561321357506040513d601f19601f820116820180604052508101906132109190615267565b60015b61328c573d8060008114613243576040519150601f19603f3d011682016040523d82523d6000602084013e613248565b606091505b506000815103613284576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6132e76138bb565b6132f86132f383612e49565b61360c565b9050919050565b6060600c805461330e906146a5565b80601f016020809104026020016040519081016040528092919081815260200182805461333a906146a5565b80156133875780601f1061335c57610100808354040283529160200191613387565b820191906000526020600020905b81548152906001019060200180831161336a57829003601f168201915b5050505050905090565b6060600082036133d8576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506134ec565b600082905060005b6000821461340a5780806133f390615294565b915050600a82613403919061530b565b91506133e0565b60008167ffffffffffffffff81111561342657613425613bf3565b5b6040519080825280601f01601f1916602001820160405280156134585781602001600182028036833780820191505090505b5090505b600085146134e5576001826134719190614ab1565b9150600a85613480919061533c565b603061348c91906149ef565b60f81b8183815181106134a2576134a1614f02565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856134de919061530b565b945061345c565b8093505050505b919050565b60009392505050565b61350483836136c2565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461359257600080549050600083820390505b613544600086838060010194508661318f565b61357a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061353157816000541461358f57600080fd5b50505b505050565b60008082905060005b84518110156136015760008582815181106135be576135bd614f02565b5b602002602001015190508083116135e0576135d98382613894565b92506135ed565b6135ea8184613894565b92505b5080806135f990615294565b9150506135a0565b508091505092915050565b6136146138bb565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361372e576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203613768576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6137756000848385612f7b565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506137ec836137dd6000866000612f81565b6137e6856138ab565b17612fa9565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106138105780600081905550505061388f6000848385612fd4565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6139538161391e565b811461395e57600080fd5b50565b6000813590506139708161394a565b92915050565b60006020828403121561398c5761398b613914565b5b600061399a84828501613961565b91505092915050565b60008115159050919050565b6139b8816139a3565b82525050565b60006020820190506139d360008301846139af565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a135780820151818401526020810190506139f8565b83811115613a22576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a44826139d9565b613a4e81856139e4565b9350613a5e8185602086016139f5565b613a6781613a28565b840191505092915050565b60006020820190508181036000830152613a8c8184613a39565b905092915050565b6000819050919050565b613aa781613a94565b8114613ab257600080fd5b50565b600081359050613ac481613a9e565b92915050565b600060208284031215613ae057613adf613914565b5b6000613aee84828501613ab5565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b2282613af7565b9050919050565b613b3281613b17565b82525050565b6000602082019050613b4d6000830184613b29565b92915050565b613b5c81613b17565b8114613b6757600080fd5b50565b600081359050613b7981613b53565b92915050565b60008060408385031215613b9657613b95613914565b5b6000613ba485828601613b6a565b9250506020613bb585828601613ab5565b9150509250929050565b613bc881613a94565b82525050565b6000602082019050613be36000830184613bbf565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c2b82613a28565b810181811067ffffffffffffffff82111715613c4a57613c49613bf3565b5b80604052505050565b6000613c5d61390a565b9050613c698282613c22565b919050565b600067ffffffffffffffff821115613c8957613c88613bf3565b5b613c9282613a28565b9050602081019050919050565b82818337600083830152505050565b6000613cc1613cbc84613c6e565b613c53565b905082815260208101848484011115613cdd57613cdc613bee565b5b613ce8848285613c9f565b509392505050565b600082601f830112613d0557613d04613be9565b5b8135613d15848260208601613cae565b91505092915050565b600060208284031215613d3457613d33613914565b5b600082013567ffffffffffffffff811115613d5257613d51613919565b5b613d5e84828501613cf0565b91505092915050565b600080600060608486031215613d8057613d7f613914565b5b6000613d8e86828701613b6a565b9350506020613d9f86828701613b6a565b9250506040613db086828701613ab5565b9150509250925092565b6000819050919050565b613dcd81613dba565b82525050565b6000602082019050613de86000830184613dc4565b92915050565b600080fd5b600080fd5b60008083601f840112613e0e57613e0d613be9565b5b8235905067ffffffffffffffff811115613e2b57613e2a613dee565b5b602083019150836020820283011115613e4757613e46613df3565b5b9250929050565b60008060208385031215613e6557613e64613914565b5b600083013567ffffffffffffffff811115613e8357613e82613919565b5b613e8f85828601613df8565b92509250509250929050565b600067ffffffffffffffff821115613eb657613eb5613bf3565b5b602082029050602081019050919050565b6000613eda613ed584613e9b565b613c53565b90508083825260208201905060208402830185811115613efd57613efc613df3565b5b835b81811015613f265780613f128882613ab5565b845260208401935050602081019050613eff565b5050509392505050565b600082601f830112613f4557613f44613be9565b5b8135613f55848260208601613ec7565b91505092915050565b600060208284031215613f7457613f73613914565b5b600082013567ffffffffffffffff811115613f9257613f91613919565b5b613f9e84828501613f30565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613fdc81613b17565b82525050565b600067ffffffffffffffff82169050919050565b613fff81613fe2565b82525050565b61400e816139a3565b82525050565b600062ffffff82169050919050565b61402c81614014565b82525050565b6080820160008201516140486000850182613fd3565b50602082015161405b6020850182613ff6565b50604082015161406e6040850182614005565b5060608201516140816060850182614023565b50505050565b60006140938383614032565b60808301905092915050565b6000602082019050919050565b60006140b782613fa7565b6140c18185613fb2565b93506140cc83613fc3565b8060005b838110156140fd5781516140e48882614087565b97506140ef8361409f565b9250506001810190506140d0565b5085935050505092915050565b6000602082019050818103600083015261412481846140ac565b905092915050565b60006020828403121561414257614141613914565b5b600061415084828501613b6a565b91505092915050565b61416281613dba565b811461416d57600080fd5b50565b60008135905061417f81614159565b92915050565b60006020828403121561419b5761419a613914565b5b60006141a984828501614170565b91505092915050565b600381106141bf57600080fd5b50565b6000813590506141d1816141b2565b92915050565b6000602082840312156141ed576141ec613914565b5b60006141fb848285016141c2565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61423981613a94565b82525050565b600061424b8383614230565b60208301905092915050565b6000602082019050919050565b600061426f82614204565b614279818561420f565b935061428483614220565b8060005b838110156142b557815161429c888261423f565b97506142a783614257565b925050600181019050614288565b5085935050505092915050565b600060208201905081810360008301526142dc8184614264565b905092915050565b6000806000606084860312156142fd576142fc613914565b5b600061430b86828701613b6a565b935050602061431c86828701613ab5565b925050604061432d86828701613ab5565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061437757614376614337565b5b50565b600081905061438882614366565b919050565b60006143988261437a565b9050919050565b6143a88161438d565b82525050565b60006020820190506143c3600083018461439f565b92915050565b6143d2816139a3565b81146143dd57600080fd5b50565b6000813590506143ef816143c9565b92915050565b6000806040838503121561440c5761440b613914565b5b600061441a85828601613b6a565b925050602061442b858286016143e0565b9150509250929050565b600067ffffffffffffffff8211156144505761444f613bf3565b5b61445982613a28565b9050602081019050919050565b600061447961447484614435565b613c53565b90508281526020810184848401111561449557614494613bee565b5b6144a0848285613c9f565b509392505050565b600082601f8301126144bd576144bc613be9565b5b81356144cd848260208601614466565b91505092915050565b600080600080608085870312156144f0576144ef613914565b5b60006144fe87828801613b6a565b945050602061450f87828801613b6a565b935050604061452087828801613ab5565b925050606085013567ffffffffffffffff81111561454157614540613919565b5b61454d878288016144a8565b91505092959194509250565b60808201600082015161456f6000850182613fd3565b5060208201516145826020850182613ff6565b5060408201516145956040850182614005565b5060608201516145a86060850182614023565b50505050565b60006080820190506145c36000830184614559565b92915050565b6000602082840312156145df576145de613914565b5b60006145ed848285016143e0565b91505092915050565b6000806040838503121561460d5761460c613914565b5b600061461b85828601613b6a565b925050602061462c85828601613b6a565b9150509250929050565b6000806040838503121561464d5761464c613914565b5b600061465b85828601613ab5565b925050602061466c85828601613b6a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146bd57607f821691505b6020821081036146d0576146cf614676565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061470c6020836139e4565b9150614717826146d6565b602082019050919050565b6000602082019050818103600083015261473b816146ff565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026147a47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614767565b6147ae8683614767565b95508019841693508086168417925050509392505050565b6000819050919050565b60006147eb6147e66147e184613a94565b6147c6565b613a94565b9050919050565b6000819050919050565b614805836147d0565b614819614811826147f2565b848454614774565b825550505050565b600090565b61482e614821565b6148398184846147fc565b505050565b5b8181101561485d57614852600082614826565b60018101905061483f565b5050565b601f8211156148a25761487381614742565b61487c84614757565b8101602085101561488b578190505b61489f61489785614757565b83018261483e565b50505b505050565b600082821c905092915050565b60006148c5600019846008026148a7565b1980831691505092915050565b60006148de83836148b4565b9150826002028217905092915050565b6148f7826139d9565b67ffffffffffffffff8111156149105761490f613bf3565b5b61491a82546146a5565b614925828285614861565b600060209050601f8311600181146149585760008415614946578287015190505b61495085826148d2565b8655506149b8565b601f19841661496686614742565b60005b8281101561498e57848901518255600182019150602085019450602081019050614969565b868310156149ab57848901516149a7601f8916826148b4565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006149fa82613a94565b9150614a0583613a94565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a3a57614a396149c0565b5b828201905092915050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b6000614a7b6014836139e4565b9150614a8682614a45565b602082019050919050565b60006020820190508181036000830152614aaa81614a6e565b9050919050565b6000614abc82613a94565b9150614ac783613a94565b925082821015614ada57614ad96149c0565b5b828203905092915050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b6000614b1b6014836139e4565b9150614b2682614ae5565b602082019050919050565b60006020820190508181036000830152614b4a81614b0e565b9050919050565b6000614b5c82613a94565b9150614b6783613a94565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ba057614b9f6149c0565b5b828202905092915050565b7f496e73756666696369656e742066756e64732100000000000000000000000000600082015250565b6000614be16013836139e4565b9150614bec82614bab565b602082019050919050565b60006020820190508181036000830152614c1081614bd4565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614c4d601f836139e4565b9150614c5882614c17565b602082019050919050565b60006020820190508181036000830152614c7c81614c40565b9050919050565b7f5468652077686974656c6973742073616c65206973206e6f742073746172746560008201527f6421000000000000000000000000000000000000000000000000000000000000602082015250565b6000614cdf6022836139e4565b9150614cea82614c83565b604082019050919050565b60006020820190508181036000830152614d0e81614cd2565b9050919050565b7f506c65617365206e6f20636f6e74726163740000000000000000000000000000600082015250565b6000614d4b6012836139e4565b9150614d5682614d15565b602082019050919050565b60006020820190508181036000830152614d7a81614d3e565b9050919050565b7f4164647265737320616c7265616479206d696e74656421000000000000000000600082015250565b6000614db76017836139e4565b9150614dc282614d81565b602082019050919050565b60006020820190508181036000830152614de681614daa565b9050919050565b60008160601b9050919050565b6000614e0582614ded565b9050919050565b6000614e1782614dfa565b9050919050565b614e2f614e2a82613b17565b614e0c565b82525050565b6000614e418284614e1e565b60148201915081905092915050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b6000614e86600e836139e4565b9150614e9182614e50565b602082019050919050565b60006020820190508181036000830152614eb581614e79565b9050919050565b600081905092915050565b50565b6000614ed7600083614ebc565b9150614ee282614ec7565b600082019050919050565b6000614ef882614eca565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f546865207075626c69632073616c65206973206e6f7420737461727465642100600082015250565b6000614f67601f836139e4565b9150614f7282614f31565b602082019050919050565b60006020820190508181036000830152614f9681614f5a565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614ff9602f836139e4565b915061500482614f9d565b604082019050919050565b6000602082019050818103600083015261502881614fec565b9050919050565b600081905092915050565b6000615045826139d9565b61504f818561502f565b935061505f8185602086016139f5565b80840191505092915050565b60008154615078816146a5565b615082818661502f565b9450600182166000811461509d57600181146150b2576150e5565b60ff19831686528115158202860193506150e5565b6150bb85614742565b60005b838110156150dd578154818901526001820191506020810190506150be565b838801955050505b50505092915050565b60006150fa828661503a565b9150615106828561503a565b9150615112828461506b565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061517b6026836139e4565b91506151868261511f565b604082019050919050565b600060208201905081810360008301526151aa8161516e565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151d8826151b1565b6151e281856151bc565b93506151f28185602086016139f5565b6151fb81613a28565b840191505092915050565b600060808201905061521b6000830187613b29565b6152286020830186613b29565b6152356040830185613bbf565b818103606083015261524781846151cd565b905095945050505050565b6000815190506152618161394a565b92915050565b60006020828403121561527d5761527c613914565b5b600061528b84828501615252565b91505092915050565b600061529f82613a94565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036152d1576152d06149c0565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061531682613a94565b915061532183613a94565b925082615331576153306152dc565b5b828204905092915050565b600061534782613a94565b915061535283613a94565b925082615362576153616152dc565b5b82820690509291505056fea26469706673582212209247b2f88b454efe79615597bbd15c0b7adac3091060ae00c2b222a0d520036c64736f6c634300080f003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5635585553684c43486b47734a43364c36374c5276673976487744445748317270697359626335724c6251690000000000000000000000
Deployed Bytecode
0x60806040526004361061027d5760003560e01c8063715018a61161014f578063a0712d68116100c1578063c87b56dd1161007a578063c87b56dd14610942578063d5abeb011461097f578063e0a80853146109aa578063e985e9c5146109d3578063efbd73f414610a10578063f2fde38b14610a395761027d565b8063a0712d6814610843578063a22cb4651461085f578063a45ba8e714610888578063b071401b146108b3578063b88d4fde146108dc578063c23dc68f146109055761027d565b80638462151c116101135780638462151c1461071d5780638da5cb5b1461075a57806394354fd01461078557806395d89b41146107b057806399a2557a146107db5780639da3f8fd146108185761027d565b8063715018a61461064e578063772dc32f146106655780637cb64759146106a25780637ec4a659146106cb578063814c8c55146106f45761027d565b8063372f657c116101f357806351830227116101ac57806351830227146105165780635503a0e8146105415780635bbb21771461056c57806362b99ad4146105a95780636352211e146105d457806370a08231146106115761027d565b8063372f657c146104515780633ccfd60b1461046d57806342842e0e1461048457806344a0d68a146104ad57806344df8e70146104d65780634fdd43cb146104ed5761027d565b806316ba10e01161024557806316ba10e01461037b57806318160ddd146103a457806323b872dd146103cf5780632eb4a7ab146103f8578063307389cf1461042357806331a111f91461043a5761027d565b806301ffc9a71461028257806306fdde03146102bf578063081812fc146102ea578063095ea7b31461032757806313faede614610350575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190613976565b610a62565b6040516102b691906139be565b60405180910390f35b3480156102cb57600080fd5b506102d4610af4565b6040516102e19190613a72565b60405180910390f35b3480156102f657600080fd5b50610311600480360381019061030c9190613aca565b610b86565b60405161031e9190613b38565b60405180910390f35b34801561033357600080fd5b5061034e60048036038101906103499190613b7f565b610c02565b005b34801561035c57600080fd5b50610365610d43565b6040516103729190613bce565b60405180910390f35b34801561038757600080fd5b506103a2600480360381019061039d9190613d1e565b610d49565b005b3480156103b057600080fd5b506103b9610dd8565b6040516103c69190613bce565b60405180910390f35b3480156103db57600080fd5b506103f660048036038101906103f19190613d67565b610def565b005b34801561040457600080fd5b5061040d611111565b60405161041a9190613dd3565b60405180910390f35b34801561042f57600080fd5b50610438611117565b005b34801561044657600080fd5b5061044f6111ff565b005b61046b60048036038101906104669190613e4e565b6112d6565b005b34801561047957600080fd5b50610482611713565b005b34801561049057600080fd5b506104ab60048036038101906104a69190613d67565b611864565b005b3480156104b957600080fd5b506104d460048036038101906104cf9190613aca565b611884565b005b3480156104e257600080fd5b506104eb61190a565b005b3480156104f957600080fd5b50610514600480360381019061050f9190613d1e565b611998565b005b34801561052257600080fd5b5061052b611a27565b60405161053891906139be565b60405180910390f35b34801561054d57600080fd5b50610556611a3a565b6040516105639190613a72565b60405180910390f35b34801561057857600080fd5b50610593600480360381019061058e9190613f5e565b611ac8565b6040516105a0919061410a565b60405180910390f35b3480156105b557600080fd5b506105be611b89565b6040516105cb9190613a72565b60405180910390f35b3480156105e057600080fd5b506105fb60048036038101906105f69190613aca565b611c17565b6040516106089190613b38565b60405180910390f35b34801561061d57600080fd5b506106386004803603810190610633919061412c565b611c29565b6040516106459190613bce565b60405180910390f35b34801561065a57600080fd5b50610663611ce1565b005b34801561067157600080fd5b5061068c6004803603810190610687919061412c565b611d69565b60405161069991906139be565b60405180910390f35b3480156106ae57600080fd5b506106c960048036038101906106c49190614185565b611d89565b005b3480156106d757600080fd5b506106f260048036038101906106ed9190613d1e565b611e0f565b005b34801561070057600080fd5b5061071b600480360381019061071691906141d7565b611e9e565b005b34801561072957600080fd5b50610744600480360381019061073f919061412c565b611f47565b60405161075191906142c2565b60405180910390f35b34801561076657600080fd5b5061076f61208a565b60405161077c9190613b38565b60405180910390f35b34801561079157600080fd5b5061079a6120b4565b6040516107a79190613bce565b60405180910390f35b3480156107bc57600080fd5b506107c56120ba565b6040516107d29190613a72565b60405180910390f35b3480156107e757600080fd5b5061080260048036038101906107fd91906142e4565b61214c565b60405161080f91906142c2565b60405180910390f35b34801561082457600080fd5b5061082d612358565b60405161083a91906143ae565b60405180910390f35b61085d60048036038101906108589190613aca565b61236b565b005b34801561086b57600080fd5b50610886600480360381019061088191906143f5565b6125b3565b005b34801561089457600080fd5b5061089d61272a565b6040516108aa9190613a72565b60405180910390f35b3480156108bf57600080fd5b506108da60048036038101906108d59190613aca565b6127b8565b005b3480156108e857600080fd5b5061090360048036038101906108fe91906144d6565b61283e565b005b34801561091157600080fd5b5061092c60048036038101906109279190613aca565b6128b1565b60405161093991906145ae565b60405180910390f35b34801561094e57600080fd5b5061096960048036038101906109649190613aca565b61291b565b6040516109769190613a72565b60405180910390f35b34801561098b57600080fd5b50610994612a73565b6040516109a19190613bce565b60405180910390f35b3480156109b657600080fd5b506109d160048036038101906109cc91906145c9565b612a79565b005b3480156109df57600080fd5b506109fa60048036038101906109f591906145f6565b612b12565b604051610a0791906139be565b60405180910390f35b348015610a1c57600080fd5b50610a376004803603810190610a329190614636565b612ba6565b005b348015610a4557600080fd5b50610a606004803603810190610a5b919061412c565b612cda565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610abd57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610aed5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b606060028054610b03906146a5565b80601f0160208091040260200160405190810160405280929190818152602001828054610b2f906146a5565b8015610b7c5780601f10610b5157610100808354040283529160200191610b7c565b820191906000526020600020905b815481529060010190602001808311610b5f57829003601f168201915b5050505050905090565b6000610b9182612dd1565b610bc7576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c0d82611c17565b90508073ffffffffffffffffffffffffffffffffffffffff16610c2e612e30565b73ffffffffffffffffffffffffffffffffffffffff1614610c9157610c5a81610c55612e30565b612b12565b610c90576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b600f5481565b610d51612e38565b73ffffffffffffffffffffffffffffffffffffffff16610d6f61208a565b73ffffffffffffffffffffffffffffffffffffffff1614610dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbc90614722565b60405180910390fd5b80600d9081610dd491906148ee565b5050565b6000610de2612e40565b6001546000540303905090565b6000610dfa82612e49565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610e61576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610e6d84612f15565b91509150610e838187610e7e612e30565b612f37565b610ecf57610e9886610e93612e30565b612b12565b610ece576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610f35576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f428686866001612f7b565b8015610f4d57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001019190508190555061101b85610ff7888887612f81565b7c020000000000000000000000000000000000000000000000000000000017612fa9565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036110a1576000600185019050600060046000838152602001908152602001600020540361109f57600054811461109e578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111098686866001612fd4565b505050505050565b600a5481565b61111f612e38565b73ffffffffffffffffffffffffffffffffffffffff1661113d61208a565b73ffffffffffffffffffffffffffffffffffffffff1614611193576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118a90614722565b60405180910390fd5b60105460326111a0610dd8565b6111aa91906149ef565b11156111eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e290614a91565b60405180910390fd5b6111fd6111f6612e38565b6032612fda565b565b611207612e38565b73ffffffffffffffffffffffffffffffffffffffff1661122561208a565b73ffffffffffffffffffffffffffffffffffffffff161461127b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127290614722565b60405180910390fd5b6112856000611e9e565b60006064611291610dd8565b60105461129e9190614ab1565b106112aa5760646112c0565b6112b2610dd8565b6010546112bf9190614ab1565b5b90506112d36112cd612e38565b82612fda565b50565b60016000811180156112ea57506011548111155b611329576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161132090614b31565b60405180910390fd5b60105481611335610dd8565b61133f91906149ef565b1115611380576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161137790614a91565b60405180910390fd5b600180600f546113909190614b51565b3410156113d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113c990614bf7565b60405180910390fd5b600260095403611417576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140e90614c63565b60405180910390fd5b600260098190555060028081111561143257611431614337565b5b601260009054906101000a900460ff16600281111561145457611453614337565b5b148061149357506001600281111561146f5761146e614337565b5b601260009054906101000a900460ff16600281111561149157611490614337565b5b145b6114d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c990614cf5565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611540576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153790614d61565b60405180910390fd5b600b600061154c612e38565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156115d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115cb90614dcd565b60405180910390fd5b60006115de612e38565b6040516020016115ee9190614e35565b604051602081830303815290604052805190602001209050611654858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600a5483612ff8565b611693576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161168a90614e9c565b60405180910390fd5b6001600b60006116a1612e38565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506117046116fd612e38565b6001612fda565b50600160098190555050505050565b61171b612e38565b73ffffffffffffffffffffffffffffffffffffffff1661173961208a565b73ffffffffffffffffffffffffffffffffffffffff161461178f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178690614722565b60405180910390fd5b6002600954036117d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cb90614c63565b60405180910390fd5b600260098190555060006117e661208a565b73ffffffffffffffffffffffffffffffffffffffff164760405161180990614eed565b60006040518083038185875af1925050503d8060008114611846576040519150601f19603f3d011682016040523d82523d6000602084013e61184b565b606091505b505090508061185957600080fd5b506001600981905550565b61187f8383836040518060200160405280600081525061283e565b505050565b61188c612e38565b73ffffffffffffffffffffffffffffffffffffffff166118aa61208a565b73ffffffffffffffffffffffffffffffffffffffff1614611900576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118f790614722565b60405180910390fd5b80600f8190555050565b611912612e38565b73ffffffffffffffffffffffffffffffffffffffff1661193061208a565b73ffffffffffffffffffffffffffffffffffffffff1614611986576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161197d90614722565b60405180910390fd5b611996611991610dd8565b61300f565b565b6119a0612e38565b73ffffffffffffffffffffffffffffffffffffffff166119be61208a565b73ffffffffffffffffffffffffffffffffffffffff1614611a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0b90614722565b60405180910390fd5b80600e9081611a2391906148ee565b5050565b601260019054906101000a900460ff1681565b600d8054611a47906146a5565b80601f0160208091040260200160405190810160405280929190818152602001828054611a73906146a5565b8015611ac05780601f10611a9557610100808354040283529160200191611ac0565b820191906000526020600020905b815481529060010190602001808311611aa357829003601f168201915b505050505081565b606060008251905060008167ffffffffffffffff811115611aec57611aeb613bf3565b5b604051908082528060200260200182016040528015611b2557816020015b611b126138bb565b815260200190600190039081611b0a5790505b50905060005b828114611b7e57611b55858281518110611b4857611b47614f02565b5b60200260200101516128b1565b828281518110611b6857611b67614f02565b5b6020026020010181905250806001019050611b2b565b508092505050919050565b600c8054611b96906146a5565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc2906146a5565b8015611c0f5780601f10611be457610100808354040283529160200191611c0f565b820191906000526020600020905b815481529060010190602001808311611bf257829003601f168201915b505050505081565b6000611c2282612e49565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c90576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611ce9612e38565b73ffffffffffffffffffffffffffffffffffffffff16611d0761208a565b73ffffffffffffffffffffffffffffffffffffffff1614611d5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5490614722565b60405180910390fd5b611d676000613095565b565b600b6020528060005260406000206000915054906101000a900460ff1681565b611d91612e38565b73ffffffffffffffffffffffffffffffffffffffff16611daf61208a565b73ffffffffffffffffffffffffffffffffffffffff1614611e05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dfc90614722565b60405180910390fd5b80600a8190555050565b611e17612e38565b73ffffffffffffffffffffffffffffffffffffffff16611e3561208a565b73ffffffffffffffffffffffffffffffffffffffff1614611e8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8290614722565b60405180910390fd5b80600c9081611e9a91906148ee565b5050565b611ea6612e38565b73ffffffffffffffffffffffffffffffffffffffff16611ec461208a565b73ffffffffffffffffffffffffffffffffffffffff1614611f1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f1190614722565b60405180910390fd5b80601260006101000a81548160ff02191690836002811115611f3f57611f3e614337565b5b021790555050565b60606000806000611f5785611c29565b905060008167ffffffffffffffff811115611f7557611f74613bf3565b5b604051908082528060200260200182016040528015611fa35781602001602082028036833780820191505090505b509050611fae6138bb565b6000611fb8612e40565b90505b83861461207c57611fcb8161315b565b9150816040015161207157600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461201657816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612070578083878060010198508151811061206357612062614f02565b5b6020026020010181815250505b5b806001019050611fbb565b508195505050505050919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60115481565b6060600380546120c9906146a5565b80601f01602080910402602001604051908101604052809291908181526020018280546120f5906146a5565b80156121425780601f1061211757610100808354040283529160200191612142565b820191906000526020600020905b81548152906001019060200180831161212557829003601f168201915b5050505050905090565b6060818310612187576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612192613186565b905061219c612e40565b8510156121ae576121ab612e40565b94505b808411156121ba578093505b60006121c587611c29565b9050848610156121e85760008686039050818110156121e2578091505b506121ed565b600090505b60008167ffffffffffffffff81111561220957612208613bf3565b5b6040519080825280602002602001820160405280156122375781602001602082028036833780820191505090505b5090506000820361224e5780945050505050612351565b6000612259886128b1565b90506000816040015161226e57816000015190505b60008990505b8881141580156122845750848714155b15612343576122928161315b565b9250826040015161233857600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff16146122dd57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612337578084888060010199508151811061232a57612329614f02565b5b6020026020010181815250505b5b806001019050612274565b508583528296505050505050505b9392505050565b601260009054906101000a900460ff1681565b8060008111801561237e57506011548111155b6123bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b490614b31565b60405180910390fd5b601054816123c9610dd8565b6123d391906149ef565b1115612414576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161240b90614a91565b60405180910390fd5b8180600f546124239190614b51565b341015612465576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245c90614bf7565b60405180910390fd5b6002600954036124aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a190614c63565b60405180910390fd5b60026009819055506002808111156124c5576124c4614337565b5b601260009054906101000a900460ff1660028111156124e7576124e6614337565b5b14612527576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251e90614f7d565b60405180910390fd5b3273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614612595576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258c90614d61565b60405180910390fd5b6125a66125a0612e38565b84612fda565b6001600981905550505050565b6125bb612e30565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361261f576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806007600061262c612e30565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166126d9612e30565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161271e91906139be565b60405180910390a35050565b600e8054612737906146a5565b80601f0160208091040260200160405190810160405280929190818152602001828054612763906146a5565b80156127b05780601f10612785576101008083540402835291602001916127b0565b820191906000526020600020905b81548152906001019060200180831161279357829003601f168201915b505050505081565b6127c0612e38565b73ffffffffffffffffffffffffffffffffffffffff166127de61208a565b73ffffffffffffffffffffffffffffffffffffffff1614612834576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282b90614722565b60405180910390fd5b8060118190555050565b612849848484610def565b60008373ffffffffffffffffffffffffffffffffffffffff163b146128ab576128748484848461318f565b6128aa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6128b96138bb565b6128c16138bb565b6128c9612e40565b8310806128dd57506128d9613186565b8310155b156128eb5780915050612916565b6128f48361315b565b90508060400151156129095780915050612916565b612912836132df565b9150505b919050565b606061292682612dd1565b612965576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295c9061500f565b60405180910390fd5b60001515601260019054906101000a900460ff16151503612a1257600e805461298d906146a5565b80601f01602080910402602001604051908101604052809291908181526020018280546129b9906146a5565b8015612a065780601f106129db57610100808354040283529160200191612a06565b820191906000526020600020905b8154815290600101906020018083116129e957829003601f168201915b50505050509050612a6e565b6000612a1c6132ff565b90506000815111612a3c5760405180602001604052806000815250612a6a565b80612a4684613391565b600d604051602001612a5a939291906150ee565b6040516020818303038152906040525b9150505b919050565b60105481565b612a81612e38565b73ffffffffffffffffffffffffffffffffffffffff16612a9f61208a565b73ffffffffffffffffffffffffffffffffffffffff1614612af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aec90614722565b60405180910390fd5b80601260016101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b81600081118015612bb957506011548111155b612bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bef90614b31565b60405180910390fd5b60105481612c04610dd8565b612c0e91906149ef565b1115612c4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c4690614a91565b60405180910390fd5b612c57612e38565b73ffffffffffffffffffffffffffffffffffffffff16612c7561208a565b73ffffffffffffffffffffffffffffffffffffffff1614612ccb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cc290614722565b60405180910390fd5b612cd58284612fda565b505050565b612ce2612e38565b73ffffffffffffffffffffffffffffffffffffffff16612d0061208a565b73ffffffffffffffffffffffffffffffffffffffff1614612d56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4d90614722565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dbc90615191565b60405180910390fd5b612dce81613095565b50565b600081612ddc612e40565b11158015612deb575060005482105b8015612e29575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600033905090565b60006001905090565b60008082905080612e58612e40565b11612ede57600054811015612edd5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612edb575b60008103612ed1576004600083600190039350838152602001908152602001600020549050612ea7565b8092505050612f10565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000806000600690508360005280602052604060002092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612f988686846134f1565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b612ff48282604051806020016040528060008152506134fa565b5050565b6000826130058584613597565b1490509392505050565b613017612e38565b73ffffffffffffffffffffffffffffffffffffffff1661303561208a565b73ffffffffffffffffffffffffffffffffffffffff161461308b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161308290614722565b60405180910390fd5b8060108190555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6131636138bb565b61317f600460008481526020019081526020016000205461360c565b9050919050565b60008054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026131b5612e30565b8786866040518563ffffffff1660e01b81526004016131d79493929190615206565b6020604051808303816000875af192505050801561321357506040513d601f19601f820116820180604052508101906132109190615267565b60015b61328c573d8060008114613243576040519150601f19603f3d011682016040523d82523d6000602084013e613248565b606091505b506000815103613284576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6132e76138bb565b6132f86132f383612e49565b61360c565b9050919050565b6060600c805461330e906146a5565b80601f016020809104026020016040519081016040528092919081815260200182805461333a906146a5565b80156133875780601f1061335c57610100808354040283529160200191613387565b820191906000526020600020905b81548152906001019060200180831161336a57829003601f168201915b5050505050905090565b6060600082036133d8576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506134ec565b600082905060005b6000821461340a5780806133f390615294565b915050600a82613403919061530b565b91506133e0565b60008167ffffffffffffffff81111561342657613425613bf3565b5b6040519080825280601f01601f1916602001820160405280156134585781602001600182028036833780820191505090505b5090505b600085146134e5576001826134719190614ab1565b9150600a85613480919061533c565b603061348c91906149ef565b60f81b8183815181106134a2576134a1614f02565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856134de919061530b565b945061345c565b8093505050505b919050565b60009392505050565b61350483836136c2565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461359257600080549050600083820390505b613544600086838060010194508661318f565b61357a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81811061353157816000541461358f57600080fd5b50505b505050565b60008082905060005b84518110156136015760008582815181106135be576135bd614f02565b5b602002602001015190508083116135e0576135d98382613894565b92506135ed565b6135ea8184613894565b92505b5080806135f990615294565b9150506135a0565b508091505092915050565b6136146138bb565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361372e576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008203613768576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6137756000848385612f7b565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506137ec836137dd6000866000612f81565b6137e6856138ab565b17612fa9565b60046000838152602001908152602001600020819055506000819050600083830190505b818060010192508573ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48082106138105780600081905550505061388f6000848385612fd4565b505050565b600082600052816020526040600020905092915050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6139538161391e565b811461395e57600080fd5b50565b6000813590506139708161394a565b92915050565b60006020828403121561398c5761398b613914565b5b600061399a84828501613961565b91505092915050565b60008115159050919050565b6139b8816139a3565b82525050565b60006020820190506139d360008301846139af565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a135780820151818401526020810190506139f8565b83811115613a22576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a44826139d9565b613a4e81856139e4565b9350613a5e8185602086016139f5565b613a6781613a28565b840191505092915050565b60006020820190508181036000830152613a8c8184613a39565b905092915050565b6000819050919050565b613aa781613a94565b8114613ab257600080fd5b50565b600081359050613ac481613a9e565b92915050565b600060208284031215613ae057613adf613914565b5b6000613aee84828501613ab5565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b2282613af7565b9050919050565b613b3281613b17565b82525050565b6000602082019050613b4d6000830184613b29565b92915050565b613b5c81613b17565b8114613b6757600080fd5b50565b600081359050613b7981613b53565b92915050565b60008060408385031215613b9657613b95613914565b5b6000613ba485828601613b6a565b9250506020613bb585828601613ab5565b9150509250929050565b613bc881613a94565b82525050565b6000602082019050613be36000830184613bbf565b92915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c2b82613a28565b810181811067ffffffffffffffff82111715613c4a57613c49613bf3565b5b80604052505050565b6000613c5d61390a565b9050613c698282613c22565b919050565b600067ffffffffffffffff821115613c8957613c88613bf3565b5b613c9282613a28565b9050602081019050919050565b82818337600083830152505050565b6000613cc1613cbc84613c6e565b613c53565b905082815260208101848484011115613cdd57613cdc613bee565b5b613ce8848285613c9f565b509392505050565b600082601f830112613d0557613d04613be9565b5b8135613d15848260208601613cae565b91505092915050565b600060208284031215613d3457613d33613914565b5b600082013567ffffffffffffffff811115613d5257613d51613919565b5b613d5e84828501613cf0565b91505092915050565b600080600060608486031215613d8057613d7f613914565b5b6000613d8e86828701613b6a565b9350506020613d9f86828701613b6a565b9250506040613db086828701613ab5565b9150509250925092565b6000819050919050565b613dcd81613dba565b82525050565b6000602082019050613de86000830184613dc4565b92915050565b600080fd5b600080fd5b60008083601f840112613e0e57613e0d613be9565b5b8235905067ffffffffffffffff811115613e2b57613e2a613dee565b5b602083019150836020820283011115613e4757613e46613df3565b5b9250929050565b60008060208385031215613e6557613e64613914565b5b600083013567ffffffffffffffff811115613e8357613e82613919565b5b613e8f85828601613df8565b92509250509250929050565b600067ffffffffffffffff821115613eb657613eb5613bf3565b5b602082029050602081019050919050565b6000613eda613ed584613e9b565b613c53565b90508083825260208201905060208402830185811115613efd57613efc613df3565b5b835b81811015613f265780613f128882613ab5565b845260208401935050602081019050613eff565b5050509392505050565b600082601f830112613f4557613f44613be9565b5b8135613f55848260208601613ec7565b91505092915050565b600060208284031215613f7457613f73613914565b5b600082013567ffffffffffffffff811115613f9257613f91613919565b5b613f9e84828501613f30565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b613fdc81613b17565b82525050565b600067ffffffffffffffff82169050919050565b613fff81613fe2565b82525050565b61400e816139a3565b82525050565b600062ffffff82169050919050565b61402c81614014565b82525050565b6080820160008201516140486000850182613fd3565b50602082015161405b6020850182613ff6565b50604082015161406e6040850182614005565b5060608201516140816060850182614023565b50505050565b60006140938383614032565b60808301905092915050565b6000602082019050919050565b60006140b782613fa7565b6140c18185613fb2565b93506140cc83613fc3565b8060005b838110156140fd5781516140e48882614087565b97506140ef8361409f565b9250506001810190506140d0565b5085935050505092915050565b6000602082019050818103600083015261412481846140ac565b905092915050565b60006020828403121561414257614141613914565b5b600061415084828501613b6a565b91505092915050565b61416281613dba565b811461416d57600080fd5b50565b60008135905061417f81614159565b92915050565b60006020828403121561419b5761419a613914565b5b60006141a984828501614170565b91505092915050565b600381106141bf57600080fd5b50565b6000813590506141d1816141b2565b92915050565b6000602082840312156141ed576141ec613914565b5b60006141fb848285016141c2565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61423981613a94565b82525050565b600061424b8383614230565b60208301905092915050565b6000602082019050919050565b600061426f82614204565b614279818561420f565b935061428483614220565b8060005b838110156142b557815161429c888261423f565b97506142a783614257565b925050600181019050614288565b5085935050505092915050565b600060208201905081810360008301526142dc8184614264565b905092915050565b6000806000606084860312156142fd576142fc613914565b5b600061430b86828701613b6a565b935050602061431c86828701613ab5565b925050604061432d86828701613ab5565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6003811061437757614376614337565b5b50565b600081905061438882614366565b919050565b60006143988261437a565b9050919050565b6143a88161438d565b82525050565b60006020820190506143c3600083018461439f565b92915050565b6143d2816139a3565b81146143dd57600080fd5b50565b6000813590506143ef816143c9565b92915050565b6000806040838503121561440c5761440b613914565b5b600061441a85828601613b6a565b925050602061442b858286016143e0565b9150509250929050565b600067ffffffffffffffff8211156144505761444f613bf3565b5b61445982613a28565b9050602081019050919050565b600061447961447484614435565b613c53565b90508281526020810184848401111561449557614494613bee565b5b6144a0848285613c9f565b509392505050565b600082601f8301126144bd576144bc613be9565b5b81356144cd848260208601614466565b91505092915050565b600080600080608085870312156144f0576144ef613914565b5b60006144fe87828801613b6a565b945050602061450f87828801613b6a565b935050604061452087828801613ab5565b925050606085013567ffffffffffffffff81111561454157614540613919565b5b61454d878288016144a8565b91505092959194509250565b60808201600082015161456f6000850182613fd3565b5060208201516145826020850182613ff6565b5060408201516145956040850182614005565b5060608201516145a86060850182614023565b50505050565b60006080820190506145c36000830184614559565b92915050565b6000602082840312156145df576145de613914565b5b60006145ed848285016143e0565b91505092915050565b6000806040838503121561460d5761460c613914565b5b600061461b85828601613b6a565b925050602061462c85828601613b6a565b9150509250929050565b6000806040838503121561464d5761464c613914565b5b600061465b85828601613ab5565b925050602061466c85828601613b6a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146bd57607f821691505b6020821081036146d0576146cf614676565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061470c6020836139e4565b9150614717826146d6565b602082019050919050565b6000602082019050818103600083015261473b816146ff565b9050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026147a47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614767565b6147ae8683614767565b95508019841693508086168417925050509392505050565b6000819050919050565b60006147eb6147e66147e184613a94565b6147c6565b613a94565b9050919050565b6000819050919050565b614805836147d0565b614819614811826147f2565b848454614774565b825550505050565b600090565b61482e614821565b6148398184846147fc565b505050565b5b8181101561485d57614852600082614826565b60018101905061483f565b5050565b601f8211156148a25761487381614742565b61487c84614757565b8101602085101561488b578190505b61489f61489785614757565b83018261483e565b50505b505050565b600082821c905092915050565b60006148c5600019846008026148a7565b1980831691505092915050565b60006148de83836148b4565b9150826002028217905092915050565b6148f7826139d9565b67ffffffffffffffff8111156149105761490f613bf3565b5b61491a82546146a5565b614925828285614861565b600060209050601f8311600181146149585760008415614946578287015190505b61495085826148d2565b8655506149b8565b601f19841661496686614742565b60005b8281101561498e57848901518255600182019150602085019450602081019050614969565b868310156149ab57848901516149a7601f8916826148b4565b8355505b6001600288020188555050505b505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006149fa82613a94565b9150614a0583613a94565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a3a57614a396149c0565b5b828201905092915050565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b6000614a7b6014836139e4565b9150614a8682614a45565b602082019050919050565b60006020820190508181036000830152614aaa81614a6e565b9050919050565b6000614abc82613a94565b9150614ac783613a94565b925082821015614ada57614ad96149c0565b5b828203905092915050565b7f496e76616c6964206d696e7420616d6f756e7421000000000000000000000000600082015250565b6000614b1b6014836139e4565b9150614b2682614ae5565b602082019050919050565b60006020820190508181036000830152614b4a81614b0e565b9050919050565b6000614b5c82613a94565b9150614b6783613a94565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ba057614b9f6149c0565b5b828202905092915050565b7f496e73756666696369656e742066756e64732100000000000000000000000000600082015250565b6000614be16013836139e4565b9150614bec82614bab565b602082019050919050565b60006020820190508181036000830152614c1081614bd4565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614c4d601f836139e4565b9150614c5882614c17565b602082019050919050565b60006020820190508181036000830152614c7c81614c40565b9050919050565b7f5468652077686974656c6973742073616c65206973206e6f742073746172746560008201527f6421000000000000000000000000000000000000000000000000000000000000602082015250565b6000614cdf6022836139e4565b9150614cea82614c83565b604082019050919050565b60006020820190508181036000830152614d0e81614cd2565b9050919050565b7f506c65617365206e6f20636f6e74726163740000000000000000000000000000600082015250565b6000614d4b6012836139e4565b9150614d5682614d15565b602082019050919050565b60006020820190508181036000830152614d7a81614d3e565b9050919050565b7f4164647265737320616c7265616479206d696e74656421000000000000000000600082015250565b6000614db76017836139e4565b9150614dc282614d81565b602082019050919050565b60006020820190508181036000830152614de681614daa565b9050919050565b60008160601b9050919050565b6000614e0582614ded565b9050919050565b6000614e1782614dfa565b9050919050565b614e2f614e2a82613b17565b614e0c565b82525050565b6000614e418284614e1e565b60148201915081905092915050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b6000614e86600e836139e4565b9150614e9182614e50565b602082019050919050565b60006020820190508181036000830152614eb581614e79565b9050919050565b600081905092915050565b50565b6000614ed7600083614ebc565b9150614ee282614ec7565b600082019050919050565b6000614ef882614eca565b9150819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f546865207075626c69632073616c65206973206e6f7420737461727465642100600082015250565b6000614f67601f836139e4565b9150614f7282614f31565b602082019050919050565b60006020820190508181036000830152614f9681614f5a565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614ff9602f836139e4565b915061500482614f9d565b604082019050919050565b6000602082019050818103600083015261502881614fec565b9050919050565b600081905092915050565b6000615045826139d9565b61504f818561502f565b935061505f8185602086016139f5565b80840191505092915050565b60008154615078816146a5565b615082818661502f565b9450600182166000811461509d57600181146150b2576150e5565b60ff19831686528115158202860193506150e5565b6150bb85614742565b60005b838110156150dd578154818901526001820191506020810190506150be565b838801955050505b50505092915050565b60006150fa828661503a565b9150615106828561503a565b9150615112828461506b565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061517b6026836139e4565b91506151868261511f565b604082019050919050565b600060208201905081810360008301526151aa8161516e565b9050919050565b600081519050919050565b600082825260208201905092915050565b60006151d8826151b1565b6151e281856151bc565b93506151f28185602086016139f5565b6151fb81613a28565b840191505092915050565b600060808201905061521b6000830187613b29565b6152286020830186613b29565b6152356040830185613bbf565b818103606083015261524781846151cd565b905095945050505050565b6000815190506152618161394a565b92915050565b60006020828403121561527d5761527c613914565b5b600061528b84828501615252565b91505092915050565b600061529f82613a94565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036152d1576152d06149c0565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061531682613a94565b915061532183613a94565b925082615331576153306152dc565b5b828204905092915050565b600061534782613a94565b915061535283613a94565b925082615362576153616152dc565b5b82820690509291505056fea26469706673582212209247b2f88b454efe79615597bbd15c0b7adac3091060ae00c2b222a0d520036c64736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d5635585553684c43486b47734a43364c36374c5276673976487744445748317270697359626335724c6251690000000000000000000000
-----Decoded View---------------
Arg [0] : _hiddenMetadataUri (string): ipfs://QmV5XUShLCHkGsJC6L67LRvg9vHwDDWH1rpisYbc5rLbQi
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [2] : 697066733a2f2f516d5635585553684c43486b47734a43364c36374c52766739
Arg [3] : 76487744445748317270697359626335724c6251690000000000000000000000
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.