Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 939 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 21050896 | 93 days ago | IN | 0 ETH | 0.0002514 | ||||
Set Approval For... | 20883556 | 116 days ago | IN | 0 ETH | 0.00030826 | ||||
Set Approval For... | 20330695 | 193 days ago | IN | 0 ETH | 0.00014461 | ||||
Set Approval For... | 17741732 | 556 days ago | IN | 0 ETH | 0.00155352 | ||||
Withdraw Money | 16863254 | 679 days ago | IN | 0 ETH | 0.00080856 | ||||
Set Approval For... | 16762624 | 694 days ago | IN | 0 ETH | 0.00107006 | ||||
Set Approval For... | 16526759 | 727 days ago | IN | 0 ETH | 0.00079946 | ||||
Set Approval For... | 16298473 | 759 days ago | IN | 0 ETH | 0.00082247 | ||||
Set Approval For... | 16165770 | 777 days ago | IN | 0 ETH | 0.00062939 | ||||
Set Approval For... | 15858654 | 820 days ago | IN | 0 ETH | 0.00036679 | ||||
Set Approval For... | 15851244 | 821 days ago | IN | 0 ETH | 0.00038867 | ||||
Lock Transfer Fr... | 15682151 | 845 days ago | IN | 0 ETH | 0.00584388 | ||||
Locks | 15682057 | 845 days ago | IN | 0 ETH | 0.0036672 | ||||
Lock Transfer Fr... | 15682043 | 845 days ago | IN | 0 ETH | 0.00424005 | ||||
Lock Transfer Fr... | 15682012 | 845 days ago | IN | 0 ETH | 0.00559038 | ||||
Locks | 15597386 | 857 days ago | IN | 0 ETH | 0.0005597 | ||||
Locks | 15597386 | 857 days ago | IN | 0 ETH | 0.0005597 | ||||
Set Approval For... | 15582287 | 859 days ago | IN | 0 ETH | 0.00039833 | ||||
Safe Transfer Fr... | 15475756 | 875 days ago | IN | 0 ETH | 0.00049466 | ||||
Safe Transfer Fr... | 15475754 | 875 days ago | IN | 0 ETH | 0.00029618 | ||||
Set Approval For... | 15475062 | 875 days ago | IN | 0 ETH | 0.00032883 | ||||
Set Approval For... | 15426360 | 883 days ago | IN | 0 ETH | 0.0003692 | ||||
Set Approval For... | 15325382 | 899 days ago | IN | 0 ETH | 0.00035157 | ||||
Set Approval For... | 15317614 | 900 days ago | IN | 0 ETH | 0.00084767 | ||||
Set Approval For... | 15308456 | 902 days ago | IN | 0 ETH | 0.00180405 |
Latest 9 internal transactions
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Akamir
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ERC721A.sol"; contract Akamir is Ownable, ERC721A, ReentrancyGuard { using Address for address; using Strings for uint256; uint256 public immutable maxPerAddressDuringMint; uint256 public immutable amountForDevs; uint256 public immutable amountForAuctionAndDev; uint256 public immutable collectionSize; uint256 private _revealLimit = 0; string private _notRevealedUri; string private _contractUri; string private _baseExtension = ".json"; uint32 private publicSaleKey; struct SaleConfig { uint32 auctionSaleStartTime; uint32 publicSaleStartTime; uint32 mintlistStartTime; uint256 auctionSaleStartPrice; uint256 auctionSaleEndPrice; uint32 auctionSaleLimit; uint32 auctionSaleDropCurve; uint32 auctionSaleDropInterval; uint256 mintlistPrice; uint256 publicPrice; uint32 saleLimit; uint32 discountInterval; uint32[] discountList; } SaleConfig public saleConfig; mapping(address => uint256) public allowlist; address[] allowers; constructor( uint256 maxBatchSize_, uint256 collectionSize_, uint256 amountForAuctionAndDev_, uint256 amountForDevs_ ) ERC721A("Akamir", "AKA") { maxPerAddressDuringMint = maxBatchSize_; amountForAuctionAndDev = amountForAuctionAndDev_; amountForDevs = amountForDevs_; collectionSize = collectionSize_; require(amountForAuctionAndDev_ <= collectionSize_, "larger collection size needed"); } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } function auctionMint(uint256 quantity, uint256 lockUntil) external payable callerIsUser { uint256 _saleStartTime = uint256(saleConfig.auctionSaleStartTime); uint256 _saleStartPrice = uint256(saleConfig.auctionSaleStartPrice); uint256 _saleLimit = uint256(saleConfig.saleLimit); uint256 _auctionSaleLimit = uint256(saleConfig.auctionSaleLimit); require( _saleLimit != 0 && _auctionSaleLimit != 0 && _saleStartTime != 0 && _saleStartPrice != 0 && block.timestamp >= _saleStartTime, "auction sale has not begun yet" ); require( totalSupply() + quantity <= amountForAuctionAndDev, "not enough remaining reserved for auction to support desired mint amount" ); require(numberMinted(msg.sender) + quantity <= maxPerAddressDuringMint, "can not mint this many"); require(totalSupply() + quantity <= _auctionSaleLimit, "cannot mint over sale limit"); uint256 price = getAuctionPrice(_saleStartTime); uint256 totalCost = (price - getDiscountPrice(price, lockUntil)) * quantity; _safeMint(msg.sender, quantity, lockUntil); refundIfOver(totalCost); } function allowlistMint(uint256 quantity, uint256 lockUntil) external payable callerIsUser { uint256 price = uint256(saleConfig.mintlistPrice); uint256 startTime = uint256(saleConfig.mintlistStartTime); uint256 saleLimit = uint256(saleConfig.saleLimit); require( saleLimit != 0 && price != 0 && startTime != 0 && block.timestamp > startTime, "allowlist sale has not begun yet" ); require(allowlist[msg.sender] > 0, "not eligible for allowlist mint"); require(numberMinted(msg.sender) + quantity <= maxPerAddressDuringMint, "can not mint this many"); require(totalSupply() + quantity <= collectionSize, "reached max supply"); require(totalSupply() + quantity <= saleLimit, "can not mint over sale limit"); uint256 totalCost = (price - getDiscountPrice(price, lockUntil)) * quantity; _safeMint(msg.sender, quantity, lockUntil); refundIfOver(totalCost); allowlist[msg.sender] -= quantity; } function publicSaleMint( uint256 quantity, uint256 lockUntil, uint256 callerPublicSaleKey ) external payable callerIsUser { SaleConfig memory config = saleConfig; uint256 publicSaleKey_ = uint256(publicSaleKey); uint256 publicPrice = uint256(config.publicPrice); uint256 publicSaleStartTime = uint256(config.publicSaleStartTime); uint256 saleLimit = uint256(config.saleLimit); require(publicSaleKey_ == callerPublicSaleKey, "called with incorrect public sale key"); require( isPublicSaleOn(publicPrice, publicSaleKey_, publicSaleStartTime, saleLimit), "public sale has not begun yet" ); require(totalSupply() + quantity <= collectionSize, "reached max supply"); require(numberMinted(msg.sender) + quantity <= maxPerAddressDuringMint, "can not mint this many"); require(totalSupply() + quantity <= saleLimit, "can not mint over sale limit"); uint256 totalCost = (publicPrice - getDiscountPrice(publicPrice, lockUntil)) * quantity; _safeMint(msg.sender, quantity, lockUntil); refundIfOver(totalCost); } function refundIfOver(uint256 price) private { require(msg.value >= price, "Need to send more ETH."); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } function isPublicSaleOn( uint256 publicPriceWei, uint256 publicSaleKey_, uint256 publicSaleStartTime, uint256 saleLimit ) public view returns (bool) { return publicPriceWei != 0 && publicSaleKey_ != 0 && saleLimit != 0 && publicSaleStartTime != 0 && block.timestamp >= publicSaleStartTime; } // 1 month is defined as 30 days. Because leap seconds cannot be computed in Solidity. uint32 ONE_MONTH = 30 days; function getDiscountPrice(uint256 price, uint256 lockUntil) public view returns (uint256) { if (lockUntil == 0 || saleConfig.discountList.length <= 1) return 0; uint32 DISCOUNT_INTERVAL = ONE_MONTH * saleConfig.discountInterval; uint32 i = saleConfig.discountInterval; unchecked { do { i--; require(i > 0, "does not match discountList and lockUntil"); uint32 monthInterval = ONE_MONTH * (saleConfig.discountInterval * i); if ( lockUntil == block.timestamp + monthInterval || (lockUntil < block.timestamp + monthInterval + 1 days && lockUntil > block.timestamp + monthInterval - 1 days) ) break; } while (i > 0); } uint32[] memory _discountList = saleConfig.discountList; uint32 discountIndex = uint32((lockUntil - block.timestamp) / DISCOUNT_INTERVAL); require(discountIndex <= _discountList.length, "can not over discountlist length"); return (price * _discountList[discountIndex]) / 100; } function getAuctionPrice(uint256 _saleStartTime) public view returns (uint256) { if (block.timestamp < _saleStartTime) { return saleConfig.auctionSaleStartPrice; } if (block.timestamp - _saleStartTime >= saleConfig.auctionSaleDropCurve) { return saleConfig.auctionSaleEndPrice; } else { uint256 steps = (block.timestamp - _saleStartTime) / saleConfig.auctionSaleDropInterval; uint256 dropPerStep = (saleConfig.auctionSaleStartPrice - saleConfig.auctionSaleEndPrice) / (saleConfig.auctionSaleDropCurve / saleConfig.auctionSaleDropInterval); return saleConfig.auctionSaleStartPrice - (steps * dropPerStep); } } function getSaleConfig() external view onlyOwner returns (SaleConfig memory) { return saleConfig; } function setAuctionSaleOptions( uint32 timestamp, uint256 startPrice, uint256 endPrice, uint32 saleLimit, uint32 dropCurve, uint32 dropInterval ) external onlyOwner { saleConfig.auctionSaleStartTime = timestamp; saleConfig.auctionSaleStartPrice = startPrice; saleConfig.auctionSaleEndPrice = endPrice; saleConfig.auctionSaleLimit = saleLimit; saleConfig.auctionSaleDropCurve = (dropCurve * 1 minutes); saleConfig.auctionSaleDropInterval = (dropInterval * 1 minutes); } function endAuctionAndSetupNonAuctionSaleInfo( uint256 mintlistPriceWei, uint256 publicPriceWei, uint32 mintlistStartTime, uint32 publicSaleStartTime ) external onlyOwner { saleConfig.auctionSaleStartTime = 0; saleConfig.auctionSaleStartPrice = 0; saleConfig.auctionSaleEndPrice = 0; saleConfig.publicPrice = publicPriceWei; saleConfig.mintlistPrice = mintlistPriceWei; saleConfig.mintlistStartTime = mintlistStartTime; saleConfig.publicSaleStartTime = publicSaleStartTime; } function endAuctionAndSetupMintlistSaleInfo(uint256 mintlistPriceWei, uint32 mintlistStartTime) external onlyOwner { saleConfig.auctionSaleStartTime = 0; saleConfig.auctionSaleStartPrice = 0; saleConfig.auctionSaleEndPrice = 0; saleConfig.mintlistPrice = mintlistPriceWei; saleConfig.mintlistStartTime = mintlistStartTime; } function endMintlistAndSetupPublicSaleInfo(uint256 publicPriceWei, uint32 publicSaleStartTime) external onlyOwner { saleConfig.mintlistPrice = 0; saleConfig.mintlistStartTime = 0; saleConfig.publicPrice = publicPriceWei; saleConfig.publicSaleStartTime = publicSaleStartTime; } function endSale() external onlyOwner { saleConfig.auctionSaleStartPrice = 0; saleConfig.auctionSaleStartTime = 0; saleConfig.mintlistPrice = 0; saleConfig.mintlistStartTime = 0; saleConfig.publicPrice = 0; saleConfig.publicSaleStartTime = 0; } function setSaleLimit(uint32 saleLimit) external onlyOwner { saleConfig.saleLimit = saleLimit; } uint32 ONE_YEAR_PER_MONTH = 12; function setDiscountlist(uint32[] memory discountList) external onlyOwner { require(discountList.length < ONE_YEAR_PER_MONTH, "can not over one year"); saleConfig.discountInterval = uint32(ONE_YEAR_PER_MONTH / discountList.length); saleConfig.discountList = discountList; } function setPublicSaleKey(uint32 key) external onlyOwner { publicSaleKey = key; } function seedAllowlist(address[] memory addresses, uint256[] memory numSlots) external onlyOwner { require(addresses.length == numSlots.length, "addresses does not match numSlots length"); for (uint256 i = 0; i < addresses.length; i++) { allowlist[addresses[i]] = numSlots[i]; allowers.push(addresses[i]); } } function clearAllowlist() external onlyOwner { for (uint256 i = 0; i < allowers.length; i++) { delete allowlist[allowers[i]]; } allowers = new address[](0); } // For marketing etc. function devMint(uint256 quantity, uint256 lockUntil) external onlyOwner { require(totalSupply() + quantity <= amountForDevs, "too many already minted before dev mint"); require(quantity % maxPerAddressDuringMint == 0, "can only mint a multiple of the maxBatchSize"); uint256 numChunks = quantity / maxPerAddressDuringMint; for (uint256 i = 0; i < numChunks; i++) { _safeMint(msg.sender, maxPerAddressDuringMint, lockUntil); } } function unlockToken(uint256 tokenId) external onlyOwner { unlock(tokenId); } // // metadata URI string private _baseTokenURI; function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function setRevealLimit(uint256 revealLimit) external onlyOwner { _revealLimit = uint32(revealLimit); } function withdrawMoney() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } // function setOwnersExplicit(uint256 quantity) external onlyOwner nonReentrant { // _setOwnersExplicit(quantity); // } function getRevealLimit() public view onlyOwner returns (uint256) { return _revealLimit; } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } function getOwnershipDatas(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory) { TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIds.length); unchecked { for (uint256 i = 0; i < tokenIds.length; i++) { ownerships[i] = ownershipOf(tokenIds[i]); } } return ownerships; } function notRevealedURI() public view returns (string memory) { return _notRevealedUri; } function contractURI() public view returns (string memory) { return _contractUri; } function setNotRevealedURI(string calldata notRevealedUri) external onlyOwner { _notRevealedUri = notRevealedUri; } function setContractURI(string calldata contractUri) external onlyOwner { _contractUri = contractUri; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); // if (_reveal == false) { // return _notRevealedUri; // } if (_revealLimit <= tokenId) { return _notRevealedUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), _baseExtension)) : ""; } function setBaseExtension(string memory _newBaseExtension) public onlyOwner { _baseExtension = _newBaseExtension; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error AuxQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); error TransferLockedToken(); error ApproveLockedToken(); error TokenAlreadyLocked(); error LockCallerNotOwnerNorApproved(); error LockUntilZero(); error LockNotUpperThanTwoYear(); error LockUntilMustBeUpperThanCurrentValue(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Add lock option for blocking transfers. uint64 lockUntil; // The number of the published token. uint64 tokenIndex; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _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 ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; mapping(uint256 => uint64) private _lockUntil; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); unchecked { for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert("ERC721A: unable to get token of owner by index"); } function tokensOfOwner(address owner) public view returns (TokenOwnership[] memory) { require(balanceOf(owner) != 0, "ERC721A: unable to get token of owner"); require(owner != address(0), "ERC721A: adress is zero"); uint256 numMintedSoFar = totalSupply(); uint256 idsIndex = 0; uint256 tokenNum = balanceOf(owner); TokenOwnership[] memory tokenOwnerships = new TokenOwnership[](tokenNum); unchecked { TokenOwnership memory prevOwnership; for (uint256 i = 0; i < numMintedSoFar; i++) { if (tokenNum == idsIndex) break; TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr == owner) { ownership.lockUntil = _lockUntil[i]; ownership.tokenIndex = uint64(i); tokenOwnerships[idsIndex] = ownership; idsIndex++; prevOwnership = ownership; } else if (ownership.addr != address(0) && ownership.addr != owner) prevOwnership = ownership; else if (ownership.addr == address(0) && prevOwnership.addr == owner) { tokenOwnerships[idsIndex].addr = prevOwnership.addr; tokenOwnerships[idsIndex].startTimestamp = prevOwnership.startTimestamp; tokenOwnerships[idsIndex].lockUntil = _lockUntil[i]; tokenOwnerships[idsIndex].tokenIndex = uint64(i); tokenOwnerships[idsIndex].burned = prevOwnership.burned; idsIndex++; } } } return tokenOwnerships; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { if (owner == address(0)) revert AuxQueryForZeroAddress(); return _addressData[owner].aux; } /** * Sets the auxillary 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 { if (owner == address(0)) revert AuxQueryForZeroAddress(); _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { ownership.lockUntil = _lockUntil[tokenId]; ownership.tokenIndex = uint64(tokenId); return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { ownership.lockUntil = _lockUntil[tokenId]; ownership.tokenIndex = uint64(tokenId); return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @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, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (_lockUntil[tokenId] > block.timestamp) revert ApproveLockedToken(); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint( address to, uint256 quantity, uint256 lockUntil ) internal { _safeMint(to, quantity, lockUntil, ""); } /** * @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. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, uint256 lockUntil, bytes memory _data ) internal { _mint(to, quantity, lockUntil, _data, true); } /** * @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. */ function _mint( address to, uint256 quantity, uint256 lockUntil, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); // _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { uint256 updatedIndex = startTokenId; _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); for (uint256 i; i < quantity; i++) { _lockUntil[updatedIndex] = uint64(lockUntil); emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = updatedIndex; } } uint256 TWO_YEAR = 2 * 365 days; function lockTransferFrom( address from, address to, uint256 tokenId, uint256 lockUntil ) public virtual { lockTransferFrom(from, to, tokenId, lockUntil, ""); } function lockTransferFromMany( address from, address to, uint256[] memory tokenIds, uint256 lockUntil ) public virtual { // 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. lockTransferFromMany(from, to, tokenIds, lockUntil, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function lockTransferFrom( address from, address to, uint256 tokenId, uint256 lockUntil, bytes memory _data ) public virtual { _lockTransfer(from, to, tokenId, lockUntil); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } function lockTransferFromMany( address from, address to, uint256[] memory tokenIds, uint256 lockUntil, bytes memory _data ) public virtual { for (uint64 i; i < tokenIds.length; i++) { _lockTransfer(from, to, tokenIds[i], lockUntil); if (!_checkOnERC721Received(from, to, tokenIds[i], _data)) { revert TransferToNonERC721ReceiverImplementer(); } } } function lock(uint256 tokenId, uint256 lockUntil) public { TokenOwnership memory ownership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == ownership.addr || isApprovedForAll(ownership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (lockUntil == 0) revert LockUntilZero(); if (!isApprovedOrOwner) revert LockCallerNotOwnerNorApproved(); if (lockUntil - block.timestamp >= TWO_YEAR) revert LockNotUpperThanTwoYear(); if (_lockUntil[tokenId] != 0 && lockUntil <= _lockUntil[tokenId]) revert LockUntilMustBeUpperThanCurrentValue(); if (_lockUntil[tokenId] != 0 && lockUntil - _lockUntil[tokenId] >= TWO_YEAR) revert LockNotUpperThanTwoYear(); _lock(tokenId, lockUntil); } function locks(uint256[] memory tokenIds, uint256 lockUntil) public { if (lockUntil == 0) revert LockUntilZero(); unchecked { for (uint256 i; i < tokenIds.length; i++) { TokenOwnership memory ownership = ownershipOf(tokenIds[i]); bool isApprovedOrOwner = (_msgSender() == ownership.addr || isApprovedForAll(ownership.addr, _msgSender()) || getApproved(tokenIds[i]) == _msgSender()); if (!isApprovedOrOwner) revert LockCallerNotOwnerNorApproved(); if (_lockUntil[tokenIds[i]] != 0 && lockUntil <= _lockUntil[tokenIds[i]]) revert LockUntilMustBeUpperThanCurrentValue(); if (_lockUntil[tokenIds[i]] != 0 && lockUntil - _lockUntil[tokenIds[i]] > TWO_YEAR) revert LockNotUpperThanTwoYear(); } _locks(tokenIds, lockUntil); // _locks(tokenIds, lockUntil); } } function unlock(uint256 tokenId) internal { _unlock(tokenId); } function _lock(uint256 tokenId, uint256 lockUntil) private { _lockUntil[tokenId] = uint64(lockUntil); } function _locks(uint256[] memory tokenIds, uint256 lockUntil) private { unchecked { for (uint256 i; i < tokenIds.length; i++) _lockUntil[tokenIds[i]] = uint64(lockUntil); } } function _unlock(uint256 tokenId) private { _lockUntil[tokenId] = uint64(0); } function _lockTransfer( address from, address to, uint256 tokenId, uint256 lockUntil ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if(lockUntil == 0) revert LockUntilZero(); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); if (_lockUntil[tokenId]!= 0 && block.timestamp <= _lockUntil[tokenId]) revert TransferLockedToken(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; _lockUntil[tokenId] = uint64(lockUntil); _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); if (_lockUntil[tokenId] != 0 && block.timestamp <= _lockUntil[tokenId]) revert TransferLockedToken(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // 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 { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @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 {} }
// 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 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @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 ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"maxBatchSize_","type":"uint256"},{"internalType":"uint256","name":"collectionSize_","type":"uint256"},{"internalType":"uint256","name":"amountForAuctionAndDev_","type":"uint256"},{"internalType":"uint256","name":"amountForDevs_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveLockedToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"LockCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"LockNotUpperThanTwoYear","type":"error"},{"inputs":[],"name":"LockUntilMustBeUpperThanCurrentValue","type":"error"},{"inputs":[],"name":"LockUntilZero","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintedQueryForZeroAddress","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferLockedToken","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlist","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"lockUntil","type":"uint256"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"amountForAuctionAndDev","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountForDevs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"lockUntil","type":"uint256"}],"name":"auctionMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clearAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"lockUntil","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintlistPriceWei","type":"uint256"},{"internalType":"uint32","name":"mintlistStartTime","type":"uint32"}],"name":"endAuctionAndSetupMintlistSaleInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintlistPriceWei","type":"uint256"},{"internalType":"uint256","name":"publicPriceWei","type":"uint256"},{"internalType":"uint32","name":"mintlistStartTime","type":"uint32"},{"internalType":"uint32","name":"publicSaleStartTime","type":"uint32"}],"name":"endAuctionAndSetupNonAuctionSaleInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"publicPriceWei","type":"uint256"},{"internalType":"uint32","name":"publicSaleStartTime","type":"uint32"}],"name":"endMintlistAndSetupPublicSaleInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_saleStartTime","type":"uint256"}],"name":"getAuctionPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"lockUntil","type":"uint256"}],"name":"getDiscountPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"lockUntil","type":"uint64"},{"internalType":"uint64","name":"tokenIndex","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"getOwnershipDatas","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"lockUntil","type":"uint64"},{"internalType":"uint64","name":"tokenIndex","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRevealLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleConfig","outputs":[{"components":[{"internalType":"uint32","name":"auctionSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"publicSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"mintlistStartTime","type":"uint32"},{"internalType":"uint256","name":"auctionSaleStartPrice","type":"uint256"},{"internalType":"uint256","name":"auctionSaleEndPrice","type":"uint256"},{"internalType":"uint32","name":"auctionSaleLimit","type":"uint32"},{"internalType":"uint32","name":"auctionSaleDropCurve","type":"uint32"},{"internalType":"uint32","name":"auctionSaleDropInterval","type":"uint32"},{"internalType":"uint256","name":"mintlistPrice","type":"uint256"},{"internalType":"uint256","name":"publicPrice","type":"uint256"},{"internalType":"uint32","name":"saleLimit","type":"uint32"},{"internalType":"uint32","name":"discountInterval","type":"uint32"},{"internalType":"uint32[]","name":"discountList","type":"uint32[]"}],"internalType":"struct Akamir.SaleConfig","name":"","type":"tuple"}],"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":"publicPriceWei","type":"uint256"},{"internalType":"uint256","name":"publicSaleKey_","type":"uint256"},{"internalType":"uint256","name":"publicSaleStartTime","type":"uint256"},{"internalType":"uint256","name":"saleLimit","type":"uint256"}],"name":"isPublicSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"lockUntil","type":"uint256"}],"name":"lock","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":"uint256","name":"lockUntil","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"lockTransferFrom","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":"uint256","name":"lockUntil","type":"uint256"}],"name":"lockTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"lockUntil","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"lockTransferFromMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"lockUntil","type":"uint256"}],"name":"lockTransferFromMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"uint256","name":"lockUntil","type":"uint256"}],"name":"locks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxPerAddressDuringMint","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":"notRevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"quantity","type":"uint256"},{"internalType":"uint256","name":"lockUntil","type":"uint256"},{"internalType":"uint256","name":"callerPublicSaleKey","type":"uint256"}],"name":"publicSaleMint","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":[],"name":"saleConfig","outputs":[{"internalType":"uint32","name":"auctionSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"publicSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"mintlistStartTime","type":"uint32"},{"internalType":"uint256","name":"auctionSaleStartPrice","type":"uint256"},{"internalType":"uint256","name":"auctionSaleEndPrice","type":"uint256"},{"internalType":"uint32","name":"auctionSaleLimit","type":"uint32"},{"internalType":"uint32","name":"auctionSaleDropCurve","type":"uint32"},{"internalType":"uint32","name":"auctionSaleDropInterval","type":"uint32"},{"internalType":"uint256","name":"mintlistPrice","type":"uint256"},{"internalType":"uint256","name":"publicPrice","type":"uint256"},{"internalType":"uint32","name":"saleLimit","type":"uint32"},{"internalType":"uint32","name":"discountInterval","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"},{"internalType":"uint256[]","name":"numSlots","type":"uint256[]"}],"name":"seedAllowlist","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":"uint32","name":"timestamp","type":"uint32"},{"internalType":"uint256","name":"startPrice","type":"uint256"},{"internalType":"uint256","name":"endPrice","type":"uint256"},{"internalType":"uint32","name":"saleLimit","type":"uint32"},{"internalType":"uint32","name":"dropCurve","type":"uint32"},{"internalType":"uint32","name":"dropInterval","type":"uint32"}],"name":"setAuctionSaleOptions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"contractUri","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"discountList","type":"uint32[]"}],"name":"setDiscountlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"notRevealedUri","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"key","type":"uint32"}],"name":"setPublicSaleKey","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"revealLimit","type":"uint256"}],"name":"setRevealLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"saleLimit","type":"uint32"}],"name":"setSaleLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"uint64","name":"lockUntil","type":"uint64"},{"internalType":"uint64","name":"tokenIndex","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct ERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"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":"uint256","name":"tokenId","type":"uint256"}],"name":"unlockToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6303c26700600a556000600c55610140604052600561010081905264173539b7b760d91b6101209081526200003891600f9190620001cf565b50601b80546001600160401b031916640c00278d001790553480156200005d57600080fd5b5060405162005ca338038062005ca3833981016040819052620000809162000275565b6040518060400160405280600681526020016520b5b0b6b4b960d11b81525060405180604001604052806003815260200162414b4160e81b815250620000d5620000cf6200017b60201b60201c565b6200017f565b8151620000ea906003906020850190620001cf565b50805162000100906004906020840190620001cf565b50506001600b5550608084905260c082905260a081905260e083905282821115620001715760405162461bcd60e51b815260206004820152601d60248201527f6c617267657220636f6c6c656374696f6e2073697a65206e6565646564000000604482015260640160405180910390fd5b50505050620002e8565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001dd90620002ab565b90600052602060002090601f0160209004810192826200020157600085556200024c565b82601f106200021c57805160ff19168380011785556200024c565b828001600101855582156200024c579182015b828111156200024c5782518255916020019190600101906200022f565b506200025a9291506200025e565b5090565b5b808211156200025a57600081556001016200025f565b600080600080608085870312156200028b578384fd5b505082516020840151604085015160609095015191969095509092509050565b600181811c90821680620002c057607f821691505b60208210811415620002e257634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161593b6200036860003960008181610620015281816116900152611f310152600081816106b40152611041015260008181610c860152612dad0152600081816107fa015281816111140152818161171701528181611eae01528181612e5d01528181612efc0152612f34015261593b6000f3fe6080604052600436106103b85760003560e01c80638462151c116101f2578063b88d4fde1161010d578063e8a3d485116100a0578063f2c4ce1e1161006f578063f2c4ce1e14610c14578063f2fde38b14610c34578063fa8e0c8714610c54578063fbe1aa5114610c7457600080fd5b8063e8a3d48514610b76578063e985e9c514610b8b578063eeed522e14610bd4578063efd9634414610bf457600080fd5b8063d4506cb7116100dc578063d4506cb714610af6578063da3ef23f14610b16578063dc33e68114610b36578063dd2e0ac014610b5657600080fd5b8063b88d4fde14610a74578063bb8d7a9314610a94578063c87b56dd14610ab4578063cea943ee14610ad457600080fd5b8063938e3d7b11610185578063a5b985a211610154578063a5b985a2146109f2578063a7cd52cb14610a12578063ac44600214610a3f578063b05863d514610a5457600080fd5b8063938e3d7b1461097d57806395d89b411461099d5780639c7a963b146109b2578063a22cb465146109d257600080fd5b806390028083116101c1578063900280831461083a57806390aa0b0f1461085a578063917d009e146109305780639231ab2a1461095057600080fd5b80638462151c146107b357806384f38de4146107d35780638bc35c2f146107e85780638da5cb5b1461081c57600080fd5b8063380d831b116102e25780635ae1d01e116102755780636ee35c74116102445780636ee35c741461074957806370a0823114610769578063715018a614610789578063722503801461079e57600080fd5b80635ae1d01e146106d65780635ee2d5b6146106e95780635ef3d662146107095780636352211e1461072957600080fd5b80634f6ccce7116102b15780634f6ccce714610642578063533e5ff31461066257806355f804b3146106825780635666c880146106a257600080fd5b8063380d831b146105ac57806340514cb2146105c157806342842e0e146105ee57806345c0f5331461060e57600080fd5b806310634b4e1161035a5780631bf8434b116103295780631bf8434b1461053757806323b872dd146105575780632d5a249a146105775780632f745c591461058c57600080fd5b806310634b4e146104c15780631338736f146104e157806317d9bf4b1461050157806318160ddd1461051457600080fd5b8063081812fc11610396578063081812fc14610436578063095ea7b31461046e5780630bf039e31461048e5780630c96d38e146104ae57600080fd5b806301ffc9a7146103bd57806303ca08da146103f257806306fdde0314610414575b600080fd5b3480156103c957600080fd5b506103dd6103d836600461510d565b610ca8565b60405190151581526020015b60405180910390f35b3480156103fe57600080fd5b5061041261040d366004614e7b565b610cfa565b005b34801561042057600080fd5b50610429610d36565b6040516103e99190615564565b34801561044257600080fd5b506104566104513660046151f6565b610dc8565b6040516001600160a01b0390911681526020016103e9565b34801561047a57600080fd5b50610412610489366004614f17565b610e0c565b34801561049a57600080fd5b506104126104a93660046152d0565b610ed5565b6104126104bc36600461520e565b610f5a565b3480156104cd57600080fd5b506103dd6104dc36600461525a565b61124a565b3480156104ed57600080fd5b506104126104fc36600461520e565b611287565b61041261050f36600461522f565b611435565b34801561052057600080fd5b50600254600154035b6040519081526020016103e9565b34801561054357600080fd5b50610412610552366004614d0f565b611841565b34801561056357600080fd5b50610412610572366004614d9a565b611905565b34801561058357600080fd5b50610529611910565b34801561059857600080fd5b506105296105a7366004614f17565b611960565b3480156105b857600080fd5b50610412611b0f565b3480156105cd57600080fd5b506105e16105dc366004615000565b611b82565b6040516103e991906154db565b3480156105fa57600080fd5b50610412610609366004614d9a565b611c7f565b34801561061a57600080fd5b506105297f000000000000000000000000000000000000000000000000000000000000000081565b34801561064e57600080fd5b5061052961065d3660046151f6565b611c9a565b34801561066e57600080fd5b5061041261067d366004614e3a565b611d07565b34801561068e57600080fd5b5061041261069d366004615145565b611d23565b3480156106ae57600080fd5b506105297f000000000000000000000000000000000000000000000000000000000000000081565b6104126106e436600461520e565b611d77565b3480156106f557600080fd5b5061052961070436600461520e565b612080565b34801561071557600080fd5b5061041261072436600461530c565b612317565b34801561073557600080fd5b506104566107443660046151f6565b612402565b34801561075557600080fd5b506104126107643660046152d0565b612414565b34801561077557600080fd5b50610529610784366004614c60565b612498565b34801561079557600080fd5b506104126124e6565b3480156107aa57600080fd5b5061042961253a565b3480156107bf57600080fd5b506105e16107ce366004614c60565b612549565b3480156107df57600080fd5b506104126129cd565b3480156107f457600080fd5b506105297f000000000000000000000000000000000000000000000000000000000000000081565b34801561082857600080fd5b506000546001600160a01b0316610456565b34801561084657600080fd5b506104126108553660046152f2565b612a9f565b34801561086657600080fd5b506011546012546013546014546015546016546017546108c39663ffffffff80821697640100000000808404831698600160401b94859004841698929790968385169683850486169690940485169491939092818316929104168c565b6040805163ffffffff9d8e1681529b8d1660208d0152998c16998b019990995260608a0197909752608089019590955292881660a088015290871660c0870152861660e08601526101008501526101208401528316610140830152909116610160820152610180016103e9565b34801561093c57600080fd5b5061052961094b3660046151f6565b612b03565b34801561095c57600080fd5b5061097061096b3660046151f6565b612bd2565b6040516103e99190615677565b34801561098957600080fd5b50610412610998366004615145565b612c06565b3480156109a957600080fd5b50610429612c5a565b3480156109be57600080fd5b506104126109cd3660046152f2565b612c69565b3480156109de57600080fd5b506104126109ed366004614edd565b612ccd565b3480156109fe57600080fd5b50610412610a0d36600461520e565b612d63565b348015610a1e57600080fd5b50610529610a2d366004614c60565b60196020526000908152604090205481565b348015610a4b57600080fd5b50610412612f6b565b348015610a6057600080fd5b50610412610a6f366004614f40565b6130ab565b348015610a8057600080fd5b50610412610a8f366004614dd5565b61325d565b348015610aa057600080fd5b50610412610aaf366004614cac565b613291565b348015610ac057600080fd5b50610429610acf3660046151f6565b6132ad565b348015610ae057600080fd5b50610ae9613424565b6040516103e99190615577565b348015610b0257600080fd5b50610412610b11366004615032565b6135eb565b348015610b2257600080fd5b50610412610b313660046151b1565b613865565b348015610b4257600080fd5b50610529610b51366004614c60565b6138c0565b348015610b6257600080fd5b50610412610b713660046151f6565b6138cb565b348015610b8257600080fd5b50610429613932565b348015610b9757600080fd5b506103dd610ba6366004614c7a565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610be057600080fd5b50610412610bef3660046151f6565b613941565b348015610c0057600080fd5b50610412610c0f36600461528b565b613994565b348015610c2057600080fd5b50610412610c2f366004615145565b613a34565b348015610c4057600080fd5b50610412610c4f366004614c60565b613a88565b348015610c6057600080fd5b50610412610c6f366004615074565b613b55565b348015610c8057600080fd5b506105297f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b031982166380ac58cd60e01b1480610cd957506001600160e01b03198216635b5e139f60e01b145b80610cf457506301ffc9a760e01b6001600160e01b03198316145b92915050565b610d0685858585613c55565b610d1285858584613ef3565b610d2f576040516368d2bf6b60e11b815260040160405180910390fd5b5050505050565b606060038054610d45906157fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610d71906157fc565b8015610dbe5780601f10610d9357610100808354040283529160200191610dbe565b820191906000526020600020905b815481529060010190602001808311610da157829003601f168201915b5050505050905090565b6000610dd382613ffe565b610df0576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610e1782612402565b600083815260066020526040902054909150426001600160401b039091161115610e545760405163f0f4a84f60e01b815260040160405180910390fd5b806001600160a01b0316836001600160a01b03161415610e875760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ea75750610ea58133610ba6565b155b15610ec5576040516367d9dca160e11b815260040160405180910390fd5b610ed083838361402d565b505050565b6000546001600160a01b03163314610f225760405162461bcd60e51b815260206004820181905260248201526000805160206158e683398151915260448201526064015b60405180910390fd5b60006015556011805460169390935563ffffffff91909116640100000000026bffffffffffffffff0000000019909216919091179055565b323314610fa95760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610f19565b60115460125460175460145463ffffffff9384169391821691168115801590610fd157508015155b8015610fdc57508315155b8015610fe757508215155b8015610ff35750834210155b61103f5760405162461bcd60e51b815260206004820152601e60248201527f61756374696f6e2073616c6520686173206e6f7420626567756e2079657400006044820152606401610f19565b7f00000000000000000000000000000000000000000000000000000000000000008661106e6002546001540390565b611078919061571f565b11156111125760405162461bcd60e51b815260206004820152604860248201527f6e6f7420656e6f7567682072656d61696e696e6720726573657276656420666f60448201527f722061756374696f6e20746f20737570706f72742064657369726564206d696e60648201527f7420616d6f756e74000000000000000000000000000000000000000000000000608482015260a401610f19565b7f00000000000000000000000000000000000000000000000000000000000000008661113d336138c0565b611147919061571f565b11156111955760405162461bcd60e51b815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610f19565b80866111a46002546001540390565b6111ae919061571f565b11156111fc5760405162461bcd60e51b815260206004820152601b60248201527f63616e6e6f74206d696e74206f7665722073616c65206c696d697400000000006044820152606401610f19565b600061120785612b03565b90506000876112168389612080565b61122090846157b9565b61122a919061576e565b9050611237338989614089565b611240816140a4565b5050505050505050565b6000841580159061125a57508315155b801561126557508115155b801561127057508215155b801561127c5750824210155b90505b949350505050565b600061129283614132565b80519091506000906001600160a01b0316336001600160a01b031614806112c0575081516112c09033610ba6565b806112db5750336112d085610dc8565b6001600160a01b0316145b9050826112fb5760405163667deab360e11b815260040160405180910390fd5b8061131957604051637f3e961560e01b815260040160405180910390fd5b600a5461132642856157b9565b106113445760405163047f868760e11b815260040160405180910390fd5b6000848152600660205260409020546001600160401b03161580159061138157506000848152600660205260409020546001600160401b03168311155b1561139f576040516324bf808560e21b815260040160405180910390fd5b6000848152600660205260409020546001600160401b0316158015906113e85750600a546000858152600660205260409020546113e5906001600160401b0316856157b9565b10155b156114065760405163047f868760e11b815260040160405180910390fd5b6000848152600660205260409020805467ffffffffffffffff19166001600160401b0385161790555b50505050565b3233146114845760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610f19565b604080516101a0810182526011805463ffffffff80821684526401000000008083048216602080870191909152600160401b938490048316868801526012546060870152601354608087015260145480841660a0880152828104841660c088015293909304821660e08601526015546101008601526016546101208601526017548083166101408701520416610160840152601880548551818402810184019096528086526000956101808601939092919083018282801561159157602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116115545790505b505050919092525050601054610120830151602084015161014085015194955063ffffffff92831694919350821691168584146116365760405162461bcd60e51b815260206004820152602560248201527f63616c6c6564207769746820696e636f7272656374207075626c69632073616c60448201527f65206b65790000000000000000000000000000000000000000000000000000006064820152608401610f19565b6116428385848461124a565b61168e5760405162461bcd60e51b815260206004820152601d60248201527f7075626c69632073616c6520686173206e6f7420626567756e207965740000006044820152606401610f19565b7f0000000000000000000000000000000000000000000000000000000000000000886116bd6002546001540390565b6116c7919061571f565b11156117155760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610f19565b7f000000000000000000000000000000000000000000000000000000000000000088611740336138c0565b61174a919061571f565b11156117985760405162461bcd60e51b815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610f19565b80886117a76002546001540390565b6117b1919061571f565b11156117ff5760405162461bcd60e51b815260206004820152601c60248201527f63616e206e6f74206d696e74206f7665722073616c65206c696d6974000000006044820152606401610f19565b60008861180c858a612080565b61181690866157b9565b611820919061576e565b905061182d338a8a614089565b611836816140a4565b505050505050505050565b60005b8351816001600160401b031610156118fd57611892868686846001600160401b03168151811061188457634e487b7160e01b600052603260045260246000fd5b602002602001015186613c55565b6118ce868686846001600160401b0316815181106118c057634e487b7160e01b600052603260045260246000fd5b602002602001015185613ef3565b6118eb576040516368d2bf6b60e11b815260040160405180910390fd5b806118f581615852565b915050611844565b505050505050565b610ed08383836142f4565b600080546001600160a01b031633146119595760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b50600c5490565b600061196b83612498565b82106119c45760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610f19565b60006119d36002546001540390565b905060008060005b83811015611aa057600081815260056020908152604091829020825160a08101845281546001600160a01b038116808352600160a01b9091046001600160401b039081169483019490945260019092015480841694820194909452600160401b84049092166060830152600160801b90920460ff16151560808201529015611a6257805192505b876001600160a01b0316836001600160a01b03161415611a975786841415611a9057509350610cf492505050565b6001909301925b506001016119db565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610f19565b6000546001600160a01b03163314611b575760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b600060128190556011805460158390556016929092556bffffffffffffffffffffffff199091169055565b6060600082516001600160401b03811115611bad57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611c0657816020015b6040805160a081018252600080825260208083018290529282018190526060820181905260808201528252600019909201910181611bcb5790505b50905060005b8351811015611c7857611c45848281518110611c3857634e487b7160e01b600052603260045260246000fd5b6020026020010151614132565b828281518110611c6557634e487b7160e01b600052603260045260246000fd5b6020908102919091010152600101611c0c565b5092915050565b610ed08383836040518060200160405280600081525061325d565b6000611ca96002546001540390565b8210611d035760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610f19565b5090565b61142f8484848460405180602001604052806000815250610cfa565b6000546001600160a01b03163314611d6b5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b610ed0601c838361494c565b323314611dc65760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610f19565b60155460115460175463ffffffff600160401b909204821691168015801590611dee57508215155b8015611df957508115155b8015611e0457508142115b611e505760405162461bcd60e51b815260206004820181905260248201527f616c6c6f776c6973742073616c6520686173206e6f7420626567756e207965746044820152606401610f19565b33600090815260196020526040902054611eac5760405162461bcd60e51b815260206004820152601f60248201527f6e6f7420656c696769626c6520666f7220616c6c6f776c697374206d696e74006044820152606401610f19565b7f000000000000000000000000000000000000000000000000000000000000000085611ed7336138c0565b611ee1919061571f565b1115611f2f5760405162461bcd60e51b815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610f19565b7f000000000000000000000000000000000000000000000000000000000000000085611f5e6002546001540390565b611f68919061571f565b1115611fb65760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610f19565b8085611fc56002546001540390565b611fcf919061571f565b111561201d5760405162461bcd60e51b815260206004820152601c60248201527f63616e206e6f74206d696e74206f7665722073616c65206c696d6974000000006044820152606401610f19565b60008561202a8587612080565b61203490866157b9565b61203e919061576e565b905061204b338787614089565b612054816140a4565b33600090815260196020526040812080548892906120739084906157b9565b9091555050505050505050565b60008115806120925750601854600110155b1561209f57506000610cf4565b601754601b546000916120c39163ffffffff6401000000009092048216911661578d565b601754909150640100000000900463ffffffff165b6000190163ffffffff81166121555760405162461bcd60e51b815260206004820152602960248201527f646f6573206e6f74206d6174636820646973636f756e744c69737420616e642060448201527f6c6f636b556e74696c00000000000000000000000000000000000000000000006064820152608401610f19565b601754601b5463ffffffff90811664010000000090920481168302919091029042908216018514806121aa57508063ffffffff1642016201518001851080156121aa5750620151808163ffffffff1642010385115b156121b557506121c5565b5060008163ffffffff16116120d8575b6000601160070180548060200260200160405190810160405280929190818152602001828054801561224257602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116122055790505b5050505050905060008363ffffffff16428761225e91906157b9565b6122689190615737565b905081518163ffffffff1611156122c15760405162461bcd60e51b815260206004820181905260248201527f63616e206e6f74206f76657220646973636f756e746c697374206c656e6774686044820152606401610f19565b6064828263ffffffff16815181106122e957634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff1688612302919061576e565b61230c9190615737565b979650505050505050565b6000546001600160a01b0316331461235f5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6011805463ffffffff80891663ffffffff199283161790925560128790556013869055601480549286169290911691909117905561239e82603c61578d565b6014805463ffffffff929092166401000000000267ffffffff00000000199092169190911790556123d081603c61578d565b6014805463ffffffff92909216600160401b026bffffffff000000000000000019909216919091179055505050505050565b600061240d82614132565b5192915050565b6000546001600160a01b0316331461245c5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b601180546000601281905560135560159390935563ffffffff91909116600160401b026bffffffff00000000ffffffff19909216919091179055565b60006001600160a01b0382166124c1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b6000546001600160a01b0316331461252e5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6125386000614560565b565b6060600d8054610d45906157fc565b606061255482612498565b6125c65760405162461bcd60e51b815260206004820152602560248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610f19565b6001600160a01b03821661261c5760405162461bcd60e51b815260206004820152601760248201527f455243373231413a20616472657373206973207a65726f0000000000000000006044820152606401610f19565b600061262b6002546001540390565b905060008061263985612498565b90506000816001600160401b0381111561266357634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156126bc57816020015b6040805160a0810182526000808252602080830182905292820181905260608201819052608082015282526000199092019101816126815790505b506040805160a08101825260008082526020820181905291810182905260608101829052608081018290529192505b858110156129c15784841415612700576129c1565b600081815260056020908152604091829020825160a08101845281546001600160a01b038082168084526001600160401b03600160a01b90930483169584019590955260019093015480821695830195909552600160401b850416606082015260ff600160801b90940493909316151560808401528a1614156127e45760008281526006602052604090819020546001600160401b039081169183019190915282166060820152835181908590889081106127cb57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526001909501949150816129b8565b80516001600160a01b0316158015906128135750886001600160a01b031681600001516001600160a01b031614155b15612820578092506129b8565b80516001600160a01b031615801561284d5750886001600160a01b031683600001516001600160a01b0316145b156129b857826000015184878151811061287757634e487b7160e01b600052603260045260246000fd5b6020026020010151600001906001600160a01b031690816001600160a01b03168152505082602001518487815181106128c057634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160401b0392831690820152600084815260069091526040902054855191169085908890811061290f57634e487b7160e01b600052603260045260246000fd5b6020026020010151604001906001600160401b031690816001600160401b0316815250508184878151811061295457634e487b7160e01b600052603260045260246000fd5b6020026020010151606001906001600160401b031690816001600160401b031681525050826080015184878151811061299d57634e487b7160e01b600052603260045260246000fd5b60209081029190910101519015156080909101526001909501945b506001016126eb565b50909695505050505050565b6000546001600160a01b03163314612a155760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b60005b601a54811015612a7e5760196000601a8381548110612a4757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181205580612a7681615837565b915050612a18565b506040805160008152602081019182905251612a9c91601a916149cc565b50565b6000546001600160a01b03163314612ae75760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6010805463ffffffff191663ffffffff92909216919091179055565b600081421015612b1557505060125490565b601454640100000000900463ffffffff16612b3083426157b9565b10612b3d57505060135490565b601454600090600160401b900463ffffffff16612b5a84426157b9565b612b649190615737565b601454909150600090612b8e9063ffffffff600160401b820481169164010000000090041661574b565b63ffffffff16601160020154601160010154612baa91906157b9565b612bb49190615737565b9050612bc0818361576e565b60125461127f91906157b9565b919050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152610cf482614132565b6000546001600160a01b03163314612c4e5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b610ed0600e838361494c565b606060048054610d45906157fc565b6000546001600160a01b03163314612cb15760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6017805463ffffffff191663ffffffff92909216919091179055565b6001600160a01b038216331415612cf75760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314612dab5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b7f000000000000000000000000000000000000000000000000000000000000000082612dda6002546001540390565b612de4919061571f565b1115612e585760405162461bcd60e51b815260206004820152602760248201527f746f6f206d616e7920616c7265616479206d696e746564206265666f7265206460448201527f6576206d696e74000000000000000000000000000000000000000000000000006064820152608401610f19565b612e827f000000000000000000000000000000000000000000000000000000000000000083615879565b15612ef55760405162461bcd60e51b815260206004820152602c60248201527f63616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a6500000000000000000000000000000000000000006064820152608401610f19565b6000612f217f000000000000000000000000000000000000000000000000000000000000000084615737565b905060005b8181101561142f57612f59337f000000000000000000000000000000000000000000000000000000000000000085614089565b80612f6381615837565b915050612f26565b6000546001600160a01b03163314612fb35760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6002600b5414156130065760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f19565b6002600b55604051600090339047908381818185875af1925050503d806000811461304d576040519150601f19603f3d011682016040523d82523d6000602084013e613052565b606091505b50509050806130a35760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610f19565b506001600b55565b6000546001600160a01b031633146130f35760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b805182511461316a5760405162461bcd60e51b815260206004820152602860248201527f61646472657373657320646f6573206e6f74206d61746368206e756d536c6f7460448201527f73206c656e6774680000000000000000000000000000000000000000000000006064820152608401610f19565b60005b8251811015610ed05781818151811061319657634e487b7160e01b600052603260045260246000fd5b6020026020010151601960008584815181106131c257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550601a83828151811061321057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790558061325581615837565b91505061316d565b6132688484846142f4565b61327484848484613ef3565b61142f576040516368d2bf6b60e11b815260040160405180910390fd5b61142f8484848460405180602001604052806000815250611841565b60606132b882613ffe565b61332a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610f19565b81600c54116133c557600d8054613340906157fc565b80601f016020809104026020016040519081016040528092919081815260200182805461336c906157fc565b80156133b95780601f1061338e576101008083540402835291602001916133b9565b820191906000526020600020905b81548152906001019060200180831161339c57829003601f168201915b50505050509050919050565b60006133cf6145b0565b905060008151116133ef576040518060200160405280600081525061341d565b806133f9846145bf565b600f60405160200161340d939291906153dd565b6040516020818303038152906040525b9392505050565b604080516101a08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e08201839052610100820183905261012082018390526101408201839052610160820183905261018082015290546001600160a01b031633146134d25760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b604080516101a0810182526011805463ffffffff80821684526401000000008083048216602080870191909152600160401b938490048316868801526012546060870152601354608087015260145480841660a0880152828104841660c088015293909304821660e086015260155461010086015260165461012086015260175480831661014087015204166101608401526018805485518184028101840190965280865293949293610180860193928301828280156135dd57602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116135a05790505b505050505081525050905090565b806136095760405163667deab360e11b815260040160405180910390fd5b60005b825181101561385657600061363a848381518110611c3857634e487b7160e01b600052603260045260246000fd5b80519091506000906001600160a01b0316336001600160a01b03161480613668575081516136689033610ba6565b806136b35750336001600160a01b03166136a886858151811061369b57634e487b7160e01b600052603260045260246000fd5b6020026020010151610dc8565b6001600160a01b0316145b9050806136d357604051637f3e961560e01b815260040160405180910390fd5b600660008685815181106136f757634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160401b03161580159061377057506006600086858151811061374857634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160401b03168411155b1561378e576040516324bf808560e21b815260040160405180910390fd5b600660008685815181106137b257634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160401b03161580159061382e5750600a546006600087868151811061380657634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160401b03168503115b1561384c5760405163047f868760e11b815260040160405180910390fd5b505060010161360c565b5061386182826146f0565b5050565b6000546001600160a01b031633146138ad5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b805161386190600f906020840190614a21565b6000610cf482614762565b6000546001600160a01b031633146139135760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6000908152600660205260409020805467ffffffffffffffff19169055565b6060600e8054610d45906157fc565b6000546001600160a01b031633146139895760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b63ffffffff16600c55565b6000546001600160a01b031633146139dc5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b60118054600060128190556013556016949094556015949094556bffffffffffffffffffffffff19909216600160401b63ffffffff9283160267ffffffff000000001916176401000000009290911691909102179055565b6000546001600160a01b03163314613a7c5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b610ed0600d838361494c565b6000546001600160a01b03163314613ad05760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6001600160a01b038116613b4c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f19565b612a9c81614560565b6000546001600160a01b03163314613b9d5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b601b54815164010000000090910463ffffffff1611613bfe5760405162461bcd60e51b815260206004820152601560248201527f63616e206e6f74206f766572206f6e65207965617200000000000000000000006044820152606401610f19565b8051601b54613c1b9190640100000000900463ffffffff16615737565b6017805463ffffffff929092166401000000000267ffffffff00000000199092169190911790558051613861906018906020840190614a95565b6000613c6083614132565b80519091506000906001600160a01b0316336001600160a01b03161480613c8e57508151613c8e9033610ba6565b80613ca9575033613c9e85610dc8565b6001600160a01b0316145b905082613cc95760405163667deab360e11b815260040160405180910390fd5b80613ce757604051632ce44b5f60e11b815260040160405180910390fd5b856001600160a01b031682600001516001600160a01b031614613d1c5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038516613d4357604051633a954ecd60e21b815260040160405180910390fd5b6000848152600660205260409020546001600160401b031615801590613d8057506000848152600660205260409020546001600160401b03164211155b15613d9e5760405163750e912360e01b815260040160405180910390fd5b613dae600085846000015161402d565b6001600160a01b038681166000908152600760209081526040808320805467ffffffffffffffff198082166001600160401b03928316600019018316179092558a8616808652838620805480851690841660019081018516919091179091558b87526006865284872080549094168b841617909355600590945282852080546001600160e01b031916909417600160a01b429092169190910217909255908701808352912054909116613eac57600154811015613eac57825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5083856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118fd565b60006001600160a01b0384163b15613ff657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613f3790339089908890889060040161549f565b602060405180830381600087803b158015613f5157600080fd5b505af1925050508015613f81575060408051601f3d908101601f19168201909252613f7e91810190615129565b60015b613fdc573d808015613faf576040519150601f19603f3d011682016040523d82523d6000602084013e613fb4565b606091505b508051613fd4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061127f565b50600161127f565b600060015482108015610cf4575050600090815260056020526040902060010154600160801b900460ff161590565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610ed0838383604051806020016040528060008152506147b7565b803410156140f45760405162461bcd60e51b815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610f19565b80341115612a9c57336108fc61410a83346157b9565b6040518115909202916000818181858888f19350505050158015613861573d6000803e3d6000fd5b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260015482908110156142db57600081815260056020908152604091829020825160a08101845281546001600160a01b0381168252600160a01b90046001600160401b039081169382019390935260019091015480831693820193909352600160401b83049091166060820152600160801b90910460ff161515608082018190526142d95780516001600160a01b0316156142235760008481526006602052604090819020546001600160401b039081169183019190915290931660608401525090919050565b5060001901600081815260056020908152604091829020825160a08101845281546001600160a01b038116808352600160a01b9091046001600160401b039081169483019490945260019092015480841694820194909452600160401b84049092166060830152600160801b90920460ff161515608082015290156142d45760008481526006602052604090819020546001600160401b039081169183019190915290931660608401525090919050565b614223565b505b604051636f96cda160e11b815260040160405180910390fd5b60006142ff82614132565b80519091506000906001600160a01b0316336001600160a01b0316148061432d5750815161432d9033610ba6565b8061434857503361433d84610dc8565b6001600160a01b0316145b90508061436857604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461439d5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166143c457604051633a954ecd60e21b815260040160405180910390fd5b6000838152600660205260409020546001600160401b03161580159061440157506000838152600660205260409020546001600160401b03164211155b1561441f5760405163750e912360e01b815260040160405180910390fd5b61442f600084846000015161402d565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166145195760015481101561451957825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d2f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060601c8054610d45906157fc565b6060816145e35750506040805180820190915260018152600360fc1b602082015290565b8160005b811561460d57806145f781615837565b91506146069050600a83615737565b91506145e7565b6000816001600160401b0381111561463557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561465f576020820181803683370190505b5090505b841561127f576146746001836157b9565b9150614681600a86615879565b61468c90603061571f565b60f81b8183815181106146af57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506146e9600a86615737565b9450614663565b60005b8251811015610ed057816006600085848151811061472157634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020805467ffffffffffffffff19166001600160401b03929092169190911790556001016146f3565b60006001600160a01b03821661478b576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260076020526040902054600160401b90046001600160401b031690565b61142f84848484600180546001600160a01b0386166147e857604051622e076360e81b815260040160405180910390fd5b846148065760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038616600081815260076020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168d018116918217600160401b67ffffffffffffffff1990941690921783900481168d018116909202179091558584526005909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8681101561494057600082815260066020526040808220805467ffffffffffffffff19166001600160401b038a161790555183916001600160a01b038b16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561491657506149146000898488613ef3565b155b15614934576040516368d2bf6b60e11b815260040160405180910390fd5b6001918201910161489b565b50600155505050505050565b828054614958906157fc565b90600052602060002090601f01602090048101928261497a57600085556149c0565b82601f106149935782800160ff198235161785556149c0565b828001600101855582156149c0579182015b828111156149c05782358255916020019190600101906149a5565b50611d03929150614b3b565b8280548282559060005260206000209081019282156149c0579160200282015b828111156149c057825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906149ec565b828054614a2d906157fc565b90600052602060002090601f016020900481019282614a4f57600085556149c0565b82601f10614a6857805160ff19168380011785556149c0565b828001600101855582156149c0579182015b828111156149c0578251825591602001919060010190614a7a565b828054828255906000526020600020906007016008900481019282156149c05791602002820160005b83821115614b0257835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302614abe565b8015614b325782816101000a81549063ffffffff0219169055600401602081600301049283019260010302614b02565b5050611d039291505b5b80821115611d035760008155600101614b3c565b60006001600160401b03831115614b6957614b696158b9565b614b7c601f8401601f19166020016156cc565b9050828152838383011115614b9057600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612bcd57600080fd5b600082601f830112614bce578081fd5b81356020614be3614bde836156fc565b6156cc565b80838252828201915082860187848660051b8901011115614c02578586fd5b855b85811015614c2057813584529284019290840190600101614c04565b5090979650505050505050565b600082601f830112614c3d578081fd5b61341d83833560208501614b50565b803563ffffffff81168114612bcd57600080fd5b600060208284031215614c71578081fd5b61341d82614ba7565b60008060408385031215614c8c578081fd5b614c9583614ba7565b9150614ca360208401614ba7565b90509250929050565b60008060008060808587031215614cc1578182fd5b614cca85614ba7565b9350614cd860208601614ba7565b925060408501356001600160401b03811115614cf2578283fd5b614cfe87828801614bbe565b949793965093946060013593505050565b600080600080600060a08688031215614d26578081fd5b614d2f86614ba7565b9450614d3d60208701614ba7565b935060408601356001600160401b0380821115614d58578283fd5b614d6489838a01614bbe565b9450606088013593506080880135915080821115614d80578283fd5b50614d8d88828901614c2d565b9150509295509295909350565b600080600060608486031215614dae578283fd5b614db784614ba7565b9250614dc560208501614ba7565b9150604084013590509250925092565b60008060008060808587031215614dea578182fd5b614df385614ba7565b9350614e0160208601614ba7565b92506040850135915060608501356001600160401b03811115614e22578182fd5b614e2e87828801614c2d565b91505092959194509250565b60008060008060808587031215614e4f578182fd5b614e5885614ba7565b9350614e6660208601614ba7565b93969395505050506040820135916060013590565b600080600080600060a08688031215614e92578283fd5b614e9b86614ba7565b9450614ea960208701614ba7565b9350604086013592506060860135915060808601356001600160401b03811115614ed1578182fd5b614d8d88828901614c2d565b60008060408385031215614eef578182fd5b614ef883614ba7565b915060208301358015158114614f0c578182fd5b809150509250929050565b60008060408385031215614f29578182fd5b614f3283614ba7565b946020939093013593505050565b60008060408385031215614f52578182fd5b82356001600160401b0380821115614f68578384fd5b818501915085601f830112614f7b578384fd5b81356020614f8b614bde836156fc565b8083825282820191508286018a848660051b8901011115614faa578889fd5b8896505b84871015614fd357614fbf81614ba7565b835260019690960195918301918301614fae565b5096505086013592505080821115614fe9578283fd5b50614ff685828601614bbe565b9150509250929050565b600060208284031215615011578081fd5b81356001600160401b03811115615026578182fd5b61127f84828501614bbe565b60008060408385031215615044578182fd5b82356001600160401b03811115615059578283fd5b61506585828601614bbe565b95602094909401359450505050565b60006020808385031215615086578182fd5b82356001600160401b0381111561509b578283fd5b8301601f810185136150ab578283fd5b80356150b9614bde826156fc565b80828252848201915084840188868560051b87010111156150d8578687fd5b8694505b83851015615101576150ed81614c4c565b8352600194909401939185019185016150dc565b50979650505050505050565b60006020828403121561511e578081fd5b813561341d816158cf565b60006020828403121561513a578081fd5b815161341d816158cf565b60008060208385031215615157578182fd5b82356001600160401b038082111561516d578384fd5b818501915085601f830112615180578384fd5b81358181111561518e578485fd5b86602082850101111561519f578485fd5b60209290920196919550909350505050565b6000602082840312156151c2578081fd5b81356001600160401b038111156151d7578182fd5b8201601f810184136151e7578182fd5b61127f84823560208401614b50565b600060208284031215615207578081fd5b5035919050565b60008060408385031215615220578182fd5b50508035926020909101359150565b600080600060608486031215615243578081fd5b505081359360208301359350604090920135919050565b6000806000806080858703121561526f578182fd5b5050823594602084013594506040840135936060013592509050565b600080600080608085870312156152a0578182fd5b84359350602085013592506152b760408601614c4c565b91506152c560608601614c4c565b905092959194509250565b600080604083850312156152e2578182fd5b82359150614ca360208401614c4c565b600060208284031215615303578081fd5b61341d82614c4c565b60008060008060008060c08789031215615324578384fd5b61532d87614c4c565b9550602087013594506040870135935061534960608801614c4c565b925061535760808801614c4c565b915061536560a08801614c4c565b90509295509295509295565b6000815180845260208085019450808401835b838110156153a657815163ffffffff1687529582019590820190600101615384565b509495945050505050565b600081518084526153c98160208601602086016157d0565b601f01601f19169290920160200192915050565b6000845160206153f08285838a016157d0565b8551918401916154038184848a016157d0565b85549201918390600181811c908083168061541f57607f831692505b85831081141561543d57634e487b7160e01b88526022600452602488fd5b80801561545157600181146154625761548e565b60ff1985168852838801955061548e565b60008b815260209020895b858110156154865781548a82015290840190880161546d565b505083880195505b50939b9a5050505050505050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526154d160808301846153b1565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156129c1576155518385516001600160a01b03815116825260208101516001600160401b03808216602085015280604084015116604085015280606084015116606085015250506080810151151560808301525050565b9284019260a092909201916001016154f7565b60208152600061341d60208301846153b1565b6020815261558e60208201835163ffffffff169052565b600060208301516155a7604084018263ffffffff169052565b50604083015163ffffffff811660608401525060608301516080830152608083015160a083015260a08301516155e560c084018263ffffffff169052565b5060c083015163ffffffff811660e08401525060e08301516101006156118185018363ffffffff169052565b840151610120848101919091528401516101408085019190915284015190506101606156448185018363ffffffff169052565b840151905061018061565d8482018363ffffffff169052565b8401516101a084810152905061127f6101c0840182615371565b60a08101610cf482846001600160a01b03815116825260208101516001600160401b03808216602085015280604084015116604085015280606084015116606085015250506080810151151560808301525050565b604051601f8201601f191681016001600160401b03811182821017156156f4576156f46158b9565b604052919050565b60006001600160401b03821115615715576157156158b9565b5060051b60200190565b600082198211156157325761573261588d565b500190565b600082615746576157466158a3565b500490565b600063ffffffff80841680615762576157626158a3565b92169190910492915050565b60008160001904831182151516156157885761578861588d565b500290565b600063ffffffff808316818516818304811182151516156157b0576157b061588d565b02949350505050565b6000828210156157cb576157cb61588d565b500390565b60005b838110156157eb5781810151838201526020016157d3565b8381111561142f5750506000910152565b600181811c9082168061581057607f821691505b6020821081141561583157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561584b5761584b61588d565b5060010190565b60006001600160401b038083168181141561586f5761586f61588d565b6001019392505050565b600082615888576158886158a3565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114612a9c57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212202e39ef86a9c55db6387c5e2fb3182c25c1304e013fdae946657d6095537438a464736f6c634300080400330000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000022600000000000000000000000000000000000000000000000000000000000000320
Deployed Bytecode
0x6080604052600436106103b85760003560e01c80638462151c116101f2578063b88d4fde1161010d578063e8a3d485116100a0578063f2c4ce1e1161006f578063f2c4ce1e14610c14578063f2fde38b14610c34578063fa8e0c8714610c54578063fbe1aa5114610c7457600080fd5b8063e8a3d48514610b76578063e985e9c514610b8b578063eeed522e14610bd4578063efd9634414610bf457600080fd5b8063d4506cb7116100dc578063d4506cb714610af6578063da3ef23f14610b16578063dc33e68114610b36578063dd2e0ac014610b5657600080fd5b8063b88d4fde14610a74578063bb8d7a9314610a94578063c87b56dd14610ab4578063cea943ee14610ad457600080fd5b8063938e3d7b11610185578063a5b985a211610154578063a5b985a2146109f2578063a7cd52cb14610a12578063ac44600214610a3f578063b05863d514610a5457600080fd5b8063938e3d7b1461097d57806395d89b411461099d5780639c7a963b146109b2578063a22cb465146109d257600080fd5b806390028083116101c1578063900280831461083a57806390aa0b0f1461085a578063917d009e146109305780639231ab2a1461095057600080fd5b80638462151c146107b357806384f38de4146107d35780638bc35c2f146107e85780638da5cb5b1461081c57600080fd5b8063380d831b116102e25780635ae1d01e116102755780636ee35c74116102445780636ee35c741461074957806370a0823114610769578063715018a614610789578063722503801461079e57600080fd5b80635ae1d01e146106d65780635ee2d5b6146106e95780635ef3d662146107095780636352211e1461072957600080fd5b80634f6ccce7116102b15780634f6ccce714610642578063533e5ff31461066257806355f804b3146106825780635666c880146106a257600080fd5b8063380d831b146105ac57806340514cb2146105c157806342842e0e146105ee57806345c0f5331461060e57600080fd5b806310634b4e1161035a5780631bf8434b116103295780631bf8434b1461053757806323b872dd146105575780632d5a249a146105775780632f745c591461058c57600080fd5b806310634b4e146104c15780631338736f146104e157806317d9bf4b1461050157806318160ddd1461051457600080fd5b8063081812fc11610396578063081812fc14610436578063095ea7b31461046e5780630bf039e31461048e5780630c96d38e146104ae57600080fd5b806301ffc9a7146103bd57806303ca08da146103f257806306fdde0314610414575b600080fd5b3480156103c957600080fd5b506103dd6103d836600461510d565b610ca8565b60405190151581526020015b60405180910390f35b3480156103fe57600080fd5b5061041261040d366004614e7b565b610cfa565b005b34801561042057600080fd5b50610429610d36565b6040516103e99190615564565b34801561044257600080fd5b506104566104513660046151f6565b610dc8565b6040516001600160a01b0390911681526020016103e9565b34801561047a57600080fd5b50610412610489366004614f17565b610e0c565b34801561049a57600080fd5b506104126104a93660046152d0565b610ed5565b6104126104bc36600461520e565b610f5a565b3480156104cd57600080fd5b506103dd6104dc36600461525a565b61124a565b3480156104ed57600080fd5b506104126104fc36600461520e565b611287565b61041261050f36600461522f565b611435565b34801561052057600080fd5b50600254600154035b6040519081526020016103e9565b34801561054357600080fd5b50610412610552366004614d0f565b611841565b34801561056357600080fd5b50610412610572366004614d9a565b611905565b34801561058357600080fd5b50610529611910565b34801561059857600080fd5b506105296105a7366004614f17565b611960565b3480156105b857600080fd5b50610412611b0f565b3480156105cd57600080fd5b506105e16105dc366004615000565b611b82565b6040516103e991906154db565b3480156105fa57600080fd5b50610412610609366004614d9a565b611c7f565b34801561061a57600080fd5b506105297f000000000000000000000000000000000000000000000000000000000000271081565b34801561064e57600080fd5b5061052961065d3660046151f6565b611c9a565b34801561066e57600080fd5b5061041261067d366004614e3a565b611d07565b34801561068e57600080fd5b5061041261069d366004615145565b611d23565b3480156106ae57600080fd5b506105297f000000000000000000000000000000000000000000000000000000000000226081565b6104126106e436600461520e565b611d77565b3480156106f557600080fd5b5061052961070436600461520e565b612080565b34801561071557600080fd5b5061041261072436600461530c565b612317565b34801561073557600080fd5b506104566107443660046151f6565b612402565b34801561075557600080fd5b506104126107643660046152d0565b612414565b34801561077557600080fd5b50610529610784366004614c60565b612498565b34801561079557600080fd5b506104126124e6565b3480156107aa57600080fd5b5061042961253a565b3480156107bf57600080fd5b506105e16107ce366004614c60565b612549565b3480156107df57600080fd5b506104126129cd565b3480156107f457600080fd5b506105297f000000000000000000000000000000000000000000000000000000000000000581565b34801561082857600080fd5b506000546001600160a01b0316610456565b34801561084657600080fd5b506104126108553660046152f2565b612a9f565b34801561086657600080fd5b506011546012546013546014546015546016546017546108c39663ffffffff80821697640100000000808404831698600160401b94859004841698929790968385169683850486169690940485169491939092818316929104168c565b6040805163ffffffff9d8e1681529b8d1660208d0152998c16998b019990995260608a0197909752608089019590955292881660a088015290871660c0870152861660e08601526101008501526101208401528316610140830152909116610160820152610180016103e9565b34801561093c57600080fd5b5061052961094b3660046151f6565b612b03565b34801561095c57600080fd5b5061097061096b3660046151f6565b612bd2565b6040516103e99190615677565b34801561098957600080fd5b50610412610998366004615145565b612c06565b3480156109a957600080fd5b50610429612c5a565b3480156109be57600080fd5b506104126109cd3660046152f2565b612c69565b3480156109de57600080fd5b506104126109ed366004614edd565b612ccd565b3480156109fe57600080fd5b50610412610a0d36600461520e565b612d63565b348015610a1e57600080fd5b50610529610a2d366004614c60565b60196020526000908152604090205481565b348015610a4b57600080fd5b50610412612f6b565b348015610a6057600080fd5b50610412610a6f366004614f40565b6130ab565b348015610a8057600080fd5b50610412610a8f366004614dd5565b61325d565b348015610aa057600080fd5b50610412610aaf366004614cac565b613291565b348015610ac057600080fd5b50610429610acf3660046151f6565b6132ad565b348015610ae057600080fd5b50610ae9613424565b6040516103e99190615577565b348015610b0257600080fd5b50610412610b11366004615032565b6135eb565b348015610b2257600080fd5b50610412610b313660046151b1565b613865565b348015610b4257600080fd5b50610529610b51366004614c60565b6138c0565b348015610b6257600080fd5b50610412610b713660046151f6565b6138cb565b348015610b8257600080fd5b50610429613932565b348015610b9757600080fd5b506103dd610ba6366004614c7a565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b348015610be057600080fd5b50610412610bef3660046151f6565b613941565b348015610c0057600080fd5b50610412610c0f36600461528b565b613994565b348015610c2057600080fd5b50610412610c2f366004615145565b613a34565b348015610c4057600080fd5b50610412610c4f366004614c60565b613a88565b348015610c6057600080fd5b50610412610c6f366004615074565b613b55565b348015610c8057600080fd5b506105297f000000000000000000000000000000000000000000000000000000000000032081565b60006001600160e01b031982166380ac58cd60e01b1480610cd957506001600160e01b03198216635b5e139f60e01b145b80610cf457506301ffc9a760e01b6001600160e01b03198316145b92915050565b610d0685858585613c55565b610d1285858584613ef3565b610d2f576040516368d2bf6b60e11b815260040160405180910390fd5b5050505050565b606060038054610d45906157fc565b80601f0160208091040260200160405190810160405280929190818152602001828054610d71906157fc565b8015610dbe5780601f10610d9357610100808354040283529160200191610dbe565b820191906000526020600020905b815481529060010190602001808311610da157829003601f168201915b5050505050905090565b6000610dd382613ffe565b610df0576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b6000610e1782612402565b600083815260066020526040902054909150426001600160401b039091161115610e545760405163f0f4a84f60e01b815260040160405180910390fd5b806001600160a01b0316836001600160a01b03161415610e875760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ea75750610ea58133610ba6565b155b15610ec5576040516367d9dca160e11b815260040160405180910390fd5b610ed083838361402d565b505050565b6000546001600160a01b03163314610f225760405162461bcd60e51b815260206004820181905260248201526000805160206158e683398151915260448201526064015b60405180910390fd5b60006015556011805460169390935563ffffffff91909116640100000000026bffffffffffffffff0000000019909216919091179055565b323314610fa95760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610f19565b60115460125460175460145463ffffffff9384169391821691168115801590610fd157508015155b8015610fdc57508315155b8015610fe757508215155b8015610ff35750834210155b61103f5760405162461bcd60e51b815260206004820152601e60248201527f61756374696f6e2073616c6520686173206e6f7420626567756e2079657400006044820152606401610f19565b7f00000000000000000000000000000000000000000000000000000000000022608661106e6002546001540390565b611078919061571f565b11156111125760405162461bcd60e51b815260206004820152604860248201527f6e6f7420656e6f7567682072656d61696e696e6720726573657276656420666f60448201527f722061756374696f6e20746f20737570706f72742064657369726564206d696e60648201527f7420616d6f756e74000000000000000000000000000000000000000000000000608482015260a401610f19565b7f00000000000000000000000000000000000000000000000000000000000000058661113d336138c0565b611147919061571f565b11156111955760405162461bcd60e51b815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610f19565b80866111a46002546001540390565b6111ae919061571f565b11156111fc5760405162461bcd60e51b815260206004820152601b60248201527f63616e6e6f74206d696e74206f7665722073616c65206c696d697400000000006044820152606401610f19565b600061120785612b03565b90506000876112168389612080565b61122090846157b9565b61122a919061576e565b9050611237338989614089565b611240816140a4565b5050505050505050565b6000841580159061125a57508315155b801561126557508115155b801561127057508215155b801561127c5750824210155b90505b949350505050565b600061129283614132565b80519091506000906001600160a01b0316336001600160a01b031614806112c0575081516112c09033610ba6565b806112db5750336112d085610dc8565b6001600160a01b0316145b9050826112fb5760405163667deab360e11b815260040160405180910390fd5b8061131957604051637f3e961560e01b815260040160405180910390fd5b600a5461132642856157b9565b106113445760405163047f868760e11b815260040160405180910390fd5b6000848152600660205260409020546001600160401b03161580159061138157506000848152600660205260409020546001600160401b03168311155b1561139f576040516324bf808560e21b815260040160405180910390fd5b6000848152600660205260409020546001600160401b0316158015906113e85750600a546000858152600660205260409020546113e5906001600160401b0316856157b9565b10155b156114065760405163047f868760e11b815260040160405180910390fd5b6000848152600660205260409020805467ffffffffffffffff19166001600160401b0385161790555b50505050565b3233146114845760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610f19565b604080516101a0810182526011805463ffffffff80821684526401000000008083048216602080870191909152600160401b938490048316868801526012546060870152601354608087015260145480841660a0880152828104841660c088015293909304821660e08601526015546101008601526016546101208601526017548083166101408701520416610160840152601880548551818402810184019096528086526000956101808601939092919083018282801561159157602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116115545790505b505050919092525050601054610120830151602084015161014085015194955063ffffffff92831694919350821691168584146116365760405162461bcd60e51b815260206004820152602560248201527f63616c6c6564207769746820696e636f7272656374207075626c69632073616c60448201527f65206b65790000000000000000000000000000000000000000000000000000006064820152608401610f19565b6116428385848461124a565b61168e5760405162461bcd60e51b815260206004820152601d60248201527f7075626c69632073616c6520686173206e6f7420626567756e207965740000006044820152606401610f19565b7f0000000000000000000000000000000000000000000000000000000000002710886116bd6002546001540390565b6116c7919061571f565b11156117155760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610f19565b7f000000000000000000000000000000000000000000000000000000000000000588611740336138c0565b61174a919061571f565b11156117985760405162461bcd60e51b815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610f19565b80886117a76002546001540390565b6117b1919061571f565b11156117ff5760405162461bcd60e51b815260206004820152601c60248201527f63616e206e6f74206d696e74206f7665722073616c65206c696d6974000000006044820152606401610f19565b60008861180c858a612080565b61181690866157b9565b611820919061576e565b905061182d338a8a614089565b611836816140a4565b505050505050505050565b60005b8351816001600160401b031610156118fd57611892868686846001600160401b03168151811061188457634e487b7160e01b600052603260045260246000fd5b602002602001015186613c55565b6118ce868686846001600160401b0316815181106118c057634e487b7160e01b600052603260045260246000fd5b602002602001015185613ef3565b6118eb576040516368d2bf6b60e11b815260040160405180910390fd5b806118f581615852565b915050611844565b505050505050565b610ed08383836142f4565b600080546001600160a01b031633146119595760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b50600c5490565b600061196b83612498565b82106119c45760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604482015261647360f01b6064820152608401610f19565b60006119d36002546001540390565b905060008060005b83811015611aa057600081815260056020908152604091829020825160a08101845281546001600160a01b038116808352600160a01b9091046001600160401b039081169483019490945260019092015480841694820194909452600160401b84049092166060830152600160801b90920460ff16151560808201529015611a6257805192505b876001600160a01b0316836001600160a01b03161415611a975786841415611a9057509350610cf492505050565b6001909301925b506001016119db565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610f19565b6000546001600160a01b03163314611b575760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b600060128190556011805460158390556016929092556bffffffffffffffffffffffff199091169055565b6060600082516001600160401b03811115611bad57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611c0657816020015b6040805160a081018252600080825260208083018290529282018190526060820181905260808201528252600019909201910181611bcb5790505b50905060005b8351811015611c7857611c45848281518110611c3857634e487b7160e01b600052603260045260246000fd5b6020026020010151614132565b828281518110611c6557634e487b7160e01b600052603260045260246000fd5b6020908102919091010152600101611c0c565b5092915050565b610ed08383836040518060200160405280600081525061325d565b6000611ca96002546001540390565b8210611d035760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756044820152626e647360e81b6064820152608401610f19565b5090565b61142f8484848460405180602001604052806000815250610cfa565b6000546001600160a01b03163314611d6b5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b610ed0601c838361494c565b323314611dc65760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610f19565b60155460115460175463ffffffff600160401b909204821691168015801590611dee57508215155b8015611df957508115155b8015611e0457508142115b611e505760405162461bcd60e51b815260206004820181905260248201527f616c6c6f776c6973742073616c6520686173206e6f7420626567756e207965746044820152606401610f19565b33600090815260196020526040902054611eac5760405162461bcd60e51b815260206004820152601f60248201527f6e6f7420656c696769626c6520666f7220616c6c6f776c697374206d696e74006044820152606401610f19565b7f000000000000000000000000000000000000000000000000000000000000000585611ed7336138c0565b611ee1919061571f565b1115611f2f5760405162461bcd60e51b815260206004820152601660248201527f63616e206e6f74206d696e742074686973206d616e79000000000000000000006044820152606401610f19565b7f000000000000000000000000000000000000000000000000000000000000271085611f5e6002546001540390565b611f68919061571f565b1115611fb65760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610f19565b8085611fc56002546001540390565b611fcf919061571f565b111561201d5760405162461bcd60e51b815260206004820152601c60248201527f63616e206e6f74206d696e74206f7665722073616c65206c696d6974000000006044820152606401610f19565b60008561202a8587612080565b61203490866157b9565b61203e919061576e565b905061204b338787614089565b612054816140a4565b33600090815260196020526040812080548892906120739084906157b9565b9091555050505050505050565b60008115806120925750601854600110155b1561209f57506000610cf4565b601754601b546000916120c39163ffffffff6401000000009092048216911661578d565b601754909150640100000000900463ffffffff165b6000190163ffffffff81166121555760405162461bcd60e51b815260206004820152602960248201527f646f6573206e6f74206d6174636820646973636f756e744c69737420616e642060448201527f6c6f636b556e74696c00000000000000000000000000000000000000000000006064820152608401610f19565b601754601b5463ffffffff90811664010000000090920481168302919091029042908216018514806121aa57508063ffffffff1642016201518001851080156121aa5750620151808163ffffffff1642010385115b156121b557506121c5565b5060008163ffffffff16116120d8575b6000601160070180548060200260200160405190810160405280929190818152602001828054801561224257602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116122055790505b5050505050905060008363ffffffff16428761225e91906157b9565b6122689190615737565b905081518163ffffffff1611156122c15760405162461bcd60e51b815260206004820181905260248201527f63616e206e6f74206f76657220646973636f756e746c697374206c656e6774686044820152606401610f19565b6064828263ffffffff16815181106122e957634e487b7160e01b600052603260045260246000fd5b602002602001015163ffffffff1688612302919061576e565b61230c9190615737565b979650505050505050565b6000546001600160a01b0316331461235f5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6011805463ffffffff80891663ffffffff199283161790925560128790556013869055601480549286169290911691909117905561239e82603c61578d565b6014805463ffffffff929092166401000000000267ffffffff00000000199092169190911790556123d081603c61578d565b6014805463ffffffff92909216600160401b026bffffffff000000000000000019909216919091179055505050505050565b600061240d82614132565b5192915050565b6000546001600160a01b0316331461245c5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b601180546000601281905560135560159390935563ffffffff91909116600160401b026bffffffff00000000ffffffff19909216919091179055565b60006001600160a01b0382166124c1576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600760205260409020546001600160401b031690565b6000546001600160a01b0316331461252e5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6125386000614560565b565b6060600d8054610d45906157fc565b606061255482612498565b6125c65760405162461bcd60e51b815260206004820152602560248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610f19565b6001600160a01b03821661261c5760405162461bcd60e51b815260206004820152601760248201527f455243373231413a20616472657373206973207a65726f0000000000000000006044820152606401610f19565b600061262b6002546001540390565b905060008061263985612498565b90506000816001600160401b0381111561266357634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156126bc57816020015b6040805160a0810182526000808252602080830182905292820181905260608201819052608082015282526000199092019101816126815790505b506040805160a08101825260008082526020820181905291810182905260608101829052608081018290529192505b858110156129c15784841415612700576129c1565b600081815260056020908152604091829020825160a08101845281546001600160a01b038082168084526001600160401b03600160a01b90930483169584019590955260019093015480821695830195909552600160401b850416606082015260ff600160801b90940493909316151560808401528a1614156127e45760008281526006602052604090819020546001600160401b039081169183019190915282166060820152835181908590889081106127cb57634e487b7160e01b600052603260045260246000fd5b60209081029190910101526001909501949150816129b8565b80516001600160a01b0316158015906128135750886001600160a01b031681600001516001600160a01b031614155b15612820578092506129b8565b80516001600160a01b031615801561284d5750886001600160a01b031683600001516001600160a01b0316145b156129b857826000015184878151811061287757634e487b7160e01b600052603260045260246000fd5b6020026020010151600001906001600160a01b031690816001600160a01b03168152505082602001518487815181106128c057634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160401b0392831690820152600084815260069091526040902054855191169085908890811061290f57634e487b7160e01b600052603260045260246000fd5b6020026020010151604001906001600160401b031690816001600160401b0316815250508184878151811061295457634e487b7160e01b600052603260045260246000fd5b6020026020010151606001906001600160401b031690816001600160401b031681525050826080015184878151811061299d57634e487b7160e01b600052603260045260246000fd5b60209081029190910101519015156080909101526001909501945b506001016126eb565b50909695505050505050565b6000546001600160a01b03163314612a155760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b60005b601a54811015612a7e5760196000601a8381548110612a4757634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181205580612a7681615837565b915050612a18565b506040805160008152602081019182905251612a9c91601a916149cc565b50565b6000546001600160a01b03163314612ae75760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6010805463ffffffff191663ffffffff92909216919091179055565b600081421015612b1557505060125490565b601454640100000000900463ffffffff16612b3083426157b9565b10612b3d57505060135490565b601454600090600160401b900463ffffffff16612b5a84426157b9565b612b649190615737565b601454909150600090612b8e9063ffffffff600160401b820481169164010000000090041661574b565b63ffffffff16601160020154601160010154612baa91906157b9565b612bb49190615737565b9050612bc0818361576e565b60125461127f91906157b9565b919050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152610cf482614132565b6000546001600160a01b03163314612c4e5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b610ed0600e838361494c565b606060048054610d45906157fc565b6000546001600160a01b03163314612cb15760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6017805463ffffffff191663ffffffff92909216919091179055565b6001600160a01b038216331415612cf75760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314612dab5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b7f000000000000000000000000000000000000000000000000000000000000032082612dda6002546001540390565b612de4919061571f565b1115612e585760405162461bcd60e51b815260206004820152602760248201527f746f6f206d616e7920616c7265616479206d696e746564206265666f7265206460448201527f6576206d696e74000000000000000000000000000000000000000000000000006064820152608401610f19565b612e827f000000000000000000000000000000000000000000000000000000000000000583615879565b15612ef55760405162461bcd60e51b815260206004820152602c60248201527f63616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a6500000000000000000000000000000000000000006064820152608401610f19565b6000612f217f000000000000000000000000000000000000000000000000000000000000000584615737565b905060005b8181101561142f57612f59337f000000000000000000000000000000000000000000000000000000000000000585614089565b80612f6381615837565b915050612f26565b6000546001600160a01b03163314612fb35760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6002600b5414156130065760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610f19565b6002600b55604051600090339047908381818185875af1925050503d806000811461304d576040519150601f19603f3d011682016040523d82523d6000602084013e613052565b606091505b50509050806130a35760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610f19565b506001600b55565b6000546001600160a01b031633146130f35760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b805182511461316a5760405162461bcd60e51b815260206004820152602860248201527f61646472657373657320646f6573206e6f74206d61746368206e756d536c6f7460448201527f73206c656e6774680000000000000000000000000000000000000000000000006064820152608401610f19565b60005b8251811015610ed05781818151811061319657634e487b7160e01b600052603260045260246000fd5b6020026020010151601960008584815181106131c257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550601a83828151811061321057634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182546001810184556000938452919092200180546001600160a01b0319166001600160a01b039092169190911790558061325581615837565b91505061316d565b6132688484846142f4565b61327484848484613ef3565b61142f576040516368d2bf6b60e11b815260040160405180910390fd5b61142f8484848460405180602001604052806000815250611841565b60606132b882613ffe565b61332a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610f19565b81600c54116133c557600d8054613340906157fc565b80601f016020809104026020016040519081016040528092919081815260200182805461336c906157fc565b80156133b95780601f1061338e576101008083540402835291602001916133b9565b820191906000526020600020905b81548152906001019060200180831161339c57829003601f168201915b50505050509050919050565b60006133cf6145b0565b905060008151116133ef576040518060200160405280600081525061341d565b806133f9846145bf565b600f60405160200161340d939291906153dd565b6040516020818303038152906040525b9392505050565b604080516101a08101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e08201839052610100820183905261012082018390526101408201839052610160820183905261018082015290546001600160a01b031633146134d25760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b604080516101a0810182526011805463ffffffff80821684526401000000008083048216602080870191909152600160401b938490048316868801526012546060870152601354608087015260145480841660a0880152828104841660c088015293909304821660e086015260155461010086015260165461012086015260175480831661014087015204166101608401526018805485518184028101840190965280865293949293610180860193928301828280156135dd57602002820191906000526020600020906000905b82829054906101000a900463ffffffff1663ffffffff16815260200190600401906020826003010492830192600103820291508084116135a05790505b505050505081525050905090565b806136095760405163667deab360e11b815260040160405180910390fd5b60005b825181101561385657600061363a848381518110611c3857634e487b7160e01b600052603260045260246000fd5b80519091506000906001600160a01b0316336001600160a01b03161480613668575081516136689033610ba6565b806136b35750336001600160a01b03166136a886858151811061369b57634e487b7160e01b600052603260045260246000fd5b6020026020010151610dc8565b6001600160a01b0316145b9050806136d357604051637f3e961560e01b815260040160405180910390fd5b600660008685815181106136f757634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160401b03161580159061377057506006600086858151811061374857634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160401b03168411155b1561378e576040516324bf808560e21b815260040160405180910390fd5b600660008685815181106137b257634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160401b03161580159061382e5750600a546006600087868151811061380657634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020546001600160401b03168503115b1561384c5760405163047f868760e11b815260040160405180910390fd5b505060010161360c565b5061386182826146f0565b5050565b6000546001600160a01b031633146138ad5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b805161386190600f906020840190614a21565b6000610cf482614762565b6000546001600160a01b031633146139135760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6000908152600660205260409020805467ffffffffffffffff19169055565b6060600e8054610d45906157fc565b6000546001600160a01b031633146139895760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b63ffffffff16600c55565b6000546001600160a01b031633146139dc5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b60118054600060128190556013556016949094556015949094556bffffffffffffffffffffffff19909216600160401b63ffffffff9283160267ffffffff000000001916176401000000009290911691909102179055565b6000546001600160a01b03163314613a7c5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b610ed0600d838361494c565b6000546001600160a01b03163314613ad05760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b6001600160a01b038116613b4c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610f19565b612a9c81614560565b6000546001600160a01b03163314613b9d5760405162461bcd60e51b815260206004820181905260248201526000805160206158e68339815191526044820152606401610f19565b601b54815164010000000090910463ffffffff1611613bfe5760405162461bcd60e51b815260206004820152601560248201527f63616e206e6f74206f766572206f6e65207965617200000000000000000000006044820152606401610f19565b8051601b54613c1b9190640100000000900463ffffffff16615737565b6017805463ffffffff929092166401000000000267ffffffff00000000199092169190911790558051613861906018906020840190614a95565b6000613c6083614132565b80519091506000906001600160a01b0316336001600160a01b03161480613c8e57508151613c8e9033610ba6565b80613ca9575033613c9e85610dc8565b6001600160a01b0316145b905082613cc95760405163667deab360e11b815260040160405180910390fd5b80613ce757604051632ce44b5f60e11b815260040160405180910390fd5b856001600160a01b031682600001516001600160a01b031614613d1c5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b038516613d4357604051633a954ecd60e21b815260040160405180910390fd5b6000848152600660205260409020546001600160401b031615801590613d8057506000848152600660205260409020546001600160401b03164211155b15613d9e5760405163750e912360e01b815260040160405180910390fd5b613dae600085846000015161402d565b6001600160a01b038681166000908152600760209081526040808320805467ffffffffffffffff198082166001600160401b03928316600019018316179092558a8616808652838620805480851690841660019081018516919091179091558b87526006865284872080549094168b841617909355600590945282852080546001600160e01b031916909417600160a01b429092169190910217909255908701808352912054909116613eac57600154811015613eac57825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5083856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46118fd565b60006001600160a01b0384163b15613ff657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613f3790339089908890889060040161549f565b602060405180830381600087803b158015613f5157600080fd5b505af1925050508015613f81575060408051601f3d908101601f19168201909252613f7e91810190615129565b60015b613fdc573d808015613faf576040519150601f19603f3d011682016040523d82523d6000602084013e613fb4565b606091505b508051613fd4576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061127f565b50600161127f565b600060015482108015610cf4575050600090815260056020526040902060010154600160801b900460ff161590565b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610ed0838383604051806020016040528060008152506147b7565b803410156140f45760405162461bcd60e51b815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610f19565b80341115612a9c57336108fc61410a83346157b9565b6040518115909202916000818181858888f19350505050158015613861573d6000803e3d6000fd5b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915260015482908110156142db57600081815260056020908152604091829020825160a08101845281546001600160a01b0381168252600160a01b90046001600160401b039081169382019390935260019091015480831693820193909352600160401b83049091166060820152600160801b90910460ff161515608082018190526142d95780516001600160a01b0316156142235760008481526006602052604090819020546001600160401b039081169183019190915290931660608401525090919050565b5060001901600081815260056020908152604091829020825160a08101845281546001600160a01b038116808352600160a01b9091046001600160401b039081169483019490945260019092015480841694820194909452600160401b84049092166060830152600160801b90920460ff161515608082015290156142d45760008481526006602052604090819020546001600160401b039081169183019190915290931660608401525090919050565b614223565b505b604051636f96cda160e11b815260040160405180910390fd5b60006142ff82614132565b80519091506000906001600160a01b0316336001600160a01b0316148061432d5750815161432d9033610ba6565b8061434857503361433d84610dc8565b6001600160a01b0316145b90508061436857604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461439d5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166143c457604051633a954ecd60e21b815260040160405180910390fd5b6000838152600660205260409020546001600160401b03161580159061440157506000838152600660205260409020546001600160401b03164211155b1561441f5760405163750e912360e01b815260040160405180910390fd5b61442f600084846000015161402d565b6001600160a01b038581166000908152600760209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b4290921691909102179092559086018083529120549091166145195760015481101561451957825160008281526005602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610d2f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6060601c8054610d45906157fc565b6060816145e35750506040805180820190915260018152600360fc1b602082015290565b8160005b811561460d57806145f781615837565b91506146069050600a83615737565b91506145e7565b6000816001600160401b0381111561463557634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561465f576020820181803683370190505b5090505b841561127f576146746001836157b9565b9150614681600a86615879565b61468c90603061571f565b60f81b8183815181106146af57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506146e9600a86615737565b9450614663565b60005b8251811015610ed057816006600085848151811061472157634e487b7160e01b600052603260045260246000fd5b6020908102919091018101518252810191909152604001600020805467ffffffffffffffff19166001600160401b03929092169190911790556001016146f3565b60006001600160a01b03821661478b576040516335ebb31960e01b815260040160405180910390fd5b506001600160a01b0316600090815260076020526040902054600160401b90046001600160401b031690565b61142f84848484600180546001600160a01b0386166147e857604051622e076360e81b815260040160405180910390fd5b846148065760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038616600081815260076020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168d018116918217600160401b67ffffffffffffffff1990941690921783900481168d018116909202179091558584526005909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b8681101561494057600082815260066020526040808220805467ffffffffffffffff19166001600160401b038a161790555183916001600160a01b038b16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561491657506149146000898488613ef3565b155b15614934576040516368d2bf6b60e11b815260040160405180910390fd5b6001918201910161489b565b50600155505050505050565b828054614958906157fc565b90600052602060002090601f01602090048101928261497a57600085556149c0565b82601f106149935782800160ff198235161785556149c0565b828001600101855582156149c0579182015b828111156149c05782358255916020019190600101906149a5565b50611d03929150614b3b565b8280548282559060005260206000209081019282156149c0579160200282015b828111156149c057825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906149ec565b828054614a2d906157fc565b90600052602060002090601f016020900481019282614a4f57600085556149c0565b82601f10614a6857805160ff19168380011785556149c0565b828001600101855582156149c0579182015b828111156149c0578251825591602001919060010190614a7a565b828054828255906000526020600020906007016008900481019282156149c05791602002820160005b83821115614b0257835183826101000a81548163ffffffff021916908363ffffffff1602179055509260200192600401602081600301049283019260010302614abe565b8015614b325782816101000a81549063ffffffff0219169055600401602081600301049283019260010302614b02565b5050611d039291505b5b80821115611d035760008155600101614b3c565b60006001600160401b03831115614b6957614b696158b9565b614b7c601f8401601f19166020016156cc565b9050828152838383011115614b9057600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b0381168114612bcd57600080fd5b600082601f830112614bce578081fd5b81356020614be3614bde836156fc565b6156cc565b80838252828201915082860187848660051b8901011115614c02578586fd5b855b85811015614c2057813584529284019290840190600101614c04565b5090979650505050505050565b600082601f830112614c3d578081fd5b61341d83833560208501614b50565b803563ffffffff81168114612bcd57600080fd5b600060208284031215614c71578081fd5b61341d82614ba7565b60008060408385031215614c8c578081fd5b614c9583614ba7565b9150614ca360208401614ba7565b90509250929050565b60008060008060808587031215614cc1578182fd5b614cca85614ba7565b9350614cd860208601614ba7565b925060408501356001600160401b03811115614cf2578283fd5b614cfe87828801614bbe565b949793965093946060013593505050565b600080600080600060a08688031215614d26578081fd5b614d2f86614ba7565b9450614d3d60208701614ba7565b935060408601356001600160401b0380821115614d58578283fd5b614d6489838a01614bbe565b9450606088013593506080880135915080821115614d80578283fd5b50614d8d88828901614c2d565b9150509295509295909350565b600080600060608486031215614dae578283fd5b614db784614ba7565b9250614dc560208501614ba7565b9150604084013590509250925092565b60008060008060808587031215614dea578182fd5b614df385614ba7565b9350614e0160208601614ba7565b92506040850135915060608501356001600160401b03811115614e22578182fd5b614e2e87828801614c2d565b91505092959194509250565b60008060008060808587031215614e4f578182fd5b614e5885614ba7565b9350614e6660208601614ba7565b93969395505050506040820135916060013590565b600080600080600060a08688031215614e92578283fd5b614e9b86614ba7565b9450614ea960208701614ba7565b9350604086013592506060860135915060808601356001600160401b03811115614ed1578182fd5b614d8d88828901614c2d565b60008060408385031215614eef578182fd5b614ef883614ba7565b915060208301358015158114614f0c578182fd5b809150509250929050565b60008060408385031215614f29578182fd5b614f3283614ba7565b946020939093013593505050565b60008060408385031215614f52578182fd5b82356001600160401b0380821115614f68578384fd5b818501915085601f830112614f7b578384fd5b81356020614f8b614bde836156fc565b8083825282820191508286018a848660051b8901011115614faa578889fd5b8896505b84871015614fd357614fbf81614ba7565b835260019690960195918301918301614fae565b5096505086013592505080821115614fe9578283fd5b50614ff685828601614bbe565b9150509250929050565b600060208284031215615011578081fd5b81356001600160401b03811115615026578182fd5b61127f84828501614bbe565b60008060408385031215615044578182fd5b82356001600160401b03811115615059578283fd5b61506585828601614bbe565b95602094909401359450505050565b60006020808385031215615086578182fd5b82356001600160401b0381111561509b578283fd5b8301601f810185136150ab578283fd5b80356150b9614bde826156fc565b80828252848201915084840188868560051b87010111156150d8578687fd5b8694505b83851015615101576150ed81614c4c565b8352600194909401939185019185016150dc565b50979650505050505050565b60006020828403121561511e578081fd5b813561341d816158cf565b60006020828403121561513a578081fd5b815161341d816158cf565b60008060208385031215615157578182fd5b82356001600160401b038082111561516d578384fd5b818501915085601f830112615180578384fd5b81358181111561518e578485fd5b86602082850101111561519f578485fd5b60209290920196919550909350505050565b6000602082840312156151c2578081fd5b81356001600160401b038111156151d7578182fd5b8201601f810184136151e7578182fd5b61127f84823560208401614b50565b600060208284031215615207578081fd5b5035919050565b60008060408385031215615220578182fd5b50508035926020909101359150565b600080600060608486031215615243578081fd5b505081359360208301359350604090920135919050565b6000806000806080858703121561526f578182fd5b5050823594602084013594506040840135936060013592509050565b600080600080608085870312156152a0578182fd5b84359350602085013592506152b760408601614c4c565b91506152c560608601614c4c565b905092959194509250565b600080604083850312156152e2578182fd5b82359150614ca360208401614c4c565b600060208284031215615303578081fd5b61341d82614c4c565b60008060008060008060c08789031215615324578384fd5b61532d87614c4c565b9550602087013594506040870135935061534960608801614c4c565b925061535760808801614c4c565b915061536560a08801614c4c565b90509295509295509295565b6000815180845260208085019450808401835b838110156153a657815163ffffffff1687529582019590820190600101615384565b509495945050505050565b600081518084526153c98160208601602086016157d0565b601f01601f19169290920160200192915050565b6000845160206153f08285838a016157d0565b8551918401916154038184848a016157d0565b85549201918390600181811c908083168061541f57607f831692505b85831081141561543d57634e487b7160e01b88526022600452602488fd5b80801561545157600181146154625761548e565b60ff1985168852838801955061548e565b60008b815260209020895b858110156154865781548a82015290840190880161546d565b505083880195505b50939b9a5050505050505050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526154d160808301846153b1565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156129c1576155518385516001600160a01b03815116825260208101516001600160401b03808216602085015280604084015116604085015280606084015116606085015250506080810151151560808301525050565b9284019260a092909201916001016154f7565b60208152600061341d60208301846153b1565b6020815261558e60208201835163ffffffff169052565b600060208301516155a7604084018263ffffffff169052565b50604083015163ffffffff811660608401525060608301516080830152608083015160a083015260a08301516155e560c084018263ffffffff169052565b5060c083015163ffffffff811660e08401525060e08301516101006156118185018363ffffffff169052565b840151610120848101919091528401516101408085019190915284015190506101606156448185018363ffffffff169052565b840151905061018061565d8482018363ffffffff169052565b8401516101a084810152905061127f6101c0840182615371565b60a08101610cf482846001600160a01b03815116825260208101516001600160401b03808216602085015280604084015116604085015280606084015116606085015250506080810151151560808301525050565b604051601f8201601f191681016001600160401b03811182821017156156f4576156f46158b9565b604052919050565b60006001600160401b03821115615715576157156158b9565b5060051b60200190565b600082198211156157325761573261588d565b500190565b600082615746576157466158a3565b500490565b600063ffffffff80841680615762576157626158a3565b92169190910492915050565b60008160001904831182151516156157885761578861588d565b500290565b600063ffffffff808316818516818304811182151516156157b0576157b061588d565b02949350505050565b6000828210156157cb576157cb61588d565b500390565b60005b838110156157eb5781810151838201526020016157d3565b8381111561142f5750506000910152565b600181811c9082168061581057607f821691505b6020821081141561583157634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561584b5761584b61588d565b5060010190565b60006001600160401b038083168181141561586f5761586f61588d565b6001019392505050565b600082615888576158886158a3565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114612a9c57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212202e39ef86a9c55db6387c5e2fb3182c25c1304e013fdae946657d6095537438a464736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000005000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000022600000000000000000000000000000000000000000000000000000000000000320
-----Decoded View---------------
Arg [0] : maxBatchSize_ (uint256): 5
Arg [1] : collectionSize_ (uint256): 10000
Arg [2] : amountForAuctionAndDev_ (uint256): 8800
Arg [3] : amountForDevs_ (uint256): 800
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [1] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [2] : 0000000000000000000000000000000000000000000000000000000000002260
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000320
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.