ERC-721
Overview
Max Total Supply
473 HyewonPaintings
Holders
110
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
16 HyewonPaintingsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
HyewonNft
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "./IHyewonNft.sol"; contract HyewonNft is IHyewonNft, ERC721A, Ownable, ReentrancyGuard, Pausable { /** * Maximum number of supply */ uint256 public maximumSupply; /** * To make token uri immutable permanently */ bool public permanent; /** * Minting rounds */ mapping(uint16 => Round) rounds; uint256 public revealBlockOffset = 3000; /** * Record how many tokens claimed for each whitelist */ mapping(uint16 => mapping(address => uint16)) whitelists; /** * Current round number */ uint16 public currentRoundNumber; address private _receiver; address private _signer; /** * Base uri for token uri */ string public baseURI; /** * Default unrevealed uri */ string private defaultUnrevealedURI; /** * Modifier for onlyOwnerAndAdmin * Each round could have different admin */ modifier onlyOwnerOrAdmin(uint16 roundNumber) { Round memory r = rounds[roundNumber]; address admin = rounds[roundNumber].admin; if (admin == address(0)) { revert BadRequest("Not allowed address"); } if (msg.sender != owner() && msg.sender != admin) { revert NotOwnerNorAdmin(msg.sender); } _; } constructor( address receiver, uint256 maxSupply, string memory _baseUri, string memory _defaultUnrevealedURI ) ERC721A("Hyewon's Album of Genre Paintings", "HyewonPaintings") Ownable() Pausable() { _receiver = receiver; maximumSupply = maxSupply; baseURI = _baseUri; defaultUnrevealedURI = _defaultUnrevealedURI; } /** * Get the STATE of the contract */ function getState() public view returns (State) { if (currentRoundNumber == 0) { return State.DEPLOYED; } Round memory currentRound = rounds[currentRoundNumber]; uint256 startTime = currentRound.startTime; uint256 endTime = currentRound.endTime; uint256 currentTime = block.timestamp; State currentState; if (currentTime < startTime) { currentState = State.PREPARE_MINTING; } else if (currentTime < endTime) { if (currentRound.maxMintingId > totalSupply()) { currentState = State.ON_MINTING; } else { currentState = State.END_MINTING; } } else { currentState = State.END_MINTING; } return currentState; } /** * Normal account minting */ function mint(uint256 quantity) external payable nonReentrant whenNotPaused { Round memory currentRound = getRound(currentRoundNumber); // check if whitelist only round if (currentRound.whitelisted) { revert WhitelistOnlyRound(); } _sanityCheckForMinting(currentRound, quantity); require(safeMint(msg.sender, quantity)); } /** * Minting for whitelisted accounts only */ function whitelistMint( uint8 v, bytes32 r, bytes32 s, uint16 quantity ) external payable nonReentrant whenNotPaused { Round memory currentRound = getRound(currentRoundNumber); // check if whitelist only round if (!currentRound.whitelisted) { revert NotWhitelistOnlyRound(); } _sanityCheckForMinting(currentRound, quantity); // check if the address has enough allowance uint16 claimed = whitelists[currentRoundNumber][_msgSender()]; uint16 maxAllowedQuantity = currentRound.maxAllowedMintingQuantity; if (claimed + quantity > maxAllowedQuantity) { revert ExceedAllowedQuantity(maxAllowedQuantity); } _updateWhitelistUsed(currentRoundNumber, quantity, v, r, s); require(safeMint(msg.sender, quantity)); } function safeMint(address receiver, uint256 quantity) private returns (bool) { _safeMint(receiver, quantity); return true; } /** * Minting for admin account */ function adminMint(uint256 quantity) external onlyOwnerOrAdmin(currentRoundNumber) nonReentrant { Round memory currentRound = rounds[currentRoundNumber]; // check if minting does not exceed the maximum tokens for the round uint256 maxMintingId = currentRound.maxMintingId; if (!_isTokenAvailable(quantity, maxMintingId)) { revert ExceedMaximumForTheRound(); } require(safeMint(msg.sender, quantity)); } /** * Minting and transfer tokens * Only for owner */ function adminMintTo(address[] calldata tos, uint256[] calldata quantities) external payable onlyOwner { uint256 length = tos.length; if (length != quantities.length) { revert BadRequest("Input size not match"); } uint256 totalQuantity = 0; for (uint256 i = 0; i < tos.length; i++) { totalQuantity += quantities[i]; } Round memory currentRound = rounds[currentRoundNumber]; // check if minting does not exceed the maximum tokens for the round uint256 maxMintingId = currentRound.maxMintingId; if (!_isTokenAvailable(totalQuantity, maxMintingId)) { revert ExceedMaximumForTheRound(); } for (uint256 i = 0; i < length; i++) { require(safeMint(tos[i], quantities[i])); } } /** * Transfer multiple tokens to an account */ function transferBatch(uint256[] calldata tokenIds, address to) external nonReentrant { for (uint256 i = 0; i < tokenIds.length; i++) { safeTransferFrom(_msgSender(), to, tokenIds[i]); } } /** * Get token uri */ function tokenURI(uint256 tokenId) public view override returns (string memory) { Round memory round = _getRoundByTokenId(tokenId); if ( round.revealed && keccak256(abi.encodePacked(round.tokenURIPrefix)) != keccak256(abi.encodePacked("")) ) { return string( abi.encodePacked( baseURI, round.tokenURIPrefix, "/", _toString(tokenId), ".json" ) ); } else { return string( abi.encodePacked( defaultUnrevealedURI, _toString(tokenId), ".json" ) ); } } /** * Create a new minting round * For owner only */ function newRound( uint256 maxMintingId, // largest minting id for the round uint256 mintingFee, // minting fee uint16 maxAllowedMintingQuantity, // maximum number of minting quantity per account bool whitelisted, // use whitelist or not bool revealed, // reveal image or not uint256 startTime, // round starting time uint256 endTime, // round ending time bool onlyAdminRound, // only owner and admin can mint address admin // admin for the round ) external onlyOwner { // wrap-up the existing round if (currentRoundNumber > 0) { endRound(); } // the maxMintingId of new round can NOT exceed the maximumSupply if (maxMintingId > maximumSupply) { revert BadRequest("maxMintingId exceed the maximumSupply"); } if (startTime >= endTime) { revert BadRequest("endTime should be bigger"); } uint16 newRoundNumber = ++currentRoundNumber; rounds[newRoundNumber] = Round({ roundNumber: newRoundNumber, maxMintingId: maxMintingId, startId: _nextTokenId(), lastMintedId: 0, tokenURIPrefix: "", mintingFee: mintingFee, maxAllowedMintingQuantity: maxAllowedMintingQuantity, whitelisted: whitelisted, revealed: revealed, revealBlockNumber: 0, randomSelection: 0, startTime: startTime, endTime: endTime, onlyAdminRound: onlyAdminRound, admin: admin }); emit NewRoundCreated(); } /** * End the current round * For owner and admin */ function endRound() public onlyOwnerOrAdmin(currentRoundNumber) { Round storage currentRound = rounds[currentRoundNumber]; currentRound.lastMintedId = _nextTokenId() - 1; currentRound.endTime = block.timestamp; } /** * Get round detail */ function getRound(uint16 roundNumber) public view returns (Round memory) { return rounds[roundNumber]; } /** * Get the detail of the current round */ function getCurrentRound() public view returns (Round memory) { return getRound(currentRoundNumber); } /** * Set the maximum minting id for the current round * For owner and admin */ function setMaxMintingId(uint256 maxId) external { setMaxMintingId(currentRoundNumber, maxId); } /** * Set the maximum minting id for the specified round * For owner and admin */ function setMaxMintingId(uint16 roundNumber, uint256 maxId) public onlyOwnerOrAdmin(roundNumber) { if (maxId < _nextTokenId()) { revert MaxMintingIdLowerThanCurrentId(); } if (maxId > maximumSupply) { revert ExceedMaximumSupply(); } Round storage round = rounds[roundNumber]; round.maxMintingId = maxId; emit MaxMintingIdUpdated(roundNumber, maxId); } /** * Set the token uri prefix for the current round * For owner and admin */ function setTokenURIPrefix(string memory prefix) external { setTokenURIPrefix(currentRoundNumber, prefix); } /** * Set the token uri prefix for the specified round * For owner and admin */ function setTokenURIPrefix(uint16 roundNumber, string memory prefix) public onlyOwnerOrAdmin(roundNumber) { if (permanent) { revert ImmutableState(); } Round storage round = rounds[roundNumber]; round.tokenURIPrefix = prefix; emit TokenURIPrefixUpdated(roundNumber, prefix); } /** * Set the minting for the current round * OnlyOwner functions */ function setMintingFee(uint256 fee) external { setMintingFee(currentRoundNumber, fee); } /** * Set the minting for the specified round * OnlyOwner functions */ function setMintingFee(uint16 roundNumber, uint256 fee) public onlyOwnerOrAdmin(roundNumber) { Round storage round = rounds[roundNumber]; round.mintingFee = fee; emit MintingFeeUpdated(roundNumber, fee); } /** * Set maximum minting quantity for an account * For owner and admin */ function setMaxAllowedMintingQuantity(uint16 quantity) external { setMaxAllowedMintingQuantity(currentRoundNumber, quantity); } /** * Set maximum minting quantity for an account * For owner and admin */ function setMaxAllowedMintingQuantity(uint16 roundNumber, uint16 quantity) public onlyOwnerOrAdmin(roundNumber) { Round storage round = rounds[roundNumber]; round.maxAllowedMintingQuantity = quantity; emit MaxAllowedMintingCountUpdated(roundNumber, quantity); } /** * On/off the whitelisted for the current round * For owner and admin */ function setWhitelisted(bool whitelisted) external { setWhitelisted(currentRoundNumber, whitelisted); } /** * On/off the whitelisted for the specified round * For owner and admin */ function setWhitelisted(uint16 roundNumber, bool whitelisted) public onlyOwnerOrAdmin(roundNumber) { Round storage round = rounds[roundNumber]; round.whitelisted = whitelisted; emit WhitelistRequiredChanged(roundNumber, whitelisted); } /** * Trigger reveal process for the current round * For owner and admin */ function setRevealBlock() external { setRevealBlock(currentRoundNumber); } /** * Trigger reveal process for the specified round * For owner and admin */ function setRevealBlock(uint16 roundNumber) public onlyOwnerOrAdmin(roundNumber) { Round storage round = rounds[roundNumber]; if (round.lastMintedId == 0) { revert BadRequest("Round should be closed"); } round.revealBlockNumber = block.number + revealBlockOffset; emit SetRevealBlock(round.revealBlockNumber); } /** * Set random selection number based on entropy * It set the reveal on */ function setRandomSelection(uint16 roundNumber) public { Round storage round = rounds[roundNumber]; if (round.revealed) { revert AlreadyRevealed(); } uint256 revealBlockNumber = round.revealBlockNumber; if (revealBlockNumber > block.number) { revert BadRequest("Random selection is not ready"); } bytes32 entropy; if (blockhash(revealBlockNumber - 1) != 0) { entropy = keccak256( abi.encodePacked( blockhash(revealBlockNumber), blockhash(revealBlockNumber - 1), block.timestamp ) ); } else { entropy = keccak256( abi.encodePacked( blockhash(block.number - 1), blockhash(block.number - 2), block.timestamp ) ); } round.revealed = true; uint256 selected = _getRandomInRange( entropy, round.startId, round.lastMintedId ); round.randomSelection = selected; emit Revealed(roundNumber); } /** * Set revealed * For owner and admin */ function setRevealed() external { setRevealed(currentRoundNumber); } function setRevealed(uint16 roundNumber) public onlyOwnerOrAdmin(roundNumber) { Round storage round = rounds[roundNumber]; if (round.lastMintedId == 0) { revert BadRequest("Round is still open"); } round.revealed = true; emit Revealed(roundNumber); } /** * Set minting start time for the current round * Only for owner and admin */ function setStartTime(uint256 time) external { setStartTime(currentRoundNumber, time); } /** * Set minting start time for the specified round * Only for owner and admin */ function setStartTime(uint16 roundNumber, uint256 time) public onlyOwnerOrAdmin(roundNumber) { Round storage round = rounds[roundNumber]; round.startTime = time; emit StartTimeUpdated(roundNumber, time); } /** * Set minting end time for the current round * Only for owner and admin */ function setEndTime(uint256 time) external { setEndTime(currentRoundNumber, time); } /** * Set minting end time for the specified round * Only for owner and admin */ function setEndTime(uint16 roundNumber, uint256 time) public onlyOwnerOrAdmin(roundNumber) { Round storage round = rounds[roundNumber]; round.endTime = time; emit EndTimeUpdated(roundNumber, time); } /** * On/off admin only round for the current round * OnlyOwner */ function setOnlyAdminRound(bool onlyAdmin) external { setOnlyAdminRound(currentRoundNumber, onlyAdmin); } /** * On/off admin only round for the specified round * OnlyOwner */ function setOnlyAdminRound(uint16 roundNumber, bool onlyAdmin) public onlyOwner { Round storage round = rounds[roundNumber]; round.onlyAdminRound = onlyAdmin; emit OnlyAdminRoundChanged(roundNumber, onlyAdmin); } /** * Set the admin for the current round * OnlyOwner */ function setAdmin(address admin) external { setAdmin(currentRoundNumber, admin); } /** * Set the admin for the specified round * OnlyOwner */ function setAdmin(uint16 roundNumber, address admin) public onlyOwner { Round storage round = rounds[roundNumber]; round.admin = admin; emit AdminUpdated(roundNumber, admin); } /** * Internal function to override the ERC721A _baseURI() */ function _baseURI() internal view override returns (string memory) { return baseURI; } /** * Get the base uri */ function getBaseURI() external view returns (string memory) { return _baseURI(); } /** * Set the base uri * Only for the owner */ function setBaseURI(string memory _newBaseURI) external onlyOwner { if (permanent) { revert ImmutableState(); } baseURI = _newBaseURI; emit BaseURIUpdated(_newBaseURI); } /** * Set the default unrevealed uri * Only for the owner */ function setDefaultUnrevealedURI(string memory _defaultUnrevealedURI) external onlyOwner { defaultUnrevealedURI = _defaultUnrevealedURI; emit DefaultUnrevealedURIUpdated(_defaultUnrevealedURI); } /** * Paused the contract * Only for the owner */ function pause() external onlyOwner { _pause(); } /** * Unpause the contract * Only for the owner */ function unpause() external onlyOwner { _unpause(); } /** * Set the receiver * Only for the owner */ function setReceiver(address receiver) external onlyOwner { _receiver = receiver; } /** * Withdraw the balance in the contract */ function withdraw() external payable onlyOwner { uint256 amount = address(this).balance; (bool success, ) = _receiver.call{value: amount}(""); if (!success) { revert FailedToSendBalance(); } emit Withdraw(_receiver, amount); } /** * Fallback function */ fallback() external payable { emit Received(_msgSender(), msg.value); } /** * Fallback function */ receive() external payable { emit Received(_msgSender(), msg.value); } /** * Set the 'perment' to true to prevent token uri change */ function setPermanent() external onlyOwner { permanent = true; } /** * Update signer * For only owner */ function updateSigner(address newSigner) external onlyOwner { _signer = newSigner; } function updateRevealBlockOffset(uint256 newOffset) external onlyOwner { revealBlockOffset = newOffset; } /** * Sanity check before transfer tokens */ function _sanityCheckForMinting(Round memory currentRound, uint256 quantity) private { // check if onlyAdminRound if (currentRound.onlyAdminRound) { revert AdminOnlyRound(); } State currentState = getState(); if (currentState != State.ON_MINTING) { revert MintingNotAllowed(); } // check if not exceeding the maxAllowedMintingQuantity if ( currentRound.maxAllowedMintingQuantity != 0 && currentRound.maxAllowedMintingQuantity < quantity ) { revert ExceedAllowedQuantity( currentRound.maxAllowedMintingQuantity ); } // check if minting does not exceed the maximum tokens for the round if (!_isTokenAvailable(quantity, currentRound.maxMintingId)) { revert ExceedMaximumForTheRound(); } // check if proper fee is received uint256 neededFee = currentRound.mintingFee * quantity; if (neededFee != msg.value) revert NoMatchingFee(); } /** * Check the availability of tokens mintable for the round */ function _isTokenAvailable(uint256 quantity, uint256 maxId) private view returns (bool) { // check if minting does not exceed the maximum tokens for the round if (_nextTokenId() + quantity > (maxId + 1)) { return false; } return true; } /** * Private function to get the round number with token id */ function _getRoundByTokenId(uint256 tokenId) private view returns (Round memory r) { if (!_exists(tokenId)) revert NonExistingToken(tokenId); uint16 roundNumber = 1; while (roundNumber <= currentRoundNumber) { r = rounds[roundNumber]; uint256 roundMax = r.lastMintedId != 0 ? r.lastMintedId : r.maxMintingId; if (tokenId > roundMax) { roundNumber++; continue; } return r; } } function _updateWhitelistUsed( uint16 round, uint16 quantity, uint8 v, bytes32 r, bytes32 s ) private { // verify the signature bytes32 hash = _getHash(round, _msgSender(), "whitelistClaim"); if (!_verifySig(hash, v, r, s)) { revert SignatureNotMatch(); } // add the claimed quantity whitelists[round][_msgSender()] += quantity; } function _getHash( uint16 round, address sender, string memory message ) private view returns (bytes32) { return keccak256(abi.encodePacked(address(this), round, sender, message)); } function _verifySig( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) private view returns (bool) { return ecrecover(hash, v, r, s) == _signer; } function _getRandomInRange( bytes32 hash, uint256 begin, uint256 end ) private pure returns (uint256) { uint256 diff = end - begin + 1; return (uint256(hash) % diff) + begin; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev ERC721 token receiver interface. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the 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 { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly { // Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-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 (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) 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 { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @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) 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 { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @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 { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } }
// SPDX-License-Identifier: MIT // 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 (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; interface IHyewonNft { error MintingNotStarted(uint256 startTime); error MintingEnded(uint256 endTime); error MintingNotAllowed(); error ExceedMaximumForTheRound(); error ExceedMaximumSupply(); error ExceedAllowedQuantity(uint16 maximumAllowedQuantity); error MaxMintingIdLowerThanCurrentId(); error NoMatchingFee(); error NonExistingToken(uint256 tokenId); error AddressNotWhitelisted(address candidate); error NotEnoughAllowanceLeft(uint16 remainingAllowance); error FailedToSendBalance(); error NotOwnerNorAdmin(address account); error AdminOnlyRound(); error BadRequest(string reason); error WhitelistOnlyRound(); error NotWhitelistOnlyRound(); error SignatureNotMatch(); error AlreadyRevealed(); error ImmutableState(); enum State { DEPLOYED, PREPARE_MINTING, ON_MINTING, END_MINTING, ALL_MINTING_DONE } struct Round { uint16 roundNumber; // round number uint256 maxMintingId; // maximum token id for this round uint256 startId; // beginning of the tokenId for the round uint256 lastMintedId; // last token id actually minted before the next round starts string tokenURIPrefix; // directory hash value for token uri uint256 mintingFee; // minting for the round uint16 maxAllowedMintingQuantity; // max number of tokens for an account (if zero, no limit) bool whitelisted; // use whitelist or not bool revealed; // released token is revealed or not uint256 revealBlockNumber; // blocknubmer which entropy will calculated uint256 randomSelection; uint256 startTime; // round start time uint256 endTime; // round end time (if zero, no end time) bool onlyAdminRound; // only admin can mint tokens address admin; // additional admin account } event NewRoundCreated(); event MaxMintingIdUpdated(uint16 roundNumber, uint256 maxId); event TokenURIPrefixUpdated(uint16 roundNumber, string prefix); event MintingFeeUpdated(uint16 roundNumber, uint256 fee); event MaxAllowedMintingCountUpdated(uint16 roundNumber, uint16 count); event WhitelistRequiredChanged(uint16 roundNumber, bool whitelisted); event SetRevealBlock(uint256 revealBlockNumber); event Revealed(uint16 roundNumber); event UnrevealedURIUpdated(uint16 roundNumber, string uri); event StartTimeUpdated(uint16 roundNumber, uint256 time); event EndTimeUpdated(uint16 roundNumber, uint256 time); event OnlyAdminRoundChanged(uint16 roundNumber, bool onlyAdmin); event AdminUpdated(uint16 roundNumber, address admin); event BaseURIUpdated(string baseURI); event DefaultUnrevealedURIUpdated(string defaultUnrevealedURI); event MintingFeeChanged(uint256 newFee); event MaxPublicIdChanged(uint16 newMaxPubId); event Received(address called, uint256 amount); event Withdraw(address receiver, uint256 amount); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.0.0 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"string","name":"_baseUri","type":"string"},{"internalType":"string","name":"_defaultUnrevealedURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"candidate","type":"address"}],"name":"AddressNotWhitelisted","type":"error"},{"inputs":[],"name":"AdminOnlyRound","type":"error"},{"inputs":[],"name":"AlreadyRevealed","type":"error"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[{"internalType":"string","name":"reason","type":"string"}],"name":"BadRequest","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint16","name":"maximumAllowedQuantity","type":"uint16"}],"name":"ExceedAllowedQuantity","type":"error"},{"inputs":[],"name":"ExceedMaximumForTheRound","type":"error"},{"inputs":[],"name":"ExceedMaximumSupply","type":"error"},{"inputs":[],"name":"FailedToSendBalance","type":"error"},{"inputs":[],"name":"ImmutableState","type":"error"},{"inputs":[],"name":"MaxMintingIdLowerThanCurrentId","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"uint256","name":"endTime","type":"uint256"}],"name":"MintingEnded","type":"error"},{"inputs":[],"name":"MintingNotAllowed","type":"error"},{"inputs":[{"internalType":"uint256","name":"startTime","type":"uint256"}],"name":"MintingNotStarted","type":"error"},{"inputs":[],"name":"NoMatchingFee","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"NonExistingToken","type":"error"},{"inputs":[{"internalType":"uint16","name":"remainingAllowance","type":"uint16"}],"name":"NotEnoughAllowanceLeft","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"NotOwnerNorAdmin","type":"error"},{"inputs":[],"name":"NotWhitelistOnlyRound","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SignatureNotMatch","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WhitelistOnlyRound","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"AdminUpdated","type":"event"},{"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":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"defaultUnrevealedURI","type":"string"}],"name":"DefaultUnrevealedURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"EndTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"uint16","name":"count","type":"uint16"}],"name":"MaxAllowedMintingCountUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"maxId","type":"uint256"}],"name":"MaxMintingIdUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newMaxPubId","type":"uint16"}],"name":"MaxPublicIdChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"MintingFeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"MintingFeeUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"NewRoundCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"bool","name":"onlyAdmin","type":"bool"}],"name":"OnlyAdminRoundChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"called","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Received","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"}],"name":"Revealed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"revealBlockNumber","type":"uint256"}],"name":"SetRevealBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"StartTimeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"string","name":"prefix","type":"string"}],"name":"TokenURIPrefixUpdated","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"UnrevealedURIUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"roundNumber","type":"uint16"},{"indexed":false,"internalType":"bool","name":"whitelisted","type":"bool"}],"name":"WhitelistRequiredChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"adminMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tos","type":"address[]"},{"internalType":"uint256[]","name":"quantities","type":"uint256[]"}],"name":"adminMintTo","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentRoundNumber","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endRound","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":[],"name":"getBaseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentRound","outputs":[{"components":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"maxMintingId","type":"uint256"},{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"lastMintedId","type":"uint256"},{"internalType":"string","name":"tokenURIPrefix","type":"string"},{"internalType":"uint256","name":"mintingFee","type":"uint256"},{"internalType":"uint16","name":"maxAllowedMintingQuantity","type":"uint16"},{"internalType":"bool","name":"whitelisted","type":"bool"},{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"uint256","name":"revealBlockNumber","type":"uint256"},{"internalType":"uint256","name":"randomSelection","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"onlyAdminRound","type":"bool"},{"internalType":"address","name":"admin","type":"address"}],"internalType":"struct IHyewonNft.Round","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"}],"name":"getRound","outputs":[{"components":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"maxMintingId","type":"uint256"},{"internalType":"uint256","name":"startId","type":"uint256"},{"internalType":"uint256","name":"lastMintedId","type":"uint256"},{"internalType":"string","name":"tokenURIPrefix","type":"string"},{"internalType":"uint256","name":"mintingFee","type":"uint256"},{"internalType":"uint16","name":"maxAllowedMintingQuantity","type":"uint16"},{"internalType":"bool","name":"whitelisted","type":"bool"},{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"uint256","name":"revealBlockNumber","type":"uint256"},{"internalType":"uint256","name":"randomSelection","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"onlyAdminRound","type":"bool"},{"internalType":"address","name":"admin","type":"address"}],"internalType":"struct IHyewonNft.Round","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getState","outputs":[{"internalType":"enum IHyewonNft.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maximumSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMintingId","type":"uint256"},{"internalType":"uint256","name":"mintingFee","type":"uint256"},{"internalType":"uint16","name":"maxAllowedMintingQuantity","type":"uint16"},{"internalType":"bool","name":"whitelisted","type":"bool"},{"internalType":"bool","name":"revealed","type":"bool"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bool","name":"onlyAdminRound","type":"bool"},{"internalType":"address","name":"admin","type":"address"}],"name":"newRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"permanent","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealBlockOffset","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"address","name":"admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"}],"name":"setAdmin","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":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_defaultUnrevealedURI","type":"string"}],"name":"setDefaultUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"setMaxAllowedMintingQuantity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"setMaxAllowedMintingQuantity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"maxId","type":"uint256"}],"name":"setMaxMintingId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxId","type":"uint256"}],"name":"setMaxMintingId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setMintingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"setMintingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"onlyAdmin","type":"bool"}],"name":"setOnlyAdminRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"bool","name":"onlyAdmin","type":"bool"}],"name":"setOnlyAdminRound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPermanent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"}],"name":"setRandomSelection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"setReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setRevealBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"}],"name":"setRevealBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"uint256","name":"time","type":"uint256"}],"name":"setStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"string","name":"prefix","type":"string"}],"name":"setTokenURIPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"prefix","type":"string"}],"name":"setTokenURIPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"whitelisted","type":"bool"}],"name":"setWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"roundNumber","type":"uint16"},{"internalType":"bool","name":"whitelisted","type":"bool"}],"name":"setWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"},{"internalType":"address","name":"to","type":"address"}],"name":"transferBatch","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newOffset","type":"uint256"}],"name":"updateRevealBlockOffset","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"updateSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint16","name":"quantity","type":"uint16"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052610bb8600e553480156200001757600080fd5b5060405162005c2b38038062005c2b8339810160408190526200003a91620002d3565b60405180606001604052806021815260200162005c0a602191396040518060400160405280600f81526020016e487965776f6e5061696e74696e677360881b8152508160029080519060200190620000949291906200017a565b508051620000aa9060039060208401906200017a565b50506000805550620000bc3362000128565b6001600955600a805460ff191690556010805462010000600160b01b031916620100006001600160a01b03871602179055600b8390558151620001079060129060208501906200017a565b5080516200011d9060139060208401906200017a565b5050505050620003b6565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001889062000363565b90600052602060002090601f016020900481019282620001ac5760008555620001f7565b82601f10620001c757805160ff1916838001178555620001f7565b82800160010185558215620001f7579182015b82811115620001f7578251825591602001919060010190620001da565b506200020592915062000209565b5090565b5b808211156200020557600081556001016200020a565b600082601f83011262000231578081fd5b81516001600160401b03808211156200024e576200024e620003a0565b604051601f8301601f19908116603f01168101908282118183101715620002795762000279620003a0565b8160405283815260209250868385880101111562000295578485fd5b8491505b83821015620002b8578582018301518183018401529082019062000299565b83821115620002c957848385830101525b9695505050505050565b60008060008060808587031215620002e9578384fd5b84516001600160a01b038116811462000300578485fd5b6020860151604087015191955093506001600160401b038082111562000324578384fd5b620003328883890162000220565b9350606087015191508082111562000348578283fd5b50620003578782880162000220565b91505092959194509250565b600181811c908216806200037857607f821691505b602082108114156200039a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b61584480620003c66000396000f3fe6080604052600436106103dd5760003560e01c8063749aa2d9116101fd578063a32bf59711610118578063c2207328116100ab578063cb096a7f1161007a578063cb096a7f14610b71578063ccb98ffc14610b91578063e985e9c514610bb1578063ec342b7f14610bd1578063f2fde38b14610be757610427565b8063c220732814610b04578063c33ac6bb14610b17578063c6ad320014610b37578063c87b56dd14610b5157610427565b8063b2c73e28116100e7578063b2c73e2814610a84578063b2cebd8d14610aa4578063b88d4fde14610ac4578063c1f2612314610ae457610427565b8063a32bf59714610a02578063a7bfd04114610a24578063a7ecd37e14610a44578063a9a8baa514610a6457610427565b8063852c64131161019057806399e0dd7c1161015f57806399e0dd7c146109815780639c4780d8146109a1578063a0712d68146109cf578063a22cb465146109e257610427565b8063852c64131461090e5780638da5cb5b1461092e57806395ba9d0a1461094c57806395d89b411461096c57610427565b80637abd6292116101cc5780637abd6292146108a45780637b789204146108c457806380aafbdb146108e45780638456cb59146108f957610427565b8063749aa2d91461082f5780637583a9d51461084457806378642aee146108645780637905ee0f1461088457610427565b80633c482a50116102f857806355f804b31161028b578063704b6c021161025a578063704b6c02146107a557806370a08231146107c5578063714c5398146107e5578063715018a6146107fa578063718da7ee1461080f57610427565b806355f804b3146107385780635c975abb146107585780636352211e146107705780636c0360eb1461079057610427565b806340d34285116102c757806340d34285146106d057806342842e0e146106e557806346a6fb7b146107055780634a61ccfd1461072557610427565b80633c482a50146106735780633ccfd60b146106935780633e0a322d1461069b5780633f4ba83a146106bb57610427565b80631ccbf84d116103705780633059fb871161033f5780633059fb87146105fe5780633084a42f1461061e57806334d15ae51461063e5780633bd649681461065e57610427565b80631ccbf84d1461057e578063238a47091461059e57806323b872dd146105be5780632e0b3006146105de57610427565b8063081812fc116103ac578063081812fc146104eb578063095ea7b31461052357806318160ddd146105435780631865c57d1461055c57610427565b806301ffc9a71461044e5780630202def1146104835780630480e58b146104a557806306fdde03146104c957610427565b36610427577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874335b604080516001600160a01b0390921682523460208301520160405180910390a1005b7f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587433610405565b34801561045a57600080fd5b5061046e610469366004615045565b610c07565b60405190151581526020015b60405180910390f35b34801561048f57600080fd5b506104a361049e366004614fd9565b610c59565b005b3480156104b157600080fd5b506104bb600b5481565b60405190815260200161047a565b3480156104d557600080fd5b506104de610ce3565b60405161047a91906154a8565b3480156104f757600080fd5b5061050b610506366004615190565b610d75565b6040516001600160a01b03909116815260200161047a565b34801561052f57600080fd5b506104a361053e366004614f47565b610db9565b34801561054f57600080fd5b50600154600054036104bb565b34801561056857600080fd5b50610571610e8c565b60405161047a9190615480565b34801561058a57600080fd5b506104a361059936600461514c565b61106a565b3480156105aa57600080fd5b506104a36105b9366004615190565b6112cb565b3480156105ca57600080fd5b506104a36105d9366004614e6a565b6112df565b3480156105ea57600080fd5b506104a36105f9366004615100565b6112ef565b34801561060a57600080fd5b506104a361061936600461502b565b611566565b34801561062a57600080fd5b506104a36106393660046150ca565b611577565b34801561064a57600080fd5b506104a3610659366004615190565b61161e565b34801561066a57600080fd5b506104a361164d565b34801561067f57600080fd5b506104a361068e366004615175565b61165f565b6104a36118a7565b3480156106a757600080fd5b506104a36106b6366004615190565b6119a2565b3480156106c757600080fd5b506104a36119b3565b3480156106dc57600080fd5b506104a36119e5565b3480156106f157600080fd5b506104a3610700366004614e6a565b611a1e565b34801561071157600080fd5b506104a361072036600461507d565b611a39565b6104a3610733366004614f70565b611ab1565b34801561074457600080fd5b506104a361075336600461507d565b611dac565b34801561076457600080fd5b50600a5460ff1661046e565b34801561077c57600080fd5b5061050b61078b366004615190565b611e3d565b34801561079c57600080fd5b506104de611e48565b3480156107b157600080fd5b506104a36107c0366004614e1e565b611ed6565b3480156107d157600080fd5b506104bb6107e0366004614e1e565b611ee7565b3480156107f157600080fd5b506104de611f36565b34801561080657600080fd5b506104a3611f45565b34801561081b57600080fd5b506104a361082a366004614e1e565b611f79565b34801561083b57600080fd5b506104a3611fcd565b34801561085057600080fd5b506104a361085f3660046150b0565b612202565b34801561087057600080fd5b506104a361087f366004615175565b6124a7565b34801561089057600080fd5b506104a361089f3660046150b0565b612735565b3480156108b057600080fd5b506104a36108bf3660046151a8565b612746565b3480156108d057600080fd5b506104a36108df36600461502b565b612a57565b3480156108f057600080fd5b506104a3612a68565b34801561090557600080fd5b506104a3612a78565b34801561091a57600080fd5b506104a3610929366004615175565b612aaa565b34801561093a57600080fd5b506008546001600160a01b031661050b565b34801561095857600080fd5b506104a36109673660046150e5565b612cf2565b34801561097857600080fd5b506104de612d7b565b34801561098d57600080fd5b506104a361099c36600461507d565b612d8a565b3480156109ad57600080fd5b506010546109bc9061ffff1681565b60405161ffff909116815260200161047a565b6104a36109dd366004615190565b612d9b565b3480156109ee57600080fd5b506104a36109fd366004614f1e565b612e44565b348015610a0e57600080fd5b50610a17612eda565b60405161047a919061557e565b348015610a3057600080fd5b506104a3610a3f366004615175565b612ef2565b348015610a5057600080fd5b506104a3610a5f366004614e1e565b61313a565b348015610a7057600080fd5b506104a3610a7f3660046150b0565b613186565b348015610a9057600080fd5b506104a3610a9f3660046150e5565b61341e565b348015610ab057600080fd5b506104a3610abf3660046150b0565b61367d565b348015610ad057600080fd5b506104a3610adf366004614ea5565b613822565b348015610af057600080fd5b506104a3610aff366004615190565b61386c565b6104a3610b12366004615233565b613c53565b348015610b2357600080fd5b50610a17610b323660046150b0565b613d7d565b348015610b4357600080fd5b50600c5461046e9060ff1681565b348015610b5d57600080fd5b506104de610b6c366004615190565b613ef9565b348015610b7d57600080fd5b506104a3610b8c366004615190565b613fb2565b348015610b9d57600080fd5b506104a3610bac366004615190565b613fc3565b348015610bbd57600080fd5b5061046e610bcc366004614e38565b613fd4565b348015610bdd57600080fd5b506104bb600e5481565b348015610bf357600080fd5b506104a3610c02366004614e1e565b614002565b60006301ffc9a760e01b6001600160e01b031983161480610c3857506380ac58cd60e01b6001600160e01b03198316145b80610c535750635b5e139f60e01b6001600160e01b03198316145b92915050565b60026009541415610c855760405162461bcd60e51b8152600401610c7c90615547565b60405180910390fd5b600260095560005b82811015610cd857610cc63383868685818110610cba57634e487b7160e01b600052603260045260246000fd5b90506020020135611a1e565b80610cd081615791565b915050610c8d565b505060016009555050565b606060028054610cf29061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1e9061573a565b8015610d6b5780601f10610d4057610100808354040283529160200191610d6b565b820191906000526020600020905b815481529060010190602001808311610d4e57829003601f168201915b5050505050905090565b6000610d808261409a565b610d9d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610dc4826140c1565b9050806001600160a01b0316836001600160a01b03161415610df95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610e3057610e138133613fd4565b610e30576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60105460009061ffff16610ea05750600090565b60105461ffff9081166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054929392608084019190610f019061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2d9061573a565b8015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff908116151560608401526301000000909104811615156080830152600783015460a0830152600883015460c0830152600983015460e0830152600a83015461010080840191909152600b909301549081161515610120830152919091046001600160a01b031661014090910152610160810151610180820151919250904260008382101561103357506001611061565b8282101561105d57600154600054038560200151111561105557506002611061565b506003611061565b5060035b95945050505050565b61ffff8083166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548694929160808401916110c89061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546110f49061573a565b80156111415780601f1061111657610100808354040283529160200191611141565b820191906000526020600020905b81548152906001019060200180831161112457829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061121c57604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906112405750336001600160a01b03821614155b15611260576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff8581166000818152600d602090815260409182902060068101805461ffff1916958a1695861790558251938452908301939093527fa66ed5115ae0083f4d108e7dd6a9140d1efb8d1285c1d185717c34b56b9f500991015b60405180910390a1505050505050565b6010546112dc9061ffff168261165f565b50565b6112ea838383614129565b505050565b61ffff8083166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805486949291608084019161134d9061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546113799061573a565b80156113c65780601f1061139b576101008083540402835291602001916113c6565b820191906000526020600020905b8154815290600101906020018083116113a957829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806114a157604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906114c55750336001600160a01b03821614155b156114e5576040516377efd02b60e11b8152336004820152602401610c7c565b600c5460ff161561150957604051636bf43ac160e11b815260040160405180910390fd5b61ffff85166000908152600d6020908152604090912085519091611534916004840191880190614bdb565b507fd1c3bef23efc23b7b878bc09751c78345ceda36e3ba298e9caf49f7b728a157886866040516112bb92919061567d565b6010546112dc9061ffff1682612cf2565b6008546001600160a01b031633146115a15760405162461bcd60e51b8152600401610c7c90615512565b61ffff82166000818152600d6020908152604091829020600b81018054610100600160a81b0319166101006001600160a01b03881690810291909117909155835194855291840191909152917f86b856311c919f1689ecc77b792e78812fc6c032256176835bf651873eb6b64291015b60405180910390a1505050565b6008546001600160a01b031633146116485760405162461bcd60e51b8152600401610c7c90615512565b600e55565b60105461165d9061ffff16612202565b565b61ffff8083166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548694929160808401916116bd9061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546116e99061573a565b80156117365780601f1061170b57610100808354040283529160200191611736565b820191906000526020600020905b81548152906001019060200180831161171957829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061181157604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906118355750336001600160a01b03821614155b15611855576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff85166000818152600d6020908152604091829020600581018890558251938452908301879052917f1faf3d0584be1139173a62dfb8ed9cc0a2a518b83a89b99fd5a05131d4fcbb0991016112bb565b6008546001600160a01b031633146118d15760405162461bcd60e51b8152600401610c7c90615512565b6010546040514791600091620100009091046001600160a01b031690839060006040518083038185875af1925050503d806000811461192c576040519150601f19603f3d011682016040523d82523d6000602084013e611931565b606091505b50509050806119535760405163ce43c9c560e01b815260040160405180910390fd5b60105460408051620100009092046001600160a01b03168252602082018490527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a15050565b6010546112dc9061ffff1682612aaa565b6008546001600160a01b031633146119dd5760405162461bcd60e51b8152600401610c7c90615512565b61165d6142cc565b6008546001600160a01b03163314611a0f5760405162461bcd60e51b8152600401610c7c90615512565b600c805460ff19166001179055565b6112ea83838360405180602001604052806000815250613822565b6008546001600160a01b03163314611a635760405162461bcd60e51b8152600401610c7c90615512565b8051611a76906013906020840190614bdb565b507fa5d40bbdde39fa9ed704b3ede3470a370dedabb286ed798d27b843adedae454e81604051611aa691906154a8565b60405180910390a150565b6008546001600160a01b03163314611adb5760405162461bcd60e51b8152600401610c7c90615512565b82818114611b2357604051632c73a0bf60e11b8152602060048201526014602482015273092dce0eae840e6d2f4ca40dcdee840dac2e8c6d60631b6044820152606401610c7c565b6000805b85811015611b7557848482818110611b4f57634e487b7160e01b600052603260045260246000fd5b9050602002013582611b6191906156c0565b915080611b6d81615791565b915050611b27565b5060105461ffff9081166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054929392608084019190611bd79061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054611c039061573a565b8015611c505780601f10611c2557610100808354040283529160200191611c50565b820191906000526020600020905b815481529060010190602001808311611c3357829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff8116604084015262010000810460ff908116151560608501526301000000909104811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b031661014090910152810151909150611cfa838261435f565b611d1757604051636f5606f560e01b815260040160405180910390fd5b60005b84811015611da157611d86898983818110611d4557634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611d5a9190614e1e565b888884818110611d7a57634e487b7160e01b600052603260045260246000fd5b90506020020135614397565b611d8f57600080fd5b80611d9981615791565b915050611d1a565b505050505050505050565b6008546001600160a01b03163314611dd65760405162461bcd60e51b8152600401610c7c90615512565b600c5460ff1615611dfa57604051636bf43ac160e11b815260040160405180910390fd5b8051611e0d906012906020840190614bdb565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad81604051611aa691906154a8565b6000610c53826140c1565b60128054611e559061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054611e819061573a565b8015611ece5780601f10611ea357610100808354040283529160200191611ece565b820191906000526020600020905b815481529060010190602001808311611eb157829003601f168201915b505050505081565b6010546112dc9061ffff1682611577565b60006001600160a01b038216611f10576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6060611f406143a3565b905090565b6008546001600160a01b03163314611f6f5760405162461bcd60e51b8152600401610c7c90615512565b61165d60006143b2565b6008546001600160a01b03163314611fa35760405162461bcd60e51b8152600401610c7c90615512565b601080546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60105461ffff9081166000818152600d6020908152604080832081516101e08101835281549096168652600181015492860192909252600282015490850152600381015460608501526004810180549394929360808401919061202f9061573a565b80601f016020809104026020016040519081016040528092919081815260200182805461205b9061573a565b80156120a85780601f1061207d576101008083540402835291602001916120a8565b820191906000526020600020905b81548152906001019060200180831161208b57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061218357604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906121a75750336001600160a01b03821614155b156121c7576040516377efd02b60e11b8152336004820152602401610c7c565b60105461ffff166000908152600d6020526040902060016121e760005490565b6121f191906156f7565b600382015542600a90910155505050565b61ffff8082166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548594929160808401916122609061573a565b80601f016020809104026020016040519081016040528092919081815260200182805461228c9061573a565b80156122d95780601f106122ae576101008083540402835291602001916122d9565b820191906000526020600020905b8154815290600101906020018083116122bc57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806123b457604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906123d85750336001600160a01b03821614155b156123f8576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff84166000908152600d60205260409020600381015461245357604051632c73a0bf60e11b81526020600482015260136024820152722937bab7321034b99039ba34b6361037b832b760691b6044820152606401610c7c565b60068101805463ff0000001916630100000017905560405161ffff861681527fd104aada4b066eb003582f2d87f8450d182d2a2306ab2aad08ab10d5564fe4c6906020015b60405180910390a15050505050565b61ffff8083166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548694929160808401916125059061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546125319061573a565b801561257e5780601f106125535761010080835404028352916020019161257e565b820191906000526020600020905b81548152906001019060200180831161256157829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061265957604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b0316331480159061267d5750336001600160a01b03821614155b1561269d576040516377efd02b60e11b8152336004820152602401610c7c565b6000548410156126c0576040516335d5065160e11b815260040160405180910390fd5b600b548411156126e3576040516316b0321960e01b815260040160405180910390fd5b61ffff85166000818152600d6020908152604091829020600181018890558251938452908301879052917f69ebea7b3f0ad8a601d0bbc817571c5b811f59977005bacf183812641b06dc2b91016112bb565b6010546112dc9061ffff168261106a565b6008546001600160a01b031633146127705760405162461bcd60e51b8152600401610c7c90615512565b60105461ffff161561278457612784611fcd565b600b548911156127e557604051632c73a0bf60e11b815260206004820152602560248201527f6d61784d696e74696e6749642065786365656420746865206d6178696d756d536044820152647570706c7960d81b6064820152608401610c7c565b82841061283557604051632c73a0bf60e11b815260206004820152601860248201527f656e6454696d652073686f756c642062652062696767657200000000000000006044820152606401610c7c565b6010805460009190829061284c9061ffff1661576f565b91906101000a81548161ffff021916908361ffff16021790559050604051806101e001604052808261ffff1681526020018b815260200161288c60005490565b8152600060208083018290526040805180830182528381528185015260608085018f905261ffff8e81166080808801919091528e151560a08801528d151560c088015260e08701869052610100870186905261012087018d905261014087018c90528a15156101608801526001600160a01b038a16610180909701969096528781168552600d8452938290208651815461ffff191695169490941784558583015160018501559085015160028401558401516003830155918301518051919261295d92600485019290910190614bdb565b5060a0820151600582015560c082015160068201805460e085015161010080870151151563010000000263ff00000019921515620100000262ffffff1990941661ffff909616959095179290921716929092179055610120830151600783015561014083015160088301556101608301516009830155610180830151600a8301556101a0830151600b90920180546101c0909401516001600160a01b0316909102610100600160a81b0319921515929092166001600160a81b0319909316929092171790556040517f726dac3df892bcc17d3a1e4f613ac2fea16a105790dbc38bcf72ceac61b8bc4f90600090a150505050505050505050565b6010546112dc9061ffff168261341e565b60105461165d9061ffff16613186565b6008546001600160a01b03163314612aa25760405162461bcd60e51b8152600401610c7c90615512565b61165d614404565b61ffff8083166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054869492916080840191612b089061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054612b349061573a565b8015612b815780601f10612b5657610100808354040283529160200191612b81565b820191906000526020600020905b815481529060010190602001808311612b6457829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d909352909120909201549293509091041680612c5c57604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b03163314801590612c805750336001600160a01b03821614155b15612ca0576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff85166000818152600d6020908152604091829020600981018890558251938452908301879052917f9eaad6dc90ce510660aaa5b4c6ddba6bf6182ef52ff0ba7a74dcdd1962ca56cf91016112bb565b6008546001600160a01b03163314612d1c5760405162461bcd60e51b8152600401610c7c90615512565b61ffff82166000818152600d6020908152604091829020600b8101805460ff1916861515908117909155835194855291840191909152917f9e6cc3cb1b1df4cded6e070aacdafb5ae51c14813df699b91009e4c916d283ee9101611611565b606060038054610cf29061573a565b6010546112dc9061ffff16826112ef565b60026009541415612dbe5760405162461bcd60e51b8152600401610c7c90615547565b6002600955600a5460ff1615612de65760405162461bcd60e51b8152600401610c7c906154bb565b601054600090612df99061ffff16613d7d565b90508060e0015115612e1e57604051630539aec560e21b815260040160405180910390fd5b612e28818361445c565b612e323383614397565b612e3b57600080fd5b50506001600955565b6001600160a01b038216331415612e6e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612ee2614c5f565b601054611f409061ffff16613d7d565b61ffff8083166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054869492916080840191612f509061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054612f7c9061573a565b8015612fc95780601f10612f9e57610100808354040283529160200191612fc9565b820191906000526020600020905b815481529060010190602001808311612fac57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806130a457604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906130c85750336001600160a01b03821614155b156130e8576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff85166000818152600d6020908152604091829020600a81018890558251938452908301879052917f387a2f9288a8a4c69041aa692c6b82f74d9d1049cd2f1612e8b510fd2264280091016112bb565b6008546001600160a01b031633146131645760405162461bcd60e51b8152600401610c7c90615512565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b61ffff8082166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548594929160808401916131e49061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546132109061573a565b801561325d5780601f106132325761010080835404028352916020019161325d565b820191906000526020600020905b81548152906001019060200180831161324057829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061333857604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b0316331480159061335c5750336001600160a01b03821614155b1561337c576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff84166000908152600d6020526040902060038101546133da57604051632c73a0bf60e11b8152602060048201526016602482015275149bdd5b99081cda1bdd5b190818994818db1bdcd95960521b6044820152606401610c7c565b600e546133e790436156c0565b600782018190556040519081527ffd1cd879b90803328042915a0dab567886d80637d84c7875df6a3e4495c379ac90602001612498565b61ffff8083166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805486949291608084019161347c9061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546134a89061573a565b80156134f55780601f106134ca576101008083540402835291602001916134f5565b820191906000526020600020905b8154815290600101906020018083116134d857829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806135d057604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906135f45750336001600160a01b03821614155b15613614576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff85166000818152600d602090815260409182902060068101805462ff00001916620100008a151590810291909117909155835194855291840191909152917f19608cbe5005d5dad05b0e47ee094b28412334d790fadf379bcff2d4fd7eec7591016112bb565b61ffff81166000908152600d6020526040902060068101546301000000900460ff16156136bd5760405163a89ac15160e01b815260040160405180910390fd5b60078101544381111561371357604051632c73a0bf60e11b815260206004820152601d60248201527f52616e646f6d2073656c656374696f6e206973206e6f742072656164790000006044820152606401610c7c565b60006137206001836156f7565b401561376b5781406137336001846156f7565b6040805160208101939093529040908201524260608201526080016040516020818303038152906040528051906020012090506137b6565b6137766001436156f7565b406137826002436156f7565b6040805160208101939093529040908201524260608201526080016040516020818303038152906040528051906020012090505b60068301805463ff00000019166301000000179055600283015460038401546000916137e491849190614573565b6008850181905560405161ffff871681529091507fd104aada4b066eb003582f2d87f8450d182d2a2306ab2aad08ab10d5564fe4c690602001612498565b61382d848484614129565b6001600160a01b0383163b1561386657613849848484846145a2565b613866576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60105461ffff9081166000818152600d6020908152604080832081516101e0810183528154909616865260018101549286019290925260028201549085015260038101546060850152600481018054939492936080840191906138ce9061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546138fa9061573a565b80156139475780601f1061391c57610100808354040283529160200191613947565b820191906000526020600020905b81548152906001019060200180831161392a57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d909352909120909201549293509091041680613a2257604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b03163314801590613a465750336001600160a01b03821614155b15613a66576040516377efd02b60e11b8152336004820152602401610c7c565b60026009541415613a895760405162461bcd60e51b8152600401610c7c90615547565b6002600981905560105461ffff9081166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252938101549383019390935260038301546060830152600483018054919391608084019190613af39061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054613b1f9061573a565b8015613b6c5780601f10613b4157610100808354040283529160200191613b6c565b820191906000526020600020905b815481529060010190602001808311613b4f57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff8116604084015262010000810460ff908116151560608501526301000000909104811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b031661014090910152810151909150613c16868261435f565b613c3357604051636f5606f560e01b815260040160405180910390fd5b613c3d3387614397565b613c4657600080fd5b5050600160095550505050565b60026009541415613c765760405162461bcd60e51b8152600401610c7c90615547565b6002600955600a5460ff1615613c9e5760405162461bcd60e51b8152600401610c7c906154bb565b601054600090613cb19061ffff16613d7d565b90508060e00151613cd557604051631681075160e21b815260040160405180910390fd5b613ce3818361ffff1661445c565b60105461ffff9081166000908152600f6020908152604080832033845290915290205460c0830151908216918116613d1b858461569a565b61ffff161115613d445760405163e70937a360e01b815261ffff82166004820152602401610c7c565b601054613d589061ffff168589898961469a565b613d66338561ffff16614397565b613d6f57600080fd5b505060016009555050505050565b613d85614c5f565b61ffff8083166000908152600d602090815260409182902082516101e0810184528154909416845260018101549184019190915260028101549183019190915260038101546060830152600481018054608084019190613de49061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054613e109061573a565b8015613e5d5780601f10613e3257610100808354040283529160200191613e5d565b820191906000526020600020905b815481529060010190602001808311613e4057829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff908116151560608401526301000000909104811615156080830152600783015460a0830152600883015460c0830152600983015460e0830152600a83015461010080840191909152600b909301549081161515610120830152919091046001600160a01b03166101409091015292915050565b60606000613f068361474c565b90508061010001518015613f5257506040805160008152602081018083528151902060808401519092613f39920161539a565b6040516020818303038152906040528051906020012014155b15613f905760128160800151613f6785614944565b604051602001613f79939291906153eb565b604051602081830303815290604052915050919050565b6013613f9b84614944565b604051602001613f799291906153b6565b50919050565b6010546112dc9061ffff16826124a7565b6010546112dc9061ffff1682612ef2565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b0316331461402c5760405162461bcd60e51b8152600401610c7c90615512565b6001600160a01b0381166140915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c7c565b6112dc816143b2565b6000805482108015610c53575050600090815260046020526040902054600160e01b161590565b60008160005481101561411057600081815260046020526040902054600160e01b811661410e575b806141075750600019016000818152600460205260409020546140e9565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000614134826140c1565b9050836001600160a01b0316816001600160a01b0316146141675760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061418557506141858533613fd4565b806141a057503361419584610d75565b6001600160a01b0316145b9050806141c057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166141e757604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661428457600183016000818152600460205260409020546142825760005481146142825760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600a5460ff166143155760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c7c565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061436c8260016156c0565b8361437660005490565b61438091906156c0565b111561438e57506000610c53565b50600192915050565b600061438e8383614993565b606060128054610cf29061573a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5460ff16156144275760405162461bcd60e51b8152600401610c7c906154bb565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586143423390565b816101a001511561448057604051639649b2a360e01b815260040160405180910390fd5b600061448a610e8c565b905060028160048111156144ae57634e487b7160e01b600052602160045260246000fd5b146144cc57604051632ac9194b60e21b815260040160405180910390fd5b60c083015161ffff16158015906144ea5750818360c0015161ffff16105b156145145760c083015160405163e70937a360e01b815261ffff9091166004820152602401610c7c565b61452282846020015161435f565b61453f57604051636f5606f560e01b815260040160405180910390fd5b6000828460a0015161455191906156d8565b90503481146138665760405163bfa3573760e01b815260040160405180910390fd5b60008061458084846156f7565b61458b9060016156c0565b90508361459882876157ac565b61106191906156c0565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906145d7903390899088908890600401615443565b602060405180830381600087803b1580156145f157600080fd5b505af1925050508015614621575060408051601f3d908101601f1916820190925261461e91810190615061565b60015b61467c573d80801561464f576040519150601f19603f3d011682016040523d82523d6000602084013e614654565b606091505b508051614674576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60006146cd86336040518060400160405280600e81526020016d77686974656c697374436c61696d60901b8152506149b1565b90506146db818585856149e9565b6146f857604051630510cc4560e01b815260040160405180910390fd5b61ffff8681166000908152600f6020908152604080832033845290915281208054889391929161472a9185911661569a565b92506101000a81548161ffff021916908361ffff160217905550505050505050565b614754614c5f565b61475d8261409a565b61477d5760405163b5706f4f60e01b815260048101839052602401610c7c565b60015b60105461ffff90811690821611613fac5761ffff8082166000908152600d602090815260409182902082516101e08101845281549094168452600181015491840191909152600281015491830191909152600381015460608301526004810180546080840191906147f09061573a565b80601f016020809104026020016040519081016040528092919081815260200182805461481c9061573a565b80156148695780601f1061483e57610100808354040283529160200191614869565b820191906000526020600020905b81548152906001019060200180831161484c57829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff90811615156060808501919091526301000000909204811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b03166101409091015281015190925060009061491a578260200151614920565b82606001515b90508084111561493d57816149348161576f565b92505050614780565b5050919050565b604080516080810191829052607f0190826030600a8206018353600a90045b801561498157600183039250600a81066030018353600a9004614963565b50819003601f19909101908152919050565b6149ad828260405180602001604052806000815250614a6a565b5050565b6000308484846040516020016149ca9493929190615343565b6040516020818303038152906040528051906020012090509392505050565b6011546040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905290916001600160a01b03169060019060a0016020604051602081039080840390855afa158015614a4c573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149050949350505050565b6000546001600160a01b038416614a9357604051622e076360e81b815260040160405180910390fd5b82614ab15760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15614b86575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614b4f60008784806001019550876145a2565b614b6c576040516368d2bf6b60e11b815260040160405180910390fd5b808210614b04578260005414614b8157600080fd5b614bcb565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210614b87575b5060009081556138669085838684565b828054614be79061573a565b90600052602060002090601f016020900481019282614c095760008555614c4f565b82601f10614c2257805160ff1916838001178555614c4f565b82800160010185558215614c4f579182015b82811115614c4f578251825591602001919060010190614c34565b50614c5b929150614cec565b5090565b604051806101e00160405280600061ffff1681526020016000815260200160008152602001600081526020016060815260200160008152602001600061ffff1681526020016000151581526020016000151581526020016000815260200160008152602001600081526020016000815260200160001515815260200160006001600160a01b031681525090565b5b80821115614c5b5760008155600101614ced565b600067ffffffffffffffff80841115614d1c57614d1c6157e2565b604051601f8501601f19908116603f01168101908282118183101715614d4457614d446157e2565b81604052809350858152868686011115614d5d57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114614d8e57600080fd5b919050565b60008083601f840112614da4578081fd5b50813567ffffffffffffffff811115614dbb578182fd5b6020830191508360208260051b8501011115614dd657600080fd5b9250929050565b80358015158114614d8e57600080fd5b600082601f830112614dfd578081fd5b61410783833560208501614d01565b803561ffff81168114614d8e57600080fd5b600060208284031215614e2f578081fd5b61410782614d77565b60008060408385031215614e4a578081fd5b614e5383614d77565b9150614e6160208401614d77565b90509250929050565b600080600060608486031215614e7e578081fd5b614e8784614d77565b9250614e9560208501614d77565b9150604084013590509250925092565b60008060008060808587031215614eba578081fd5b614ec385614d77565b9350614ed160208601614d77565b925060408501359150606085013567ffffffffffffffff811115614ef3578182fd5b8501601f81018713614f03578182fd5b614f1287823560208401614d01565b91505092959194509250565b60008060408385031215614f30578182fd5b614f3983614d77565b9150614e6160208401614ddd565b60008060408385031215614f59578182fd5b614f6283614d77565b946020939093013593505050565b60008060008060408587031215614f85578384fd5b843567ffffffffffffffff80821115614f9c578586fd5b614fa888838901614d93565b90965094506020870135915080821115614fc0578384fd5b50614fcd87828801614d93565b95989497509550505050565b600080600060408486031215614fed578283fd5b833567ffffffffffffffff811115615003578384fd5b61500f86828701614d93565b9094509250615022905060208501614d77565b90509250925092565b60006020828403121561503c578081fd5b61410782614ddd565b600060208284031215615056578081fd5b8135614107816157f8565b600060208284031215615072578081fd5b8151614107816157f8565b60006020828403121561508e578081fd5b813567ffffffffffffffff8111156150a4578182fd5b61469284828501614ded565b6000602082840312156150c1578081fd5b61410782614e0c565b600080604083850312156150dc578182fd5b614e5383614e0c565b600080604083850312156150f7578182fd5b614f3983614e0c565b60008060408385031215615112578182fd5b61511b83614e0c565b9150602083013567ffffffffffffffff811115615136578182fd5b61514285828601614ded565b9150509250929050565b6000806040838503121561515e578182fd5b61516783614e0c565b9150614e6160208401614e0c565b60008060408385031215615187578182fd5b614f6283614e0c565b6000602082840312156151a1578081fd5b5035919050565b60008060008060008060008060006101208a8c0312156151c6578687fd5b8935985060208a013597506151dd60408b01614e0c565b96506151eb60608b01614ddd565b95506151f960808b01614ddd565b945060a08a0135935060c08a0135925061521560e08b01614ddd565b91506152246101008b01614d77565b90509295985092959850929598565b60008060008060808587031215615248578182fd5b843560ff81168114615258578283fd5b9350602085013592506040850135915061527460608601614e0c565b905092959194509250565b6000815180845261529781602086016020860161570e565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806152c557607f831692505b60208084108214156152e557634e487b7160e01b86526022600452602486fd5b8180156152f9576001811461530a57615337565b60ff19861689528489019650615337565b60008881526020902060005b8681101561532f5781548b820152908501908301615316565b505084890196505b50505050505092915050565b60006bffffffffffffffffffffffff19808760601b16835261ffff60f01b8660f01b166014840152808560601b16601684015250825161538a81602a85016020870161570e565b91909101602a0195945050505050565b600082516153ac81846020870161570e565b9190910192915050565b60006153c282856152ab565b83516153d281836020880161570e565b64173539b7b760d91b9101908152600501949350505050565b60006153f782866152ab565b845161540781836020890161570e565b602f60f81b9101908152835161542481600184016020880161570e565b64173539b7b760d91b6001929091019182015260060195945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906154769083018461527f565b9695505050505050565b60208101600583106154a257634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000614107602083018461527f565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601390820152724e6f7420616c6c6f776564206164647265737360681b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020815261559360208201835161ffff169052565b602082015160408201526040820151606082015260608201516080820152600060808301516101e08060a08501526155cf61020085018361527f565b915060a085015160c085015260c08501516155f060e086018261ffff169052565b5060e08501516101006156068187018315159052565b860151905061012061561b8682018315159052565b8601516101408681019190915286015161016080870191909152860151610180808701919091528601516101a08087019190915286015190506101c06156648187018315159052565b909501516001600160a01b031693019290925250919050565b61ffff83168152604060208201526000614692604083018461527f565b600061ffff8083168185168083038211156156b7576156b76157cc565b01949350505050565b600082198211156156d3576156d36157cc565b500190565b60008160001904831182151516156156f2576156f26157cc565b500290565b600082821015615709576157096157cc565b500390565b60005b83811015615729578181015183820152602001615711565b838111156138665750506000910152565b600181811c9082168061574e57607f821691505b60208210811415613fac57634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415615787576157876157cc565b6001019392505050565b60006000198214156157a5576157a56157cc565b5060010190565b6000826157c757634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146112dc57600080fdfea26469706673582212207247ab9ffdf143533155371e1dc72477f4a475cdbcf0b42cb1136c955745083a64736f6c63430008040033487965776f6e277320416c62756d206f662047656e7265205061696e74696e67730000000000000000000000006c9e30f0340e32fde08deade9be98ad83df05e730000000000000000000000000000000000000000000000000000000000004e20000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000001b68747470733a2f2f6b6d6d2e6d7970696e6174612e636c6f75642f0000000000000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f676174657761792d697066732e61746f6d726967732e696f2f6b6d6d2f000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106103dd5760003560e01c8063749aa2d9116101fd578063a32bf59711610118578063c2207328116100ab578063cb096a7f1161007a578063cb096a7f14610b71578063ccb98ffc14610b91578063e985e9c514610bb1578063ec342b7f14610bd1578063f2fde38b14610be757610427565b8063c220732814610b04578063c33ac6bb14610b17578063c6ad320014610b37578063c87b56dd14610b5157610427565b8063b2c73e28116100e7578063b2c73e2814610a84578063b2cebd8d14610aa4578063b88d4fde14610ac4578063c1f2612314610ae457610427565b8063a32bf59714610a02578063a7bfd04114610a24578063a7ecd37e14610a44578063a9a8baa514610a6457610427565b8063852c64131161019057806399e0dd7c1161015f57806399e0dd7c146109815780639c4780d8146109a1578063a0712d68146109cf578063a22cb465146109e257610427565b8063852c64131461090e5780638da5cb5b1461092e57806395ba9d0a1461094c57806395d89b411461096c57610427565b80637abd6292116101cc5780637abd6292146108a45780637b789204146108c457806380aafbdb146108e45780638456cb59146108f957610427565b8063749aa2d91461082f5780637583a9d51461084457806378642aee146108645780637905ee0f1461088457610427565b80633c482a50116102f857806355f804b31161028b578063704b6c021161025a578063704b6c02146107a557806370a08231146107c5578063714c5398146107e5578063715018a6146107fa578063718da7ee1461080f57610427565b806355f804b3146107385780635c975abb146107585780636352211e146107705780636c0360eb1461079057610427565b806340d34285116102c757806340d34285146106d057806342842e0e146106e557806346a6fb7b146107055780634a61ccfd1461072557610427565b80633c482a50146106735780633ccfd60b146106935780633e0a322d1461069b5780633f4ba83a146106bb57610427565b80631ccbf84d116103705780633059fb871161033f5780633059fb87146105fe5780633084a42f1461061e57806334d15ae51461063e5780633bd649681461065e57610427565b80631ccbf84d1461057e578063238a47091461059e57806323b872dd146105be5780632e0b3006146105de57610427565b8063081812fc116103ac578063081812fc146104eb578063095ea7b31461052357806318160ddd146105435780631865c57d1461055c57610427565b806301ffc9a71461044e5780630202def1146104835780630480e58b146104a557806306fdde03146104c957610427565b36610427577f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f88525874335b604080516001600160a01b0390921682523460208301520160405180910390a1005b7f88a5966d370b9919b20f3e2c13ff65706f196a4e32cc2c12bf57088f8852587433610405565b34801561045a57600080fd5b5061046e610469366004615045565b610c07565b60405190151581526020015b60405180910390f35b34801561048f57600080fd5b506104a361049e366004614fd9565b610c59565b005b3480156104b157600080fd5b506104bb600b5481565b60405190815260200161047a565b3480156104d557600080fd5b506104de610ce3565b60405161047a91906154a8565b3480156104f757600080fd5b5061050b610506366004615190565b610d75565b6040516001600160a01b03909116815260200161047a565b34801561052f57600080fd5b506104a361053e366004614f47565b610db9565b34801561054f57600080fd5b50600154600054036104bb565b34801561056857600080fd5b50610571610e8c565b60405161047a9190615480565b34801561058a57600080fd5b506104a361059936600461514c565b61106a565b3480156105aa57600080fd5b506104a36105b9366004615190565b6112cb565b3480156105ca57600080fd5b506104a36105d9366004614e6a565b6112df565b3480156105ea57600080fd5b506104a36105f9366004615100565b6112ef565b34801561060a57600080fd5b506104a361061936600461502b565b611566565b34801561062a57600080fd5b506104a36106393660046150ca565b611577565b34801561064a57600080fd5b506104a3610659366004615190565b61161e565b34801561066a57600080fd5b506104a361164d565b34801561067f57600080fd5b506104a361068e366004615175565b61165f565b6104a36118a7565b3480156106a757600080fd5b506104a36106b6366004615190565b6119a2565b3480156106c757600080fd5b506104a36119b3565b3480156106dc57600080fd5b506104a36119e5565b3480156106f157600080fd5b506104a3610700366004614e6a565b611a1e565b34801561071157600080fd5b506104a361072036600461507d565b611a39565b6104a3610733366004614f70565b611ab1565b34801561074457600080fd5b506104a361075336600461507d565b611dac565b34801561076457600080fd5b50600a5460ff1661046e565b34801561077c57600080fd5b5061050b61078b366004615190565b611e3d565b34801561079c57600080fd5b506104de611e48565b3480156107b157600080fd5b506104a36107c0366004614e1e565b611ed6565b3480156107d157600080fd5b506104bb6107e0366004614e1e565b611ee7565b3480156107f157600080fd5b506104de611f36565b34801561080657600080fd5b506104a3611f45565b34801561081b57600080fd5b506104a361082a366004614e1e565b611f79565b34801561083b57600080fd5b506104a3611fcd565b34801561085057600080fd5b506104a361085f3660046150b0565b612202565b34801561087057600080fd5b506104a361087f366004615175565b6124a7565b34801561089057600080fd5b506104a361089f3660046150b0565b612735565b3480156108b057600080fd5b506104a36108bf3660046151a8565b612746565b3480156108d057600080fd5b506104a36108df36600461502b565b612a57565b3480156108f057600080fd5b506104a3612a68565b34801561090557600080fd5b506104a3612a78565b34801561091a57600080fd5b506104a3610929366004615175565b612aaa565b34801561093a57600080fd5b506008546001600160a01b031661050b565b34801561095857600080fd5b506104a36109673660046150e5565b612cf2565b34801561097857600080fd5b506104de612d7b565b34801561098d57600080fd5b506104a361099c36600461507d565b612d8a565b3480156109ad57600080fd5b506010546109bc9061ffff1681565b60405161ffff909116815260200161047a565b6104a36109dd366004615190565b612d9b565b3480156109ee57600080fd5b506104a36109fd366004614f1e565b612e44565b348015610a0e57600080fd5b50610a17612eda565b60405161047a919061557e565b348015610a3057600080fd5b506104a3610a3f366004615175565b612ef2565b348015610a5057600080fd5b506104a3610a5f366004614e1e565b61313a565b348015610a7057600080fd5b506104a3610a7f3660046150b0565b613186565b348015610a9057600080fd5b506104a3610a9f3660046150e5565b61341e565b348015610ab057600080fd5b506104a3610abf3660046150b0565b61367d565b348015610ad057600080fd5b506104a3610adf366004614ea5565b613822565b348015610af057600080fd5b506104a3610aff366004615190565b61386c565b6104a3610b12366004615233565b613c53565b348015610b2357600080fd5b50610a17610b323660046150b0565b613d7d565b348015610b4357600080fd5b50600c5461046e9060ff1681565b348015610b5d57600080fd5b506104de610b6c366004615190565b613ef9565b348015610b7d57600080fd5b506104a3610b8c366004615190565b613fb2565b348015610b9d57600080fd5b506104a3610bac366004615190565b613fc3565b348015610bbd57600080fd5b5061046e610bcc366004614e38565b613fd4565b348015610bdd57600080fd5b506104bb600e5481565b348015610bf357600080fd5b506104a3610c02366004614e1e565b614002565b60006301ffc9a760e01b6001600160e01b031983161480610c3857506380ac58cd60e01b6001600160e01b03198316145b80610c535750635b5e139f60e01b6001600160e01b03198316145b92915050565b60026009541415610c855760405162461bcd60e51b8152600401610c7c90615547565b60405180910390fd5b600260095560005b82811015610cd857610cc63383868685818110610cba57634e487b7160e01b600052603260045260246000fd5b90506020020135611a1e565b80610cd081615791565b915050610c8d565b505060016009555050565b606060028054610cf29061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054610d1e9061573a565b8015610d6b5780601f10610d4057610100808354040283529160200191610d6b565b820191906000526020600020905b815481529060010190602001808311610d4e57829003601f168201915b5050505050905090565b6000610d808261409a565b610d9d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610dc4826140c1565b9050806001600160a01b0316836001600160a01b03161415610df95760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610e3057610e138133613fd4565b610e30576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60105460009061ffff16610ea05750600090565b60105461ffff9081166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054929392608084019190610f019061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054610f2d9061573a565b8015610f7a5780601f10610f4f57610100808354040283529160200191610f7a565b820191906000526020600020905b815481529060010190602001808311610f5d57829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff908116151560608401526301000000909104811615156080830152600783015460a0830152600883015460c0830152600983015460e0830152600a83015461010080840191909152600b909301549081161515610120830152919091046001600160a01b031661014090910152610160810151610180820151919250904260008382101561103357506001611061565b8282101561105d57600154600054038560200151111561105557506002611061565b506003611061565b5060035b95945050505050565b61ffff8083166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548694929160808401916110c89061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546110f49061573a565b80156111415780601f1061111657610100808354040283529160200191611141565b820191906000526020600020905b81548152906001019060200180831161112457829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061121c57604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906112405750336001600160a01b03821614155b15611260576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff8581166000818152600d602090815260409182902060068101805461ffff1916958a1695861790558251938452908301939093527fa66ed5115ae0083f4d108e7dd6a9140d1efb8d1285c1d185717c34b56b9f500991015b60405180910390a1505050505050565b6010546112dc9061ffff168261165f565b50565b6112ea838383614129565b505050565b61ffff8083166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805486949291608084019161134d9061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546113799061573a565b80156113c65780601f1061139b576101008083540402835291602001916113c6565b820191906000526020600020905b8154815290600101906020018083116113a957829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806114a157604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906114c55750336001600160a01b03821614155b156114e5576040516377efd02b60e11b8152336004820152602401610c7c565b600c5460ff161561150957604051636bf43ac160e11b815260040160405180910390fd5b61ffff85166000908152600d6020908152604090912085519091611534916004840191880190614bdb565b507fd1c3bef23efc23b7b878bc09751c78345ceda36e3ba298e9caf49f7b728a157886866040516112bb92919061567d565b6010546112dc9061ffff1682612cf2565b6008546001600160a01b031633146115a15760405162461bcd60e51b8152600401610c7c90615512565b61ffff82166000818152600d6020908152604091829020600b81018054610100600160a81b0319166101006001600160a01b03881690810291909117909155835194855291840191909152917f86b856311c919f1689ecc77b792e78812fc6c032256176835bf651873eb6b64291015b60405180910390a1505050565b6008546001600160a01b031633146116485760405162461bcd60e51b8152600401610c7c90615512565b600e55565b60105461165d9061ffff16612202565b565b61ffff8083166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548694929160808401916116bd9061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546116e99061573a565b80156117365780601f1061170b57610100808354040283529160200191611736565b820191906000526020600020905b81548152906001019060200180831161171957829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061181157604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906118355750336001600160a01b03821614155b15611855576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff85166000818152600d6020908152604091829020600581018890558251938452908301879052917f1faf3d0584be1139173a62dfb8ed9cc0a2a518b83a89b99fd5a05131d4fcbb0991016112bb565b6008546001600160a01b031633146118d15760405162461bcd60e51b8152600401610c7c90615512565b6010546040514791600091620100009091046001600160a01b031690839060006040518083038185875af1925050503d806000811461192c576040519150601f19603f3d011682016040523d82523d6000602084013e611931565b606091505b50509050806119535760405163ce43c9c560e01b815260040160405180910390fd5b60105460408051620100009092046001600160a01b03168252602082018490527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364910160405180910390a15050565b6010546112dc9061ffff1682612aaa565b6008546001600160a01b031633146119dd5760405162461bcd60e51b8152600401610c7c90615512565b61165d6142cc565b6008546001600160a01b03163314611a0f5760405162461bcd60e51b8152600401610c7c90615512565b600c805460ff19166001179055565b6112ea83838360405180602001604052806000815250613822565b6008546001600160a01b03163314611a635760405162461bcd60e51b8152600401610c7c90615512565b8051611a76906013906020840190614bdb565b507fa5d40bbdde39fa9ed704b3ede3470a370dedabb286ed798d27b843adedae454e81604051611aa691906154a8565b60405180910390a150565b6008546001600160a01b03163314611adb5760405162461bcd60e51b8152600401610c7c90615512565b82818114611b2357604051632c73a0bf60e11b8152602060048201526014602482015273092dce0eae840e6d2f4ca40dcdee840dac2e8c6d60631b6044820152606401610c7c565b6000805b85811015611b7557848482818110611b4f57634e487b7160e01b600052603260045260246000fd5b9050602002013582611b6191906156c0565b915080611b6d81615791565b915050611b27565b5060105461ffff9081166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054929392608084019190611bd79061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054611c039061573a565b8015611c505780601f10611c2557610100808354040283529160200191611c50565b820191906000526020600020905b815481529060010190602001808311611c3357829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff8116604084015262010000810460ff908116151560608501526301000000909104811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b031661014090910152810151909150611cfa838261435f565b611d1757604051636f5606f560e01b815260040160405180910390fd5b60005b84811015611da157611d86898983818110611d4557634e487b7160e01b600052603260045260246000fd5b9050602002016020810190611d5a9190614e1e565b888884818110611d7a57634e487b7160e01b600052603260045260246000fd5b90506020020135614397565b611d8f57600080fd5b80611d9981615791565b915050611d1a565b505050505050505050565b6008546001600160a01b03163314611dd65760405162461bcd60e51b8152600401610c7c90615512565b600c5460ff1615611dfa57604051636bf43ac160e11b815260040160405180910390fd5b8051611e0d906012906020840190614bdb565b507f6741b2fc379fad678116fe3d4d4b9a1a184ab53ba36b86ad0fa66340b1ab41ad81604051611aa691906154a8565b6000610c53826140c1565b60128054611e559061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054611e819061573a565b8015611ece5780601f10611ea357610100808354040283529160200191611ece565b820191906000526020600020905b815481529060010190602001808311611eb157829003601f168201915b505050505081565b6010546112dc9061ffff1682611577565b60006001600160a01b038216611f10576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6060611f406143a3565b905090565b6008546001600160a01b03163314611f6f5760405162461bcd60e51b8152600401610c7c90615512565b61165d60006143b2565b6008546001600160a01b03163314611fa35760405162461bcd60e51b8152600401610c7c90615512565b601080546001600160a01b03909216620100000262010000600160b01b0319909216919091179055565b60105461ffff9081166000818152600d6020908152604080832081516101e08101835281549096168652600181015492860192909252600282015490850152600381015460608501526004810180549394929360808401919061202f9061573a565b80601f016020809104026020016040519081016040528092919081815260200182805461205b9061573a565b80156120a85780601f1061207d576101008083540402835291602001916120a8565b820191906000526020600020905b81548152906001019060200180831161208b57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061218357604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906121a75750336001600160a01b03821614155b156121c7576040516377efd02b60e11b8152336004820152602401610c7c565b60105461ffff166000908152600d6020526040902060016121e760005490565b6121f191906156f7565b600382015542600a90910155505050565b61ffff8082166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548594929160808401916122609061573a565b80601f016020809104026020016040519081016040528092919081815260200182805461228c9061573a565b80156122d95780601f106122ae576101008083540402835291602001916122d9565b820191906000526020600020905b8154815290600101906020018083116122bc57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806123b457604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906123d85750336001600160a01b03821614155b156123f8576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff84166000908152600d60205260409020600381015461245357604051632c73a0bf60e11b81526020600482015260136024820152722937bab7321034b99039ba34b6361037b832b760691b6044820152606401610c7c565b60068101805463ff0000001916630100000017905560405161ffff861681527fd104aada4b066eb003582f2d87f8450d182d2a2306ab2aad08ab10d5564fe4c6906020015b60405180910390a15050505050565b61ffff8083166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548694929160808401916125059061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546125319061573a565b801561257e5780601f106125535761010080835404028352916020019161257e565b820191906000526020600020905b81548152906001019060200180831161256157829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061265957604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b0316331480159061267d5750336001600160a01b03821614155b1561269d576040516377efd02b60e11b8152336004820152602401610c7c565b6000548410156126c0576040516335d5065160e11b815260040160405180910390fd5b600b548411156126e3576040516316b0321960e01b815260040160405180910390fd5b61ffff85166000818152600d6020908152604091829020600181018890558251938452908301879052917f69ebea7b3f0ad8a601d0bbc817571c5b811f59977005bacf183812641b06dc2b91016112bb565b6010546112dc9061ffff168261106a565b6008546001600160a01b031633146127705760405162461bcd60e51b8152600401610c7c90615512565b60105461ffff161561278457612784611fcd565b600b548911156127e557604051632c73a0bf60e11b815260206004820152602560248201527f6d61784d696e74696e6749642065786365656420746865206d6178696d756d536044820152647570706c7960d81b6064820152608401610c7c565b82841061283557604051632c73a0bf60e11b815260206004820152601860248201527f656e6454696d652073686f756c642062652062696767657200000000000000006044820152606401610c7c565b6010805460009190829061284c9061ffff1661576f565b91906101000a81548161ffff021916908361ffff16021790559050604051806101e001604052808261ffff1681526020018b815260200161288c60005490565b8152600060208083018290526040805180830182528381528185015260608085018f905261ffff8e81166080808801919091528e151560a08801528d151560c088015260e08701869052610100870186905261012087018d905261014087018c90528a15156101608801526001600160a01b038a16610180909701969096528781168552600d8452938290208651815461ffff191695169490941784558583015160018501559085015160028401558401516003830155918301518051919261295d92600485019290910190614bdb565b5060a0820151600582015560c082015160068201805460e085015161010080870151151563010000000263ff00000019921515620100000262ffffff1990941661ffff909616959095179290921716929092179055610120830151600783015561014083015160088301556101608301516009830155610180830151600a8301556101a0830151600b90920180546101c0909401516001600160a01b0316909102610100600160a81b0319921515929092166001600160a81b0319909316929092171790556040517f726dac3df892bcc17d3a1e4f613ac2fea16a105790dbc38bcf72ceac61b8bc4f90600090a150505050505050505050565b6010546112dc9061ffff168261341e565b60105461165d9061ffff16613186565b6008546001600160a01b03163314612aa25760405162461bcd60e51b8152600401610c7c90615512565b61165d614404565b61ffff8083166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054869492916080840191612b089061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054612b349061573a565b8015612b815780601f10612b5657610100808354040283529160200191612b81565b820191906000526020600020905b815481529060010190602001808311612b6457829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d909352909120909201549293509091041680612c5c57604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b03163314801590612c805750336001600160a01b03821614155b15612ca0576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff85166000818152600d6020908152604091829020600981018890558251938452908301879052917f9eaad6dc90ce510660aaa5b4c6ddba6bf6182ef52ff0ba7a74dcdd1962ca56cf91016112bb565b6008546001600160a01b03163314612d1c5760405162461bcd60e51b8152600401610c7c90615512565b61ffff82166000818152600d6020908152604091829020600b8101805460ff1916861515908117909155835194855291840191909152917f9e6cc3cb1b1df4cded6e070aacdafb5ae51c14813df699b91009e4c916d283ee9101611611565b606060038054610cf29061573a565b6010546112dc9061ffff16826112ef565b60026009541415612dbe5760405162461bcd60e51b8152600401610c7c90615547565b6002600955600a5460ff1615612de65760405162461bcd60e51b8152600401610c7c906154bb565b601054600090612df99061ffff16613d7d565b90508060e0015115612e1e57604051630539aec560e21b815260040160405180910390fd5b612e28818361445c565b612e323383614397565b612e3b57600080fd5b50506001600955565b6001600160a01b038216331415612e6e5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612ee2614c5f565b601054611f409061ffff16613d7d565b61ffff8083166000908152600d6020908152604080832081516101e0810183528154909516855260018101549285019290925260028201549084015260038101546060840152600481018054869492916080840191612f509061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054612f7c9061573a565b8015612fc95780601f10612f9e57610100808354040283529160200191612fc9565b820191906000526020600020905b815481529060010190602001808311612fac57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806130a457604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906130c85750336001600160a01b03821614155b156130e8576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff85166000818152600d6020908152604091829020600a81018890558251938452908301879052917f387a2f9288a8a4c69041aa692c6b82f74d9d1049cd2f1612e8b510fd2264280091016112bb565b6008546001600160a01b031633146131645760405162461bcd60e51b8152600401610c7c90615512565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b61ffff8082166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252600282015490840152600381015460608401526004810180548594929160808401916131e49061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546132109061573a565b801561325d5780601f106132325761010080835404028352916020019161325d565b820191906000526020600020905b81548152906001019060200180831161324057829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d90935290912090920154929350909104168061333857604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b0316331480159061335c5750336001600160a01b03821614155b1561337c576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff84166000908152600d6020526040902060038101546133da57604051632c73a0bf60e11b8152602060048201526016602482015275149bdd5b99081cda1bdd5b190818994818db1bdcd95960521b6044820152606401610c7c565b600e546133e790436156c0565b600782018190556040519081527ffd1cd879b90803328042915a0dab567886d80637d84c7875df6a3e4495c379ac90602001612498565b61ffff8083166000908152600d6020908152604080832081516101e081018352815490951685526001810154928501929092526002820154908401526003810154606084015260048101805486949291608084019161347c9061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546134a89061573a565b80156134f55780601f106134ca576101008083540402835291602001916134f5565b820191906000526020600020905b8154815290600101906020018083116134d857829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d9093529091209092015492935090910416806135d057604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b031633148015906135f45750336001600160a01b03821614155b15613614576040516377efd02b60e11b8152336004820152602401610c7c565b61ffff85166000818152600d602090815260409182902060068101805462ff00001916620100008a151590810291909117909155835194855291840191909152917f19608cbe5005d5dad05b0e47ee094b28412334d790fadf379bcff2d4fd7eec7591016112bb565b61ffff81166000908152600d6020526040902060068101546301000000900460ff16156136bd5760405163a89ac15160e01b815260040160405180910390fd5b60078101544381111561371357604051632c73a0bf60e11b815260206004820152601d60248201527f52616e646f6d2073656c656374696f6e206973206e6f742072656164790000006044820152606401610c7c565b60006137206001836156f7565b401561376b5781406137336001846156f7565b6040805160208101939093529040908201524260608201526080016040516020818303038152906040528051906020012090506137b6565b6137766001436156f7565b406137826002436156f7565b6040805160208101939093529040908201524260608201526080016040516020818303038152906040528051906020012090505b60068301805463ff00000019166301000000179055600283015460038401546000916137e491849190614573565b6008850181905560405161ffff871681529091507fd104aada4b066eb003582f2d87f8450d182d2a2306ab2aad08ab10d5564fe4c690602001612498565b61382d848484614129565b6001600160a01b0383163b1561386657613849848484846145a2565b613866576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60105461ffff9081166000818152600d6020908152604080832081516101e0810183528154909616865260018101549286019290925260028201549085015260038101546060850152600481018054939492936080840191906138ce9061573a565b80601f01602080910402602001604051908101604052809291908181526020018280546138fa9061573a565b80156139475780601f1061391c57610100808354040283529160200191613947565b820191906000526020600020905b81548152906001019060200180831161392a57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff80821660408086019190915260ff6201000084048116151560608701526301000000909304831615156080860152600786015460a0860152600886015460c0860152600986015460e0860152600a86015461010080870191909152600b9687015493841615156101208701526001600160a01b03938190048416610140909601959095529088166000908152600d909352909120909201549293509091041680613a2257604051632c73a0bf60e11b8152600401610c7c906154e5565b6008546001600160a01b03163314801590613a465750336001600160a01b03821614155b15613a66576040516377efd02b60e11b8152336004820152602401610c7c565b60026009541415613a895760405162461bcd60e51b8152600401610c7c90615547565b6002600981905560105461ffff9081166000908152600d6020908152604080832081516101e08101835281549095168552600181015492850192909252938101549383019390935260038301546060830152600483018054919391608084019190613af39061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054613b1f9061573a565b8015613b6c5780601f10613b4157610100808354040283529160200191613b6c565b820191906000526020600020905b815481529060010190602001808311613b4f57829003601f168201915b50505091835250506005820154602080830191909152600683015461ffff8116604084015262010000810460ff908116151560608501526301000000909104811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b031661014090910152810151909150613c16868261435f565b613c3357604051636f5606f560e01b815260040160405180910390fd5b613c3d3387614397565b613c4657600080fd5b5050600160095550505050565b60026009541415613c765760405162461bcd60e51b8152600401610c7c90615547565b6002600955600a5460ff1615613c9e5760405162461bcd60e51b8152600401610c7c906154bb565b601054600090613cb19061ffff16613d7d565b90508060e00151613cd557604051631681075160e21b815260040160405180910390fd5b613ce3818361ffff1661445c565b60105461ffff9081166000908152600f6020908152604080832033845290915290205460c0830151908216918116613d1b858461569a565b61ffff161115613d445760405163e70937a360e01b815261ffff82166004820152602401610c7c565b601054613d589061ffff168589898961469a565b613d66338561ffff16614397565b613d6f57600080fd5b505060016009555050505050565b613d85614c5f565b61ffff8083166000908152600d602090815260409182902082516101e0810184528154909416845260018101549184019190915260028101549183019190915260038101546060830152600481018054608084019190613de49061573a565b80601f0160208091040260200160405190810160405280929190818152602001828054613e109061573a565b8015613e5d5780601f10613e3257610100808354040283529160200191613e5d565b820191906000526020600020905b815481529060010190602001808311613e4057829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff908116151560608401526301000000909104811615156080830152600783015460a0830152600883015460c0830152600983015460e0830152600a83015461010080840191909152600b909301549081161515610120830152919091046001600160a01b03166101409091015292915050565b60606000613f068361474c565b90508061010001518015613f5257506040805160008152602081018083528151902060808401519092613f39920161539a565b6040516020818303038152906040528051906020012014155b15613f905760128160800151613f6785614944565b604051602001613f79939291906153eb565b604051602081830303815290604052915050919050565b6013613f9b84614944565b604051602001613f799291906153b6565b50919050565b6010546112dc9061ffff16826124a7565b6010546112dc9061ffff1682612ef2565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b0316331461402c5760405162461bcd60e51b8152600401610c7c90615512565b6001600160a01b0381166140915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c7c565b6112dc816143b2565b6000805482108015610c53575050600090815260046020526040902054600160e01b161590565b60008160005481101561411057600081815260046020526040902054600160e01b811661410e575b806141075750600019016000818152600460205260409020546140e9565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000614134826140c1565b9050836001600160a01b0316816001600160a01b0316146141675760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061418557506141858533613fd4565b806141a057503361419584610d75565b6001600160a01b0316145b9050806141c057604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166141e757604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b86178117909155821661428457600183016000818152600460205260409020546142825760005481146142825760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600a5460ff166143155760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c7c565b600a805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061436c8260016156c0565b8361437660005490565b61438091906156c0565b111561438e57506000610c53565b50600192915050565b600061438e8383614993565b606060128054610cf29061573a565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a5460ff16156144275760405162461bcd60e51b8152600401610c7c906154bb565b600a805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586143423390565b816101a001511561448057604051639649b2a360e01b815260040160405180910390fd5b600061448a610e8c565b905060028160048111156144ae57634e487b7160e01b600052602160045260246000fd5b146144cc57604051632ac9194b60e21b815260040160405180910390fd5b60c083015161ffff16158015906144ea5750818360c0015161ffff16105b156145145760c083015160405163e70937a360e01b815261ffff9091166004820152602401610c7c565b61452282846020015161435f565b61453f57604051636f5606f560e01b815260040160405180910390fd5b6000828460a0015161455191906156d8565b90503481146138665760405163bfa3573760e01b815260040160405180910390fd5b60008061458084846156f7565b61458b9060016156c0565b90508361459882876157ac565b61106191906156c0565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906145d7903390899088908890600401615443565b602060405180830381600087803b1580156145f157600080fd5b505af1925050508015614621575060408051601f3d908101601f1916820190925261461e91810190615061565b60015b61467c573d80801561464f576040519150601f19603f3d011682016040523d82523d6000602084013e614654565b606091505b508051614674576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60006146cd86336040518060400160405280600e81526020016d77686974656c697374436c61696d60901b8152506149b1565b90506146db818585856149e9565b6146f857604051630510cc4560e01b815260040160405180910390fd5b61ffff8681166000908152600f6020908152604080832033845290915281208054889391929161472a9185911661569a565b92506101000a81548161ffff021916908361ffff160217905550505050505050565b614754614c5f565b61475d8261409a565b61477d5760405163b5706f4f60e01b815260048101839052602401610c7c565b60015b60105461ffff90811690821611613fac5761ffff8082166000908152600d602090815260409182902082516101e08101845281549094168452600181015491840191909152600281015491830191909152600381015460608301526004810180546080840191906147f09061573a565b80601f016020809104026020016040519081016040528092919081815260200182805461481c9061573a565b80156148695780601f1061483e57610100808354040283529160200191614869565b820191906000526020600020905b81548152906001019060200180831161484c57829003601f168201915b505050918352505060058201546020820152600682015461ffff8116604083015262010000810460ff90811615156060808501919091526301000000909204811615156080840152600784015460a0840152600884015460c0840152600984015460e0840152600a84015461010080850191909152600b909401549081161515610120840152929092046001600160a01b03166101409091015281015190925060009061491a578260200151614920565b82606001515b90508084111561493d57816149348161576f565b92505050614780565b5050919050565b604080516080810191829052607f0190826030600a8206018353600a90045b801561498157600183039250600a81066030018353600a9004614963565b50819003601f19909101908152919050565b6149ad828260405180602001604052806000815250614a6a565b5050565b6000308484846040516020016149ca9493929190615343565b6040516020818303038152906040528051906020012090509392505050565b6011546040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905290916001600160a01b03169060019060a0016020604051602081039080840390855afa158015614a4c573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149050949350505050565b6000546001600160a01b038416614a9357604051622e076360e81b815260040160405180910390fd5b82614ab15760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15614b86575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614b4f60008784806001019550876145a2565b614b6c576040516368d2bf6b60e11b815260040160405180910390fd5b808210614b04578260005414614b8157600080fd5b614bcb565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210614b87575b5060009081556138669085838684565b828054614be79061573a565b90600052602060002090601f016020900481019282614c095760008555614c4f565b82601f10614c2257805160ff1916838001178555614c4f565b82800160010185558215614c4f579182015b82811115614c4f578251825591602001919060010190614c34565b50614c5b929150614cec565b5090565b604051806101e00160405280600061ffff1681526020016000815260200160008152602001600081526020016060815260200160008152602001600061ffff1681526020016000151581526020016000151581526020016000815260200160008152602001600081526020016000815260200160001515815260200160006001600160a01b031681525090565b5b80821115614c5b5760008155600101614ced565b600067ffffffffffffffff80841115614d1c57614d1c6157e2565b604051601f8501601f19908116603f01168101908282118183101715614d4457614d446157e2565b81604052809350858152868686011115614d5d57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114614d8e57600080fd5b919050565b60008083601f840112614da4578081fd5b50813567ffffffffffffffff811115614dbb578182fd5b6020830191508360208260051b8501011115614dd657600080fd5b9250929050565b80358015158114614d8e57600080fd5b600082601f830112614dfd578081fd5b61410783833560208501614d01565b803561ffff81168114614d8e57600080fd5b600060208284031215614e2f578081fd5b61410782614d77565b60008060408385031215614e4a578081fd5b614e5383614d77565b9150614e6160208401614d77565b90509250929050565b600080600060608486031215614e7e578081fd5b614e8784614d77565b9250614e9560208501614d77565b9150604084013590509250925092565b60008060008060808587031215614eba578081fd5b614ec385614d77565b9350614ed160208601614d77565b925060408501359150606085013567ffffffffffffffff811115614ef3578182fd5b8501601f81018713614f03578182fd5b614f1287823560208401614d01565b91505092959194509250565b60008060408385031215614f30578182fd5b614f3983614d77565b9150614e6160208401614ddd565b60008060408385031215614f59578182fd5b614f6283614d77565b946020939093013593505050565b60008060008060408587031215614f85578384fd5b843567ffffffffffffffff80821115614f9c578586fd5b614fa888838901614d93565b90965094506020870135915080821115614fc0578384fd5b50614fcd87828801614d93565b95989497509550505050565b600080600060408486031215614fed578283fd5b833567ffffffffffffffff811115615003578384fd5b61500f86828701614d93565b9094509250615022905060208501614d77565b90509250925092565b60006020828403121561503c578081fd5b61410782614ddd565b600060208284031215615056578081fd5b8135614107816157f8565b600060208284031215615072578081fd5b8151614107816157f8565b60006020828403121561508e578081fd5b813567ffffffffffffffff8111156150a4578182fd5b61469284828501614ded565b6000602082840312156150c1578081fd5b61410782614e0c565b600080604083850312156150dc578182fd5b614e5383614e0c565b600080604083850312156150f7578182fd5b614f3983614e0c565b60008060408385031215615112578182fd5b61511b83614e0c565b9150602083013567ffffffffffffffff811115615136578182fd5b61514285828601614ded565b9150509250929050565b6000806040838503121561515e578182fd5b61516783614e0c565b9150614e6160208401614e0c565b60008060408385031215615187578182fd5b614f6283614e0c565b6000602082840312156151a1578081fd5b5035919050565b60008060008060008060008060006101208a8c0312156151c6578687fd5b8935985060208a013597506151dd60408b01614e0c565b96506151eb60608b01614ddd565b95506151f960808b01614ddd565b945060a08a0135935060c08a0135925061521560e08b01614ddd565b91506152246101008b01614d77565b90509295985092959850929598565b60008060008060808587031215615248578182fd5b843560ff81168114615258578283fd5b9350602085013592506040850135915061527460608601614e0c565b905092959194509250565b6000815180845261529781602086016020860161570e565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806152c557607f831692505b60208084108214156152e557634e487b7160e01b86526022600452602486fd5b8180156152f9576001811461530a57615337565b60ff19861689528489019650615337565b60008881526020902060005b8681101561532f5781548b820152908501908301615316565b505084890196505b50505050505092915050565b60006bffffffffffffffffffffffff19808760601b16835261ffff60f01b8660f01b166014840152808560601b16601684015250825161538a81602a85016020870161570e565b91909101602a0195945050505050565b600082516153ac81846020870161570e565b9190910192915050565b60006153c282856152ab565b83516153d281836020880161570e565b64173539b7b760d91b9101908152600501949350505050565b60006153f782866152ab565b845161540781836020890161570e565b602f60f81b9101908152835161542481600184016020880161570e565b64173539b7b760d91b6001929091019182015260060195945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906154769083018461527f565b9695505050505050565b60208101600583106154a257634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000614107602083018461527f565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601390820152724e6f7420616c6c6f776564206164647265737360681b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020815261559360208201835161ffff169052565b602082015160408201526040820151606082015260608201516080820152600060808301516101e08060a08501526155cf61020085018361527f565b915060a085015160c085015260c08501516155f060e086018261ffff169052565b5060e08501516101006156068187018315159052565b860151905061012061561b8682018315159052565b8601516101408681019190915286015161016080870191909152860151610180808701919091528601516101a08087019190915286015190506101c06156648187018315159052565b909501516001600160a01b031693019290925250919050565b61ffff83168152604060208201526000614692604083018461527f565b600061ffff8083168185168083038211156156b7576156b76157cc565b01949350505050565b600082198211156156d3576156d36157cc565b500190565b60008160001904831182151516156156f2576156f26157cc565b500290565b600082821015615709576157096157cc565b500390565b60005b83811015615729578181015183820152602001615711565b838111156138665750506000910152565b600181811c9082168061574e57607f821691505b60208210811415613fac57634e487b7160e01b600052602260045260246000fd5b600061ffff80831681811415615787576157876157cc565b6001019392505050565b60006000198214156157a5576157a56157cc565b5060010190565b6000826157c757634e487b7160e01b81526012600452602481fd5b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146112dc57600080fdfea26469706673582212207247ab9ffdf143533155371e1dc72477f4a475cdbcf0b42cb1136c955745083a64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006c9e30f0340e32fde08deade9be98ad83df05e730000000000000000000000000000000000000000000000000000000000004e20000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000001b68747470733a2f2f6b6d6d2e6d7970696e6174612e636c6f75642f0000000000000000000000000000000000000000000000000000000000000000000000002568747470733a2f2f676174657761792d697066732e61746f6d726967732e696f2f6b6d6d2f000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : receiver (address): 0x6c9e30F0340e32fDe08deADE9bE98ad83df05e73
Arg [1] : maxSupply (uint256): 20000
Arg [2] : _baseUri (string): https://kmm.mypinata.cloud/
Arg [3] : _defaultUnrevealedURI (string): https://gateway-ipfs.atomrigs.io/kmm/
-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000006c9e30f0340e32fde08deade9be98ad83df05e73
Arg [1] : 0000000000000000000000000000000000000000000000000000000000004e20
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001b
Arg [5] : 68747470733a2f2f6b6d6d2e6d7970696e6174612e636c6f75642f0000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000025
Arg [7] : 68747470733a2f2f676174657761792d697066732e61746f6d726967732e696f
Arg [8] : 2f6b6d6d2f000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.