Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
5,555 Asian Disappointments
Holders
2,073
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
3 Asian DisappointmentsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Ad
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /************************************************************************************************** ## ## ## ## ##:: ## ##:::::: ## ## ##:::: ##:::::::::: ## ##:: ## ##:::::::::::::::::- ## ##:::::: ## ##:::::::::: ##:::::- ## ##:::::: ## ##:::::::: ## ##:::- ## ##:::::::::: ## ##:::::: ## ##:::- ## ##:::::::::: ## ##:::::: ## ##:::- ## ##:::::::::::::: ## ##:::::: ## ##:::: ## ##:::::: ##:::::: ## ##:::::: ## ##:: ## ##:::::: ##:::::: ## ##:::::: ## ##:::- ## ##:::::: ##:::::: ## ##:::::: ## ##:::::: ## ##:::::::: ##:::::: ## ##:::::: ## ##:::: ## ##:::::: ## ##:::::::: ## ##:::::: ##:::::: ## ##:::::: ##:::::::::: ## ##:::::::::::: ## ##:::::::::::::::::: ## ##:::::::::::: ## ##:::::::::::::::::::: ## ##:::::::::: ## ##:::::::::: ## ##:::::: ## ##:::::::: ## ##:::::: ## ## ##:::: ## ##:::: ## ##:::::- ## ##:: ## ##:: ## ##:::::: ## ## ## ##:::: ## ##:::: ## ##:: ## ##:- ## ##:: ## ## ***************************************************************************************************/ import "@openzeppelin/contracts/access/Ownable.sol"; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./ERC721A/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract Ad is ERC721AQueryable, Ownable, ReentrancyGuard { using ECDSA for bytes32; enum Status { Pending, //0 PreSale, //1 PublicSale, //2 Finished, //3 PubPreSale //4 } Status private status; uint256 private priceWhite = 0.001 ether; uint256 private maxMintWhite = 1; uint256 private pricePublic = 0.001 ether; uint256 private maxMintPublic = 1; string private _uri; bytes32 private merkleRoot; uint256 private maxTotalSupply = 5555; uint256 private stageTotalSupply = 444; uint256 private curStageSupply = 444; // just view address private pubPureSaleSigner; mapping(address => uint256) mintStage1Counter; mapping(address => uint256) mintStage2Counter; mapping(address => uint256) mintStage3Counter; event PaymentReleased(address to, uint256 amount); constructor(string memory _tokenName, string memory _tokenSymbol) ERC721A(_tokenName, _tokenSymbol) {} function _baseURI() internal view override(ERC721A) returns (string memory) { return _uri; } function setURI(string memory _newUri) public virtual onlyOwner { _uri = _newUri; } function mint(uint256 amount) external payable { require(status == Status.PublicSale, "ADE006"); require(maxMintPublic >= amount, "ADE001"); require(mintStage3Counter[msg.sender] + amount <= maxMintPublic, "ADE008"); _verifiedPublicFee(amount); _verifiedSupply(amount); _safeMint(msg.sender, amount); mintStage3Counter[msg.sender] = mintStage3Counter[msg.sender] + amount; } function preSaleMint(uint256 amount, bytes32[] calldata _merkleProof) external payable { require(status == Status.PreSale, "ADE006"); require(verifyMerkle(_merkleProof), 'Invalid proof!'); require(maxMintWhite >= amount, "ADE001"); require(mintStage2Counter[msg.sender] + amount <= maxMintWhite, "ADE008"); _verifiedWhiteFee(amount); _verifiedSupply(amount); _safeMint(msg.sender, amount); mintStage2Counter[msg.sender] = mintStage2Counter[msg.sender] + amount; } function testSinger(string memory salt, bytes calldata signString) public view returns (address){ bytes32 hash = keccak256(abi.encode(salt, "cx", msg.sender)); address signerAddress = hash.toEthSignedMessageHash().recover(signString); return signerAddress; } function _verifySinger(string memory salt, bytes calldata signString) private view returns (bool){ bytes32 hash = keccak256(abi.encode(salt, "cx", msg.sender)); address signerAddress = hash.toEthSignedMessageHash().recover(signString); return signerAddress == pubPureSaleSigner; } function prePublicMint(uint256 amount, string calldata salt, bytes calldata signString) external payable { uint8 maxMint = 1; require(status == Status.PubPreSale, "ADE006"); require(_verifySinger(salt, signString), "Invalid proof!"); require(maxMint >= amount, "ADE001"); require(mintStage1Counter[msg.sender] + amount <= maxMint, "ADE008"); _safeMint(msg.sender, amount); mintStage1Counter[msg.sender] = mintStage1Counter[msg.sender] + amount; } function setPrePubSigner(address pubPreSigner) external onlyOwner { pubPureSaleSigner = pubPreSigner; } function _verifiedWhiteFee(uint256 num) private { require(num > 0, 'ADE011'); require(msg.value >= priceWhite * num, 'ADE002'); if (msg.value > priceWhite * num) { payable(msg.sender).transfer(msg.value - priceWhite * num); } } function _verifiedPublicFee(uint256 num) private { require(num > 0, 'ADE011'); require(msg.value >= pricePublic * num, 'ADE002'); if (msg.value > pricePublic * num) { payable(msg.sender).transfer(msg.value - pricePublic * num); } } function _verifiedSupply(uint256 num) private view { require(totalSupply() + num <= maxTotalSupply, "ADE003"); require(totalSupply() + num <= stageTotalSupply, "ADE012"); // require(tx.origin == msg.sender, "ADE007"); } function withdraw() public virtual nonReentrant onlyOwner { require(address(this).balance > 0, "ADE005"); Address.sendValue(payable(owner()), address(this).balance); emit PaymentReleased(owner(), address(this).balance); } function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } function verifyMerkle(bytes32[] calldata _merkleProof) public view returns (bool){ bytes32 leaf = keccak256(abi.encodePacked(_msgSender())); return MerkleProof.verify(_merkleProof, merkleRoot, leaf); } function setStatus(Status _status, uint256 _amount, uint256 _price, uint256 _stageTotalSupply, uint256 _stageSupply) public onlyOwner { status = _status; stageTotalSupply = _stageTotalSupply; if (status == Status.PreSale) { priceWhite = _price; maxMintWhite = _amount; } else { pricePublic = _price; maxMintPublic = _amount; } curStageSupply = _stageSupply; } function getStatus() public view returns (Status _status, uint256 _price, uint256 _amount, uint256 _stageTotalSupply, uint256 _maxTotalSupply, uint256 stageSupply) { if (status == Status.PreSale) { return (status, priceWhite, maxMintWhite, stageTotalSupply, maxTotalSupply, curStageSupply); } else { return (status, pricePublic, maxMintPublic, stageTotalSupply, maxTotalSupply, curStageSupply); } } function devMint() external onlyOwner { _verifiedSupply(1); _safeMint(msg.sender, 1); } function mintedStage() external view returns (uint256) { if (status == Status.PubPreSale) { return mintStage1Counter[msg.sender]; } else if (status == Status.PreSale) { return mintStage2Counter[msg.sender]; } else if (status == Status.PublicSale) { return mintStage3Counter[msg.sender]; } else { return _numberMinted(msg.sender); } } function mintedAll() external view returns (uint256) { return _numberMinted(msg.sender); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ 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` * - `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) 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 collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @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 virtual 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[] calldata tokenIds) external view virtual 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 virtual 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 collections should be fine). */ function tokensOfOwner(address owner) external view virtual 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 // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * 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(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @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](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.2 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Reference type for token approval. struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId]`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 0x80 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: 0x20 + 3 * 0x20 = 0x80. str := add(mload(0x40), 0x80) // Update the free memory pointer to allocate. mstore(0x40, str) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// 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 // 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; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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 (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); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","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":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"PaymentReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devMint","outputs":[],"stateMutability":"nonpayable","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":"getStatus","outputs":[{"internalType":"enum Ad.Status","name":"_status","type":"uint8"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_stageTotalSupply","type":"uint256"},{"internalType":"uint256","name":"_maxTotalSupply","type":"uint256"},{"internalType":"uint256","name":"stageSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintedAll","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintedStage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"salt","type":"string"},{"internalType":"bytes","name":"signString","type":"bytes"}],"name":"prePublicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pubPreSigner","type":"address"}],"name":"setPrePubSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum Ad.Status","name":"_status","type":"uint8"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_stageTotalSupply","type":"uint256"},{"internalType":"uint256","name":"_stageSupply","type":"uint256"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newUri","type":"string"}],"name":"setURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"salt","type":"string"},{"internalType":"bytes","name":"signString","type":"bytes"}],"name":"testSinger","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"verifyMerkle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405266038d7ea4c68000600b556001600c5566038d7ea4c68000600d556001600e556115b36011556101bc6012556101bc6013553480156200004357600080fd5b50604051620061623803806200616283398181016040528101906200006991906200033d565b818181600290816200007c91906200060d565b5080600390816200008e91906200060d565b506200009f620000d760201b60201c565b6000819055505050620000c7620000bb620000dc60201b60201c565b620000e460201b60201c565b60016009819055505050620006f4565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200021382620001c8565b810181811067ffffffffffffffff82111715620002355762000234620001d9565b5b80604052505050565b60006200024a620001aa565b905062000258828262000208565b919050565b600067ffffffffffffffff8211156200027b576200027a620001d9565b5b6200028682620001c8565b9050602081019050919050565b60005b83811015620002b357808201518184015260208101905062000296565b60008484015250505050565b6000620002d6620002d0846200025d565b6200023e565b905082815260208101848484011115620002f557620002f4620001c3565b5b6200030284828562000293565b509392505050565b600082601f830112620003225762000321620001be565b5b815162000334848260208601620002bf565b91505092915050565b60008060408385031215620003575762000356620001b4565b5b600083015167ffffffffffffffff811115620003785762000377620001b9565b5b62000386858286016200030a565b925050602083015167ffffffffffffffff811115620003aa57620003a9620001b9565b5b620003b8858286016200030a565b9150509250929050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200041557607f821691505b6020821081036200042b576200042a620003cd565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620004957fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000456565b620004a1868362000456565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b6000620004ee620004e8620004e284620004b9565b620004c3565b620004b9565b9050919050565b6000819050919050565b6200050a83620004cd565b620005226200051982620004f5565b84845462000463565b825550505050565b600090565b620005396200052a565b62000546818484620004ff565b505050565b5b818110156200056e57620005626000826200052f565b6001810190506200054c565b5050565b601f821115620005bd57620005878162000431565b620005928462000446565b81016020851015620005a2578190505b620005ba620005b18562000446565b8301826200054b565b50505b505050565b600082821c905092915050565b6000620005e260001984600802620005c2565b1980831691505092915050565b6000620005fd8383620005cf565b9150826002028217905092915050565b6200061882620003c2565b67ffffffffffffffff811115620006345762000633620001d9565b5b620006408254620003fc565b6200064d82828562000572565b600060209050601f83116001811462000685576000841562000670578287015190505b6200067c8582620005ef565b865550620006ec565b601f198416620006958662000431565b60005b82811015620006bf5784890151825560018201915060208501945060208101905062000698565b86831015620006df5784890151620006db601f891682620005cf565b8355505b6001600288020188555050505b505050505050565b615a5e80620007046000396000f3fe6080604052600436106102045760003560e01c80637c69e20711610118578063a0712d68116100a0578063c87b56dd1161006f578063c87b56dd14610741578063e985e9c51461077e578063eb824f60146107bb578063f2fde38b146107f8578063f446f2991461082157610204565b8063a0712d6814610696578063a22cb465146106b2578063b88d4fde146106db578063c23dc68f1461070457610204565b80638da5cb5b116100e75780638da5cb5b146105aa57806395d89b41146105d557806399a2557a146106005780639c2e4ff21461063d5780639fb8253c1461065957610204565b80637c69e207146105025780637cb64759146105195780638462151c146105425780638d059dcd1461057f57610204565b80632adcf5281161019b5780634e69d5601161016a5780634e69d560146104045780635bbb2177146104345780636352211e1461047157806370a08231146104ae578063715018a6146104eb57610204565b80632adcf5281461037f5780633ccfd60b146103a857806342842e0e146103bf5780634c220f6e146103e857610204565b8063095ea7b3116101d7578063095ea7b3146102d757806315d6de9a1461030057806318160ddd1461032b57806323b872dd1461035657610204565b806301ffc9a71461020957806302fe53051461024657806306fdde031461026f578063081812fc1461029a575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190613b4f565b61084a565b60405161023d9190613b97565b60405180910390f35b34801561025257600080fd5b5061026d60048036038101906102689190613cf8565b6108dc565b005b34801561027b57600080fd5b5061028461096b565b6040516102919190613dc0565b60405180910390f35b3480156102a657600080fd5b506102c160048036038101906102bc9190613e18565b6109fd565b6040516102ce9190613e86565b60405180910390f35b3480156102e357600080fd5b506102fe60048036038101906102f99190613ecd565b610a7c565b005b34801561030c57600080fd5b50610315610bc0565b6040516103229190613f1c565b60405180910390f35b34801561033757600080fd5b50610340610d56565b60405161034d9190613f1c565b60405180910390f35b34801561036257600080fd5b5061037d60048036038101906103789190613f37565b610d6d565b005b34801561038b57600080fd5b506103a660048036038101906103a19190613f8a565b61108f565b005b3480156103b457600080fd5b506103bd61114f565b005b3480156103cb57600080fd5b506103e660048036038101906103e19190613f37565b6112b6565b005b61040260048036038101906103fd9190614017565b6112d6565b005b34801561041057600080fd5b50610419611518565b60405161042b969594939291906140ee565b60405180910390f35b34801561044057600080fd5b5061045b600480360381019061045691906141a5565b6115c0565b6040516104689190614355565b60405180910390f35b34801561047d57600080fd5b5061049860048036038101906104939190613e18565b611683565b6040516104a59190613e86565b60405180910390f35b3480156104ba57600080fd5b506104d560048036038101906104d09190613f8a565b611695565b6040516104e29190613f1c565b60405180910390f35b3480156104f757600080fd5b5061050061174d565b005b34801561050e57600080fd5b506105176117d5565b005b34801561052557600080fd5b50610540600480360381019061053b91906143ad565b611868565b005b34801561054e57600080fd5b5061056960048036038101906105649190613f8a565b6118ee565b6040516105769190614498565b60405180910390f35b34801561058b57600080fd5b50610594611a31565b6040516105a19190613f1c565b60405180910390f35b3480156105b657600080fd5b506105bf611a41565b6040516105cc9190613e86565b60405180910390f35b3480156105e157600080fd5b506105ea611a6b565b6040516105f79190613dc0565b60405180910390f35b34801561060c57600080fd5b50610627600480360381019061062291906144ba565b611afd565b6040516106349190614498565b60405180910390f35b610657600480360381019061065291906145b9565b611d09565b005b34801561066557600080fd5b50610680600480360381019061067b919061464e565b611f88565b60405161068d9190613e86565b60405180910390f35b6106b060048036038101906106ab9190613e18565b612025565b005b3480156106be57600080fd5b506106d960048036038101906106d491906146f6565b61221c565b005b3480156106e757600080fd5b5061070260048036038101906106fd91906147d7565b612393565b005b34801561071057600080fd5b5061072b60048036038101906107269190613e18565b612406565b60405161073891906148af565b60405180910390f35b34801561074d57600080fd5b5061076860048036038101906107639190613e18565b612470565b6040516107759190613dc0565b60405180910390f35b34801561078a57600080fd5b506107a560048036038101906107a091906148ca565b61250e565b6040516107b29190613b97565b60405180910390f35b3480156107c757600080fd5b506107e260048036038101906107dd919061490a565b6125a2565b6040516107ef9190613b97565b60405180910390f35b34801561080457600080fd5b5061081f600480360381019061081a9190613f8a565b61262c565b005b34801561082d57600080fd5b506108486004803603810190610843919061497c565b612723565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108d55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6108e461283b565b73ffffffffffffffffffffffffffffffffffffffff16610902611a41565b73ffffffffffffffffffffffffffffffffffffffff1614610958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094f90614a43565b60405180910390fd5b80600f90816109679190614c6f565b5050565b60606002805461097a90614a92565b80601f01602080910402602001604051908101604052809291908181526020018280546109a690614a92565b80156109f35780601f106109c8576101008083540402835291602001916109f3565b820191906000526020600020905b8154815290600101906020018083116109d657829003601f168201915b5050505050905090565b6000610a0882612843565b610a3e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a8782611683565b90508073ffffffffffffffffffffffffffffffffffffffff16610aa86128a2565b73ffffffffffffffffffffffffffffffffffffffff1614610b0b57610ad481610acf6128a2565b61250e565b610b0a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600480811115610bd557610bd4614077565b5b600a60009054906101000a900460ff166004811115610bf757610bf6614077565b5b03610c4357601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610d53565b60016004811115610c5757610c56614077565b5b600a60009054906101000a900460ff166004811115610c7957610c78614077565b5b03610cc557601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610d53565b60026004811115610cd957610cd8614077565b5b600a60009054906101000a900460ff166004811115610cfb57610cfa614077565b5b03610d4757601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610d53565b610d50336128aa565b90505b90565b6000610d60612901565b6001546000540303905090565b6000610d7882612906565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ddf576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610deb846129d2565b91509150610e018187610dfc6128a2565b6129f9565b610e4d57610e1686610e116128a2565b61250e565b610e4c576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610eb3576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ec08686866001612a3d565b8015610ecb57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f9985610f75888887612a43565b7c020000000000000000000000000000000000000000000000000000000017612a6b565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361101f576000600185019050600060046000838152602001908152602001600020540361101d57600054811461101c578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110878686866001612a96565b505050505050565b61109761283b565b73ffffffffffffffffffffffffffffffffffffffff166110b5611a41565b73ffffffffffffffffffffffffffffffffffffffff161461110b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110290614a43565b60405180910390fd5b80601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260095403611194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118b90614d8d565b60405180910390fd5b60026009819055506111a461283b565b73ffffffffffffffffffffffffffffffffffffffff166111c2611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611218576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120f90614a43565b60405180910390fd5b6000471161125b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125290614df9565b60405180910390fd5b61126c611266611a41565b47612a9c565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056611295611a41565b476040516112a4929190614e19565b60405180910390a16001600981905550565b6112d183838360405180602001604052806000815250612393565b505050565b600160048111156112ea576112e9614077565b5b600a60009054906101000a900460ff16600481111561130c5761130b614077565b5b1461134c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134390614e8e565b60405180910390fd5b61135682826125a2565b611395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138c90614efa565b60405180910390fd5b82600c5410156113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d190614f66565b60405180910390fd5b600c5483601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114289190614fb5565b1115611469576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146090615035565b60405180910390fd5b61147283612b90565b61147b83612c9b565b6114853384612d4c565b82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114d09190614fb5565b601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b6000806000806000806001600481111561153557611534614077565b5b600a60009054906101000a900460ff16600481111561155757611556614077565b5b0361158c57600a60009054906101000a900460ff16600b54600c546012546011546013549550955095509550955095506115b8565b600a60009054906101000a900460ff16600d54600e546012546011546013549550955095509550955095505b909192939495565b6060600083839050905060008167ffffffffffffffff8111156115e6576115e5613bcd565b5b60405190808252806020026020018201604052801561161f57816020015b61160c613a94565b8152602001906001900390816116045790505b50905060005b8281146116775761164e86868381811061164257611641615055565b5b90506020020135612406565b82828151811061166157611660615055565b5b6020026020010181905250806001019050611625565b50809250505092915050565b600061168e82612906565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116fc576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61175561283b565b73ffffffffffffffffffffffffffffffffffffffff16611773611a41565b73ffffffffffffffffffffffffffffffffffffffff16146117c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c090614a43565b60405180910390fd5b6117d36000612d6a565b565b6117dd61283b565b73ffffffffffffffffffffffffffffffffffffffff166117fb611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611851576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184890614a43565b60405180910390fd5b61185b6001612c9b565b611866336001612d4c565b565b61187061283b565b73ffffffffffffffffffffffffffffffffffffffff1661188e611a41565b73ffffffffffffffffffffffffffffffffffffffff16146118e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118db90614a43565b60405180910390fd5b8060108190555050565b606060008060006118fe85611695565b905060008167ffffffffffffffff81111561191c5761191b613bcd565b5b60405190808252806020026020018201604052801561194a5781602001602082028036833780820191505090505b509050611955613a94565b600061195f612901565b90505b838614611a235761197281612e30565b91508160400151611a1857600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146119bd57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611a175780838780600101985081518110611a0a57611a09615055565b5b6020026020010181815250505b5b806001019050611962565b508195505050505050919050565b6000611a3c336128aa565b905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611a7a90614a92565b80601f0160208091040260200160405190810160405280929190818152602001828054611aa690614a92565b8015611af35780601f10611ac857610100808354040283529160200191611af3565b820191906000526020600020905b815481529060010190602001808311611ad657829003601f168201915b5050505050905090565b6060818310611b38576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611b43612e5b565b9050611b4d612901565b851015611b5f57611b5c612901565b94505b80841115611b6b578093505b6000611b7687611695565b905084861015611b99576000868603905081811015611b93578091505b50611b9e565b600090505b60008167ffffffffffffffff811115611bba57611bb9613bcd565b5b604051908082528060200260200182016040528015611be85781602001602082028036833780820191505090505b50905060008203611bff5780945050505050611d02565b6000611c0a88612406565b905060008160400151611c1f57816000015190505b60008990505b888114158015611c355750848714155b15611cf457611c4381612e30565b92508260400151611ce957600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611c8e57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ce85780848880600101995081518110611cdb57611cda615055565b5b6020026020010181815250505b5b806001019050611c25565b508583528296505050505050505b9392505050565b600060019050600480811115611d2257611d21614077565b5b600a60009054906101000a900460ff166004811115611d4457611d43614077565b5b14611d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7b90614e8e565b60405180910390fd5b611dd385858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508484612e64565b611e12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0990614efa565b60405180910390fd5b858160ff161015611e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4f90614f66565b60405180910390fd5b8060ff1686601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ea79190614fb5565b1115611ee8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611edf90615035565b60405180910390fd5b611ef23387612d4c565b85601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f3d9190614fb5565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050505050565b6000808433604051602001611f9e9291906150d0565b604051602081830303815290604052805190602001209050600061201785858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061200984612f51565b612f8190919063ffffffff16565b905080925050509392505050565b6002600481111561203957612038614077565b5b600a60009054906101000a900460ff16600481111561205b5761205a614077565b5b1461209b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209290614e8e565b60405180910390fd5b80600e5410156120e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d790614f66565b60405180910390fd5b600e5481601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461212e9190614fb5565b111561216f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216690615035565b60405180910390fd5b61217881612fa8565b61218181612c9b565b61218b3382612d4c565b80601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121d69190614fb5565b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b6122246128a2565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612288576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006122956128a2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123426128a2565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123879190613b97565b60405180910390a35050565b61239e848484610d6d565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612400576123c9848484846130b3565b6123ff576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61240e613a94565b612416613a94565b61241e612901565b831080612432575061242e612e5b565b8310155b15612440578091505061246b565b61244983612e30565b905080604001511561245e578091505061246b565b61246783613203565b9150505b919050565b606061247b82612843565b6124b1576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006124bb613223565b905060008151036124db5760405180602001604052806000815250612506565b806124e5846132b5565b6040516020016124f692919061514f565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000806125ad61283b565b6040516020016125bd91906151bb565b604051602081830303815290604052805190602001209050612623848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601054836132fc565b91505092915050565b61263461283b565b73ffffffffffffffffffffffffffffffffffffffff16612652611a41565b73ffffffffffffffffffffffffffffffffffffffff16146126a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269f90614a43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270e90615248565b60405180910390fd5b61272081612d6a565b50565b61272b61283b565b73ffffffffffffffffffffffffffffffffffffffff16612749611a41565b73ffffffffffffffffffffffffffffffffffffffff161461279f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279690614a43565b60405180910390fd5b84600a60006101000a81548160ff021916908360048111156127c4576127c3614077565b5b021790555081601281905550600160048111156127e4576127e3614077565b5b600a60009054906101000a900460ff16600481111561280657612805614077565b5b0361281e5782600b8190555083600c8190555061282d565b82600d8190555083600e819055505b806013819055505050505050565b600033905090565b60008161284e612901565b1115801561285d575060005482105b801561289b575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600090565b60008082905080612915612901565b1161299b5760005481101561299a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612998575b6000810361298e576004600083600190039350838152602001908152602001600020549050612964565b80925050506129cd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612a5a868684613313565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b80471015612adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad6906152b4565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612b0590615305565b60006040518083038185875af1925050503d8060008114612b42576040519150601f19603f3d011682016040523d82523d6000602084013e612b47565b606091505b5050905080612b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b829061538c565b60405180910390fd5b505050565b60008111612bd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bca906153f8565b60405180910390fd5b80600b54612be19190615418565b341015612c23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1a906154a6565b60405180910390fd5b80600b54612c319190615418565b341115612c98573373ffffffffffffffffffffffffffffffffffffffff166108fc82600b54612c609190615418565b34612c6b91906154c6565b9081150290604051600060405180830381858888f19350505050158015612c96573d6000803e3d6000fd5b505b50565b60115481612ca7610d56565b612cb19190614fb5565b1115612cf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce990615546565b60405180910390fd5b60125481612cfe610d56565b612d089190614fb5565b1115612d49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d40906155b2565b60405180910390fd5b50565b612d6682826040518060200160405280600081525061331c565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612e38613a94565b612e5460046000848152602001908152602001600020546133b9565b9050919050565b60008054905090565b6000808433604051602001612e7a9291906150d0565b6040516020818303038152906040528051906020012090506000612ef385858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612ee584612f51565b612f8190919063ffffffff16565b9050601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614925050509392505050565b600081604051602001612f64919061563f565b604051602081830303815290604052805190602001209050919050565b6000806000612f90858561346f565b91509150612f9d816134f0565b819250505092915050565b60008111612feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fe2906153f8565b60405180910390fd5b80600d54612ff99190615418565b34101561303b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613032906154a6565b60405180910390fd5b80600d546130499190615418565b3411156130b0573373ffffffffffffffffffffffffffffffffffffffff166108fc82600d546130789190615418565b3461308391906154c6565b9081150290604051600060405180830381858888f193505050501580156130ae573d6000803e3d6000fd5b505b50565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130d96128a2565b8786866040518563ffffffff1660e01b81526004016130fb94939291906156ba565b6020604051808303816000875af192505050801561313757506040513d601f19601f82011682018060405250810190613134919061571b565b60015b6131b0573d8060008114613167576040519150601f19603f3d011682016040523d82523d6000602084013e61316c565b606091505b5060008151036131a8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b61320b613a94565b61321c61321783612906565b6133b9565b9050919050565b6060600f805461323290614a92565b80601f016020809104026020016040519081016040528092919081815260200182805461325e90614a92565b80156132ab5780601f10613280576101008083540402835291602001916132ab565b820191906000526020600020905b81548152906001019060200180831161328e57829003601f168201915b5050505050905090565b606060806040510190508060405280825b6001156132e857600183039250600a81066030018353600a81049050806132c6575b508181036020830392508083525050919050565b60008261330985846136bc565b1490509392505050565b60009392505050565b613326838361376f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146133b457600080549050600083820390505b61336660008683806001019450866130b3565b61339c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106133535781600054146133b157600080fd5b50505b505050565b6133c1613a94565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008060418351036134b05760008060006020860151925060408601519150606086015160001a90506134a48782858561392a565b945094505050506134e9565b60408351036134e05760008060208501519150604085015190506134d5868383613a36565b9350935050506134e9565b60006002915091505b9250929050565b6000600481111561350457613503614077565b5b81600481111561351757613516614077565b5b03156136b9576001600481111561353157613530614077565b5b81600481111561354457613543614077565b5b03613584576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161357b90615794565b60405180910390fd5b6002600481111561359857613597614077565b5b8160048111156135ab576135aa614077565b5b036135eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135e290615800565b60405180910390fd5b600360048111156135ff576135fe614077565b5b81600481111561361257613611614077565b5b03613652576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364990615892565b60405180910390fd5b60048081111561366557613664614077565b5b81600481111561367857613677614077565b5b036136b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136af90615924565b60405180910390fd5b5b50565b60008082905060005b84518110156137645760008582815181106136e3576136e2615055565b5b60200260200101519050808311613724578281604051602001613707929190615944565b604051602081830303815290604052805190602001209250613750565b8083604051602001613737929190615944565b6040516020818303038152906040528051906020012092505b50808061375c90615970565b9150506136c5565b508091505092915050565b600080549050600082036137af576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6137bc6000848385612a3d565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613833836138246000866000612a43565b61382d85613a84565b17612a6b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146138d457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613899565b506000820361390f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506139256000848385612a96565b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613965576000600391509150613a2d565b601b8560ff161415801561397d5750601c8560ff1614155b1561398f576000600491509150613a2d565b6000600187878787604051600081526020016040526040516139b494939291906159e3565b6020604051602081039080840390855afa1580156139d6573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613a2457600060019250925050613a2d565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c019050613a768782888561392a565b935093505050935093915050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b2c81613af7565b8114613b3757600080fd5b50565b600081359050613b4981613b23565b92915050565b600060208284031215613b6557613b64613aed565b5b6000613b7384828501613b3a565b91505092915050565b60008115159050919050565b613b9181613b7c565b82525050565b6000602082019050613bac6000830184613b88565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c0582613bbc565b810181811067ffffffffffffffff82111715613c2457613c23613bcd565b5b80604052505050565b6000613c37613ae3565b9050613c438282613bfc565b919050565b600067ffffffffffffffff821115613c6357613c62613bcd565b5b613c6c82613bbc565b9050602081019050919050565b82818337600083830152505050565b6000613c9b613c9684613c48565b613c2d565b905082815260208101848484011115613cb757613cb6613bb7565b5b613cc2848285613c79565b509392505050565b600082601f830112613cdf57613cde613bb2565b5b8135613cef848260208601613c88565b91505092915050565b600060208284031215613d0e57613d0d613aed565b5b600082013567ffffffffffffffff811115613d2c57613d2b613af2565b5b613d3884828501613cca565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613d7b578082015181840152602081019050613d60565b60008484015250505050565b6000613d9282613d41565b613d9c8185613d4c565b9350613dac818560208601613d5d565b613db581613bbc565b840191505092915050565b60006020820190508181036000830152613dda8184613d87565b905092915050565b6000819050919050565b613df581613de2565b8114613e0057600080fd5b50565b600081359050613e1281613dec565b92915050565b600060208284031215613e2e57613e2d613aed565b5b6000613e3c84828501613e03565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e7082613e45565b9050919050565b613e8081613e65565b82525050565b6000602082019050613e9b6000830184613e77565b92915050565b613eaa81613e65565b8114613eb557600080fd5b50565b600081359050613ec781613ea1565b92915050565b60008060408385031215613ee457613ee3613aed565b5b6000613ef285828601613eb8565b9250506020613f0385828601613e03565b9150509250929050565b613f1681613de2565b82525050565b6000602082019050613f316000830184613f0d565b92915050565b600080600060608486031215613f5057613f4f613aed565b5b6000613f5e86828701613eb8565b9350506020613f6f86828701613eb8565b9250506040613f8086828701613e03565b9150509250925092565b600060208284031215613fa057613f9f613aed565b5b6000613fae84828501613eb8565b91505092915050565b600080fd5b600080fd5b60008083601f840112613fd757613fd6613bb2565b5b8235905067ffffffffffffffff811115613ff457613ff3613fb7565b5b6020830191508360208202830111156140105761400f613fbc565b5b9250929050565b6000806000604084860312156140305761402f613aed565b5b600061403e86828701613e03565b935050602084013567ffffffffffffffff81111561405f5761405e613af2565b5b61406b86828701613fc1565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600581106140b7576140b6614077565b5b50565b60008190506140c8826140a6565b919050565b60006140d8826140ba565b9050919050565b6140e8816140cd565b82525050565b600060c08201905061410360008301896140df565b6141106020830188613f0d565b61411d6040830187613f0d565b61412a6060830186613f0d565b6141376080830185613f0d565b61414460a0830184613f0d565b979650505050505050565b60008083601f84011261416557614164613bb2565b5b8235905067ffffffffffffffff81111561418257614181613fb7565b5b60208301915083602082028301111561419e5761419d613fbc565b5b9250929050565b600080602083850312156141bc576141bb613aed565b5b600083013567ffffffffffffffff8111156141da576141d9613af2565b5b6141e68582860161414f565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61422781613e65565b82525050565b600067ffffffffffffffff82169050919050565b61424a8161422d565b82525050565b61425981613b7c565b82525050565b600062ffffff82169050919050565b6142778161425f565b82525050565b608082016000820151614293600085018261421e565b5060208201516142a66020850182614241565b5060408201516142b96040850182614250565b5060608201516142cc606085018261426e565b50505050565b60006142de838361427d565b60808301905092915050565b6000602082019050919050565b6000614302826141f2565b61430c81856141fd565b93506143178361420e565b8060005b8381101561434857815161432f88826142d2565b975061433a836142ea565b92505060018101905061431b565b5085935050505092915050565b6000602082019050818103600083015261436f81846142f7565b905092915050565b6000819050919050565b61438a81614377565b811461439557600080fd5b50565b6000813590506143a781614381565b92915050565b6000602082840312156143c3576143c2613aed565b5b60006143d184828501614398565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61440f81613de2565b82525050565b60006144218383614406565b60208301905092915050565b6000602082019050919050565b6000614445826143da565b61444f81856143e5565b935061445a836143f6565b8060005b8381101561448b5781516144728882614415565b975061447d8361442d565b92505060018101905061445e565b5085935050505092915050565b600060208201905081810360008301526144b2818461443a565b905092915050565b6000806000606084860312156144d3576144d2613aed565b5b60006144e186828701613eb8565b93505060206144f286828701613e03565b925050604061450386828701613e03565b9150509250925092565b60008083601f84011261452357614522613bb2565b5b8235905067ffffffffffffffff8111156145405761453f613fb7565b5b60208301915083600182028301111561455c5761455b613fbc565b5b9250929050565b60008083601f84011261457957614578613bb2565b5b8235905067ffffffffffffffff81111561459657614595613fb7565b5b6020830191508360018202830111156145b2576145b1613fbc565b5b9250929050565b6000806000806000606086880312156145d5576145d4613aed565b5b60006145e388828901613e03565b955050602086013567ffffffffffffffff81111561460457614603613af2565b5b6146108882890161450d565b9450945050604086013567ffffffffffffffff81111561463357614632613af2565b5b61463f88828901614563565b92509250509295509295909350565b60008060006040848603121561466757614666613aed565b5b600084013567ffffffffffffffff81111561468557614684613af2565b5b61469186828701613cca565b935050602084013567ffffffffffffffff8111156146b2576146b1613af2565b5b6146be86828701614563565b92509250509250925092565b6146d381613b7c565b81146146de57600080fd5b50565b6000813590506146f0816146ca565b92915050565b6000806040838503121561470d5761470c613aed565b5b600061471b85828601613eb8565b925050602061472c858286016146e1565b9150509250929050565b600067ffffffffffffffff82111561475157614750613bcd565b5b61475a82613bbc565b9050602081019050919050565b600061477a61477584614736565b613c2d565b90508281526020810184848401111561479657614795613bb7565b5b6147a1848285613c79565b509392505050565b600082601f8301126147be576147bd613bb2565b5b81356147ce848260208601614767565b91505092915050565b600080600080608085870312156147f1576147f0613aed565b5b60006147ff87828801613eb8565b945050602061481087828801613eb8565b935050604061482187828801613e03565b925050606085013567ffffffffffffffff81111561484257614841613af2565b5b61484e878288016147a9565b91505092959194509250565b608082016000820151614870600085018261421e565b5060208201516148836020850182614241565b5060408201516148966040850182614250565b5060608201516148a9606085018261426e565b50505050565b60006080820190506148c4600083018461485a565b92915050565b600080604083850312156148e1576148e0613aed565b5b60006148ef85828601613eb8565b925050602061490085828601613eb8565b9150509250929050565b6000806020838503121561492157614920613aed565b5b600083013567ffffffffffffffff81111561493f5761493e613af2565b5b61494b85828601613fc1565b92509250509250929050565b6005811061496457600080fd5b50565b60008135905061497681614957565b92915050565b600080600080600060a0868803121561499857614997613aed565b5b60006149a688828901614967565b95505060206149b788828901613e03565b94505060406149c888828901613e03565b93505060606149d988828901613e03565b92505060806149ea88828901613e03565b9150509295509295909350565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a2d602083613d4c565b9150614a38826149f7565b602082019050919050565b60006020820190508181036000830152614a5c81614a20565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614aaa57607f821691505b602082108103614abd57614abc614a63565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614b257fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614ae8565b614b2f8683614ae8565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614b6c614b67614b6284613de2565b614b47565b613de2565b9050919050565b6000819050919050565b614b8683614b51565b614b9a614b9282614b73565b848454614af5565b825550505050565b600090565b614baf614ba2565b614bba818484614b7d565b505050565b5b81811015614bde57614bd3600082614ba7565b600181019050614bc0565b5050565b601f821115614c2357614bf481614ac3565b614bfd84614ad8565b81016020851015614c0c578190505b614c20614c1885614ad8565b830182614bbf565b50505b505050565b600082821c905092915050565b6000614c4660001984600802614c28565b1980831691505092915050565b6000614c5f8383614c35565b9150826002028217905092915050565b614c7882613d41565b67ffffffffffffffff811115614c9157614c90613bcd565b5b614c9b8254614a92565b614ca6828285614be2565b600060209050601f831160018114614cd95760008415614cc7578287015190505b614cd18582614c53565b865550614d39565b601f198416614ce786614ac3565b60005b82811015614d0f57848901518255600182019150602085019450602081019050614cea565b86831015614d2c5784890151614d28601f891682614c35565b8355505b6001600288020188555050505b505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614d77601f83613d4c565b9150614d8282614d41565b602082019050919050565b60006020820190508181036000830152614da681614d6a565b9050919050565b7f4144453030350000000000000000000000000000000000000000000000000000600082015250565b6000614de3600683613d4c565b9150614dee82614dad565b602082019050919050565b60006020820190508181036000830152614e1281614dd6565b9050919050565b6000604082019050614e2e6000830185613e77565b614e3b6020830184613f0d565b9392505050565b7f4144453030360000000000000000000000000000000000000000000000000000600082015250565b6000614e78600683613d4c565b9150614e8382614e42565b602082019050919050565b60006020820190508181036000830152614ea781614e6b565b9050919050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b6000614ee4600e83613d4c565b9150614eef82614eae565b602082019050919050565b60006020820190508181036000830152614f1381614ed7565b9050919050565b7f4144453030310000000000000000000000000000000000000000000000000000600082015250565b6000614f50600683613d4c565b9150614f5b82614f1a565b602082019050919050565b60006020820190508181036000830152614f7f81614f43565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614fc082613de2565b9150614fcb83613de2565b9250828201905080821115614fe357614fe2614f86565b5b92915050565b7f4144453030380000000000000000000000000000000000000000000000000000600082015250565b600061501f600683613d4c565b915061502a82614fe9565b602082019050919050565b6000602082019050818103600083015261504e81615012565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f6378000000000000000000000000000000000000000000000000000000000000600082015250565b60006150ba600283613d4c565b91506150c582615084565b602082019050919050565b600060608201905081810360008301526150ea8185613d87565b905081810360208301526150fd816150ad565b905061510c6040830184613e77565b9392505050565b600081905092915050565b600061512982613d41565b6151338185615113565b9350615143818560208601613d5d565b80840191505092915050565b600061515b828561511e565b9150615167828461511e565b91508190509392505050565b60008160601b9050919050565b600061518b82615173565b9050919050565b600061519d82615180565b9050919050565b6151b56151b082613e65565b615192565b82525050565b60006151c782846151a4565b60148201915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615232602683613d4c565b915061523d826151d6565b604082019050919050565b6000602082019050818103600083015261526181615225565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b600061529e601d83613d4c565b91506152a982615268565b602082019050919050565b600060208201905081810360008301526152cd81615291565b9050919050565b600081905092915050565b50565b60006152ef6000836152d4565b91506152fa826152df565b600082019050919050565b6000615310826152e2565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615376603a83613d4c565b91506153818261531a565b604082019050919050565b600060208201905081810360008301526153a581615369565b9050919050565b7f4144453031310000000000000000000000000000000000000000000000000000600082015250565b60006153e2600683613d4c565b91506153ed826153ac565b602082019050919050565b60006020820190508181036000830152615411816153d5565b9050919050565b600061542382613de2565b915061542e83613de2565b925082820261543c81613de2565b9150828204841483151761545357615452614f86565b5b5092915050565b7f4144453030320000000000000000000000000000000000000000000000000000600082015250565b6000615490600683613d4c565b915061549b8261545a565b602082019050919050565b600060208201905081810360008301526154bf81615483565b9050919050565b60006154d182613de2565b91506154dc83613de2565b92508282039050818111156154f4576154f3614f86565b5b92915050565b7f4144453030330000000000000000000000000000000000000000000000000000600082015250565b6000615530600683613d4c565b915061553b826154fa565b602082019050919050565b6000602082019050818103600083015261555f81615523565b9050919050565b7f4144453031320000000000000000000000000000000000000000000000000000600082015250565b600061559c600683613d4c565b91506155a782615566565b602082019050919050565b600060208201905081810360008301526155cb8161558f565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615608601c83615113565b9150615613826155d2565b601c82019050919050565b6000819050919050565b61563961563482614377565b61561e565b82525050565b600061564a826155fb565b91506156568284615628565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b600061568c82615665565b6156968185615670565b93506156a6818560208601613d5d565b6156af81613bbc565b840191505092915050565b60006080820190506156cf6000830187613e77565b6156dc6020830186613e77565b6156e96040830185613f0d565b81810360608301526156fb8184615681565b905095945050505050565b60008151905061571581613b23565b92915050565b60006020828403121561573157615730613aed565b5b600061573f84828501615706565b91505092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061577e601883613d4c565b915061578982615748565b602082019050919050565b600060208201905081810360008301526157ad81615771565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006157ea601f83613d4c565b91506157f5826157b4565b602082019050919050565b60006020820190508181036000830152615819816157dd565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061587c602283613d4c565b915061588782615820565b604082019050919050565b600060208201905081810360008301526158ab8161586f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061590e602283613d4c565b9150615919826158b2565b604082019050919050565b6000602082019050818103600083015261593d81615901565b9050919050565b60006159508285615628565b6020820191506159608284615628565b6020820191508190509392505050565b600061597b82613de2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036159ad576159ac614f86565b5b600182019050919050565b6159c181614377565b82525050565b600060ff82169050919050565b6159dd816159c7565b82525050565b60006080820190506159f860008301876159b8565b615a0560208301866159d4565b615a1260408301856159b8565b615a1f60608301846159b8565b9594505050505056fea26469706673582212206ae57930259838321055c8d096db4f883140bbf84db4cf986619053b0f05c0ff64736f6c6343000811003300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000541444e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015417369616e204469736170706f696e746d656e74730000000000000000000000
Deployed Bytecode
0x6080604052600436106102045760003560e01c80637c69e20711610118578063a0712d68116100a0578063c87b56dd1161006f578063c87b56dd14610741578063e985e9c51461077e578063eb824f60146107bb578063f2fde38b146107f8578063f446f2991461082157610204565b8063a0712d6814610696578063a22cb465146106b2578063b88d4fde146106db578063c23dc68f1461070457610204565b80638da5cb5b116100e75780638da5cb5b146105aa57806395d89b41146105d557806399a2557a146106005780639c2e4ff21461063d5780639fb8253c1461065957610204565b80637c69e207146105025780637cb64759146105195780638462151c146105425780638d059dcd1461057f57610204565b80632adcf5281161019b5780634e69d5601161016a5780634e69d560146104045780635bbb2177146104345780636352211e1461047157806370a08231146104ae578063715018a6146104eb57610204565b80632adcf5281461037f5780633ccfd60b146103a857806342842e0e146103bf5780634c220f6e146103e857610204565b8063095ea7b3116101d7578063095ea7b3146102d757806315d6de9a1461030057806318160ddd1461032b57806323b872dd1461035657610204565b806301ffc9a71461020957806302fe53051461024657806306fdde031461026f578063081812fc1461029a575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b9190613b4f565b61084a565b60405161023d9190613b97565b60405180910390f35b34801561025257600080fd5b5061026d60048036038101906102689190613cf8565b6108dc565b005b34801561027b57600080fd5b5061028461096b565b6040516102919190613dc0565b60405180910390f35b3480156102a657600080fd5b506102c160048036038101906102bc9190613e18565b6109fd565b6040516102ce9190613e86565b60405180910390f35b3480156102e357600080fd5b506102fe60048036038101906102f99190613ecd565b610a7c565b005b34801561030c57600080fd5b50610315610bc0565b6040516103229190613f1c565b60405180910390f35b34801561033757600080fd5b50610340610d56565b60405161034d9190613f1c565b60405180910390f35b34801561036257600080fd5b5061037d60048036038101906103789190613f37565b610d6d565b005b34801561038b57600080fd5b506103a660048036038101906103a19190613f8a565b61108f565b005b3480156103b457600080fd5b506103bd61114f565b005b3480156103cb57600080fd5b506103e660048036038101906103e19190613f37565b6112b6565b005b61040260048036038101906103fd9190614017565b6112d6565b005b34801561041057600080fd5b50610419611518565b60405161042b969594939291906140ee565b60405180910390f35b34801561044057600080fd5b5061045b600480360381019061045691906141a5565b6115c0565b6040516104689190614355565b60405180910390f35b34801561047d57600080fd5b5061049860048036038101906104939190613e18565b611683565b6040516104a59190613e86565b60405180910390f35b3480156104ba57600080fd5b506104d560048036038101906104d09190613f8a565b611695565b6040516104e29190613f1c565b60405180910390f35b3480156104f757600080fd5b5061050061174d565b005b34801561050e57600080fd5b506105176117d5565b005b34801561052557600080fd5b50610540600480360381019061053b91906143ad565b611868565b005b34801561054e57600080fd5b5061056960048036038101906105649190613f8a565b6118ee565b6040516105769190614498565b60405180910390f35b34801561058b57600080fd5b50610594611a31565b6040516105a19190613f1c565b60405180910390f35b3480156105b657600080fd5b506105bf611a41565b6040516105cc9190613e86565b60405180910390f35b3480156105e157600080fd5b506105ea611a6b565b6040516105f79190613dc0565b60405180910390f35b34801561060c57600080fd5b50610627600480360381019061062291906144ba565b611afd565b6040516106349190614498565b60405180910390f35b610657600480360381019061065291906145b9565b611d09565b005b34801561066557600080fd5b50610680600480360381019061067b919061464e565b611f88565b60405161068d9190613e86565b60405180910390f35b6106b060048036038101906106ab9190613e18565b612025565b005b3480156106be57600080fd5b506106d960048036038101906106d491906146f6565b61221c565b005b3480156106e757600080fd5b5061070260048036038101906106fd91906147d7565b612393565b005b34801561071057600080fd5b5061072b60048036038101906107269190613e18565b612406565b60405161073891906148af565b60405180910390f35b34801561074d57600080fd5b5061076860048036038101906107639190613e18565b612470565b6040516107759190613dc0565b60405180910390f35b34801561078a57600080fd5b506107a560048036038101906107a091906148ca565b61250e565b6040516107b29190613b97565b60405180910390f35b3480156107c757600080fd5b506107e260048036038101906107dd919061490a565b6125a2565b6040516107ef9190613b97565b60405180910390f35b34801561080457600080fd5b5061081f600480360381019061081a9190613f8a565b61262c565b005b34801561082d57600080fd5b506108486004803603810190610843919061497c565b612723565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108a557506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108d55750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6108e461283b565b73ffffffffffffffffffffffffffffffffffffffff16610902611a41565b73ffffffffffffffffffffffffffffffffffffffff1614610958576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161094f90614a43565b60405180910390fd5b80600f90816109679190614c6f565b5050565b60606002805461097a90614a92565b80601f01602080910402602001604051908101604052809291908181526020018280546109a690614a92565b80156109f35780601f106109c8576101008083540402835291602001916109f3565b820191906000526020600020905b8154815290600101906020018083116109d657829003601f168201915b5050505050905090565b6000610a0882612843565b610a3e576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a8782611683565b90508073ffffffffffffffffffffffffffffffffffffffff16610aa86128a2565b73ffffffffffffffffffffffffffffffffffffffff1614610b0b57610ad481610acf6128a2565b61250e565b610b0a576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000600480811115610bd557610bd4614077565b5b600a60009054906101000a900460ff166004811115610bf757610bf6614077565b5b03610c4357601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610d53565b60016004811115610c5757610c56614077565b5b600a60009054906101000a900460ff166004811115610c7957610c78614077565b5b03610cc557601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610d53565b60026004811115610cd957610cd8614077565b5b600a60009054906101000a900460ff166004811115610cfb57610cfa614077565b5b03610d4757601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050610d53565b610d50336128aa565b90505b90565b6000610d60612901565b6001546000540303905090565b6000610d7882612906565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ddf576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610deb846129d2565b91509150610e018187610dfc6128a2565b6129f9565b610e4d57610e1686610e116128a2565b61250e565b610e4c576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610eb3576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610ec08686866001612a3d565b8015610ecb57600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610f9985610f75888887612a43565b7c020000000000000000000000000000000000000000000000000000000017612a6b565b600460008681526020019081526020016000208190555060007c020000000000000000000000000000000000000000000000000000000084160361101f576000600185019050600060046000838152602001908152602001600020540361101d57600054811461101c578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46110878686866001612a96565b505050505050565b61109761283b565b73ffffffffffffffffffffffffffffffffffffffff166110b5611a41565b73ffffffffffffffffffffffffffffffffffffffff161461110b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161110290614a43565b60405180910390fd5b80601460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260095403611194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118b90614d8d565b60405180910390fd5b60026009819055506111a461283b565b73ffffffffffffffffffffffffffffffffffffffff166111c2611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611218576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120f90614a43565b60405180910390fd5b6000471161125b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125290614df9565b60405180910390fd5b61126c611266611a41565b47612a9c565b7fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056611295611a41565b476040516112a4929190614e19565b60405180910390a16001600981905550565b6112d183838360405180602001604052806000815250612393565b505050565b600160048111156112ea576112e9614077565b5b600a60009054906101000a900460ff16600481111561130c5761130b614077565b5b1461134c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134390614e8e565b60405180910390fd5b61135682826125a2565b611395576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138c90614efa565b60405180910390fd5b82600c5410156113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d190614f66565b60405180910390fd5b600c5483601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114289190614fb5565b1115611469576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146090615035565b60405180910390fd5b61147283612b90565b61147b83612c9b565b6114853384612d4c565b82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546114d09190614fb5565b601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b6000806000806000806001600481111561153557611534614077565b5b600a60009054906101000a900460ff16600481111561155757611556614077565b5b0361158c57600a60009054906101000a900460ff16600b54600c546012546011546013549550955095509550955095506115b8565b600a60009054906101000a900460ff16600d54600e546012546011546013549550955095509550955095505b909192939495565b6060600083839050905060008167ffffffffffffffff8111156115e6576115e5613bcd565b5b60405190808252806020026020018201604052801561161f57816020015b61160c613a94565b8152602001906001900390816116045790505b50905060005b8281146116775761164e86868381811061164257611641615055565b5b90506020020135612406565b82828151811061166157611660615055565b5b6020026020010181905250806001019050611625565b50809250505092915050565b600061168e82612906565b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036116fc576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61175561283b565b73ffffffffffffffffffffffffffffffffffffffff16611773611a41565b73ffffffffffffffffffffffffffffffffffffffff16146117c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c090614a43565b60405180910390fd5b6117d36000612d6a565b565b6117dd61283b565b73ffffffffffffffffffffffffffffffffffffffff166117fb611a41565b73ffffffffffffffffffffffffffffffffffffffff1614611851576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184890614a43565b60405180910390fd5b61185b6001612c9b565b611866336001612d4c565b565b61187061283b565b73ffffffffffffffffffffffffffffffffffffffff1661188e611a41565b73ffffffffffffffffffffffffffffffffffffffff16146118e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118db90614a43565b60405180910390fd5b8060108190555050565b606060008060006118fe85611695565b905060008167ffffffffffffffff81111561191c5761191b613bcd565b5b60405190808252806020026020018201604052801561194a5781602001602082028036833780820191505090505b509050611955613a94565b600061195f612901565b90505b838614611a235761197281612e30565b91508160400151611a1857600073ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146119bd57816000015194505b8773ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603611a175780838780600101985081518110611a0a57611a09615055565b5b6020026020010181815250505b5b806001019050611962565b508195505050505050919050565b6000611a3c336128aa565b905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611a7a90614a92565b80601f0160208091040260200160405190810160405280929190818152602001828054611aa690614a92565b8015611af35780601f10611ac857610100808354040283529160200191611af3565b820191906000526020600020905b815481529060010190602001808311611ad657829003601f168201915b5050505050905090565b6060818310611b38576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080611b43612e5b565b9050611b4d612901565b851015611b5f57611b5c612901565b94505b80841115611b6b578093505b6000611b7687611695565b905084861015611b99576000868603905081811015611b93578091505b50611b9e565b600090505b60008167ffffffffffffffff811115611bba57611bb9613bcd565b5b604051908082528060200260200182016040528015611be85781602001602082028036833780820191505090505b50905060008203611bff5780945050505050611d02565b6000611c0a88612406565b905060008160400151611c1f57816000015190505b60008990505b888114158015611c355750848714155b15611cf457611c4381612e30565b92508260400151611ce957600073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614611c8e57826000015191505b8a73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ce85780848880600101995081518110611cdb57611cda615055565b5b6020026020010181815250505b5b806001019050611c25565b508583528296505050505050505b9392505050565b600060019050600480811115611d2257611d21614077565b5b600a60009054906101000a900460ff166004811115611d4457611d43614077565b5b14611d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d7b90614e8e565b60405180910390fd5b611dd385858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508484612e64565b611e12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0990614efa565b60405180910390fd5b858160ff161015611e58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4f90614f66565b60405180910390fd5b8060ff1686601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ea79190614fb5565b1115611ee8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611edf90615035565b60405180910390fd5b611ef23387612d4c565b85601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611f3d9190614fb5565b601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050505050565b6000808433604051602001611f9e9291906150d0565b604051602081830303815290604052805190602001209050600061201785858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061200984612f51565b612f8190919063ffffffff16565b905080925050509392505050565b6002600481111561203957612038614077565b5b600a60009054906101000a900460ff16600481111561205b5761205a614077565b5b1461209b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209290614e8e565b60405180910390fd5b80600e5410156120e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120d790614f66565b60405180910390fd5b600e5481601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461212e9190614fb5565b111561216f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161216690615035565b60405180910390fd5b61217881612fa8565b61218181612c9b565b61218b3382612d4c565b80601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546121d69190614fb5565b601760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b6122246128a2565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612288576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006122956128a2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166123426128a2565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516123879190613b97565b60405180910390a35050565b61239e848484610d6d565b60008373ffffffffffffffffffffffffffffffffffffffff163b14612400576123c9848484846130b3565b6123ff576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b61240e613a94565b612416613a94565b61241e612901565b831080612432575061242e612e5b565b8310155b15612440578091505061246b565b61244983612e30565b905080604001511561245e578091505061246b565b61246783613203565b9150505b919050565b606061247b82612843565b6124b1576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006124bb613223565b905060008151036124db5760405180602001604052806000815250612506565b806124e5846132b5565b6040516020016124f692919061514f565b6040516020818303038152906040525b915050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6000806125ad61283b565b6040516020016125bd91906151bb565b604051602081830303815290604052805190602001209050612623848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050601054836132fc565b91505092915050565b61263461283b565b73ffffffffffffffffffffffffffffffffffffffff16612652611a41565b73ffffffffffffffffffffffffffffffffffffffff16146126a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269f90614a43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270e90615248565b60405180910390fd5b61272081612d6a565b50565b61272b61283b565b73ffffffffffffffffffffffffffffffffffffffff16612749611a41565b73ffffffffffffffffffffffffffffffffffffffff161461279f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279690614a43565b60405180910390fd5b84600a60006101000a81548160ff021916908360048111156127c4576127c3614077565b5b021790555081601281905550600160048111156127e4576127e3614077565b5b600a60009054906101000a900460ff16600481111561280657612805614077565b5b0361281e5782600b8190555083600c8190555061282d565b82600d8190555083600e819055505b806013819055505050505050565b600033905090565b60008161284e612901565b1115801561285d575060005482105b801561289b575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b600090565b60008082905080612915612901565b1161299b5760005481101561299a5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603612998575b6000810361298e576004600083600190039350838152602001908152602001600020549050612964565b80925050506129cd565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8612a5a868684613313565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b80471015612adf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ad6906152b4565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612b0590615305565b60006040518083038185875af1925050503d8060008114612b42576040519150601f19603f3d011682016040523d82523d6000602084013e612b47565b606091505b5050905080612b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b829061538c565b60405180910390fd5b505050565b60008111612bd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bca906153f8565b60405180910390fd5b80600b54612be19190615418565b341015612c23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1a906154a6565b60405180910390fd5b80600b54612c319190615418565b341115612c98573373ffffffffffffffffffffffffffffffffffffffff166108fc82600b54612c609190615418565b34612c6b91906154c6565b9081150290604051600060405180830381858888f19350505050158015612c96573d6000803e3d6000fd5b505b50565b60115481612ca7610d56565b612cb19190614fb5565b1115612cf2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce990615546565b60405180910390fd5b60125481612cfe610d56565b612d089190614fb5565b1115612d49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d40906155b2565b60405180910390fd5b50565b612d6682826040518060200160405280600081525061331c565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612e38613a94565b612e5460046000848152602001908152602001600020546133b9565b9050919050565b60008054905090565b6000808433604051602001612e7a9291906150d0565b6040516020818303038152906040528051906020012090506000612ef385858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612ee584612f51565b612f8190919063ffffffff16565b9050601460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614925050509392505050565b600081604051602001612f64919061563f565b604051602081830303815290604052805190602001209050919050565b6000806000612f90858561346f565b91509150612f9d816134f0565b819250505092915050565b60008111612feb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fe2906153f8565b60405180910390fd5b80600d54612ff99190615418565b34101561303b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613032906154a6565b60405180910390fd5b80600d546130499190615418565b3411156130b0573373ffffffffffffffffffffffffffffffffffffffff166108fc82600d546130789190615418565b3461308391906154c6565b9081150290604051600060405180830381858888f193505050501580156130ae573d6000803e3d6000fd5b505b50565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130d96128a2565b8786866040518563ffffffff1660e01b81526004016130fb94939291906156ba565b6020604051808303816000875af192505050801561313757506040513d601f19601f82011682018060405250810190613134919061571b565b60015b6131b0573d8060008114613167576040519150601f19603f3d011682016040523d82523d6000602084013e61316c565b606091505b5060008151036131a8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b61320b613a94565b61321c61321783612906565b6133b9565b9050919050565b6060600f805461323290614a92565b80601f016020809104026020016040519081016040528092919081815260200182805461325e90614a92565b80156132ab5780601f10613280576101008083540402835291602001916132ab565b820191906000526020600020905b81548152906001019060200180831161328e57829003601f168201915b5050505050905090565b606060806040510190508060405280825b6001156132e857600183039250600a81066030018353600a81049050806132c6575b508181036020830392508083525050919050565b60008261330985846136bc565b1490509392505050565b60009392505050565b613326838361376f565b60008373ffffffffffffffffffffffffffffffffffffffff163b146133b457600080549050600083820390505b61336660008683806001019450866130b3565b61339c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106133535781600054146133b157600080fd5b50505b505050565b6133c1613a94565b81816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060a082901c816020019067ffffffffffffffff16908167ffffffffffffffff168152505060007c01000000000000000000000000000000000000000000000000000000008316141581604001901515908115158152505060e882901c816060019062ffffff16908162ffffff1681525050919050565b60008060418351036134b05760008060006020860151925060408601519150606086015160001a90506134a48782858561392a565b945094505050506134e9565b60408351036134e05760008060208501519150604085015190506134d5868383613a36565b9350935050506134e9565b60006002915091505b9250929050565b6000600481111561350457613503614077565b5b81600481111561351757613516614077565b5b03156136b9576001600481111561353157613530614077565b5b81600481111561354457613543614077565b5b03613584576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161357b90615794565b60405180910390fd5b6002600481111561359857613597614077565b5b8160048111156135ab576135aa614077565b5b036135eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135e290615800565b60405180910390fd5b600360048111156135ff576135fe614077565b5b81600481111561361257613611614077565b5b03613652576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161364990615892565b60405180910390fd5b60048081111561366557613664614077565b5b81600481111561367857613677614077565b5b036136b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136af90615924565b60405180910390fd5b5b50565b60008082905060005b84518110156137645760008582815181106136e3576136e2615055565b5b60200260200101519050808311613724578281604051602001613707929190615944565b604051602081830303815290604052805190602001209250613750565b8083604051602001613737929190615944565b6040516020818303038152906040528051906020012092505b50808061375c90615970565b9150506136c5565b508091505092915050565b600080549050600082036137af576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6137bc6000848385612a3d565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550613833836138246000866000612a43565b61382d85613a84565b17612a6b565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b8181146138d457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613899565b506000820361390f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506139256000848385612a96565b505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613965576000600391509150613a2d565b601b8560ff161415801561397d5750601c8560ff1614155b1561398f576000600491509150613a2d565b6000600187878787604051600081526020016040526040516139b494939291906159e3565b6020604051602081039080840390855afa1580156139d6573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603613a2457600060019250925050613a2d565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c019050613a768782888561392a565b935093505050935093915050565b60006001821460e11b9050919050565b6040518060800160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff168152602001600015158152602001600062ffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613b2c81613af7565b8114613b3757600080fd5b50565b600081359050613b4981613b23565b92915050565b600060208284031215613b6557613b64613aed565b5b6000613b7384828501613b3a565b91505092915050565b60008115159050919050565b613b9181613b7c565b82525050565b6000602082019050613bac6000830184613b88565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613c0582613bbc565b810181811067ffffffffffffffff82111715613c2457613c23613bcd565b5b80604052505050565b6000613c37613ae3565b9050613c438282613bfc565b919050565b600067ffffffffffffffff821115613c6357613c62613bcd565b5b613c6c82613bbc565b9050602081019050919050565b82818337600083830152505050565b6000613c9b613c9684613c48565b613c2d565b905082815260208101848484011115613cb757613cb6613bb7565b5b613cc2848285613c79565b509392505050565b600082601f830112613cdf57613cde613bb2565b5b8135613cef848260208601613c88565b91505092915050565b600060208284031215613d0e57613d0d613aed565b5b600082013567ffffffffffffffff811115613d2c57613d2b613af2565b5b613d3884828501613cca565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613d7b578082015181840152602081019050613d60565b60008484015250505050565b6000613d9282613d41565b613d9c8185613d4c565b9350613dac818560208601613d5d565b613db581613bbc565b840191505092915050565b60006020820190508181036000830152613dda8184613d87565b905092915050565b6000819050919050565b613df581613de2565b8114613e0057600080fd5b50565b600081359050613e1281613dec565b92915050565b600060208284031215613e2e57613e2d613aed565b5b6000613e3c84828501613e03565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613e7082613e45565b9050919050565b613e8081613e65565b82525050565b6000602082019050613e9b6000830184613e77565b92915050565b613eaa81613e65565b8114613eb557600080fd5b50565b600081359050613ec781613ea1565b92915050565b60008060408385031215613ee457613ee3613aed565b5b6000613ef285828601613eb8565b9250506020613f0385828601613e03565b9150509250929050565b613f1681613de2565b82525050565b6000602082019050613f316000830184613f0d565b92915050565b600080600060608486031215613f5057613f4f613aed565b5b6000613f5e86828701613eb8565b9350506020613f6f86828701613eb8565b9250506040613f8086828701613e03565b9150509250925092565b600060208284031215613fa057613f9f613aed565b5b6000613fae84828501613eb8565b91505092915050565b600080fd5b600080fd5b60008083601f840112613fd757613fd6613bb2565b5b8235905067ffffffffffffffff811115613ff457613ff3613fb7565b5b6020830191508360208202830111156140105761400f613fbc565b5b9250929050565b6000806000604084860312156140305761402f613aed565b5b600061403e86828701613e03565b935050602084013567ffffffffffffffff81111561405f5761405e613af2565b5b61406b86828701613fc1565b92509250509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600581106140b7576140b6614077565b5b50565b60008190506140c8826140a6565b919050565b60006140d8826140ba565b9050919050565b6140e8816140cd565b82525050565b600060c08201905061410360008301896140df565b6141106020830188613f0d565b61411d6040830187613f0d565b61412a6060830186613f0d565b6141376080830185613f0d565b61414460a0830184613f0d565b979650505050505050565b60008083601f84011261416557614164613bb2565b5b8235905067ffffffffffffffff81111561418257614181613fb7565b5b60208301915083602082028301111561419e5761419d613fbc565b5b9250929050565b600080602083850312156141bc576141bb613aed565b5b600083013567ffffffffffffffff8111156141da576141d9613af2565b5b6141e68582860161414f565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61422781613e65565b82525050565b600067ffffffffffffffff82169050919050565b61424a8161422d565b82525050565b61425981613b7c565b82525050565b600062ffffff82169050919050565b6142778161425f565b82525050565b608082016000820151614293600085018261421e565b5060208201516142a66020850182614241565b5060408201516142b96040850182614250565b5060608201516142cc606085018261426e565b50505050565b60006142de838361427d565b60808301905092915050565b6000602082019050919050565b6000614302826141f2565b61430c81856141fd565b93506143178361420e565b8060005b8381101561434857815161432f88826142d2565b975061433a836142ea565b92505060018101905061431b565b5085935050505092915050565b6000602082019050818103600083015261436f81846142f7565b905092915050565b6000819050919050565b61438a81614377565b811461439557600080fd5b50565b6000813590506143a781614381565b92915050565b6000602082840312156143c3576143c2613aed565b5b60006143d184828501614398565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61440f81613de2565b82525050565b60006144218383614406565b60208301905092915050565b6000602082019050919050565b6000614445826143da565b61444f81856143e5565b935061445a836143f6565b8060005b8381101561448b5781516144728882614415565b975061447d8361442d565b92505060018101905061445e565b5085935050505092915050565b600060208201905081810360008301526144b2818461443a565b905092915050565b6000806000606084860312156144d3576144d2613aed565b5b60006144e186828701613eb8565b93505060206144f286828701613e03565b925050604061450386828701613e03565b9150509250925092565b60008083601f84011261452357614522613bb2565b5b8235905067ffffffffffffffff8111156145405761453f613fb7565b5b60208301915083600182028301111561455c5761455b613fbc565b5b9250929050565b60008083601f84011261457957614578613bb2565b5b8235905067ffffffffffffffff81111561459657614595613fb7565b5b6020830191508360018202830111156145b2576145b1613fbc565b5b9250929050565b6000806000806000606086880312156145d5576145d4613aed565b5b60006145e388828901613e03565b955050602086013567ffffffffffffffff81111561460457614603613af2565b5b6146108882890161450d565b9450945050604086013567ffffffffffffffff81111561463357614632613af2565b5b61463f88828901614563565b92509250509295509295909350565b60008060006040848603121561466757614666613aed565b5b600084013567ffffffffffffffff81111561468557614684613af2565b5b61469186828701613cca565b935050602084013567ffffffffffffffff8111156146b2576146b1613af2565b5b6146be86828701614563565b92509250509250925092565b6146d381613b7c565b81146146de57600080fd5b50565b6000813590506146f0816146ca565b92915050565b6000806040838503121561470d5761470c613aed565b5b600061471b85828601613eb8565b925050602061472c858286016146e1565b9150509250929050565b600067ffffffffffffffff82111561475157614750613bcd565b5b61475a82613bbc565b9050602081019050919050565b600061477a61477584614736565b613c2d565b90508281526020810184848401111561479657614795613bb7565b5b6147a1848285613c79565b509392505050565b600082601f8301126147be576147bd613bb2565b5b81356147ce848260208601614767565b91505092915050565b600080600080608085870312156147f1576147f0613aed565b5b60006147ff87828801613eb8565b945050602061481087828801613eb8565b935050604061482187828801613e03565b925050606085013567ffffffffffffffff81111561484257614841613af2565b5b61484e878288016147a9565b91505092959194509250565b608082016000820151614870600085018261421e565b5060208201516148836020850182614241565b5060408201516148966040850182614250565b5060608201516148a9606085018261426e565b50505050565b60006080820190506148c4600083018461485a565b92915050565b600080604083850312156148e1576148e0613aed565b5b60006148ef85828601613eb8565b925050602061490085828601613eb8565b9150509250929050565b6000806020838503121561492157614920613aed565b5b600083013567ffffffffffffffff81111561493f5761493e613af2565b5b61494b85828601613fc1565b92509250509250929050565b6005811061496457600080fd5b50565b60008135905061497681614957565b92915050565b600080600080600060a0868803121561499857614997613aed565b5b60006149a688828901614967565b95505060206149b788828901613e03565b94505060406149c888828901613e03565b93505060606149d988828901613e03565b92505060806149ea88828901613e03565b9150509295509295909350565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614a2d602083613d4c565b9150614a38826149f7565b602082019050919050565b60006020820190508181036000830152614a5c81614a20565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614aaa57607f821691505b602082108103614abd57614abc614a63565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302614b257fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614ae8565b614b2f8683614ae8565b95508019841693508086168417925050509392505050565b6000819050919050565b6000614b6c614b67614b6284613de2565b614b47565b613de2565b9050919050565b6000819050919050565b614b8683614b51565b614b9a614b9282614b73565b848454614af5565b825550505050565b600090565b614baf614ba2565b614bba818484614b7d565b505050565b5b81811015614bde57614bd3600082614ba7565b600181019050614bc0565b5050565b601f821115614c2357614bf481614ac3565b614bfd84614ad8565b81016020851015614c0c578190505b614c20614c1885614ad8565b830182614bbf565b50505b505050565b600082821c905092915050565b6000614c4660001984600802614c28565b1980831691505092915050565b6000614c5f8383614c35565b9150826002028217905092915050565b614c7882613d41565b67ffffffffffffffff811115614c9157614c90613bcd565b5b614c9b8254614a92565b614ca6828285614be2565b600060209050601f831160018114614cd95760008415614cc7578287015190505b614cd18582614c53565b865550614d39565b601f198416614ce786614ac3565b60005b82811015614d0f57848901518255600182019150602085019450602081019050614cea565b86831015614d2c5784890151614d28601f891682614c35565b8355505b6001600288020188555050505b505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000614d77601f83613d4c565b9150614d8282614d41565b602082019050919050565b60006020820190508181036000830152614da681614d6a565b9050919050565b7f4144453030350000000000000000000000000000000000000000000000000000600082015250565b6000614de3600683613d4c565b9150614dee82614dad565b602082019050919050565b60006020820190508181036000830152614e1281614dd6565b9050919050565b6000604082019050614e2e6000830185613e77565b614e3b6020830184613f0d565b9392505050565b7f4144453030360000000000000000000000000000000000000000000000000000600082015250565b6000614e78600683613d4c565b9150614e8382614e42565b602082019050919050565b60006020820190508181036000830152614ea781614e6b565b9050919050565b7f496e76616c69642070726f6f6621000000000000000000000000000000000000600082015250565b6000614ee4600e83613d4c565b9150614eef82614eae565b602082019050919050565b60006020820190508181036000830152614f1381614ed7565b9050919050565b7f4144453030310000000000000000000000000000000000000000000000000000600082015250565b6000614f50600683613d4c565b9150614f5b82614f1a565b602082019050919050565b60006020820190508181036000830152614f7f81614f43565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614fc082613de2565b9150614fcb83613de2565b9250828201905080821115614fe357614fe2614f86565b5b92915050565b7f4144453030380000000000000000000000000000000000000000000000000000600082015250565b600061501f600683613d4c565b915061502a82614fe9565b602082019050919050565b6000602082019050818103600083015261504e81615012565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f6378000000000000000000000000000000000000000000000000000000000000600082015250565b60006150ba600283613d4c565b91506150c582615084565b602082019050919050565b600060608201905081810360008301526150ea8185613d87565b905081810360208301526150fd816150ad565b905061510c6040830184613e77565b9392505050565b600081905092915050565b600061512982613d41565b6151338185615113565b9350615143818560208601613d5d565b80840191505092915050565b600061515b828561511e565b9150615167828461511e565b91508190509392505050565b60008160601b9050919050565b600061518b82615173565b9050919050565b600061519d82615180565b9050919050565b6151b56151b082613e65565b615192565b82525050565b60006151c782846151a4565b60148201915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000615232602683613d4c565b915061523d826151d6565b604082019050919050565b6000602082019050818103600083015261526181615225565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b600061529e601d83613d4c565b91506152a982615268565b602082019050919050565b600060208201905081810360008301526152cd81615291565b9050919050565b600081905092915050565b50565b60006152ef6000836152d4565b91506152fa826152df565b600082019050919050565b6000615310826152e2565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615376603a83613d4c565b91506153818261531a565b604082019050919050565b600060208201905081810360008301526153a581615369565b9050919050565b7f4144453031310000000000000000000000000000000000000000000000000000600082015250565b60006153e2600683613d4c565b91506153ed826153ac565b602082019050919050565b60006020820190508181036000830152615411816153d5565b9050919050565b600061542382613de2565b915061542e83613de2565b925082820261543c81613de2565b9150828204841483151761545357615452614f86565b5b5092915050565b7f4144453030320000000000000000000000000000000000000000000000000000600082015250565b6000615490600683613d4c565b915061549b8261545a565b602082019050919050565b600060208201905081810360008301526154bf81615483565b9050919050565b60006154d182613de2565b91506154dc83613de2565b92508282039050818111156154f4576154f3614f86565b5b92915050565b7f4144453030330000000000000000000000000000000000000000000000000000600082015250565b6000615530600683613d4c565b915061553b826154fa565b602082019050919050565b6000602082019050818103600083015261555f81615523565b9050919050565b7f4144453031320000000000000000000000000000000000000000000000000000600082015250565b600061559c600683613d4c565b91506155a782615566565b602082019050919050565b600060208201905081810360008301526155cb8161558f565b9050919050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b6000615608601c83615113565b9150615613826155d2565b601c82019050919050565b6000819050919050565b61563961563482614377565b61561e565b82525050565b600061564a826155fb565b91506156568284615628565b60208201915081905092915050565b600081519050919050565b600082825260208201905092915050565b600061568c82615665565b6156968185615670565b93506156a6818560208601613d5d565b6156af81613bbc565b840191505092915050565b60006080820190506156cf6000830187613e77565b6156dc6020830186613e77565b6156e96040830185613f0d565b81810360608301526156fb8184615681565b905095945050505050565b60008151905061571581613b23565b92915050565b60006020828403121561573157615730613aed565b5b600061573f84828501615706565b91505092915050565b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061577e601883613d4c565b915061578982615748565b602082019050919050565b600060208201905081810360008301526157ad81615771565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006157ea601f83613d4c565b91506157f5826157b4565b602082019050919050565b60006020820190508181036000830152615819816157dd565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061587c602283613d4c565b915061588782615820565b604082019050919050565b600060208201905081810360008301526158ab8161586f565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061590e602283613d4c565b9150615919826158b2565b604082019050919050565b6000602082019050818103600083015261593d81615901565b9050919050565b60006159508285615628565b6020820191506159608284615628565b6020820191508190509392505050565b600061597b82613de2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036159ad576159ac614f86565b5b600182019050919050565b6159c181614377565b82525050565b600060ff82169050919050565b6159dd816159c7565b82525050565b60006080820190506159f860008301876159b8565b615a0560208301866159d4565b615a1260408301856159b8565b615a1f60608301846159b8565b9594505050505056fea26469706673582212206ae57930259838321055c8d096db4f883140bbf84db4cf986619053b0f05c0ff64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000541444e46540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015417369616e204469736170706f696e746d656e74730000000000000000000000
-----Decoded View---------------
Arg [0] : _tokenName (string): ADNFT
Arg [1] : _tokenSymbol (string): Asian Disappointments
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [3] : 41444e4654000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [5] : 417369616e204469736170706f696e746d656e74730000000000000000000000
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.