Overview
Max Total Supply
1,337 HACKERS
Holders
210
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
13 HACKERSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
Hackers
Compiler Version
v0.8.12+commit.f00d7308
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./ERC721A.sol"; /// @author solipsis contract Hackers is Ownable, ERC721A, ReentrancyGuard { constructor(uint256 _collectionSize) ERC721A("Hackers", "HACKERS") { collectionSize = _collectionSize; stage = Stage.INITIAL; metadataIsLocked = false; allowTransferWhileJackedIn = false; treasuryAddress = msg.sender; allowlistSignerAddress = msg.sender; } //////////////////////////////////////////////////////////////////////// // Contract State //////////////////////////////////////////////////////////////////////// /// @notice max number of hackers that will ever be minted uint256 public immutable collectionSize; /// @dev baseURI for all ERC721 Metadata interactions string private _baseTokenURI; /// @dev Arena foundation address, exempt from individual address minting cap address public treasuryAddress; /// @dev sensible batch size for treasury mints uint8 private treasuryMaxBatch = 20; /// @dev Arena controlled allowlist signer address public allowlistSignerAddress; /// @notice is token metadata permanently locked bool public metadataIsLocked; /// @notice is minting temporarily paused /// @dev for unexpected events such as DDOS against minting front-end bool public mintingIsPaused; /// @dev only mutable in transferWhileJackedIn(). Used to disable normal transfers while a token is jacked-in bool private allowTransferWhileJackedIn; // Tracking cumulative and most recent time periods a given hacker has been "jacked-in" struct JackInState { uint64 started; uint64 cumulative; } mapping(uint256 => JackInState) public jackerTracker; /// @dev Simple state machine: INITIAL -> ALLOWLIST_SALE -> PUBLIC_SALE enum Stage { INITIAL, ALLOWLIST_SALE, PUBLIC_SALE } Stage public stage; // All configuration for allowlist sale struct AllowlistSaleConfig { uint32 key; // key that must be provided to mint during allowlist phase uint32 maxBatch; // max purchasable at a time during allowlist phase uint32 maxPerAddress; // limit per address across all mint calls uint32 mintingCap; // temporarily limit total tokens that can be minted collectively uint64 price; // price (in wei) of minting during the allowlist phase } AllowlistSaleConfig public allowlistSaleConfig; // All configuration for public sale struct PublicSaleConfig { uint32 key; // key that must be provided to mint during public phase uint32 maxBatch; // max purchasable at a time during public phase uint32 maxPerAddress; // limit per address across all mint calls uint32 mintingCap; // temporarily limit total tokens that can be minted collectively uint64 price; // price (in wei) of minting during the public phase } PublicSaleConfig public publicSaleConfig; //////////////////////////////////////////////////////////////////////// // Stage Transitions //////////////////////////////////////////////////////////////////////// error FunctionInvalidAtThisStage(); error SaleKeyNotSet(); error SaleMaxBatchNotSet(); error SaleMaxPerAddressNotSet(); error SaleTotalAllotmentNotSet(); error SalePriceNotSet(); /// @dev only allow function to proceed if in specified stage of state machine modifier onlyStage(Stage _stage) { if (stage != _stage) { revert FunctionInvalidAtThisStage(); } _; } /// @notice advance to next stage of sale if all pre-requisites have been met /// @dev Stage transitions from INITIAL -> ALLOWLIST_SALE -> PUBLIC_SALE function advanceStage() external onlyOwner { // For each possible state, verify that all prereqs are met before transition to next state if (stage == Stage.INITIAL) { if (allowlistSaleConfig.key == 0) revert SaleKeyNotSet(); if (allowlistSaleConfig.maxBatch == 0) revert SaleMaxBatchNotSet(); if (allowlistSaleConfig.maxPerAddress == 0) revert SaleMaxPerAddressNotSet(); if (allowlistSaleConfig.price == 0) revert SalePriceNotSet(); stage = Stage.ALLOWLIST_SALE; } else if (stage == Stage.ALLOWLIST_SALE) { if (publicSaleConfig.key == 0) revert SaleKeyNotSet(); if (publicSaleConfig.maxBatch == 0) revert SaleMaxBatchNotSet(); if (publicSaleConfig.maxPerAddress == 0) revert SaleMaxPerAddressNotSet(); if (publicSaleConfig.price == 0) revert SalePriceNotSet(); stage = Stage.PUBLIC_SALE; } } //////////////////////////////////////////////////////////////////////// // Admin //////////////////////////////////////////////////////////////////////// error CallerIsContract(); error WithdrawFailed(); error CallerNotApprovedOrTokenOwner(); error ExceededTreasuryMaxBatch(); /// @notice withraw current contract balance to current treasuryAddress function withdrawMoney() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); if (!success) revert WithdrawFailed(); } /// @notice temporarily pause/unpause minting in case of an external issue function setMintingIsPaused(bool _paused) external onlyOwner { mintingIsPaused = _paused; } /// @notice sets the Arena treasury address function setTreasuryAddress(address _addr) external onlyOwner { treasuryAddress = _addr; } /// @notice sets the allowlist signer address function setAllowlistSignerAddress(address _addr) external onlyOwner { allowlistSignerAddress = _addr; } /// @notice mint directly to treasury wallet /// @param quantity how many tokens to mint function treasuryMint(uint8 quantity) external onlyOwner { if (quantity > treasuryMaxBatch) revert ExceededTreasuryMaxBatch(); if (_totalMinted() + quantity > collectionSize) revert ExceededMaxSupply(); _safeMint(treasuryAddress, quantity); } /// @dev prevent contracts from calling some functions modifier callerIsUser() { if (tx.origin != msg.sender) revert CallerIsContract(); _; } modifier onlyApprovedOrTokenOwner(uint256 tokenID) { TokenOwnership memory ownership = _ownershipOf(tokenID); bool isApprovedOrOwner = (_msgSender() == ownership.addr || isApprovedForAll(ownership.addr, _msgSender()) || getApproved(tokenID) == _msgSender()); if (!isApprovedOrOwner) revert CallerNotApprovedOrTokenOwner(); _; } //////////////////////////////////////////////////////////////////////// // Allowlist Sale //////////////////////////////////////////////////////////////////////// error MintingPaused(); error InvalidAllowlistSignature(); error IncorrectAllowlistSaleKey(); error ExceededAllowlistMaxBatch(); error ExceededAllowlistMaxPerAddress(); error ExceededAllowlistMintingCap(); error ExceededAllowlistPersonalAllotment(); /// @notice mint using earned mint-passes /// @param quantity how many tokens to mint /// @param userAllotment total mint passes the sender earned /// @param callerSaleKey allowlist sale key /// @param signature arena provided signature over other parameters /// @dev signature over users address and allotted quantity function allowlistMint(uint8 quantity, uint8 userAllotment, uint32 callerSaleKey, bytes memory signature) external payable callerIsUser onlyStage(Stage.ALLOWLIST_SALE) { AllowlistSaleConfig memory config = allowlistSaleConfig; uint256 saleKey = uint256(config.key); uint256 maxBatch = uint256(config.maxBatch); uint256 maxPerAddress = uint256(config.maxPerAddress); uint256 mintingCap = uint256(config.mintingCap); uint256 price = uint256(config.price); bytes32 message = prefixed(keccak256(abi.encodePacked(msg.sender, ":", userAllotment))); if (mintingIsPaused) revert MintingPaused(); if (quantity > maxBatch) revert ExceededAllowlistMaxBatch(); if (saleKey != callerSaleKey) revert IncorrectAllowlistSaleKey(); if (numberMinted(msg.sender) + quantity > userAllotment) revert ExceededAllowlistPersonalAllotment(); if (numberMinted(msg.sender) + quantity > maxPerAddress) revert ExceededAllowlistMaxPerAddress(); if (_totalMinted() + quantity > mintingCap) revert ExceededAllowlistMintingCap(); if (_totalMinted() + quantity > collectionSize) revert ExceededMaxSupply(); if (recoverSigner(message, signature) != allowlistSignerAddress) revert InvalidAllowlistSignature(); _safeMint(msg.sender, quantity); refundIfOver(price * quantity); } // signature methods. function splitSignature(bytes memory sig) internal pure returns (uint8 v, bytes32 r, bytes32 s) { require(sig.length == 65); assembly { // first 32 bytes, after the length prefix. r := mload(add(sig, 32)) // second 32 bytes. s := mload(add(sig, 64)) // final byte (first byte of the next 32 bytes). v := byte(0, mload(add(sig, 96))) } return (v, r, s); } function recoverSigner(bytes32 message, bytes memory sig) internal pure returns (address) { (uint8 v, bytes32 r, bytes32 s) = splitSignature(sig); return ecrecover(message, v, r, s); } // builds a prefixed hash to mimic the behavior of eth_sign. function prefixed(bytes32 hash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } //////////////////////////////////////////////////////////////////////// // Public Sale //////////////////////////////////////////////////////////////////////// error IncorrectPublicSaleKey(); error ExceededPublicSaleMaxBatch(); error ExceededPublicSaleMaxPerAddress(); error ExceededPublicSaleMintingCap(); error ExceededMaxSupply(); error InsufficientEth(); /// @notice open public mint /// @param quantity how many tokens to mint /// @param callerSaleKey public sale key function publicSaleMint(uint256 quantity, uint256 callerSaleKey) external payable callerIsUser onlyStage(Stage.PUBLIC_SALE) { PublicSaleConfig memory config = publicSaleConfig; uint256 publicSaleKey = uint256(config.key); uint256 publicSalePrice = uint256(config.price); uint256 publicSaleMaxBatch = uint256(config.maxBatch); uint256 publicSaleMintingCap = uint256(config.mintingCap); uint256 publicSaleMaxPerAddress = uint256(config.maxPerAddress); if (mintingIsPaused) revert MintingPaused(); if (publicSaleKey != callerSaleKey) revert IncorrectPublicSaleKey(); if (quantity > publicSaleMaxBatch) revert ExceededPublicSaleMaxBatch(); if (_totalMinted() + quantity > collectionSize) revert ExceededMaxSupply(); if (_totalMinted() + quantity > publicSaleMintingCap) revert ExceededPublicSaleMintingCap(); if (numberMinted(msg.sender) + quantity > publicSaleMaxPerAddress) revert ExceededPublicSaleMaxPerAddress(); _safeMint(msg.sender, quantity); refundIfOver(publicSalePrice * quantity); } function refundIfOver(uint256 totalCost) private { if (msg.value < totalCost) revert InsufficientEth(); if (msg.value > totalCost) { payable(msg.sender).transfer(msg.value - totalCost); } } //////////////////////////////////////////////////////////////////////// // Sale Configuration //////////////////////////////////////////////////////////////////////// error InvalidAllowlistConfiguration(); error InvalidPublicSaleConfiguration(); /// @notice configure the params for the allowlist stage of the sale /// @param key arena provided sale key /// @param maxBatch maximum mint batch size per transaction /// @param maxPerAddress maximum cumulative mints for each unique address /// @param mintingCap temporarily limit total tokens that can be minted collectively /// @param price sale price in wei function configureAllowlistSale(uint32 key, uint32 maxBatch, uint32 maxPerAddress, uint32 mintingCap, uint64 price) external onlyOwner { if (key == 0) revert InvalidAllowlistConfiguration(); if (maxBatch == 0) revert InvalidAllowlistConfiguration(); if (maxPerAddress == 0) revert InvalidAllowlistConfiguration(); if (price == 0) revert InvalidAllowlistConfiguration(); if (mintingCap == 0) revert InvalidAllowlistConfiguration(); allowlistSaleConfig.key = key; allowlistSaleConfig.maxBatch = maxBatch; allowlistSaleConfig.maxPerAddress = maxPerAddress; allowlistSaleConfig.mintingCap = mintingCap; allowlistSaleConfig.price = price; } /// @notice configure the params for the public stage of the sale /// @param key arena provided sale key /// @param maxBatch maximum mint batch size per transaction /// @param maxPerAddress maximum cumulative mints for each unique address /// @param mintingCap temporarily limit total tokens that can be minted collectively /// @param price sale price in wei function configurePublicSale(uint32 key, uint32 maxBatch, uint32 maxPerAddress, uint32 mintingCap, uint64 price) external onlyOwner { if (key == 0) revert InvalidPublicSaleConfiguration(); if (maxBatch == 0) revert InvalidPublicSaleConfiguration(); if (maxPerAddress == 0) revert InvalidPublicSaleConfiguration(); if (price == 0) revert InvalidPublicSaleConfiguration(); if (mintingCap == 0) revert InvalidPublicSaleConfiguration(); publicSaleConfig.key = key; publicSaleConfig.maxBatch = maxBatch; publicSaleConfig.maxPerAddress = maxPerAddress; publicSaleConfig.mintingCap = mintingCap; publicSaleConfig.price = price; } //////////////////////////////////////////////////////////////////////// // Jack In/Out //////////////////////////////////////////////////////////////////////// error InvalidTransferCurrentlyJackedIn(); error OnlyTokenOwner(); event JackedIn(uint256 indexed tokenID); event JackedOut(uint256 indexed tokenID); event Flatlined(uint256 indexed tokenID); /// @notice returns whether the provided token is currently jacked-in and current + cumulative hacking time function hackingStats(uint256 tokenID) external view returns ( bool isJackedIn, uint64 current, uint64 total ) { JackInState memory state = jackerTracker[tokenID]; if (state.started != 0) { isJackedIn = true; current = uint64(block.timestamp) - state.started; } total = state.cumulative + current; } /// @dev prevent normal transfers if the token is jacked in function _beforeTokenTransfers( address, address, uint256 startTokenID, uint256 quantity ) internal view override { uint256 tokenID = startTokenID; for (uint256 end = tokenID + quantity; tokenID < end; tokenID++) { if (jackerTracker[tokenID].started != 0 && !allowTransferWhileJackedIn) { revert InvalidTransferCurrentlyJackedIn(); } } } /// @notice transfer a currently jacked-in hacker without interrupting hacking stats /// @dev not using safeTransferFrom() to avoid re-entrancy issues function transferWhileJackedIn( address from, address to, uint256 tokenID ) external { if (ownerOf(tokenID) != _msgSender()) revert OnlyTokenOwner(); allowTransferWhileJackedIn = true; transferFrom(from, to, tokenID); allowTransferWhileJackedIn = false; } /// @notice jack-in all provided tokenIDs /// @dev no-op if already jacked in function jackIn(uint256[] calldata tokenIDs) external { uint256 length = tokenIDs.length; for (uint256 i = 0; i < length; i++) { _jackIn(tokenIDs[i]); } } function _jackIn(uint256 tokenID) internal onlyApprovedOrTokenOwner(tokenID) { JackInState storage state = jackerTracker[tokenID]; if (state.started == 0) { state.started = uint64(block.timestamp); emit JackedIn(tokenID); } } /// @notice jack-out all provided tokenIDs /// @dev no-op if already jacked out function jackOut(uint256[] calldata tokenIDs) external { uint256 length = tokenIDs.length; for (uint256 i = 0; i < length; i++) { _jackOut(tokenIDs[i]); } } function _jackOut(uint256 tokenID) internal onlyApprovedOrTokenOwner(tokenID) { JackInState storage state = jackerTracker[tokenID]; if (state.started != 0) { state.cumulative += uint64(block.timestamp) - state.started; state.started = 0; emit JackedOut(tokenID); } } /// @notice Forcibly jack-out a token engaging in malicious behavier /// @dev see Moonbirds.sol line 349 for additional discussion function flatline(uint256 tokenID) external onlyOwner { JackInState storage state = jackerTracker[tokenID]; if (state.started != 0) { state.cumulative += uint64(block.timestamp) - state.started; state.started = 0; emit JackedOut(tokenID); emit Flatlined(tokenID); } } //////////////////////////////////////////////////////////////////////// // Metadata //////////////////////////////////////////////////////////////////////// error MetadataLocked(); function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } /// @notice Set _baseTokenURI for ERC721 metadata functions function setBaseURI(string calldata baseURI) external onlyOwner { if (metadataIsLocked) revert MetadataLocked(); _baseTokenURI = baseURI; } /// @notice permanently lock base metadataURI from being changed function lockMetadata() external onlyOwner { metadataIsLocked = true; } /// @notice returns number of tokens minted by provided address function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } /// @dev See {IERC165-supportsInterface}. function supportsInterface(bytes4 interfaceId) public view override(ERC721A) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // 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 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // 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); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_collectionSize","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"CallerIsContract","type":"error"},{"inputs":[],"name":"CallerNotApprovedOrTokenOwner","type":"error"},{"inputs":[],"name":"ExceededAllowlistMaxBatch","type":"error"},{"inputs":[],"name":"ExceededAllowlistMaxPerAddress","type":"error"},{"inputs":[],"name":"ExceededAllowlistMintingCap","type":"error"},{"inputs":[],"name":"ExceededAllowlistPersonalAllotment","type":"error"},{"inputs":[],"name":"ExceededMaxSupply","type":"error"},{"inputs":[],"name":"ExceededPublicSaleMaxBatch","type":"error"},{"inputs":[],"name":"ExceededPublicSaleMaxPerAddress","type":"error"},{"inputs":[],"name":"ExceededPublicSaleMintingCap","type":"error"},{"inputs":[],"name":"ExceededTreasuryMaxBatch","type":"error"},{"inputs":[],"name":"FunctionInvalidAtThisStage","type":"error"},{"inputs":[],"name":"IncorrectAllowlistSaleKey","type":"error"},{"inputs":[],"name":"IncorrectPublicSaleKey","type":"error"},{"inputs":[],"name":"InsufficientEth","type":"error"},{"inputs":[],"name":"InvalidAllowlistConfiguration","type":"error"},{"inputs":[],"name":"InvalidAllowlistSignature","type":"error"},{"inputs":[],"name":"InvalidPublicSaleConfiguration","type":"error"},{"inputs":[],"name":"InvalidTransferCurrentlyJackedIn","type":"error"},{"inputs":[],"name":"MetadataLocked","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"MintingPaused","type":"error"},{"inputs":[],"name":"OnlyTokenOwner","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SaleKeyNotSet","type":"error"},{"inputs":[],"name":"SaleMaxBatchNotSet","type":"error"},{"inputs":[],"name":"SaleMaxPerAddressNotSet","type":"error"},{"inputs":[],"name":"SalePriceNotSet","type":"error"},{"inputs":[],"name":"SaleTotalAllotmentNotSet","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":"WithdrawFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"Flatlined","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"JackedIn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"JackedOut","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"advanceStage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"},{"internalType":"uint8","name":"userAllotment","type":"uint8"},{"internalType":"uint32","name":"callerSaleKey","type":"uint32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"allowlistSaleConfig","outputs":[{"internalType":"uint32","name":"key","type":"uint32"},{"internalType":"uint32","name":"maxBatch","type":"uint32"},{"internalType":"uint32","name":"maxPerAddress","type":"uint32"},{"internalType":"uint32","name":"mintingCap","type":"uint32"},{"internalType":"uint64","name":"price","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowlistSignerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectionSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"key","type":"uint32"},{"internalType":"uint32","name":"maxBatch","type":"uint32"},{"internalType":"uint32","name":"maxPerAddress","type":"uint32"},{"internalType":"uint32","name":"mintingCap","type":"uint32"},{"internalType":"uint64","name":"price","type":"uint64"}],"name":"configureAllowlistSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"key","type":"uint32"},{"internalType":"uint32","name":"maxBatch","type":"uint32"},{"internalType":"uint32","name":"maxPerAddress","type":"uint32"},{"internalType":"uint32","name":"mintingCap","type":"uint32"},{"internalType":"uint64","name":"price","type":"uint64"}],"name":"configurePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"flatline","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"hackingStats","outputs":[{"internalType":"bool","name":"isJackedIn","type":"bool"},{"internalType":"uint64","name":"current","type":"uint64"},{"internalType":"uint64","name":"total","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"jackIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIDs","type":"uint256[]"}],"name":"jackOut","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"jackerTracker","outputs":[{"internalType":"uint64","name":"started","type":"uint64"},{"internalType":"uint64","name":"cumulative","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"metadataIsLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintingIsPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleConfig","outputs":[{"internalType":"uint32","name":"key","type":"uint32"},{"internalType":"uint32","name":"maxBatch","type":"uint32"},{"internalType":"uint32","name":"maxPerAddress","type":"uint32"},{"internalType":"uint32","name":"mintingCap","type":"uint32"},{"internalType":"uint64","name":"price","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"callerSaleKey","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setAllowlistSignerAddress","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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setMintingIsPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setTreasuryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stage","outputs":[{"internalType":"enum Hackers.Stage","name":"","type":"uint8"}],"stateMutability":"view","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":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"transferWhileJackedIn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasuryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"treasuryMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a0604052600b805460ff60a01b1916600560a21b1790553480156200002457600080fd5b50604051620037913803806200379183398101604081905262000047916200020f565b604051806040016040528060078152602001664861636b65727360c81b815250604051806040016040528060078152602001664841434b45525360c81b815250620000a16200009b6200011560201b60201c565b62000119565b8151620000b690600390602085019062000169565b508051620000cc90600490602084019062000169565b50600060019081556009555050608052600e805460ff19169055600c8054600b80546001600160a01b03191633908117909155600161ff0160a81b031990911617905562000266565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001779062000229565b90600052602060002090601f0160209004810192826200019b5760008555620001e6565b82601f10620001b657805160ff1916838001178555620001e6565b82800160010185558215620001e6579182015b82811115620001e6578251825591602001919060010190620001c9565b50620001f4929150620001f8565b5090565b5b80821115620001f45760008155600101620001f9565b6000602082840312156200022257600080fd5b5051919050565b600181811c908216806200023e57607f821691505b602082108114156200026057634e487b7160e01b600052602260045260246000fd5b50919050565b6080516134fa62000297600039600081816104c801528181610f590152818161142f0152611bc601526134fa6000f3fe6080604052600436106102e75760003560e01c8063946d766411610184578063cb91d8b3116100d6578063e1f93a6d1161008a578063f2fde38b11610064578063f2fde38b14610919578063f58d196014610939578063fb1ddd7f1461098157600080fd5b8063e1f93a6d1461088f578063e6b8645b146108af578063e985e9c5146108d057600080fd5b8063d5e2eb55116100bb578063d5e2eb55146107fe578063dc33e6811461084f578063e014ab641461086f57600080fd5b8063cb91d8b3146107cb578063d5ca15a9146107de57600080fd5b8063ac44600211610138578063c33f48fd11610112578063c33f48fd14610776578063c5f956af1461078b578063c87b56dd146107ab57600080fd5b8063ac4460021461071a578063b88d4fde1461072f578063c040e6b81461074f57600080fd5b8063989bdbb611610169578063989bdbb614610653578063a22cb46514610668578063a3fd2c441461068857600080fd5b8063946d76641461061e57806395d89b411461063e57600080fd5b806345c0f5331161023d5780636a991018116101f15780637ca158b0116101cb5780637ca158b0146105c05780638da5cb5b146105e05780638f6ecf8f146105fe57600080fd5b80636a9910181461056b57806370a082311461058b578063715018a6146105ab57600080fd5b80635830139f116102225780635830139f1461050a5780636352211e1461052b5780636605bfda1461054b57600080fd5b806345c0f533146104b657806355f804b3146104ea57600080fd5b80630a506c241161029f57806318160ddd1161027957806318160ddd1461045357806323b872dd1461047657806342842e0e1461049657600080fd5b80630a506c24146103bd5780630ab5e499146103dd578063174210ee1461044057600080fd5b806306fdde03116102d057806306fdde0314610343578063081812fc14610365578063095ea7b31461039d57600080fd5b806301ffc9a7146102ec57806302cfc38414610321575b600080fd5b3480156102f857600080fd5b5061030c610307366004612ded565b6109a1565b60405190151581526020015b60405180910390f35b34801561032d57600080fd5b5061034161033c366004612e26565b6109b2565b005b34801561034f57600080fd5b50610358610a21565b6040516103189190612e99565b34801561037157600080fd5b50610385610380366004612eac565b610ab3565b6040516001600160a01b039091168152602001610318565b3480156103a957600080fd5b506103416103b8366004612ec5565b610b10565b3480156103c957600080fd5b50600c54610385906001600160a01b031681565b3480156103e957600080fd5b5061041f6103f8366004612eac565b600d6020526000908152604090205467ffffffffffffffff80821691600160401b90041682565b6040805167ffffffffffffffff938416815292909116602083015201610318565b61034161044e366004612fb7565b610c15565b34801561045f57600080fd5b50600254600154035b604051908152602001610318565b34801561048257600080fd5b50610341610491366004613026565b611034565b3480156104a257600080fd5b506103416104b1366004613026565b611044565b3480156104c257600080fd5b506104687f000000000000000000000000000000000000000000000000000000000000000081565b3480156104f657600080fd5b50610341610505366004613062565b61105f565b34801561051657600080fd5b50600c5461030c90600160a81b900460ff1681565b34801561053757600080fd5b50610385610546366004612eac565b6110f7565b34801561055757600080fd5b50610341610566366004612e26565b611102565b34801561057757600080fd5b50610341610586366004612eac565b61116c565b34801561059757600080fd5b506104686105a6366004612e26565b61129a565b3480156105b757600080fd5b50610341611302565b3480156105cc57600080fd5b506103416105db3660046130d4565b611356565b3480156105ec57600080fd5b506000546001600160a01b0316610385565b34801561060a57600080fd5b50610341610619366004613137565b61139b565b34801561062a57600080fd5b50610341610639366004613026565b6114a0565b34801561064a57600080fd5b5061035861151a565b34801561065f57600080fd5b50610341611529565b34801561067457600080fd5b50610341610683366004613162565b6115a1565b34801561069457600080fd5b506010546106d99063ffffffff808216916401000000008104821691600160401b8204811691600160601b810490911690600160801b900467ffffffffffffffff1685565b6040805163ffffffff9687168152948616602086015292851692840192909252909216606082015267ffffffffffffffff909116608082015260a001610318565b34801561072657600080fd5b50610341611650565b34801561073b57600080fd5b5061034161074a366004613195565b61177a565b34801561075b57600080fd5b50600e546107699060ff1681565b60405161031891906131fb565b34801561078257600080fd5b506103416117be565b34801561079757600080fd5b50600b54610385906001600160a01b031681565b3480156107b757600080fd5b506103586107c6366004612eac565b6119c6565b6103416107d9366004613223565b611a64565b3480156107ea57600080fd5b506103416107f9366004613245565b611cd4565b34801561080a57600080fd5b50600f546106d99063ffffffff808216916401000000008104821691600160401b8204811691600160601b810490911690600160801b900467ffffffffffffffff1685565b34801561085b57600080fd5b5061046861086a366004612e26565b611e82565b34801561087b57600080fd5b5061034161088a366004613245565b611ead565b34801561089b57600080fd5b506103416108aa3660046130d4565b61205b565b3480156108bb57600080fd5b50600c5461030c90600160a01b900460ff1681565b3480156108dc57600080fd5b5061030c6108eb3660046132bb565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561092557600080fd5b50610341610934366004612e26565b61209a565b34801561094557600080fd5b50610959610954366004612eac565b612167565b60408051931515845267ffffffffffffffff9283166020850152911690820152606001610318565b34801561098d57600080fd5b5061034161099c3660046132e5565b6121d6565b60006109ac82612257565b92915050565b6000546001600160a01b031633146109ff5760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064015b60405180910390fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b606060038054610a3090613300565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5c90613300565b8015610aa95780601f10610a7e57610100808354040283529160200191610aa9565b820191906000526020600020905b815481529060010190602001808311610a8c57829003601f168201915b5050505050905090565b6000610abe826122f0565b610af4576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610b1b82612318565b9050806001600160a01b0316836001600160a01b03161415610b69576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610bb957610b8381336108eb565b610bb9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b323314610c3557604051637df1f81760e01b815260040160405180910390fd5b600180600e5460ff166002811115610c4f57610c4f6131e5565b14610c6d576040516328992a5560e21b815260040160405180910390fd5b6040805160a081018252600f5463ffffffff808216808452640100000000830482166020808601829052600160401b85048416868801819052600160601b86049094166060870181905267ffffffffffffffff600160801b909604959095166080870181905296519596929591949291600091610dba91610d5a9133918f910160609290921b6bffffffffffffffffffffffff191682527f3a00000000000000000000000000000000000000000000000000000000000000601483015260f81b7fff0000000000000000000000000000000000000000000000000000000000000016601582015260160190565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b600c54909150600160a81b900460ff1615610de8576040516375ab03ab60e11b815260040160405180910390fd5b848c60ff161115610e25576040517fb5f4158300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8963ffffffff168614610e64576040517fb04a984c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8a60ff168c60ff16610e7533611e82565b610e7f9190613351565b1115610eb7576040517fc5fedaff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b838c60ff16610ec533611e82565b610ecf9190613351565b1115610f07576040517fb626d6e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b828c60ff16610f1560015490565b610f1f9190613351565b1115610f57576040517fbc2f9e7800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000008c60ff16610f8560015490565b610f8f9190613351565b1115610fae5760405163fb88d21560e01b815260040160405180910390fd5b600c546001600160a01b0316610fc4828b612392565b6001600160a01b031614611004576040517f66286be300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611011338d60ff16612411565b61102661102160ff8e1684613369565b61242b565b505050505050505050505050565b61103f8383836124a3565b505050565b61103f8383836040518060200160405280600081525061177a565b6000546001600160a01b031633146110a75760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600c54600160a01b900460ff16156110eb576040517f27de486200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61103f600a8383612d3e565b60006109ac82612318565b6000546001600160a01b0316331461114a5760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146111b45760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b6000818152600d60205260409020805467ffffffffffffffff16156112965780546111e99067ffffffffffffffff1642613388565b8154829060089061120c908490600160401b900467ffffffffffffffff166133b1565b825467ffffffffffffffff9182166101009390930a928302919092021990911617905550805467ffffffffffffffff1916815560405182907f21927c517d2739a4761db63dd47a08533bb821d5897ca79df5af64f195e4e94d90600090a260405182907f84abab3b057f96f2b57653cf40643d6d805182b78aeaf5afdc1dc28fedf6d3bd90600090a25b5050565b60006001600160a01b0382166112dc576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b0316331461134a5760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b61135460006126b9565b565b8060005b8181101561139557611383848483818110611377576113776133dd565b90506020020135612709565b8061138d816133f3565b91505061135a565b50505050565b6000546001600160a01b031633146113e35760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600b5460ff600160a01b9091048116908216111561142d576040517f524169aa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000008160ff1661145b60015490565b6114659190613351565b11156114845760405163fb88d21560e01b815260040160405180910390fd5b600b5461149d906001600160a01b031660ff8316612411565b50565b336114aa826110f7565b6001600160a01b0316146114ea576040517fcdf1f8f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c805460ff60b01b1916600160b01b179055611508838383611034565b5050600c805460ff60b01b1916905550565b606060048054610a3090613300565b6000546001600160a01b031633146115715760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b179055565b6001600160a01b0382163314156115e4576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146116985760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600260095414156116eb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109f6565b6002600955604051600090339047908381818185875af1925050503d8060008114611732576040519150601f19603f3d011682016040523d82523d6000602084013e611737565b606091505b5050905080611772576040517f750b219c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600955565b6117858484846124a3565b6001600160a01b0383163b15611395576117a18484848461283b565b611395576040516368d2bf6b60e11b815260040160405180910390fd5b6000546001600160a01b031633146118065760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b6000600e5460ff16600281111561181f5761181f6131e5565b14156118e657600f5463ffffffff1661184b57604051635b57743760e11b815260040160405180910390fd5b600f54640100000000900463ffffffff1661187957604051639059e10960e01b815260040160405180910390fd5b600f54600160401b900463ffffffff166118a657604051632caf16bf60e11b815260040160405180910390fd5b600f54600160801b900467ffffffffffffffff166118d757604051630eb0d5b160e11b815260040160405180910390fd5b600e805460ff19166001179055565b6001600e5460ff1660028111156118ff576118ff6131e5565b14156113545760105463ffffffff1661192b57604051635b57743760e11b815260040160405180910390fd5b601054640100000000900463ffffffff1661195957604051639059e10960e01b815260040160405180910390fd5b601054600160401b900463ffffffff1661198657604051632caf16bf60e11b815260040160405180910390fd5b601054600160801b900467ffffffffffffffff166119b757604051630eb0d5b160e11b815260040160405180910390fd5b600e805460ff19166002179055565b60606119d1826122f0565b611a07576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611a11612923565b9050805160001415611a325760405180602001604052806000815250611a5d565b80611a3c84612932565b604051602001611a4d92919061340e565b6040516020818303038152906040525b9392505050565b323314611a8457604051637df1f81760e01b815260040160405180910390fd5b600280600e5460ff166002811115611a9e57611a9e6131e5565b14611abc576040516328992a5560e21b815260040160405180910390fd5b6040805160a08101825260105463ffffffff8082168084526401000000008304821660208501819052600160401b84048316958501869052600160601b840490921660608501819052600160801b90930467ffffffffffffffff1660808501819052600c549495919490939190600160a81b900460ff1615611b51576040516375ab03ab60e11b815260040160405180910390fd5b878514611b8a576040517f5806eb7c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82891115611bc4576040517f5ed2961c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000089611bef60015490565b611bf99190613351565b1115611c185760405163fb88d21560e01b815260040160405180910390fd5b8189611c2360015490565b611c2d9190613351565b1115611c65576040517fab3202a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8089611c7033611e82565b611c7a9190613351565b1115611cb2576040517f1d2f37af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cbc338a612411565b611cc96110218a86613369565b505050505050505050565b6000546001600160a01b03163314611d1c5760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b63ffffffff8516611d405760405163a3f4f12760e01b815260040160405180910390fd5b63ffffffff8416611d645760405163a3f4f12760e01b815260040160405180910390fd5b63ffffffff8316611d885760405163a3f4f12760e01b815260040160405180910390fd5b67ffffffffffffffff8116611db05760405163a3f4f12760e01b815260040160405180910390fd5b63ffffffff8216611dd45760405163a3f4f12760e01b815260040160405180910390fd5b6010805467ffffffffffffffff909216600160801b027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff63ffffffff948516600160601b026fffffffff00000000000000000000000019968616600160401b02969096166fffffffffffffffff0000000000000000199786166401000000000267ffffffffffffffff1990951695909816949094179290921794909416949094179190911716919091179055565b6001600160a01b0381166000908152600660205260408082205467ffffffffffffffff911c166109ac565b6000546001600160a01b03163314611ef55760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b63ffffffff8516611f1957604051633455be4160e21b815260040160405180910390fd5b63ffffffff8416611f3d57604051633455be4160e21b815260040160405180910390fd5b63ffffffff8316611f6157604051633455be4160e21b815260040160405180910390fd5b67ffffffffffffffff8116611f8957604051633455be4160e21b815260040160405180910390fd5b63ffffffff8216611fad57604051633455be4160e21b815260040160405180910390fd5b600f805467ffffffffffffffff909216600160801b027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff63ffffffff948516600160601b026fffffffff00000000000000000000000019968616600160401b02969096166fffffffffffffffff0000000000000000199786166401000000000267ffffffffffffffff1990951695909816949094179290921794909416949094179190911716919091179055565b8060005b818110156113955761208884848381811061207c5761207c6133dd565b90506020020135612981565b80612092816133f3565b91505061205f565b6000546001600160a01b031633146120e25760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b6001600160a01b03811661215e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109f6565b61149d816126b9565b6000818152600d6020908152604080832081518083019092525467ffffffffffffffff808216808452600160401b90920416928201929092528291829190156121bd578051600194506121ba9042613388565b92505b8281602001516121cd91906133b1565b93959294505050565b6000546001600160a01b0316331461221e5760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600c8054911515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806122ba57507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806109ac5750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b6000600154821080156109ac575050600090815260056020526040902054600160e01b161590565b60008160015481101561236057600081815260056020526040902054600160e01b811661235e575b80611a5d575060001901600081815260056020526040902054612340565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806000806123a185612a61565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa1580156123fc573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b611296828260405180602001604052806000815250612a90565b80341015612465576040517fa01a9df600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8034111561149d57336108fc61247b8334613434565b6040518115909202916000818181858888f19350505050158015611296573d6000803e3d6000fd5b60006124ae82612318565b9050836001600160a01b0316816001600160a01b0316146124fb576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480612519575061251985336108eb565b8061253457503361252984610ab3565b6001600160a01b0316145b90508061256d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166125ad576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125ba8585856001612c40565b600083815260076020908152604080832080546001600160a01b03191690556001600160a01b0388811684526006835281842080546000190190558716835280832080546001019055858352600590915290207c02000000000000000000000000000000000000000000000000000000004260a01b861781179091558216612670576001830160008181526005602052604090205461266e57600154811461266e5760008181526005602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80600061271582612cda565b80519091506000906001600160a01b0316336001600160a01b031614806127435750815161274390336108eb565b8061275e57503361275384610ab3565b6001600160a01b0316145b90508061277e5760405163ebb255a960e01b815260040160405180910390fd5b6000848152600d60205260409020805467ffffffffffffffff16156126b25780546127b39067ffffffffffffffff1642613388565b815482906008906127d6908490600160401b900467ffffffffffffffff166133b1565b825467ffffffffffffffff9182166101009390930a928302919092021990911617905550805467ffffffffffffffff1916815560405185907f21927c517d2739a4761db63dd47a08533bb821d5897ca79df5af64f195e4e94d90600090a25050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061287090339089908890889060040161344b565b6020604051808303816000875af19250505080156128ab575060408051601f3d908101601f191682019092526128a891810190613487565b60015b612906573d8080156128d9576040519150601f19603f3d011682016040523d82523d6000602084013e6128de565b606091505b5080516128fe576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600a8054610a3090613300565b604080516080810191829052607f0190826030600a8206018353600a90045b801561296f57600183039250600a81066030018353600a9004612951565b50819003601f19909101908152919050565b80600061298d82612cda565b80519091506000906001600160a01b0316336001600160a01b031614806129bb575081516129bb90336108eb565b806129d65750336129cb84610ab3565b6001600160a01b0316145b9050806129f65760405163ebb255a960e01b815260040160405180910390fd5b6000848152600d60205260409020805467ffffffffffffffff166126b257805467ffffffffffffffff19164267ffffffffffffffff1617815560405185907f33ce2a5f4e60817a7bf12a2663d6cec2bee10ac77677ab0171f20744ed017eb590600090a25050505050565b60008060008351604114612a7457600080fd5b5050506020810151604082015160609092015160001a92909190565b6001546001600160a01b038416612ad3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82612b0a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b176000858386612c40565b6001600160a01b03841660008181526006602090815260408083208054680100000000000000018902019055848352600590915290204260a01b86176001861460e11b1790558190818501903b15612bec575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612bb5600087848060010195508761283b565b612bd2576040516368d2bf6b60e11b815260040160405180910390fd5b808210612b6a578260015414612be757600080fd5b612c31565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612bed575b50600155611395600085838684565b816000612c4d8383613351565b90505b80821015612cd2576000828152600d602052604090205467ffffffffffffffff1615801590612c895750600c54600160b01b900460ff16155b15612cc0576040517f4217068f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81612cca816133f3565b925050612c50565b505050505050565b60408051606081018252600080825260208201819052918101919091526109ac612d0383612318565b604080516060810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b90921615159082015290565b828054612d4a90613300565b90600052602060002090601f016020900481019282612d6c5760008555612db2565b82601f10612d855782800160ff19823516178555612db2565b82800160010185558215612db2579182015b82811115612db2578235825591602001919060010190612d97565b50612dbe929150612dc2565b5090565b5b80821115612dbe5760008155600101612dc3565b6001600160e01b03198116811461149d57600080fd5b600060208284031215612dff57600080fd5b8135611a5d81612dd7565b80356001600160a01b0381168114612e2157600080fd5b919050565b600060208284031215612e3857600080fd5b611a5d82612e0a565b60005b83811015612e5c578181015183820152602001612e44565b838111156113955750506000910152565b60008151808452612e85816020860160208601612e41565b601f01601f19169290920160200192915050565b602081526000611a5d6020830184612e6d565b600060208284031215612ebe57600080fd5b5035919050565b60008060408385031215612ed857600080fd5b612ee183612e0a565b946020939093013593505050565b803560ff81168114612e2157600080fd5b803563ffffffff81168114612e2157600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f830112612f3b57600080fd5b813567ffffffffffffffff80821115612f5657612f56612f14565b604051601f8301601f19908116603f01168101908282118183101715612f7e57612f7e612f14565b81604052838152866020858801011115612f9757600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215612fcd57600080fd5b612fd685612eef565b9350612fe460208601612eef565b9250612ff260408601612f00565b9150606085013567ffffffffffffffff81111561300e57600080fd5b61301a87828801612f2a565b91505092959194509250565b60008060006060848603121561303b57600080fd5b61304484612e0a565b925061305260208501612e0a565b9150604084013590509250925092565b6000806020838503121561307557600080fd5b823567ffffffffffffffff8082111561308d57600080fd5b818501915085601f8301126130a157600080fd5b8135818111156130b057600080fd5b8660208285010111156130c257600080fd5b60209290920196919550909350505050565b600080602083850312156130e757600080fd5b823567ffffffffffffffff808211156130ff57600080fd5b818501915085601f83011261311357600080fd5b81358181111561312257600080fd5b8660208260051b85010111156130c257600080fd5b60006020828403121561314957600080fd5b611a5d82612eef565b80358015158114612e2157600080fd5b6000806040838503121561317557600080fd5b61317e83612e0a565b915061318c60208401613152565b90509250929050565b600080600080608085870312156131ab57600080fd5b6131b485612e0a565b93506131c260208601612e0a565b925060408501359150606085013567ffffffffffffffff81111561300e57600080fd5b634e487b7160e01b600052602160045260246000fd5b602081016003831061321d57634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561323657600080fd5b50508035926020909101359150565b600080600080600060a0868803121561325d57600080fd5b61326686612f00565b945061327460208701612f00565b935061328260408701612f00565b925061329060608701612f00565b9150608086013567ffffffffffffffff811681146132ad57600080fd5b809150509295509295909350565b600080604083850312156132ce57600080fd5b6132d783612e0a565b915061318c60208401612e0a565b6000602082840312156132f757600080fd5b611a5d82613152565b600181811c9082168061331457607f821691505b6020821081141561333557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156133645761336461333b565b500190565b60008160001904831182151516156133835761338361333b565b500290565b600067ffffffffffffffff838116908316818110156133a9576133a961333b565b039392505050565b600067ffffffffffffffff8083168185168083038211156133d4576133d461333b565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156134075761340761333b565b5060010190565b60008351613420818460208801612e41565b8351908301906133d4818360208801612e41565b6000828210156134465761344661333b565b500390565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261347d6080830184612e6d565b9695505050505050565b60006020828403121561349957600080fd5b8151611a5d81612dd756fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220a2c0053b2bf4d2ed37a55fc10dde0e7e92dd911e74988acfc24bd724188c755a64736f6c634300080c00330000000000000000000000000000000000000000000000000000000000002775
Deployed Bytecode
0x6080604052600436106102e75760003560e01c8063946d766411610184578063cb91d8b3116100d6578063e1f93a6d1161008a578063f2fde38b11610064578063f2fde38b14610919578063f58d196014610939578063fb1ddd7f1461098157600080fd5b8063e1f93a6d1461088f578063e6b8645b146108af578063e985e9c5146108d057600080fd5b8063d5e2eb55116100bb578063d5e2eb55146107fe578063dc33e6811461084f578063e014ab641461086f57600080fd5b8063cb91d8b3146107cb578063d5ca15a9146107de57600080fd5b8063ac44600211610138578063c33f48fd11610112578063c33f48fd14610776578063c5f956af1461078b578063c87b56dd146107ab57600080fd5b8063ac4460021461071a578063b88d4fde1461072f578063c040e6b81461074f57600080fd5b8063989bdbb611610169578063989bdbb614610653578063a22cb46514610668578063a3fd2c441461068857600080fd5b8063946d76641461061e57806395d89b411461063e57600080fd5b806345c0f5331161023d5780636a991018116101f15780637ca158b0116101cb5780637ca158b0146105c05780638da5cb5b146105e05780638f6ecf8f146105fe57600080fd5b80636a9910181461056b57806370a082311461058b578063715018a6146105ab57600080fd5b80635830139f116102225780635830139f1461050a5780636352211e1461052b5780636605bfda1461054b57600080fd5b806345c0f533146104b657806355f804b3146104ea57600080fd5b80630a506c241161029f57806318160ddd1161027957806318160ddd1461045357806323b872dd1461047657806342842e0e1461049657600080fd5b80630a506c24146103bd5780630ab5e499146103dd578063174210ee1461044057600080fd5b806306fdde03116102d057806306fdde0314610343578063081812fc14610365578063095ea7b31461039d57600080fd5b806301ffc9a7146102ec57806302cfc38414610321575b600080fd5b3480156102f857600080fd5b5061030c610307366004612ded565b6109a1565b60405190151581526020015b60405180910390f35b34801561032d57600080fd5b5061034161033c366004612e26565b6109b2565b005b34801561034f57600080fd5b50610358610a21565b6040516103189190612e99565b34801561037157600080fd5b50610385610380366004612eac565b610ab3565b6040516001600160a01b039091168152602001610318565b3480156103a957600080fd5b506103416103b8366004612ec5565b610b10565b3480156103c957600080fd5b50600c54610385906001600160a01b031681565b3480156103e957600080fd5b5061041f6103f8366004612eac565b600d6020526000908152604090205467ffffffffffffffff80821691600160401b90041682565b6040805167ffffffffffffffff938416815292909116602083015201610318565b61034161044e366004612fb7565b610c15565b34801561045f57600080fd5b50600254600154035b604051908152602001610318565b34801561048257600080fd5b50610341610491366004613026565b611034565b3480156104a257600080fd5b506103416104b1366004613026565b611044565b3480156104c257600080fd5b506104687f000000000000000000000000000000000000000000000000000000000000277581565b3480156104f657600080fd5b50610341610505366004613062565b61105f565b34801561051657600080fd5b50600c5461030c90600160a81b900460ff1681565b34801561053757600080fd5b50610385610546366004612eac565b6110f7565b34801561055757600080fd5b50610341610566366004612e26565b611102565b34801561057757600080fd5b50610341610586366004612eac565b61116c565b34801561059757600080fd5b506104686105a6366004612e26565b61129a565b3480156105b757600080fd5b50610341611302565b3480156105cc57600080fd5b506103416105db3660046130d4565b611356565b3480156105ec57600080fd5b506000546001600160a01b0316610385565b34801561060a57600080fd5b50610341610619366004613137565b61139b565b34801561062a57600080fd5b50610341610639366004613026565b6114a0565b34801561064a57600080fd5b5061035861151a565b34801561065f57600080fd5b50610341611529565b34801561067457600080fd5b50610341610683366004613162565b6115a1565b34801561069457600080fd5b506010546106d99063ffffffff808216916401000000008104821691600160401b8204811691600160601b810490911690600160801b900467ffffffffffffffff1685565b6040805163ffffffff9687168152948616602086015292851692840192909252909216606082015267ffffffffffffffff909116608082015260a001610318565b34801561072657600080fd5b50610341611650565b34801561073b57600080fd5b5061034161074a366004613195565b61177a565b34801561075b57600080fd5b50600e546107699060ff1681565b60405161031891906131fb565b34801561078257600080fd5b506103416117be565b34801561079757600080fd5b50600b54610385906001600160a01b031681565b3480156107b757600080fd5b506103586107c6366004612eac565b6119c6565b6103416107d9366004613223565b611a64565b3480156107ea57600080fd5b506103416107f9366004613245565b611cd4565b34801561080a57600080fd5b50600f546106d99063ffffffff808216916401000000008104821691600160401b8204811691600160601b810490911690600160801b900467ffffffffffffffff1685565b34801561085b57600080fd5b5061046861086a366004612e26565b611e82565b34801561087b57600080fd5b5061034161088a366004613245565b611ead565b34801561089b57600080fd5b506103416108aa3660046130d4565b61205b565b3480156108bb57600080fd5b50600c5461030c90600160a01b900460ff1681565b3480156108dc57600080fd5b5061030c6108eb3660046132bb565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b34801561092557600080fd5b50610341610934366004612e26565b61209a565b34801561094557600080fd5b50610959610954366004612eac565b612167565b60408051931515845267ffffffffffffffff9283166020850152911690820152606001610318565b34801561098d57600080fd5b5061034161099c3660046132e5565b6121d6565b60006109ac82612257565b92915050565b6000546001600160a01b031633146109ff5760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064015b60405180910390fd5b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b606060038054610a3090613300565b80601f0160208091040260200160405190810160405280929190818152602001828054610a5c90613300565b8015610aa95780601f10610a7e57610100808354040283529160200191610aa9565b820191906000526020600020905b815481529060010190602001808311610a8c57829003601f168201915b5050505050905090565b6000610abe826122f0565b610af4576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610b1b82612318565b9050806001600160a01b0316836001600160a01b03161415610b69576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610bb957610b8381336108eb565b610bb9576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b323314610c3557604051637df1f81760e01b815260040160405180910390fd5b600180600e5460ff166002811115610c4f57610c4f6131e5565b14610c6d576040516328992a5560e21b815260040160405180910390fd5b6040805160a081018252600f5463ffffffff808216808452640100000000830482166020808601829052600160401b85048416868801819052600160601b86049094166060870181905267ffffffffffffffff600160801b909604959095166080870181905296519596929591949291600091610dba91610d5a9133918f910160609290921b6bffffffffffffffffffffffff191682527f3a00000000000000000000000000000000000000000000000000000000000000601483015260f81b7fff0000000000000000000000000000000000000000000000000000000000000016601582015260160190565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b600c54909150600160a81b900460ff1615610de8576040516375ab03ab60e11b815260040160405180910390fd5b848c60ff161115610e25576040517fb5f4158300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8963ffffffff168614610e64576040517fb04a984c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8a60ff168c60ff16610e7533611e82565b610e7f9190613351565b1115610eb7576040517fc5fedaff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b838c60ff16610ec533611e82565b610ecf9190613351565b1115610f07576040517fb626d6e800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b828c60ff16610f1560015490565b610f1f9190613351565b1115610f57576040517fbc2f9e7800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000027758c60ff16610f8560015490565b610f8f9190613351565b1115610fae5760405163fb88d21560e01b815260040160405180910390fd5b600c546001600160a01b0316610fc4828b612392565b6001600160a01b031614611004576040517f66286be300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611011338d60ff16612411565b61102661102160ff8e1684613369565b61242b565b505050505050505050505050565b61103f8383836124a3565b505050565b61103f8383836040518060200160405280600081525061177a565b6000546001600160a01b031633146110a75760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600c54600160a01b900460ff16156110eb576040517f27de486200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61103f600a8383612d3e565b60006109ac82612318565b6000546001600160a01b0316331461114a5760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146111b45760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b6000818152600d60205260409020805467ffffffffffffffff16156112965780546111e99067ffffffffffffffff1642613388565b8154829060089061120c908490600160401b900467ffffffffffffffff166133b1565b825467ffffffffffffffff9182166101009390930a928302919092021990911617905550805467ffffffffffffffff1916815560405182907f21927c517d2739a4761db63dd47a08533bb821d5897ca79df5af64f195e4e94d90600090a260405182907f84abab3b057f96f2b57653cf40643d6d805182b78aeaf5afdc1dc28fedf6d3bd90600090a25b5050565b60006001600160a01b0382166112dc576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6000546001600160a01b0316331461134a5760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b61135460006126b9565b565b8060005b8181101561139557611383848483818110611377576113776133dd565b90506020020135612709565b8061138d816133f3565b91505061135a565b50505050565b6000546001600160a01b031633146113e35760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600b5460ff600160a01b9091048116908216111561142d576040517f524169aa00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000027758160ff1661145b60015490565b6114659190613351565b11156114845760405163fb88d21560e01b815260040160405180910390fd5b600b5461149d906001600160a01b031660ff8316612411565b50565b336114aa826110f7565b6001600160a01b0316146114ea576040517fcdf1f8f900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600c805460ff60b01b1916600160b01b179055611508838383611034565b5050600c805460ff60b01b1916905550565b606060048054610a3090613300565b6000546001600160a01b031633146115715760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600c80547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b179055565b6001600160a01b0382163314156115e4576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b031633146116985760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600260095414156116eb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109f6565b6002600955604051600090339047908381818185875af1925050503d8060008114611732576040519150601f19603f3d011682016040523d82523d6000602084013e611737565b606091505b5050905080611772576040517f750b219c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600955565b6117858484846124a3565b6001600160a01b0383163b15611395576117a18484848461283b565b611395576040516368d2bf6b60e11b815260040160405180910390fd5b6000546001600160a01b031633146118065760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b6000600e5460ff16600281111561181f5761181f6131e5565b14156118e657600f5463ffffffff1661184b57604051635b57743760e11b815260040160405180910390fd5b600f54640100000000900463ffffffff1661187957604051639059e10960e01b815260040160405180910390fd5b600f54600160401b900463ffffffff166118a657604051632caf16bf60e11b815260040160405180910390fd5b600f54600160801b900467ffffffffffffffff166118d757604051630eb0d5b160e11b815260040160405180910390fd5b600e805460ff19166001179055565b6001600e5460ff1660028111156118ff576118ff6131e5565b14156113545760105463ffffffff1661192b57604051635b57743760e11b815260040160405180910390fd5b601054640100000000900463ffffffff1661195957604051639059e10960e01b815260040160405180910390fd5b601054600160401b900463ffffffff1661198657604051632caf16bf60e11b815260040160405180910390fd5b601054600160801b900467ffffffffffffffff166119b757604051630eb0d5b160e11b815260040160405180910390fd5b600e805460ff19166002179055565b60606119d1826122f0565b611a07576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611a11612923565b9050805160001415611a325760405180602001604052806000815250611a5d565b80611a3c84612932565b604051602001611a4d92919061340e565b6040516020818303038152906040525b9392505050565b323314611a8457604051637df1f81760e01b815260040160405180910390fd5b600280600e5460ff166002811115611a9e57611a9e6131e5565b14611abc576040516328992a5560e21b815260040160405180910390fd5b6040805160a08101825260105463ffffffff8082168084526401000000008304821660208501819052600160401b84048316958501869052600160601b840490921660608501819052600160801b90930467ffffffffffffffff1660808501819052600c549495919490939190600160a81b900460ff1615611b51576040516375ab03ab60e11b815260040160405180910390fd5b878514611b8a576040517f5806eb7c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82891115611bc4576040517f5ed2961c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000277589611bef60015490565b611bf99190613351565b1115611c185760405163fb88d21560e01b815260040160405180910390fd5b8189611c2360015490565b611c2d9190613351565b1115611c65576040517fab3202a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8089611c7033611e82565b611c7a9190613351565b1115611cb2576040517f1d2f37af00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611cbc338a612411565b611cc96110218a86613369565b505050505050505050565b6000546001600160a01b03163314611d1c5760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b63ffffffff8516611d405760405163a3f4f12760e01b815260040160405180910390fd5b63ffffffff8416611d645760405163a3f4f12760e01b815260040160405180910390fd5b63ffffffff8316611d885760405163a3f4f12760e01b815260040160405180910390fd5b67ffffffffffffffff8116611db05760405163a3f4f12760e01b815260040160405180910390fd5b63ffffffff8216611dd45760405163a3f4f12760e01b815260040160405180910390fd5b6010805467ffffffffffffffff909216600160801b027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff63ffffffff948516600160601b026fffffffff00000000000000000000000019968616600160401b02969096166fffffffffffffffff0000000000000000199786166401000000000267ffffffffffffffff1990951695909816949094179290921794909416949094179190911716919091179055565b6001600160a01b0381166000908152600660205260408082205467ffffffffffffffff911c166109ac565b6000546001600160a01b03163314611ef55760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b63ffffffff8516611f1957604051633455be4160e21b815260040160405180910390fd5b63ffffffff8416611f3d57604051633455be4160e21b815260040160405180910390fd5b63ffffffff8316611f6157604051633455be4160e21b815260040160405180910390fd5b67ffffffffffffffff8116611f8957604051633455be4160e21b815260040160405180910390fd5b63ffffffff8216611fad57604051633455be4160e21b815260040160405180910390fd5b600f805467ffffffffffffffff909216600160801b027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff63ffffffff948516600160601b026fffffffff00000000000000000000000019968616600160401b02969096166fffffffffffffffff0000000000000000199786166401000000000267ffffffffffffffff1990951695909816949094179290921794909416949094179190911716919091179055565b8060005b818110156113955761208884848381811061207c5761207c6133dd565b90506020020135612981565b80612092816133f3565b91505061205f565b6000546001600160a01b031633146120e25760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b6001600160a01b03811661215e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016109f6565b61149d816126b9565b6000818152600d6020908152604080832081518083019092525467ffffffffffffffff808216808452600160401b90920416928201929092528291829190156121bd578051600194506121ba9042613388565b92505b8281602001516121cd91906133b1565b93959294505050565b6000546001600160a01b0316331461221e5760405162461bcd60e51b815260206004820181905260248201526000805160206134a583398151915260448201526064016109f6565b600c8054911515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806122ba57507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806109ac5750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b6000600154821080156109ac575050600090815260056020526040902054600160e01b161590565b60008160015481101561236057600081815260056020526040902054600160e01b811661235e575b80611a5d575060001901600081815260056020526040902054612340565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000806000806123a185612a61565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa1580156123fc573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b611296828260405180602001604052806000815250612a90565b80341015612465576040517fa01a9df600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8034111561149d57336108fc61247b8334613434565b6040518115909202916000818181858888f19350505050158015611296573d6000803e3d6000fd5b60006124ae82612318565b9050836001600160a01b0316816001600160a01b0316146124fb576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b0386161480612519575061251985336108eb565b8061253457503361252984610ab3565b6001600160a01b0316145b90508061256d576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0384166125ad576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6125ba8585856001612c40565b600083815260076020908152604080832080546001600160a01b03191690556001600160a01b0388811684526006835281842080546000190190558716835280832080546001019055858352600590915290207c02000000000000000000000000000000000000000000000000000000004260a01b861781179091558216612670576001830160008181526005602052604090205461266e57600154811461266e5760008181526005602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80600061271582612cda565b80519091506000906001600160a01b0316336001600160a01b031614806127435750815161274390336108eb565b8061275e57503361275384610ab3565b6001600160a01b0316145b90508061277e5760405163ebb255a960e01b815260040160405180910390fd5b6000848152600d60205260409020805467ffffffffffffffff16156126b25780546127b39067ffffffffffffffff1642613388565b815482906008906127d6908490600160401b900467ffffffffffffffff166133b1565b825467ffffffffffffffff9182166101009390930a928302919092021990911617905550805467ffffffffffffffff1916815560405185907f21927c517d2739a4761db63dd47a08533bb821d5897ca79df5af64f195e4e94d90600090a25050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061287090339089908890889060040161344b565b6020604051808303816000875af19250505080156128ab575060408051601f3d908101601f191682019092526128a891810190613487565b60015b612906573d8080156128d9576040519150601f19603f3d011682016040523d82523d6000602084013e6128de565b606091505b5080516128fe576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600a8054610a3090613300565b604080516080810191829052607f0190826030600a8206018353600a90045b801561296f57600183039250600a81066030018353600a9004612951565b50819003601f19909101908152919050565b80600061298d82612cda565b80519091506000906001600160a01b0316336001600160a01b031614806129bb575081516129bb90336108eb565b806129d65750336129cb84610ab3565b6001600160a01b0316145b9050806129f65760405163ebb255a960e01b815260040160405180910390fd5b6000848152600d60205260409020805467ffffffffffffffff166126b257805467ffffffffffffffff19164267ffffffffffffffff1617815560405185907f33ce2a5f4e60817a7bf12a2663d6cec2bee10ac77677ab0171f20744ed017eb590600090a25050505050565b60008060008351604114612a7457600080fd5b5050506020810151604082015160609092015160001a92909190565b6001546001600160a01b038416612ad3576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82612b0a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b176000858386612c40565b6001600160a01b03841660008181526006602090815260408083208054680100000000000000018902019055848352600590915290204260a01b86176001861460e11b1790558190818501903b15612bec575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4612bb5600087848060010195508761283b565b612bd2576040516368d2bf6b60e11b815260040160405180910390fd5b808210612b6a578260015414612be757600080fd5b612c31565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612bed575b50600155611395600085838684565b816000612c4d8383613351565b90505b80821015612cd2576000828152600d602052604090205467ffffffffffffffff1615801590612c895750600c54600160b01b900460ff16155b15612cc0576040517f4217068f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81612cca816133f3565b925050612c50565b505050505050565b60408051606081018252600080825260208201819052918101919091526109ac612d0383612318565b604080516060810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b90921615159082015290565b828054612d4a90613300565b90600052602060002090601f016020900481019282612d6c5760008555612db2565b82601f10612d855782800160ff19823516178555612db2565b82800160010185558215612db2579182015b82811115612db2578235825591602001919060010190612d97565b50612dbe929150612dc2565b5090565b5b80821115612dbe5760008155600101612dc3565b6001600160e01b03198116811461149d57600080fd5b600060208284031215612dff57600080fd5b8135611a5d81612dd7565b80356001600160a01b0381168114612e2157600080fd5b919050565b600060208284031215612e3857600080fd5b611a5d82612e0a565b60005b83811015612e5c578181015183820152602001612e44565b838111156113955750506000910152565b60008151808452612e85816020860160208601612e41565b601f01601f19169290920160200192915050565b602081526000611a5d6020830184612e6d565b600060208284031215612ebe57600080fd5b5035919050565b60008060408385031215612ed857600080fd5b612ee183612e0a565b946020939093013593505050565b803560ff81168114612e2157600080fd5b803563ffffffff81168114612e2157600080fd5b634e487b7160e01b600052604160045260246000fd5b600082601f830112612f3b57600080fd5b813567ffffffffffffffff80821115612f5657612f56612f14565b604051601f8301601f19908116603f01168101908282118183101715612f7e57612f7e612f14565b81604052838152866020858801011115612f9757600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060008060808587031215612fcd57600080fd5b612fd685612eef565b9350612fe460208601612eef565b9250612ff260408601612f00565b9150606085013567ffffffffffffffff81111561300e57600080fd5b61301a87828801612f2a565b91505092959194509250565b60008060006060848603121561303b57600080fd5b61304484612e0a565b925061305260208501612e0a565b9150604084013590509250925092565b6000806020838503121561307557600080fd5b823567ffffffffffffffff8082111561308d57600080fd5b818501915085601f8301126130a157600080fd5b8135818111156130b057600080fd5b8660208285010111156130c257600080fd5b60209290920196919550909350505050565b600080602083850312156130e757600080fd5b823567ffffffffffffffff808211156130ff57600080fd5b818501915085601f83011261311357600080fd5b81358181111561312257600080fd5b8660208260051b85010111156130c257600080fd5b60006020828403121561314957600080fd5b611a5d82612eef565b80358015158114612e2157600080fd5b6000806040838503121561317557600080fd5b61317e83612e0a565b915061318c60208401613152565b90509250929050565b600080600080608085870312156131ab57600080fd5b6131b485612e0a565b93506131c260208601612e0a565b925060408501359150606085013567ffffffffffffffff81111561300e57600080fd5b634e487b7160e01b600052602160045260246000fd5b602081016003831061321d57634e487b7160e01b600052602160045260246000fd5b91905290565b6000806040838503121561323657600080fd5b50508035926020909101359150565b600080600080600060a0868803121561325d57600080fd5b61326686612f00565b945061327460208701612f00565b935061328260408701612f00565b925061329060608701612f00565b9150608086013567ffffffffffffffff811681146132ad57600080fd5b809150509295509295909350565b600080604083850312156132ce57600080fd5b6132d783612e0a565b915061318c60208401612e0a565b6000602082840312156132f757600080fd5b611a5d82613152565b600181811c9082168061331457607f821691505b6020821081141561333557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156133645761336461333b565b500190565b60008160001904831182151516156133835761338361333b565b500290565b600067ffffffffffffffff838116908316818110156133a9576133a961333b565b039392505050565b600067ffffffffffffffff8083168185168083038211156133d4576133d461333b565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b60006000198214156134075761340761333b565b5060010190565b60008351613420818460208801612e41565b8351908301906133d4818360208801612e41565b6000828210156134465761344661333b565b500390565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261347d6080830184612e6d565b9695505050505050565b60006020828403121561349957600080fd5b8151611a5d81612dd756fe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220a2c0053b2bf4d2ed37a55fc10dde0e7e92dd911e74988acfc24bd724188c755a64736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000002775
-----Decoded View---------------
Arg [0] : _collectionSize (uint256): 10101
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002775
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.