ERC-721
Overview
Max Total Supply
0 HWCA
Holders
96
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 HWCALoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ERC721WCAway
Compiler Version
v0.8.17+commit.8df45f5f
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.13; import {IERC165} from "openzeppelin-contracts/interfaces/IERC165.sol"; import {IERC721} from "openzeppelin-contracts/interfaces/IERC721.sol"; import {IERC721Metadata} from "openzeppelin-contracts/interfaces/IERC721Metadata.sol"; import {ERC721} from "solmate/tokens/ERC721.sol"; import {Strings} from "openzeppelin-contracts/utils/Strings.sol"; contract ERC721WCAway is ERC721 { address payable public owner; string public BASE_URI; uint256 public immutable mintCost; // in wei uint256 public immutable maxSupply; // total number of NFTs uint256 public immutable numInitialTeams; // 32 for WC uint256 public immutable maxMintPerAddress; // max amount each wallet can mint uint256 public numMinted; // number of items already minted uint256 public numQualifiedWithdraw; // current number of qualified items to withdraw mapping (address => uint256) public addressNumMinted; // amount already minted in each wallet bool[] public qualifiedTeams; // which teams are still qualified uint256[] public numTradableItems; // number of qualified items in each team bool public mintStarted; // cannot mint before start time bool public mintEnded; // cannot mint after teams are assigned bool public locked; // contract locked (can not withdraw) during game bool public finalized; // contract finalized (can not change qualification) end of the championship event OwnerChanged(address indexed newOwner); event BaseURIUpdated(); event ContractLocked(); event ContractUnlocked(); event ContractFinalized(); event MintStarted(); event MintEnded(); event QualificationUpdated(uint256 teamId, bool qualified); event Withdrawn(address indexed holder, uint256 tokenId, uint256 teamId); error NotOwner(); error NotHolder(); error WrongSize(); error IncorrectPayment(uint256 expected, uint256 amount); error InsufficientBalance(uint256 amount); error TransferFailed(); error MintingNotStarted(); error MintingStarted(); error MintingNotEnded(); error MintingEnded(); error Unqualified(); error AlreadyLocked(); error AlreadyUnlocked(); error AlreadyFinalized(); error MaxSupplyReached(); error MaxMintAmountReached(); constructor( uint256 _mintCost, uint256 _numInitialTeams, uint256 _maxSupply, uint256 _maxMintPerAddress, string memory _baseUri ) ERC721(name, symbol) { owner = payable(msg.sender); BASE_URI = _baseUri; name = string("Hologram WC 2022 Away Jersey"); symbol = string("HWCA"); mintCost = _mintCost; maxSupply = _maxSupply; numInitialTeams = _numInitialTeams; maxMintPerAddress = _maxMintPerAddress; numMinted = 0; numQualifiedWithdraw = 0; qualifiedTeams = new bool[](numInitialTeams); numTradableItems = new uint256[](numInitialTeams); for (uint256 i = 0; i < numInitialTeams; i++) { qualifiedTeams[i] = true; // initially all teams are qualified numTradableItems[i] = 0; // no items in the market before minting } mintStarted = false; mintEnded = false; locked = false; finalized = false; } modifier onlyOwner() { if (msg.sender != owner) revert NotOwner(); _; } function setOwner(address payable _newOwner) public onlyOwner { owner = _newOwner; emit OwnerChanged(_newOwner); } function updateBaseURI(string memory _baseUri) public onlyOwner { BASE_URI = _baseUri; emit BaseURIUpdated(); } function lockContract() public onlyOwner { if (finalized) revert AlreadyFinalized(); if (!mintEnded) revert MintingNotEnded(); locked = true; emit ContractLocked(); } function unlockContract() public onlyOwner { if (finalized) revert AlreadyFinalized(); locked = false; emit ContractUnlocked(); } function finalizeContract() public onlyOwner { if (finalized) revert AlreadyFinalized(); finalized = true; emit ContractFinalized(); } function startMinting() public onlyOwner { if (mintStarted) revert MintingStarted(); mintStarted = true; emit MintStarted(); } function endMinting() public onlyOwner { if (mintEnded) revert MintingEnded(); mintEnded = true; emit MintEnded(); } function updateQualification(uint256 _teamId, bool _qualified) public onlyOwner { if (finalized) revert AlreadyFinalized(); if (!locked) revert AlreadyUnlocked(); if (qualifiedTeams[_teamId] == true && _qualified == false) { // normal advance of tournament numQualifiedWithdraw -= numTradableItems[_teamId]; qualifiedTeams[_teamId] = false; emit QualificationUpdated(_teamId, false); } else if (qualifiedTeams[_teamId] == false && _qualified == true) { // in case admin messes up numQualifiedWithdraw += numTradableItems[_teamId]; qualifiedTeams[_teamId] = true; emit QualificationUpdated(_teamId, true); } } function updateQualifications(uint256[] memory _teamIds, bool[] memory _qualified) public onlyOwner { if (_teamIds.length != _qualified.length) revert WrongSize(); for (uint256 i = 0; i < _teamIds.length; i ++) { updateQualification(_teamIds[i], _qualified[i]); } } function withdraw(uint256 _tokenId) public { if (locked) revert AlreadyLocked(); // cannot withdraw during game if (msg.sender != _ownerOf[_tokenId]) revert NotHolder(); uint256 teamId = _tokenId % numInitialTeams; if (!qualifiedTeams[teamId]) revert Unqualified(); uint256 amount = address(this).balance / numQualifiedWithdraw; // built in floor operation on floats if (address(this).balance < amount) revert InsufficientBalance(amount); (bool success, ) = _ownerOf[_tokenId].call{value: amount}(""); if (!success) revert TransferFailed(); numQualifiedWithdraw -= 1; numTradableItems[teamId] -= 1; // burn the actual token _burn(_tokenId); emit Withdrawn(msg.sender, _tokenId, teamId); } function batchWithdraw(uint256[] memory _tokenIds) public { for (uint256 i = 0; i < _tokenIds.length; i++) { withdraw(_tokenIds[i]); } } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { return string.concat(BASE_URI, Strings.toString(_tokenId)); } function getMintedAmount(address _addr) public view returns(uint256) { return addressNumMinted[_addr]; } function getQualifiedTeams() public view returns (bool[] memory) { return qualifiedTeams; } function getNumTradableItems() public view returns (uint256[] memory) { return numTradableItems; } function mint() public payable { if (!mintStarted) revert MintingNotStarted(); if (mintEnded) revert MintingEnded(); if (numMinted == maxSupply) revert MaxSupplyReached(); if (msg.value != mintCost) revert IncorrectPayment(mintCost, msg.value); address to = msg.sender; if (addressNumMinted[to] == maxMintPerAddress) revert MaxMintAmountReached(); _mint(to, numMinted); uint256 teamId = numMinted % numInitialTeams; numQualifiedWithdraw += 1; numTradableItems[teamId] += 1; addressNumMinted[to] += 1; numMinted += 1; } function batchMint(uint256 numToMint) public payable { if (!mintStarted) revert MintingNotStarted(); if (mintEnded) revert MintingEnded(); if (numMinted + numToMint > maxSupply) revert MaxSupplyReached(); if (msg.value != mintCost * numToMint) revert IncorrectPayment(mintCost, msg.value); address to = msg.sender; if (addressNumMinted[to] + numToMint > maxMintPerAddress) revert MaxMintAmountReached(); for (uint256 i = numMinted; i < numMinted + numToMint; i ++) { _mint(to, i); uint256 teamId = i % numInitialTeams; numTradableItems[teamId] += 1; } numQualifiedWithdraw += numToMint; addressNumMinted[to] += numToMint; numMinted += numToMint; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../token/ERC721/extensions/IERC721Metadata.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * 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 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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*////////////////////////////////////////////////////////////// ERC721 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id]) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner]; } /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == _ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id], "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes calldata data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(_ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id]; require(owner != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner]--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "murky/=lib/murky/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/", "solmate/=lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_mintCost","type":"uint256"},{"internalType":"uint256","name":"_numInitialTeams","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"},{"internalType":"uint256","name":"_maxMintPerAddress","type":"uint256"},{"internalType":"string","name":"_baseUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyFinalized","type":"error"},{"inputs":[],"name":"AlreadyLocked","type":"error"},{"inputs":[],"name":"AlreadyUnlocked","type":"error"},{"inputs":[{"internalType":"uint256","name":"expected","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"IncorrectPayment","type":"error"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"MaxMintAmountReached","type":"error"},{"inputs":[],"name":"MaxSupplyReached","type":"error"},{"inputs":[],"name":"MintingEnded","type":"error"},{"inputs":[],"name":"MintingNotEnded","type":"error"},{"inputs":[],"name":"MintingNotStarted","type":"error"},{"inputs":[],"name":"MintingStarted","type":"error"},{"inputs":[],"name":"NotHolder","type":"error"},{"inputs":[],"name":"NotOwner","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"inputs":[],"name":"Unqualified","type":"error"},{"inputs":[],"name":"WrongSize","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","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":[],"name":"BaseURIUpdated","type":"event"},{"anonymous":false,"inputs":[],"name":"ContractFinalized","type":"event"},{"anonymous":false,"inputs":[],"name":"ContractLocked","type":"event"},{"anonymous":false,"inputs":[],"name":"ContractUnlocked","type":"event"},{"anonymous":false,"inputs":[],"name":"MintEnded","type":"event"},{"anonymous":false,"inputs":[],"name":"MintStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"teamId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"qualified","type":"bool"}],"name":"QualificationUpdated","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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"holder","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"teamId","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[],"name":"BASE_URI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressNumMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","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":[{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"batchMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"batchWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalizeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getMintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumTradableItems","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getQualifiedTeams","outputs":[{"internalType":"bool[]","name":"","type":"bool[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEnded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numInitialTeams","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numQualifiedWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"numTradableItems","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"qualifiedTeams","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","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":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMinting","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"updateBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_teamId","type":"uint256"},{"internalType":"bool","name":"_qualified","type":"bool"}],"name":"updateQualification","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_teamIds","type":"uint256[]"},{"internalType":"bool[]","name":"_qualified","type":"bool[]"}],"name":"updateQualifications","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101006040523480156200001257600080fd5b50604051620031cc380380620031cc8339810160408190526200003591620004a1565b6000805462000044906200059f565b80601f016020809104026020016040519081016040528092919081815260200182805462000072906200059f565b8015620000c35780601f106200009757610100808354040283529160200191620000c3565b820191906000526020600020905b815481529060010190602001808311620000a557829003601f168201915b505050505060018054620000d7906200059f565b80601f016020809104026020016040519081016040528092919081815260200182805462000105906200059f565b8015620001565780601f106200012a5761010080835404028352916020019162000156565b820191906000526020600020905b8154815290600101906020018083116200013857829003601f168201915b505050505081600090816200016c91906200062e565b5060016200017b82826200062e565b5050600680546001600160a01b031916331790555060076200019e82826200062e565b5060408051808201909152601c81527f486f6c6f6772616d20574320323032322041776179204a6572736579000000006020820152600090620001e290826200062e565b506040805180820190915260048152634857434160e01b60208201526001906200020d90826200062e565b50608085905260a083905260c084905260e082905260006008819055600955836001600160401b038111156200024757620002476200048b565b60405190808252806020026020018201604052801562000271578160200160208202803683370190505b5080516200028891600b916020909101906200038a565b5060c0516001600160401b03811115620002a657620002a66200048b565b604051908082528060200260200182016040528015620002d0578160200160208202803683370190505b508051620002e791600c9160209091019062000436565b5060005b60c05181101562000370576001600b82815481106200030e576200030e620006fa565b90600052602060002090602091828204019190066101000a81548160ff0219169083151502179055506000600c82815481106200034f576200034f620006fa565b60009182526020909120015580620003678162000710565b915050620002eb565b5050600d805463ffffffff19169055506200073892505050565b82805482825590600052602060002090601f01602090048101928215620004245791602002820160005b83821115620003f357835183826101000a81548160ff0219169083151502179055509260200192600101602081600001049283019260010302620003b4565b8015620004225782816101000a81549060ff0219169055600101602081600001049283019260010302620003f3565b505b506200043292915062000474565b5090565b82805482825590600052602060002090810192821562000424579160200282015b828111156200042457825182559160200191906001019062000457565b5b8082111562000432576000815560010162000475565b634e487b7160e01b600052604160045260246000fd5b600080600080600060a08688031215620004ba57600080fd5b8551602080880151604089015160608a015160808b015194995091975095509350906001600160401b0380821115620004f257600080fd5b818901915089601f8301126200050757600080fd5b8151818111156200051c576200051c6200048b565b604051601f8201601f19908116603f011681019083821181831017156200054757620005476200048b565b816040528281528c868487010111156200056057600080fd5b600093505b8284101562000584578484018601518185018701529285019262000565565b60008684830101528096505050505050509295509295909350565b600181811c90821680620005b457607f821691505b602082108103620005d557634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200062957600081815260208120601f850160051c81016020861015620006045750805b601f850160051c820191505b81811015620006255782815560010162000610565b5050505b505050565b81516001600160401b038111156200064a576200064a6200048b565b62000662816200065b84546200059f565b84620005db565b602080601f8311600181146200069a5760008415620006815750858301515b600019600386901b1c1916600185901b17855562000625565b600085815260208120601f198616915b82811015620006cb57888601518255948401946001909101908401620006aa565b5085821015620006ea5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052603260045260246000fd5b6000600182016200073157634e487b7160e01b600052601160045260246000fd5b5060010190565b60805160a05160c05160e051612a0d620007bf600039600081816104a601528181610bc201526116f501526000818161059b01528181610c100152818161109c015261176901526000818161077e01528181610b0801526116260152600081816106f401528181610b4a01528181610b7e0152818161167801526116b10152612a0d6000f3fe6080604052600436106102675760003560e01c8063753868e311610144578063b88d4fde116100b6578063d5abeb011161007a578063d5abeb011461076c578063dbddb26a146107a0578063e985e9c5146107b5578063ec560832146107f0578063ef70aebf14610812578063fe7c7d6b1461082757600080fd5b8063b88d4fde146106c2578063bdb4b848146106e2578063c87b56dd14610716578063cf30901214610736578063d52079b41461075657600080fd5b806395d89b411161010857806395d89b41146106105780639a65ea2614610625578063a22cb4651461063a578063a9722cf31461065a578063b3f05b9714610674578063b7c8259f1461069557600080fd5b8063753868e3146105745780638007b25a146105895780638467be0d146105bd5780638da5cb5b146105d0578063931688cb146105f057600080fd5b80632e1a7d4d116101dd578063572849c4116101a1578063572849c41461049457806362c3c834146104c85780636352211e146104de57806363b266ba146104fe57806370a082311461053457806372e553991461055457600080fd5b80632e1a7d4d146103e45780633f3993f51461040457806342842e0e1461042457806348dad578146104445780634d77564a1461046657600080fd5b80630b31a8ed1161022f5780630b31a8ed146103525780631249c58b1461037257806313af40351461037a57806322f0f2f91461039a57806323b872dd146103af57806328c5cf0a146103cf57600080fd5b806301ffc9a71461026c578063021313cf146102a157806306fdde03146102c0578063081812fc146102e2578063095ea7b314610330575b600080fd5b34801561027857600080fd5b5061028c61028736600461217c565b610847565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b50600d5461028c90610100900460ff1681565b3480156102cc57600080fd5b506102d5610899565b60405161029891906121c4565b3480156102ee57600080fd5b506103186102fd3660046121f7565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610298565b34801561033c57600080fd5b5061035061034b366004612225565b610927565b005b34801561035e57600080fd5b5061035061036d366004612337565b610a0e565b610350610aba565b34801561038657600080fd5b506103506103953660046123f9565b610cd7565b3480156103a657600080fd5b50610350610d4c565b3480156103bb57600080fd5b506103506103ca366004612416565b610dd9565b3480156103db57600080fd5b50610350610fa0565b3480156103f057600080fd5b506103506103ff3660046121f7565b611034565b34801561041057600080fd5b5061028c61041f3660046121f7565b611260565b34801561043057600080fd5b5061035061043f366004612416565b611294565b34801561045057600080fd5b50610459611387565b6040516102989190612457565b34801561047257600080fd5b506104866104813660046121f7565b6113ff565b604051908152602001610298565b3480156104a057600080fd5b506104867f000000000000000000000000000000000000000000000000000000000000000081565b3480156104d457600080fd5b5061048660095481565b3480156104ea57600080fd5b506103186104f93660046121f7565b611420565b34801561050a57600080fd5b506104866105193660046123f9565b6001600160a01b03166000908152600a602052604090205490565b34801561054057600080fd5b5061048661054f3660046123f9565b611477565b34801561056057600080fd5b5061035061056f36600461249d565b6114da565b34801561058057600080fd5b5061035061151e565b34801561059557600080fd5b506104867f000000000000000000000000000000000000000000000000000000000000000081565b6103506105cb3660046121f7565b6115d8565b3480156105dc57600080fd5b50600654610318906001600160a01b031681565b3480156105fc57600080fd5b5061035061060b3660046124da565b611831565b34801561061c57600080fd5b506102d5611895565b34801561063157600080fd5b506103506118a2565b34801561064657600080fd5b5061035061065536600461256f565b611929565b34801561066657600080fd5b50600d5461028c9060ff1681565b34801561068057600080fd5b50600d5461028c906301000000900460ff1681565b3480156106a157600080fd5b506104866106b03660046123f9565b600a6020526000908152604090205481565b3480156106ce57600080fd5b506103506106dd3660046125a4565b611995565b3480156106ee57600080fd5b506104867f000000000000000000000000000000000000000000000000000000000000000081565b34801561072257600080fd5b506102d56107313660046121f7565b611a7d565b34801561074257600080fd5b50600d5461028c9062010000900460ff1681565b34801561076257600080fd5b5061048660085481565b34801561077857600080fd5b506104867f000000000000000000000000000000000000000000000000000000000000000081565b3480156107ac57600080fd5b506102d5611ab1565b3480156107c157600080fd5b5061028c6107d0366004612643565b600560209081526000928352604080842090915290825290205460ff1681565b3480156107fc57600080fd5b50610805611abe565b604051610298919061267c565b34801561081e57600080fd5b50610350611b15565b34801561083357600080fd5b506103506108423660046126b4565b611ba3565b60006301ffc9a760e01b6001600160e01b03198316148061087857506380ac58cd60e01b6001600160e01b03198316145b806108935750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546108a6906126d7565b80601f01602080910402602001604051908101604052809291908181526020018280546108d2906126d7565b801561091f5780601f106108f45761010080835404028352916020019161091f565b820191906000526020600020905b81548152906001019060200180831161090257829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061097057506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6109b25760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6006546001600160a01b03163314610a39576040516330cd747160e01b815260040160405180910390fd5b8051825114610a5b57604051630a88460560e11b815260040160405180910390fd5b60005b8251811015610ab557610aa3838281518110610a7c57610a7c612711565b6020026020010151838381518110610a9657610a96612711565b6020026020010151611ba3565b80610aad8161273d565b915050610a5e565b505050565b600d5460ff16610add576040516369183ba160e11b815260040160405180910390fd5b600d54610100900460ff1615610b0657604051633d20ce7960e21b815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000060085403610b485760405163d05cb60960e01b815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000003414610bb057604051630d35e92160e01b81527f000000000000000000000000000000000000000000000000000000000000000060048201523460248201526044016109a9565b336000818152600a60205260409020547f00000000000000000000000000000000000000000000000000000000000000009003610c0057604051630c398d6560e41b815260040160405180910390fd5b610c0c81600854611e20565b60007f0000000000000000000000000000000000000000000000000000000000000000600854610c3c919061276c565b9050600160096000828254610c519190612780565b925050819055506001600c8281548110610c6d57610c6d612711565b906000526020600020016000828254610c869190612780565b90915550506001600160a01b0382166000908152600a60205260408120805460019290610cb4908490612780565b92505081905550600160086000828254610cce9190612780565b90915550505050565b6006546001600160a01b03163314610d02576040516330cd747160e01b815260040160405180910390fd5b600680546001600160a01b0319166001600160a01b0383169081179091556040517fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3690600090a250565b6006546001600160a01b03163314610d77576040516330cd747160e01b815260040160405180910390fd5b600d546301000000900460ff1615610da25760405163475a253560e01b815260040160405180910390fd5b600d805462ff0000191690556040517f3e5f4fd66bc9f59f15a9304dbc6394e240a57a1b4eb7ca42a75c5d9b298da45590600090a1565b6000818152600260205260409020546001600160a01b03848116911614610e2f5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016109a9565b6001600160a01b038216610e795760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016109a9565b336001600160a01b0384161480610eb357506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b80610ed457506000818152600460205260409020546001600160a01b031633145b610f115760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016109a9565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610fcb576040516330cd747160e01b815260040160405180910390fd5b600d546301000000900460ff1615610ff65760405163475a253560e01b815260040160405180910390fd5b600d805463ff000000191663010000001790556040517f9c6ac702ac1e5e834d54fae35fa20f6dbab76180a01317ec37a7e4ce9f86fe5190600090a1565b600d5462010000900460ff161561105e576040516317c3335f60e21b815260040160405180910390fd5b6000818152600260205260409020546001600160a01b0316331461109557604051633b11fda960e11b815260040160405180910390fd5b60006110c17f00000000000000000000000000000000000000000000000000000000000000008361276c565b9050600b81815481106110d6576110d6612711565b90600052602060002090602091828204019190069054906101000a900460ff166111135760405163b2cab42960e01b815260040160405180910390fd5b6000600954476111239190612793565b90508047101561114957604051639266535160e01b8152600481018290526024016109a9565b6000838152600260205260408082205490516001600160a01b039091169083908381818185875af1925050503d80600081146111a1576040519150601f19603f3d011682016040523d82523d6000602084013e6111a6565b606091505b50509050806111c8576040516312171d8360e31b815260040160405180910390fd5b6001600960008282546111db91906127a7565b925050819055506001600c84815481106111f7576111f7612711565b90600052602060002001600082825461121091906127a7565b9091555061121f905084611f2b565b604080518581526020810185905233917f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6910160405180910390a250505050565b600b818154811061127057600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b61129f838383610dd9565b6001600160a01b0382163b15806113485750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015611318573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133c91906127ba565b6001600160e01b031916145b610ab55760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064016109a9565b6060600b8054806020026020016040519081016040528092919081815260200182805480156113f557602002820191906000526020600020906000905b825461010083900a900460ff1615158152602060019283018181049485019490930390920291018084116113c45790505b5050505050905090565b600c818154811061140f57600080fd5b600091825260209091200154905081565b6000818152600260205260409020546001600160a01b0316806114725760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016109a9565b919050565b60006001600160a01b0382166114be5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016109a9565b506001600160a01b031660009081526003602052604090205490565b60005b815181101561151a576115088282815181106114fb576114fb612711565b6020026020010151611034565b806115128161273d565b9150506114dd565b5050565b6006546001600160a01b03163314611549576040516330cd747160e01b815260040160405180910390fd5b600d546301000000900460ff16156115745760405163475a253560e01b815260040160405180910390fd5b600d54610100900460ff1661159c5760405163d33b9a0b60e01b815260040160405180910390fd5b600d805462ff00001916620100001790556040517f6f5ffb7e2a6656882126927a79e460ca27ab657927d593522b90dc28229f7dbc90600090a1565b600d5460ff166115fb576040516369183ba160e11b815260040160405180910390fd5b600d54610100900460ff161561162457604051633d20ce7960e21b815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000816008546116539190612780565b11156116725760405163d05cb60960e01b815260040160405180910390fd5b61169c817f00000000000000000000000000000000000000000000000000000000000000006127d7565b34146116e357604051630d35e92160e01b81527f000000000000000000000000000000000000000000000000000000000000000060048201523460248201526044016109a9565b336000818152600a60205260409020547f000000000000000000000000000000000000000000000000000000000000000090611720908490612780565b111561173f57604051630c398d6560e41b815260040160405180910390fd5b6008545b826008546117519190612780565b8110156117d8576117628282611e20565b600061178e7f00000000000000000000000000000000000000000000000000000000000000008361276c565b90506001600c82815481106117a5576117a5612711565b9060005260206000200160008282546117be9190612780565b909155508291506117d090508161273d565b915050611743565b5081600960008282546117eb9190612780565b90915550506001600160a01b0381166000908152600a602052604081208054849290611818908490612780565b925050819055508160086000828254610cce9190612780565b6006546001600160a01b0316331461185c576040516330cd747160e01b815260040160405180910390fd5b6007611868828261283c565b506040517fa1731ca444c73d019f0dbb4ee5546c98730f4ffcdaa1c29776ab542aa64d5e1b90600090a150565b600180546108a6906126d7565b6006546001600160a01b031633146118cd576040516330cd747160e01b815260040160405180910390fd5b600d5460ff16156118f15760405163e9be846360e01b815260040160405180910390fd5b600d805460ff191660011790556040517f452a344f03203071e1daf66e007976c85cb2380deabf1c91f3c4fb1fca41204990600090a1565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6119a0858585610dd9565b6001600160a01b0384163b1580611a375750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906119e89033908a908990899089906004016128fc565b6020604051808303816000875af1158015611a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2b91906127ba565b6001600160e01b031916145b611a765760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064016109a9565b5050505050565b60606007611a8a83611ff8565b604051602001611a9b929190612950565b6040516020818303038152906040529050919050565b600780546108a6906126d7565b6060600c8054806020026020016040519081016040528092919081815260200182805480156113f557602002820191906000526020600020905b815481526020019060010190808311611af8575050505050905090565b6006546001600160a01b03163314611b40576040516330cd747160e01b815260040160405180910390fd5b600d54610100900460ff1615611b6957604051633d20ce7960e21b815260040160405180910390fd5b600d805461ff0019166101001790556040517f49084b94bebca8230478350ba9c83ff8cd54378ccf633cc0d84357d0c0a9b67a90600090a1565b6006546001600160a01b03163314611bce576040516330cd747160e01b815260040160405180910390fd5b600d546301000000900460ff1615611bf95760405163475a253560e01b815260040160405180910390fd5b600d5462010000900460ff16611c22576040516328486b6360e11b815260040160405180910390fd5b600b8281548110611c3557611c35612711565b90600052602060002090602091828204019190069054906101000a900460ff16151560011515148015611c66575080155b15611d2857600c8281548110611c7e57611c7e612711565b906000526020600020015460096000828254611c9a91906127a7565b925050819055506000600b8381548110611cb657611cb6612711565b90600052602060002090602091828204019190066101000a81548160ff0219169083151502179055507f4064466ba8625c6c1853c553ac47f32c85fd1689c68dd5c54e2a6211ccba25a9826000604051611d1c9291909182521515602082015260400190565b60405180910390a15050565b600b8281548110611d3b57611d3b612711565b60009182526020918290209181049091015460ff601f9092166101000a900416158015611d6a57506001811515145b1561151a57600c8281548110611d8257611d82612711565b906000526020600020015460096000828254611d9e9190612780565b925050819055506001600b8381548110611dba57611dba612711565b90600052602060002090602091828204019190066101000a81548160ff0219169083151502179055507f4064466ba8625c6c1853c553ac47f32c85fd1689c68dd5c54e2a6211ccba25a9826001604051611d1c9291909182521515602082015260400190565b6001600160a01b038216611e6a5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016109a9565b6000818152600260205260409020546001600160a01b031615611ec05760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016109a9565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260409020546001600160a01b031680611f7d5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016109a9565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606060006120058361208b565b600101905060008167ffffffffffffffff81111561202557612025612251565b6040519080825280601f01601f19166020018201604052801561204f576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461205957509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106120ca5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106120f6576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061211457662386f26fc10000830492506010015b6305f5e100831061212c576305f5e100830492506008015b612710831061214057612710830492506004015b60648310612152576064830492506002015b600a83106108935760010192915050565b6001600160e01b03198116811461217957600080fd5b50565b60006020828403121561218e57600080fd5b813561219981612163565b9392505050565b60005b838110156121bb5781810151838201526020016121a3565b50506000910152565b60208152600082518060208401526121e38160408501602087016121a0565b601f01601f19169190910160400192915050565b60006020828403121561220957600080fd5b5035919050565b6001600160a01b038116811461217957600080fd5b6000806040838503121561223857600080fd5b823561224381612210565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561229057612290612251565b604052919050565b600067ffffffffffffffff8211156122b2576122b2612251565b5060051b60200190565b600082601f8301126122cd57600080fd5b813560206122e26122dd83612298565b612267565b82815260059290921b8401810191818101908684111561230157600080fd5b8286015b8481101561231c5780358352918301918301612305565b509695505050505050565b8035801515811461147257600080fd5b6000806040838503121561234a57600080fd5b823567ffffffffffffffff8082111561236257600080fd5b61236e868387016122bc565b935060209150818501358181111561238557600080fd5b85019050601f8101861361239857600080fd5b80356123a66122dd82612298565b81815260059190911b820183019083810190888311156123c557600080fd5b928401925b828410156123ea576123db84612327565b825292840192908401906123ca565b80955050505050509250929050565b60006020828403121561240b57600080fd5b813561219981612210565b60008060006060848603121561242b57600080fd5b833561243681612210565b9250602084013561244681612210565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b81811015612491578351151583529284019291840191600101612473565b50909695505050505050565b6000602082840312156124af57600080fd5b813567ffffffffffffffff8111156124c657600080fd5b6124d2848285016122bc565b949350505050565b600060208083850312156124ed57600080fd5b823567ffffffffffffffff8082111561250557600080fd5b818501915085601f83011261251957600080fd5b81358181111561252b5761252b612251565b61253d601f8201601f19168501612267565b9150808252868482850101111561255357600080fd5b8084840185840137600090820190930192909252509392505050565b6000806040838503121561258257600080fd5b823561258d81612210565b915061259b60208401612327565b90509250929050565b6000806000806000608086880312156125bc57600080fd5b85356125c781612210565b945060208601356125d781612210565b935060408601359250606086013567ffffffffffffffff808211156125fb57600080fd5b818801915088601f83011261260f57600080fd5b81358181111561261e57600080fd5b89602082850101111561263057600080fd5b9699959850939650602001949392505050565b6000806040838503121561265657600080fd5b823561266181612210565b9150602083013561267181612210565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561249157835183529284019291840191600101612698565b600080604083850312156126c757600080fd5b8235915061259b60208401612327565b600181811c908216806126eb57607f821691505b60208210810361270b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161274f5761274f612727565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261277b5761277b612756565b500690565b8082018082111561089357610893612727565b6000826127a2576127a2612756565b500490565b8181038181111561089357610893612727565b6000602082840312156127cc57600080fd5b815161219981612163565b808202811582820484141761089357610893612727565b601f821115610ab557600081815260208120601f850160051c810160208610156128155750805b601f850160051c820191505b8181101561283457828155600101612821565b505050505050565b815167ffffffffffffffff81111561285657612856612251565b61286a8161286484546126d7565b846127ee565b602080601f83116001811461289f57600084156128875750858301515b600019600386901b1c1916600185901b178555612834565b600085815260208120601f198616915b828110156128ce578886015182559484019460019091019084016128af565b50858210156128ec5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b600080845461295e816126d7565b60018281168015612976576001811461298b576129ba565b60ff19841687528215158302870194506129ba565b8860005260208060002060005b858110156129b15781548a820152908401908201612998565b50505082870194505b5050505083516129ce8183602088016121a0565b0194935050505056fea264697066735822122055eb5e30e250409cb452af1b321a9276df47963829094ad1064c610ee15c361864736f6c63430008110033000000000000000000000000000000000000000000000000009536c70891000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000c80000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000003a68747470733a2f2f686f6c6f6772616d78797a2e73332e616d617a6f6e6177732e636f6d2f6e66742f77632f6d657461646174612f617761792f000000000000
Deployed Bytecode
0x6080604052600436106102675760003560e01c8063753868e311610144578063b88d4fde116100b6578063d5abeb011161007a578063d5abeb011461076c578063dbddb26a146107a0578063e985e9c5146107b5578063ec560832146107f0578063ef70aebf14610812578063fe7c7d6b1461082757600080fd5b8063b88d4fde146106c2578063bdb4b848146106e2578063c87b56dd14610716578063cf30901214610736578063d52079b41461075657600080fd5b806395d89b411161010857806395d89b41146106105780639a65ea2614610625578063a22cb4651461063a578063a9722cf31461065a578063b3f05b9714610674578063b7c8259f1461069557600080fd5b8063753868e3146105745780638007b25a146105895780638467be0d146105bd5780638da5cb5b146105d0578063931688cb146105f057600080fd5b80632e1a7d4d116101dd578063572849c4116101a1578063572849c41461049457806362c3c834146104c85780636352211e146104de57806363b266ba146104fe57806370a082311461053457806372e553991461055457600080fd5b80632e1a7d4d146103e45780633f3993f51461040457806342842e0e1461042457806348dad578146104445780634d77564a1461046657600080fd5b80630b31a8ed1161022f5780630b31a8ed146103525780631249c58b1461037257806313af40351461037a57806322f0f2f91461039a57806323b872dd146103af57806328c5cf0a146103cf57600080fd5b806301ffc9a71461026c578063021313cf146102a157806306fdde03146102c0578063081812fc146102e2578063095ea7b314610330575b600080fd5b34801561027857600080fd5b5061028c61028736600461217c565b610847565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b50600d5461028c90610100900460ff1681565b3480156102cc57600080fd5b506102d5610899565b60405161029891906121c4565b3480156102ee57600080fd5b506103186102fd3660046121f7565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610298565b34801561033c57600080fd5b5061035061034b366004612225565b610927565b005b34801561035e57600080fd5b5061035061036d366004612337565b610a0e565b610350610aba565b34801561038657600080fd5b506103506103953660046123f9565b610cd7565b3480156103a657600080fd5b50610350610d4c565b3480156103bb57600080fd5b506103506103ca366004612416565b610dd9565b3480156103db57600080fd5b50610350610fa0565b3480156103f057600080fd5b506103506103ff3660046121f7565b611034565b34801561041057600080fd5b5061028c61041f3660046121f7565b611260565b34801561043057600080fd5b5061035061043f366004612416565b611294565b34801561045057600080fd5b50610459611387565b6040516102989190612457565b34801561047257600080fd5b506104866104813660046121f7565b6113ff565b604051908152602001610298565b3480156104a057600080fd5b506104867f000000000000000000000000000000000000000000000000000000000000000a81565b3480156104d457600080fd5b5061048660095481565b3480156104ea57600080fd5b506103186104f93660046121f7565b611420565b34801561050a57600080fd5b506104866105193660046123f9565b6001600160a01b03166000908152600a602052604090205490565b34801561054057600080fd5b5061048661054f3660046123f9565b611477565b34801561056057600080fd5b5061035061056f36600461249d565b6114da565b34801561058057600080fd5b5061035061151e565b34801561059557600080fd5b506104867f000000000000000000000000000000000000000000000000000000000000002081565b6103506105cb3660046121f7565b6115d8565b3480156105dc57600080fd5b50600654610318906001600160a01b031681565b3480156105fc57600080fd5b5061035061060b3660046124da565b611831565b34801561061c57600080fd5b506102d5611895565b34801561063157600080fd5b506103506118a2565b34801561064657600080fd5b5061035061065536600461256f565b611929565b34801561066657600080fd5b50600d5461028c9060ff1681565b34801561068057600080fd5b50600d5461028c906301000000900460ff1681565b3480156106a157600080fd5b506104866106b03660046123f9565b600a6020526000908152604090205481565b3480156106ce57600080fd5b506103506106dd3660046125a4565b611995565b3480156106ee57600080fd5b506104867f000000000000000000000000000000000000000000000000009536c70891000081565b34801561072257600080fd5b506102d56107313660046121f7565b611a7d565b34801561074257600080fd5b50600d5461028c9062010000900460ff1681565b34801561076257600080fd5b5061048660085481565b34801561077857600080fd5b506104867f0000000000000000000000000000000000000000000000000000000000000c8081565b3480156107ac57600080fd5b506102d5611ab1565b3480156107c157600080fd5b5061028c6107d0366004612643565b600560209081526000928352604080842090915290825290205460ff1681565b3480156107fc57600080fd5b50610805611abe565b604051610298919061267c565b34801561081e57600080fd5b50610350611b15565b34801561083357600080fd5b506103506108423660046126b4565b611ba3565b60006301ffc9a760e01b6001600160e01b03198316148061087857506380ac58cd60e01b6001600160e01b03198316145b806108935750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546108a6906126d7565b80601f01602080910402602001604051908101604052809291908181526020018280546108d2906126d7565b801561091f5780601f106108f45761010080835404028352916020019161091f565b820191906000526020600020905b81548152906001019060200180831161090257829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b03163381148061097057506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6109b25760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6006546001600160a01b03163314610a39576040516330cd747160e01b815260040160405180910390fd5b8051825114610a5b57604051630a88460560e11b815260040160405180910390fd5b60005b8251811015610ab557610aa3838281518110610a7c57610a7c612711565b6020026020010151838381518110610a9657610a96612711565b6020026020010151611ba3565b80610aad8161273d565b915050610a5e565b505050565b600d5460ff16610add576040516369183ba160e11b815260040160405180910390fd5b600d54610100900460ff1615610b0657604051633d20ce7960e21b815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000c8060085403610b485760405163d05cb60960e01b815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000009536c7089100003414610bb057604051630d35e92160e01b81527f000000000000000000000000000000000000000000000000009536c70891000060048201523460248201526044016109a9565b336000818152600a60205260409020547f000000000000000000000000000000000000000000000000000000000000000a9003610c0057604051630c398d6560e41b815260040160405180910390fd5b610c0c81600854611e20565b60007f0000000000000000000000000000000000000000000000000000000000000020600854610c3c919061276c565b9050600160096000828254610c519190612780565b925050819055506001600c8281548110610c6d57610c6d612711565b906000526020600020016000828254610c869190612780565b90915550506001600160a01b0382166000908152600a60205260408120805460019290610cb4908490612780565b92505081905550600160086000828254610cce9190612780565b90915550505050565b6006546001600160a01b03163314610d02576040516330cd747160e01b815260040160405180910390fd5b600680546001600160a01b0319166001600160a01b0383169081179091556040517fa2ea9883a321a3e97b8266c2b078bfeec6d50c711ed71f874a90d500ae2eaf3690600090a250565b6006546001600160a01b03163314610d77576040516330cd747160e01b815260040160405180910390fd5b600d546301000000900460ff1615610da25760405163475a253560e01b815260040160405180910390fd5b600d805462ff0000191690556040517f3e5f4fd66bc9f59f15a9304dbc6394e240a57a1b4eb7ca42a75c5d9b298da45590600090a1565b6000818152600260205260409020546001600160a01b03848116911614610e2f5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016109a9565b6001600160a01b038216610e795760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016109a9565b336001600160a01b0384161480610eb357506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b80610ed457506000818152600460205260409020546001600160a01b031633145b610f115760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016109a9565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6006546001600160a01b03163314610fcb576040516330cd747160e01b815260040160405180910390fd5b600d546301000000900460ff1615610ff65760405163475a253560e01b815260040160405180910390fd5b600d805463ff000000191663010000001790556040517f9c6ac702ac1e5e834d54fae35fa20f6dbab76180a01317ec37a7e4ce9f86fe5190600090a1565b600d5462010000900460ff161561105e576040516317c3335f60e21b815260040160405180910390fd5b6000818152600260205260409020546001600160a01b0316331461109557604051633b11fda960e11b815260040160405180910390fd5b60006110c17f00000000000000000000000000000000000000000000000000000000000000208361276c565b9050600b81815481106110d6576110d6612711565b90600052602060002090602091828204019190069054906101000a900460ff166111135760405163b2cab42960e01b815260040160405180910390fd5b6000600954476111239190612793565b90508047101561114957604051639266535160e01b8152600481018290526024016109a9565b6000838152600260205260408082205490516001600160a01b039091169083908381818185875af1925050503d80600081146111a1576040519150601f19603f3d011682016040523d82523d6000602084013e6111a6565b606091505b50509050806111c8576040516312171d8360e31b815260040160405180910390fd5b6001600960008282546111db91906127a7565b925050819055506001600c84815481106111f7576111f7612711565b90600052602060002001600082825461121091906127a7565b9091555061121f905084611f2b565b604080518581526020810185905233917f92ccf450a286a957af52509bc1c9939d1a6a481783e142e41e2499f0bb66ebc6910160405180910390a250505050565b600b818154811061127057600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b61129f838383610dd9565b6001600160a01b0382163b15806113485750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015611318573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061133c91906127ba565b6001600160e01b031916145b610ab55760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064016109a9565b6060600b8054806020026020016040519081016040528092919081815260200182805480156113f557602002820191906000526020600020906000905b825461010083900a900460ff1615158152602060019283018181049485019490930390920291018084116113c45790505b5050505050905090565b600c818154811061140f57600080fd5b600091825260209091200154905081565b6000818152600260205260409020546001600160a01b0316806114725760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016109a9565b919050565b60006001600160a01b0382166114be5760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016109a9565b506001600160a01b031660009081526003602052604090205490565b60005b815181101561151a576115088282815181106114fb576114fb612711565b6020026020010151611034565b806115128161273d565b9150506114dd565b5050565b6006546001600160a01b03163314611549576040516330cd747160e01b815260040160405180910390fd5b600d546301000000900460ff16156115745760405163475a253560e01b815260040160405180910390fd5b600d54610100900460ff1661159c5760405163d33b9a0b60e01b815260040160405180910390fd5b600d805462ff00001916620100001790556040517f6f5ffb7e2a6656882126927a79e460ca27ab657927d593522b90dc28229f7dbc90600090a1565b600d5460ff166115fb576040516369183ba160e11b815260040160405180910390fd5b600d54610100900460ff161561162457604051633d20ce7960e21b815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000c80816008546116539190612780565b11156116725760405163d05cb60960e01b815260040160405180910390fd5b61169c817f000000000000000000000000000000000000000000000000009536c7089100006127d7565b34146116e357604051630d35e92160e01b81527f000000000000000000000000000000000000000000000000009536c70891000060048201523460248201526044016109a9565b336000818152600a60205260409020547f000000000000000000000000000000000000000000000000000000000000000a90611720908490612780565b111561173f57604051630c398d6560e41b815260040160405180910390fd5b6008545b826008546117519190612780565b8110156117d8576117628282611e20565b600061178e7f00000000000000000000000000000000000000000000000000000000000000208361276c565b90506001600c82815481106117a5576117a5612711565b9060005260206000200160008282546117be9190612780565b909155508291506117d090508161273d565b915050611743565b5081600960008282546117eb9190612780565b90915550506001600160a01b0381166000908152600a602052604081208054849290611818908490612780565b925050819055508160086000828254610cce9190612780565b6006546001600160a01b0316331461185c576040516330cd747160e01b815260040160405180910390fd5b6007611868828261283c565b506040517fa1731ca444c73d019f0dbb4ee5546c98730f4ffcdaa1c29776ab542aa64d5e1b90600090a150565b600180546108a6906126d7565b6006546001600160a01b031633146118cd576040516330cd747160e01b815260040160405180910390fd5b600d5460ff16156118f15760405163e9be846360e01b815260040160405180910390fd5b600d805460ff191660011790556040517f452a344f03203071e1daf66e007976c85cb2380deabf1c91f3c4fb1fca41204990600090a1565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6119a0858585610dd9565b6001600160a01b0384163b1580611a375750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a02906119e89033908a908990899089906004016128fc565b6020604051808303816000875af1158015611a07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2b91906127ba565b6001600160e01b031916145b611a765760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064016109a9565b5050505050565b60606007611a8a83611ff8565b604051602001611a9b929190612950565b6040516020818303038152906040529050919050565b600780546108a6906126d7565b6060600c8054806020026020016040519081016040528092919081815260200182805480156113f557602002820191906000526020600020905b815481526020019060010190808311611af8575050505050905090565b6006546001600160a01b03163314611b40576040516330cd747160e01b815260040160405180910390fd5b600d54610100900460ff1615611b6957604051633d20ce7960e21b815260040160405180910390fd5b600d805461ff0019166101001790556040517f49084b94bebca8230478350ba9c83ff8cd54378ccf633cc0d84357d0c0a9b67a90600090a1565b6006546001600160a01b03163314611bce576040516330cd747160e01b815260040160405180910390fd5b600d546301000000900460ff1615611bf95760405163475a253560e01b815260040160405180910390fd5b600d5462010000900460ff16611c22576040516328486b6360e11b815260040160405180910390fd5b600b8281548110611c3557611c35612711565b90600052602060002090602091828204019190069054906101000a900460ff16151560011515148015611c66575080155b15611d2857600c8281548110611c7e57611c7e612711565b906000526020600020015460096000828254611c9a91906127a7565b925050819055506000600b8381548110611cb657611cb6612711565b90600052602060002090602091828204019190066101000a81548160ff0219169083151502179055507f4064466ba8625c6c1853c553ac47f32c85fd1689c68dd5c54e2a6211ccba25a9826000604051611d1c9291909182521515602082015260400190565b60405180910390a15050565b600b8281548110611d3b57611d3b612711565b60009182526020918290209181049091015460ff601f9092166101000a900416158015611d6a57506001811515145b1561151a57600c8281548110611d8257611d82612711565b906000526020600020015460096000828254611d9e9190612780565b925050819055506001600b8381548110611dba57611dba612711565b90600052602060002090602091828204019190066101000a81548160ff0219169083151502179055507f4064466ba8625c6c1853c553ac47f32c85fd1689c68dd5c54e2a6211ccba25a9826001604051611d1c9291909182521515602082015260400190565b6001600160a01b038216611e6a5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016109a9565b6000818152600260205260409020546001600160a01b031615611ec05760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016109a9565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818152600260205260409020546001600160a01b031680611f7d5760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016109a9565b6001600160a01b038116600081815260036020908152604080832080546000190190558583526002825280832080546001600160a01b031990811690915560049092528083208054909216909155518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606060006120058361208b565b600101905060008167ffffffffffffffff81111561202557612025612251565b6040519080825280601f01601f19166020018201604052801561204f576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461205957509392505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106120ca5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106120f6576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061211457662386f26fc10000830492506010015b6305f5e100831061212c576305f5e100830492506008015b612710831061214057612710830492506004015b60648310612152576064830492506002015b600a83106108935760010192915050565b6001600160e01b03198116811461217957600080fd5b50565b60006020828403121561218e57600080fd5b813561219981612163565b9392505050565b60005b838110156121bb5781810151838201526020016121a3565b50506000910152565b60208152600082518060208401526121e38160408501602087016121a0565b601f01601f19169190910160400192915050565b60006020828403121561220957600080fd5b5035919050565b6001600160a01b038116811461217957600080fd5b6000806040838503121561223857600080fd5b823561224381612210565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561229057612290612251565b604052919050565b600067ffffffffffffffff8211156122b2576122b2612251565b5060051b60200190565b600082601f8301126122cd57600080fd5b813560206122e26122dd83612298565b612267565b82815260059290921b8401810191818101908684111561230157600080fd5b8286015b8481101561231c5780358352918301918301612305565b509695505050505050565b8035801515811461147257600080fd5b6000806040838503121561234a57600080fd5b823567ffffffffffffffff8082111561236257600080fd5b61236e868387016122bc565b935060209150818501358181111561238557600080fd5b85019050601f8101861361239857600080fd5b80356123a66122dd82612298565b81815260059190911b820183019083810190888311156123c557600080fd5b928401925b828410156123ea576123db84612327565b825292840192908401906123ca565b80955050505050509250929050565b60006020828403121561240b57600080fd5b813561219981612210565b60008060006060848603121561242b57600080fd5b833561243681612210565b9250602084013561244681612210565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b81811015612491578351151583529284019291840191600101612473565b50909695505050505050565b6000602082840312156124af57600080fd5b813567ffffffffffffffff8111156124c657600080fd5b6124d2848285016122bc565b949350505050565b600060208083850312156124ed57600080fd5b823567ffffffffffffffff8082111561250557600080fd5b818501915085601f83011261251957600080fd5b81358181111561252b5761252b612251565b61253d601f8201601f19168501612267565b9150808252868482850101111561255357600080fd5b8084840185840137600090820190930192909252509392505050565b6000806040838503121561258257600080fd5b823561258d81612210565b915061259b60208401612327565b90509250929050565b6000806000806000608086880312156125bc57600080fd5b85356125c781612210565b945060208601356125d781612210565b935060408601359250606086013567ffffffffffffffff808211156125fb57600080fd5b818801915088601f83011261260f57600080fd5b81358181111561261e57600080fd5b89602082850101111561263057600080fd5b9699959850939650602001949392505050565b6000806040838503121561265657600080fd5b823561266181612210565b9150602083013561267181612210565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561249157835183529284019291840191600101612698565b600080604083850312156126c757600080fd5b8235915061259b60208401612327565b600181811c908216806126eb57607f821691505b60208210810361270b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161274f5761274f612727565b5060010190565b634e487b7160e01b600052601260045260246000fd5b60008261277b5761277b612756565b500690565b8082018082111561089357610893612727565b6000826127a2576127a2612756565b500490565b8181038181111561089357610893612727565b6000602082840312156127cc57600080fd5b815161219981612163565b808202811582820484141761089357610893612727565b601f821115610ab557600081815260208120601f850160051c810160208610156128155750805b601f850160051c820191505b8181101561283457828155600101612821565b505050505050565b815167ffffffffffffffff81111561285657612856612251565b61286a8161286484546126d7565b846127ee565b602080601f83116001811461289f57600084156128875750858301515b600019600386901b1c1916600185901b178555612834565b600085815260208120601f198616915b828110156128ce578886015182559484019460019091019084016128af565b50858210156128ec5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b600080845461295e816126d7565b60018281168015612976576001811461298b576129ba565b60ff19841687528215158302870194506129ba565b8860005260208060002060005b858110156129b15781548a820152908401908201612998565b50505082870194505b5050505083516129ce8183602088016121a0565b0194935050505056fea264697066735822122055eb5e30e250409cb452af1b321a9276df47963829094ad1064c610ee15c361864736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000009536c70891000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000c80000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000003a68747470733a2f2f686f6c6f6772616d78797a2e73332e616d617a6f6e6177732e636f6d2f6e66742f77632f6d657461646174612f617761792f000000000000
-----Decoded View---------------
Arg [0] : _mintCost (uint256): 42000000000000000
Arg [1] : _numInitialTeams (uint256): 32
Arg [2] : _maxSupply (uint256): 3200
Arg [3] : _maxMintPerAddress (uint256): 10
Arg [4] : _baseUri (string): https://hologramxyz.s3.amazonaws.com/nft/wc/metadata/away/
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000009536c708910000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000c80
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [4] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [5] : 000000000000000000000000000000000000000000000000000000000000003a
Arg [6] : 68747470733a2f2f686f6c6f6772616d78797a2e73332e616d617a6f6e617773
Arg [7] : 2e636f6d2f6e66742f77632f6d657461646174612f617761792f000000000000
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.