ERC-721
Overview
Max Total Supply
527 H4C
Holders
255
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
7 H4CLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
H4CChristmasEdition
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "erc721a/contracts/ERC721A.sol"; import "erc721a/contracts/extensions/ERC721ABurnable.sol"; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; contract H4CChristmasEdition is ERC721A, ERC721ABurnable, ERC721AQueryable, Ownable { IERC721Enumerable public constant originalCollection = IERC721Enumerable(0xde76E34DB5cc2E1e1A3e80e2dDC19EfBc91Ab012); uint32 public constant christmasStartTime = 1671926400; uint32 public constant christmasEndTime = 1672012800; mapping(uint256 => bool) public h4cTokenUsed; string private _baseTokenURI = "https://h4c.mypinata.cloud/ipfs/QmWhEujozDqNj6w52eUzC7E9jGMKAMAEMoQbjgmUofhY2M/"; constructor() ERC721A("H4C Christmas edition", "H4C") {} function claimGift() external { require(block.timestamp >= christmasStartTime && block.timestamp <= christmasEndTime, "Christmas is over"); uint256 balance = originalCollection.balanceOf(msg.sender); require(balance > 1, "Not enough tokens to claim reward"); uint256 count; unchecked{ for(uint256 i = 0; i < balance; i++){ uint256 token = originalCollection.tokenOfOwnerByIndex(msg.sender, i); if(!h4cTokenUsed[token]){ count++; h4cTokenUsed[token] = true; if(count == 20){ break; } } } } require(count > 1, "Not enough tokens to claim reward"); if(count % 2 == 1) { h4cTokenUsed[originalCollection.tokenOfOwnerByIndex(msg.sender, balance - 1)] = false; } _safeMint(msg.sender, count / 2); } function getAvailableTokens(address owner) external view returns(uint256){ uint256 balance = originalCollection.balanceOf(owner); if(balance < 2){ return 0; } uint256 count; unchecked{ for(uint256 i = 0; i < balance; i++){ uint256 token = originalCollection.tokenOfOwnerByIndex(owner, i); if(!h4cTokenUsed[token]){ count++; } } } return count / 2; } function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721AQueryable. * * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) { return ownership; } ownership = _ownershipAt(tokenId); if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] calldata tokenIds) external view virtual override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view virtual override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _nextTokenId(); // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, stopLimit)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external virtual override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownershipAt(i); if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721ABurnable.sol'; import '../ERC721A.sol'; /** * @title ERC721ABurnable. * * @dev ERC721A token that can be irreversibly burned (destroyed). */ abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual override { _burn(tokenId, true); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; /** * @dev Interface of ERC721 token receiver. */ interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @title ERC721A * * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721) * Non-Fungible Token Standard, including the Metadata extension. * Optimized for lower gas during batch mints. * * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...) * starting from `_startTokenId()`. * * Assumptions: * * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364). struct TokenApprovalRef { address value; } // ============================================================= // CONSTANTS // ============================================================= // Mask of an entry in packed address data. uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant _BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant _BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant _BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant _BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant _BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant _BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225; // The bit position of `extraData` in packed ownership. uint256 private constant _BITPOS_EXTRA_DATA = 232; // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`. uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1; // The mask of the lower 160 bits for addresses. uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1; // The maximum `quantity` that can be minted with {_mintERC2309}. // This limit is to prevent overflows on the address data entries. // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309} // is required to cause an overflow, which is unrealistic. uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000; // The `Transfer` event signature is given by: // `keccak256(bytes("Transfer(address,address,uint256)"))`. bytes32 private constant _TRANSFER_EVENT_SIGNATURE = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef; // ============================================================= // STORAGE // ============================================================= // The next token ID to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See {_packedOwnershipOf} implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` // - [232..255] `extraData` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => TokenApprovalRef) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // ============================================================= // CONSTRUCTOR // ============================================================= constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } // ============================================================= // TOKEN COUNTING OPERATIONS // ============================================================= /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view virtual returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() public view virtual override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view virtual returns (uint256) { // Counter underflow is impossible as `_currentIndex` does not decrement, // and it is initialized to `_startTokenId()`. unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view virtual returns (uint256) { return _burnCounter; } // ============================================================= // ADDRESS DATA OPERATIONS // ============================================================= /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) public view virtual override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> _BITPOS_AUX); } /** * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal virtual { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; // Cast `aux` with assembly to avoid redundant masking. assembly { auxCasted := aux } packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX); _packedAddressData[owner] = packed; } // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes // of the XOR of all function selectors in the interface. // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165) // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`) return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the token collection symbol. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, it can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } // ============================================================= // OWNERSHIPS OPERATIONS // ============================================================= /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around over time. */ function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal virtual { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & _BITMASK_BURNED == 0) { // Invariant: // There will always be an initialized ownership slot // (i.e. `ownership.addr != address(0) && ownership.burned == false`) // before an unintialized ownership slot // (i.e. `ownership.addr == address(0) && ownership.burned == false`) // Hence, `curr` will not underflow. // // We can directly compare the packed value. // If the address is zero, packed will be zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * @dev Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP); ownership.burned = packed & _BITMASK_BURNED != 0; ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA); } /** * @dev Packs ownership data into a single uint256. */ function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`. result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags)) } } /** * @dev Returns the `nextInitialized` flag set if `quantity` equals 1. */ function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) { // For branchless setting of the `nextInitialized` flag. assembly { // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`. result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1)) } } // ============================================================= // APPROVAL OPERATIONS // ============================================================= /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the * zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) public payable virtual override { address owner = ownerOf(tokenId); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId].value = to; emit Approval(owner, to, tokenId); } /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId].value; } /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) public virtual override { _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted. See {_mint}. */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned. } /** * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`. */ function _isSenderApprovedOrOwner( address approvedAddress, address owner, address msgSender ) private pure returns (bool result) { assembly { // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean. owner := and(owner, _BITMASK_ADDRESS) // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean. msgSender := and(msgSender, _BITMASK_ADDRESS) // `msgSender == owner || msgSender == approvedAddress`. result := or(eq(msgSender, owner), eq(msgSender, approvedAddress)) } } /** * @dev Returns the storage slot and value for the approved address of `tokenId`. */ function _getApprovedSlotAndAddress(uint256 tokenId) private view returns (uint256 approvedAddressSlot, address approvedAddress) { TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId]; // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`. assembly { approvedAddressSlot := tokenApproval.slot approvedAddress := sload(approvedAddressSlot) } } // ============================================================= // TRANSFER OPERATIONS // ============================================================= /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) public payable virtual override { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( to, _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public payable virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public payable virtual override { transferFrom(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Hook that is called before a set of serially-ordered token IDs * are about to be transferred. This includes minting. * And also called before burning one token. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token IDs * have been transferred. This includes minting. * And also called after one token has been burned. * * `startTokenId` - the first token ID to be transferred. * `quantity` - the amount to be transferred. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * `from` - Previous owner of the given token ID. * `to` - Target address that will receive the token. * `tokenId` - Token ID to be transferred. * `_data` - Optional data to send along with the call. * * Returns whether the call correctly returned the expected magic value. */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } // ============================================================= // MINT OPERATIONS // ============================================================= /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event for each mint. */ function _mint(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // `balance` and `numberMinted` have a maximum limit of 2**64. // `tokenId` has a maximum limit of 2**256. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); uint256 toMasked; uint256 end = startTokenId + quantity; // Use assembly to loop and emit the `Transfer` event for gas savings. // The duplicated `log4` removes an extra check and reduces stack juggling. // The assembly, together with the surrounding Solidity code, have been // delicately arranged to nudge the compiler into producing optimized opcodes. assembly { // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean. toMasked := and(to, _BITMASK_ADDRESS) // Emit the `Transfer` event. log4( 0, // Start of data (0, since no data). 0, // End of data (0, since no data). _TRANSFER_EVENT_SIGNATURE, // Signature. 0, // `address(0)`. toMasked, // `to`. startTokenId // `tokenId`. ) // The `iszero(eq(,))` check ensures that large values of `quantity` // that overflows uint256 will make the loop run out of gas. // The compiler will optimize the `iszero` away for performance. for { let tokenId := add(startTokenId, 1) } iszero(eq(tokenId, end)) { tokenId := add(tokenId, 1) } { // Emit the `Transfer` event. Similar to above. log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId) } } if (toMasked == 0) revert MintToZeroAddress(); _currentIndex = end; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * This function is intended for efficient minting only during contract creation. * * It emits only one {ConsecutiveTransfer} as defined in * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309), * instead of a sequence of {Transfer} event(s). * * Calling this function outside of contract creation WILL make your contract * non-compliant with the ERC721 standard. * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309 * {ConsecutiveTransfer} event is only permissible during contract creation. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {ConsecutiveTransfer} event. */ function _mintERC2309(address to, uint256 quantity) internal virtual { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are unrealistic due to the above check for `quantity` to be below the limit. unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the `balance` and `numberMinted`. _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _packOwnershipData( to, _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0) ); emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to); _currentIndex = startTokenId + quantity; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * See {_mint}. * * Emits a {Transfer} event for each mint. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal virtual { _mint(to, quantity); unchecked { if (to.code.length != 0) { uint256 end = _currentIndex; uint256 index = end - quantity; do { if (!_checkContractOnERC721Received(address(0), to, index++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (index < end); // Reentrancy protection. if (_currentIndex != end) revert(); } } } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal virtual { _safeMint(to, quantity, ''); } // ============================================================= // BURN OPERATIONS // ============================================================= /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId); if (approvalCheck) { // The nested ifs save around 20+ gas over a compound boolean condition. if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A())) if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. assembly { if approvedAddress { // This is equivalent to `delete _tokenApprovals[tokenId]`. sstore(approvedAddressSlot, 0) } } // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _packOwnershipData( from, (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked) ); // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } // ============================================================= // EXTRA DATA OPERATIONS // ============================================================= /** * @dev Directly sets the extra data for the ownership data `index`. */ function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual { uint256 packed = _packedOwnerships[index]; if (packed == 0) revert OwnershipNotInitializedForExtraData(); uint256 extraDataCasted; // Cast `extraData` with assembly to avoid redundant masking. assembly { extraDataCasted := extraData } packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA); _packedOwnerships[index] = packed; } /** * @dev Called during each token transfer to set the 24bit `extraData` field. * Intended to be overridden by the cosumer contract. * * `previousExtraData` - the value of `extraData` before transfer. * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _extraData( address from, address to, uint24 previousExtraData ) internal view virtual returns (uint24) {} /** * @dev Returns the next extra data for the packed ownership data. * The returned result is shifted into position. */ function _nextExtraData( address from, address to, uint256 prevOwnershipPacked ) private view returns (uint256) { uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA); return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA; } // ============================================================= // OTHER OPERATIONS // ============================================================= /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a uint256 to its ASCII string decimal representation. */ function _toString(uint256 value) internal pure virtual returns (string memory str) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), but // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned. // We will need 1 word for the trailing zeros padding, 1 word for the length, // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0. let m := add(mload(0x40), 0xa0) // Update the free memory pointer to allocate. mstore(0x40, m) // Assign the `str` to the end. str := sub(m, 0x20) // Zeroize the slot after the string. mstore(str, 0) // Cache the end of the memory to calculate the length later. let end := str // We write the string from rightmost digit to leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // prettier-ignore for { let temp := value } 1 {} { str := sub(str, 1) // Write the character to the pointer. // The ASCII index of the '0' character is 48. mstore8(str, add(48, mod(temp, 10))) // Keep dividing `temp` until zero. temp := div(temp, 10) // prettier-ignore if iszero(temp) { break } } let length := sub(end, str) // Move the pointer 32 bytes leftwards to make room for the length. str := sub(str, 0x20) // Store the length. mstore(str, length) } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721AQueryable. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * * - `addr = address(0)` * - `startTimestamp = 0` * - `burned = false` * - `extraData = 0` * * If the `tokenId` is burned: * * - `addr = <Address of owner before token was burned>` * - `startTimestamp = <Timestamp when token was burned>` * - `burned = true` * - `extraData = <Extra data when token was burned>` * * Otherwise: * * - `addr = <Address of owner>` * - `startTimestamp = <Timestamp of start of ownership>` * - `burned = false` * - `extraData = <Extra data at start of ownership>` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start < stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(`totalSupply`) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K collections should be fine). */ function tokensOfOwner(address owner) external returns (uint256[] memory); }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of ERC721ABurnable. */ interface IERC721ABurnable is IERC721A { /** * @dev Burns `tokenId`. See {ERC721A-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) external; }
// SPDX-License-Identifier: MIT // ERC721A Contracts v4.2.3 // Creator: Chiru Labs pragma solidity ^0.8.4; /** * @dev Interface of ERC721A. */ interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the * ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); /** * The `quantity` minted with ERC2309 exceeds the safety limit. */ error MintERC2309QuantityExceedsLimit(); /** * The `extraData` cannot be set on an unintialized ownership slot. */ error OwnershipNotInitializedForExtraData(); // ============================================================= // STRUCTS // ============================================================= struct TokenOwnership { // The address of the owner. address addr; // Stores the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}. uint24 extraData; } // ============================================================= // TOKEN COUNTERS // ============================================================= /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see {_totalMinted}. */ function totalSupply() external view returns (uint256); // ============================================================= // IERC165 // ============================================================= /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified) * to learn more about how these ids are created. * * This function call must use less than 30000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================================================= // IERC721 // ============================================================= /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables * (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in `owner`'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, * checking first that contract recipients are aware of the ERC721 protocol * to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move * this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external payable; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external payable; /** * @dev Transfers `tokenId` from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} * whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token * by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external payable; /** * @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 payable; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} * for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll}. */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================================================= // IERC721Metadata // ============================================================= /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); // ============================================================= // IERC2309 // ============================================================= /** * @dev Emitted when tokens in `fromTokenId` to `toTokenId` * (inclusive) is transferred from `from` to `to`, as defined in the * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard. * * See {_mintERC2309} for more details. */ event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 500 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"christmasEndTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"christmasStartTime","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimGift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"getAvailableTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"h4cTokenUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"originalCollection","outputs":[{"internalType":"contract IERC721Enumerable","name":"","type":"address"}],"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":"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":"payable","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":"payable","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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
610100604052604f6080818152906200239760a03980516200002a91600a9160209091019062000119565b503480156200003857600080fd5b50604080518082018252601581527f483443204368726973746d61732065646974696f6e000000000000000000000060208083019182528351808501909452600384526248344360e81b908401528151919291620000999160029162000119565b508051620000af90600390602084019062000119565b50506000805550620000c133620000c7565b620001fc565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200012790620001bf565b90600052602060002090601f0160209004810192826200014b576000855562000196565b82601f106200016657805160ff191683800117855562000196565b8280016001018555821562000196579182015b828111156200019657825182559160200191906001019062000179565b50620001a4929150620001a8565b5090565b5b80821115620001a45760008155600101620001a9565b600181811c90821680620001d457607f821691505b60208210811415620001f657634e487b7160e01b600052602260045260246000fd5b50919050565b61218b806200020c6000396000f3fe6080604052600436106101c15760003560e01c806370a08231116100f757806399a2557a11610095578063c87b56dd11610064578063c87b56dd146104f7578063ca1377cc14610517578063e985e9c514610547578063f2fde38b1461059057600080fd5b806399a2557a14610477578063a22cb46514610497578063b88d4fde146104b7578063c23dc68f146104ca57600080fd5b80638462151c116100d15780638462151c146104025780638da5cb5b1461042f5780638f7c8d101461044d57806395d89b411461046257600080fd5b806370a08231146103ad578063715018a6146103cd57806380f22ae1146103e257600080fd5b80633e3f9ac01161016457806355f804b31161013e57806355f804b3146103185780635bbb21771461033857806361dd277e146103655780636352211e1461038d57600080fd5b80633e3f9ac0146102cd57806342842e0e146102e557806342966c68146102f857600080fd5b8063081812fc116101a0578063081812fc1461024a578063095ea7b31461028257806318160ddd1461029757806323b872dd146102ba57600080fd5b806283e472146101c657806301ffc9a7146101f857806306fdde0314610228575b600080fd5b3480156101d257600080fd5b506101de6363a7928081565b60405163ffffffff90911681526020015b60405180910390f35b34801561020457600080fd5b50610218610213366004611dd9565b6105b0565b60405190151581526020016101ef565b34801561023457600080fd5b5061023d610602565b6040516101ef9190611ff1565b34801561025657600080fd5b5061026a610265366004611e73565b610694565b6040516001600160a01b0390911681526020016101ef565b610295610290366004611d07565b6106d8565b005b3480156102a357600080fd5b50600154600054035b6040519081526020016101ef565b6102956102c8366004611bb3565b610785565b3480156102d957600080fd5b506101de6363a8e40081565b6102956102f3366004611bb3565b610920565b34801561030457600080fd5b50610295610313366004611e73565b610940565b34801561032457600080fd5b50610295610333366004611e13565b61094e565b34801561034457600080fd5b50610358610353366004611d64565b610962565b6040516101ef9190611f3c565b34801561037157600080fd5b5061026a73de76e34db5cc2e1e1a3e80e2ddc19efbc91ab01281565b34801561039957600080fd5b5061026a6103a8366004611e73565b610a2e565b3480156103b957600080fd5b506102ac6103c8366004611b65565b610a39565b3480156103d957600080fd5b50610295610a88565b3480156103ee57600080fd5b506102ac6103fd366004611b65565b610a9c565b34801561040e57600080fd5b5061042261041d366004611b65565b610c1e565b6040516101ef9190611fb9565b34801561043b57600080fd5b506008546001600160a01b031661026a565b34801561045957600080fd5b50610295610d2e565b34801561046e57600080fd5b5061023d6110ae565b34801561048357600080fd5b50610422610492366004611d31565b6110bd565b3480156104a357600080fd5b506102956104b2366004611ccb565b61123b565b6102956104c5366004611bef565b6112a7565b3480156104d657600080fd5b506104ea6104e5366004611e73565b6112f1565b6040516101ef9190612004565b34801561050357600080fd5b5061023d610512366004611e73565b611369565b34801561052357600080fd5b50610218610532366004611e73565b60096020526000908152604090205460ff1681565b34801561055357600080fd5b50610218610562366004611b80565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561059c57600080fd5b506102956105ab366004611b65565b6113ed565b60006301ffc9a760e01b6001600160e01b0319831614806105e157506380ac58cd60e01b6001600160e01b03198316145b806105fc5750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610611906120ae565b80601f016020809104026020016040519081016040528092919081815260200182805461063d906120ae565b801561068a5780601f1061065f5761010080835404028352916020019161068a565b820191906000526020600020905b81548152906001019060200180831161066d57829003601f168201915b5050505050905090565b600061069f82611463565b6106bc576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106e382610a2e565b9050336001600160a01b0382161461071c576106ff8133610562565b61071c576040516367d9dca160e11b815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006107908261148a565b9050836001600160a01b0316816001600160a01b0316146107c35760405162a1148160e81b815260040160405180910390fd5b600082815260066020526040902080546107ef8187335b6001600160a01b039081169116811491141790565b61081a576107fd8633610562565b61081a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661084157604051633a954ecd60e21b815260040160405180910390fd5b801561084c57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166108d757600184016000818152600460205260409020546108d55760005481146108d55760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61093b838383604051806020016040528060008152506112a7565b505050565b61094b8160016114eb565b50565b61095661162e565b61093b600a8383611ab0565b60608160008167ffffffffffffffff81111561098057610980612129565b6040519080825280602002602001820160405280156109d257816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161099e5790505b50905060005b828114610a2557610a008686838181106109f4576109f4612113565b905060200201356112f1565b828281518110610a1257610a12612113565b60209081029190910101526001016109d8565b50949350505050565b60006105fc8261148a565b60006001600160a01b038216610a62576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a9061162e565b610a9a6000611688565b565b6040516370a0823160e01b81526001600160a01b0382166004820152600090819073de76e34db5cc2e1e1a3e80e2ddc19efbc91ab012906370a082319060240160206040518083038186803b158015610af457600080fd5b505afa158015610b08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2c9190611e8c565b90506002811015610b405750600092915050565b6000805b82811015610c0a57604051632f745c5960e01b81526001600160a01b03861660048201526024810182905260009073de76e34db5cc2e1e1a3e80e2ddc19efbc91ab01290632f745c599060440160206040518083038186803b158015610ba957600080fd5b505afa158015610bbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be19190611e8c565b60008181526009602052604090205490915060ff16610c01576001909201915b50600101610b44565b50610c16600282612049565b949350505050565b60606000806000610c2e85610a39565b905060008167ffffffffffffffff811115610c4b57610c4b612129565b604051908082528060200260200182016040528015610c74578160200160208202803683370190505b509050610ca160408051608081018252600080825260208201819052918101829052606081019190915290565b60005b838614610d2257610cb4816116e7565b9150816040015115610cc557610d1a565b81516001600160a01b031615610cda57815194505b876001600160a01b0316856001600160a01b03161415610d1a5780838780600101985081518110610d0d57610d0d612113565b6020026020010181815250505b600101610ca4565b50909695505050505050565b6363a792804210801590610d4657506363a8e4004211155b610d975760405162461bcd60e51b815260206004820152601160248201527f4368726973746d6173206973206f76657200000000000000000000000000000060448201526064015b60405180910390fd5b6040516370a0823160e01b815233600482015260009073de76e34db5cc2e1e1a3e80e2ddc19efbc91ab012906370a082319060240160206040518083038186803b158015610de457600080fd5b505afa158015610df8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1c9190611e8c565b905060018111610e785760405162461bcd60e51b815260206004820152602160248201527f4e6f7420656e6f75676820746f6b656e7320746f20636c61696d2072657761726044820152601960fa1b6064820152608401610d8e565b6000805b82811015610f6157604051632f745c5960e01b81523360048201526024810182905260009073de76e34db5cc2e1e1a3e80e2ddc19efbc91ab01290632f745c599060440160206040518083038186803b158015610ed857600080fd5b505afa158015610eec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f109190611e8c565b60008181526009602052604090205490915060ff16610f58576000818152600960205260409020805460ff19166001908117909155909201916014831415610f585750610f61565b50600101610e7c565b5060018111610fbc5760405162461bcd60e51b815260206004820152602160248201527f4e6f7420656e6f75676820746f6b656e7320746f20636c61696d2072657761726044820152601960fa1b6064820152608401610d8e565b610fc76002826120e9565b6001141561109657600060098173de76e34db5cc2e1e1a3e80e2ddc19efbc91ab012632f745c5933610ffa60018961205d565b6040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b15801561103e57600080fd5b505afa158015611052573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110769190611e8c565b81526020810191909152604001600020805460ff19169115159190911790555b6110aa336110a5600284612049565b611766565b5050565b606060038054610611906120ae565b60608183106110df57604051631960ccad60e11b815260040160405180910390fd5b6000806110eb60005490565b9050808411156110f9578093505b600061110487610a39565b905084861015611123578585038181101561111d578091505b50611127565b5060005b60008167ffffffffffffffff81111561114257611142612129565b60405190808252806020026020018201604052801561116b578160200160208202803683370190505b5090508161117e57935061123492505050565b6000611189886112f1565b90506000816040015161119a575080515b885b8881141580156111ac5750848714155b15611228576111ba816116e7565b92508260400151156111cb57611220565b82516001600160a01b0316156111e057825191505b8a6001600160a01b0316826001600160a01b03161415611220578084888060010199508151811061121357611213612113565b6020026020010181815250505b60010161119c565b50505092835250909150505b9392505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112b2848484610785565b6001600160a01b0383163b156112eb576112ce84848484611780565b6112eb576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051608080820183526000808352602080840182905283850182905260608085018390528551938401865282845290830182905293820181905292810183905290915060005483106113455792915050565b61134e836116e7565b90508060400151156113605792915050565b61123483611877565b606061137482611463565b61139157604051630a14c4b560e41b815260040160405180910390fd5b600061139b6118ef565b90508051600014156113bc5760405180602001604052806000815250611234565b806113c6846118fe565b6040516020016113d7929190611ed1565b6040516020818303038152906040529392505050565b6113f561162e565b6001600160a01b03811661145a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d8e565b61094b81611688565b60008054821080156105fc575050600090815260046020526040902054600160e01b161590565b6000816000548110156114d257600081815260046020526040902054600160e01b81166114d0575b806112345750600019016000818152600460205260409020546114b2565b505b604051636f96cda160e11b815260040160405180910390fd5b60006114f68361148a565b90508060008061151486600090815260066020526040902080549091565b915091508415611554576115298184336107da565b611554576115378333610562565b61155457604051632ce44b5f60e11b815260040160405180910390fd5b801561155f57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040902055600160e11b84166115e657600186016000818152600460205260409020546115e45760005481146115e45760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b6008546001600160a01b03163314610a9a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d8e565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600460205260409020546105fc90604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6110aa82826040518060200160405280600081525061194c565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906117b5903390899088908890600401611f00565b602060405180830381600087803b1580156117cf57600080fd5b505af19250505080156117ff575060408051601f3d908101601f191682019092526117fc91810190611df6565b60015b61185a573d80801561182d576040519150601f19603f3d011682016040523d82523d6000602084013e611832565b606091505b508051611852576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6040805160808101825260008082526020820181905291810182905260608101919091526105fc6118a78361148a565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6060600a8054610611906120ae565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806119355761193a565b611918565b50819003601f19909101908152919050565b61195683836119b9565b6001600160a01b0383163b1561093b576000548281035b6119806000868380600101945086611780565b61199d576040516368d2bf6b60e11b815260040160405180910390fd5b81811061196d5781600054146119b257600080fd5b5050505050565b600054816119da5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611a8957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611a51565b5081611aa757604051622e076360e81b815260040160405180910390fd5b60005550505050565b828054611abc906120ae565b90600052602060002090601f016020900481019282611ade5760008555611b24565b82601f10611af75782800160ff19823516178555611b24565b82800160010185558215611b24579182015b82811115611b24578235825591602001919060010190611b09565b50611b30929150611b34565b5090565b5b80821115611b305760008155600101611b35565b80356001600160a01b0381168114611b6057600080fd5b919050565b600060208284031215611b7757600080fd5b61123482611b49565b60008060408385031215611b9357600080fd5b611b9c83611b49565b9150611baa60208401611b49565b90509250929050565b600080600060608486031215611bc857600080fd5b611bd184611b49565b9250611bdf60208501611b49565b9150604084013590509250925092565b60008060008060808587031215611c0557600080fd5b611c0e85611b49565b9350611c1c60208601611b49565b925060408501359150606085013567ffffffffffffffff80821115611c4057600080fd5b818701915087601f830112611c5457600080fd5b813581811115611c6657611c66612129565b604051601f8201601f19908116603f01168101908382118183101715611c8e57611c8e612129565b816040528281528a6020848701011115611ca757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611cde57600080fd5b611ce783611b49565b915060208301358015158114611cfc57600080fd5b809150509250929050565b60008060408385031215611d1a57600080fd5b611d2383611b49565b946020939093013593505050565b600080600060608486031215611d4657600080fd5b611d4f84611b49565b95602085013595506040909401359392505050565b60008060208385031215611d7757600080fd5b823567ffffffffffffffff80821115611d8f57600080fd5b818501915085601f830112611da357600080fd5b813581811115611db257600080fd5b8660208260051b8501011115611dc757600080fd5b60209290920196919550909350505050565b600060208284031215611deb57600080fd5b81356112348161213f565b600060208284031215611e0857600080fd5b81516112348161213f565b60008060208385031215611e2657600080fd5b823567ffffffffffffffff80821115611e3e57600080fd5b818501915085601f830112611e5257600080fd5b813581811115611e6157600080fd5b866020828501011115611dc757600080fd5b600060208284031215611e8557600080fd5b5035919050565b600060208284031215611e9e57600080fd5b5051919050565b60008151808452611ebd816020860160208601612082565b601f01601f19169290920160200192915050565b60008351611ee3818460208801612082565b835190830190611ef7818360208801612082565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152611f326080830184611ea5565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610d2257611fa68385516001600160a01b03815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b9284019260809290920191600101611f58565b6020808252825182820181905260009190848201906040850190845b81811015610d2257835183529284019291840191600101611fd5565b6020815260006112346020830184611ea5565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff1690820152608081016105fc565b600082612058576120586120fd565b500490565b60008282101561207d57634e487b7160e01b600052601160045260246000fd5b500390565b60005b8381101561209d578181015183820152602001612085565b838111156112eb5750506000910152565b600181811c908216806120c257607f821691505b602082108114156120e357634e487b7160e01b600052602260045260246000fd5b50919050565b6000826120f8576120f86120fd565b500690565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461094b57600080fdfea264697066735822122067fdeb301bcfbdd88a10d5ceb93fb651720b5a3fd5ab7ff4444aac4db45e58a664736f6c6343000807003368747470733a2f2f6834632e6d7970696e6174612e636c6f75642f697066732f516d576845756a6f7a44714e6a3677353265557a433745396a474d4b414d41454d6f51626a676d556f666859324d2f
Deployed Bytecode
0x6080604052600436106101c15760003560e01c806370a08231116100f757806399a2557a11610095578063c87b56dd11610064578063c87b56dd146104f7578063ca1377cc14610517578063e985e9c514610547578063f2fde38b1461059057600080fd5b806399a2557a14610477578063a22cb46514610497578063b88d4fde146104b7578063c23dc68f146104ca57600080fd5b80638462151c116100d15780638462151c146104025780638da5cb5b1461042f5780638f7c8d101461044d57806395d89b411461046257600080fd5b806370a08231146103ad578063715018a6146103cd57806380f22ae1146103e257600080fd5b80633e3f9ac01161016457806355f804b31161013e57806355f804b3146103185780635bbb21771461033857806361dd277e146103655780636352211e1461038d57600080fd5b80633e3f9ac0146102cd57806342842e0e146102e557806342966c68146102f857600080fd5b8063081812fc116101a0578063081812fc1461024a578063095ea7b31461028257806318160ddd1461029757806323b872dd146102ba57600080fd5b806283e472146101c657806301ffc9a7146101f857806306fdde0314610228575b600080fd5b3480156101d257600080fd5b506101de6363a7928081565b60405163ffffffff90911681526020015b60405180910390f35b34801561020457600080fd5b50610218610213366004611dd9565b6105b0565b60405190151581526020016101ef565b34801561023457600080fd5b5061023d610602565b6040516101ef9190611ff1565b34801561025657600080fd5b5061026a610265366004611e73565b610694565b6040516001600160a01b0390911681526020016101ef565b610295610290366004611d07565b6106d8565b005b3480156102a357600080fd5b50600154600054035b6040519081526020016101ef565b6102956102c8366004611bb3565b610785565b3480156102d957600080fd5b506101de6363a8e40081565b6102956102f3366004611bb3565b610920565b34801561030457600080fd5b50610295610313366004611e73565b610940565b34801561032457600080fd5b50610295610333366004611e13565b61094e565b34801561034457600080fd5b50610358610353366004611d64565b610962565b6040516101ef9190611f3c565b34801561037157600080fd5b5061026a73de76e34db5cc2e1e1a3e80e2ddc19efbc91ab01281565b34801561039957600080fd5b5061026a6103a8366004611e73565b610a2e565b3480156103b957600080fd5b506102ac6103c8366004611b65565b610a39565b3480156103d957600080fd5b50610295610a88565b3480156103ee57600080fd5b506102ac6103fd366004611b65565b610a9c565b34801561040e57600080fd5b5061042261041d366004611b65565b610c1e565b6040516101ef9190611fb9565b34801561043b57600080fd5b506008546001600160a01b031661026a565b34801561045957600080fd5b50610295610d2e565b34801561046e57600080fd5b5061023d6110ae565b34801561048357600080fd5b50610422610492366004611d31565b6110bd565b3480156104a357600080fd5b506102956104b2366004611ccb565b61123b565b6102956104c5366004611bef565b6112a7565b3480156104d657600080fd5b506104ea6104e5366004611e73565b6112f1565b6040516101ef9190612004565b34801561050357600080fd5b5061023d610512366004611e73565b611369565b34801561052357600080fd5b50610218610532366004611e73565b60096020526000908152604090205460ff1681565b34801561055357600080fd5b50610218610562366004611b80565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561059c57600080fd5b506102956105ab366004611b65565b6113ed565b60006301ffc9a760e01b6001600160e01b0319831614806105e157506380ac58cd60e01b6001600160e01b03198316145b806105fc5750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610611906120ae565b80601f016020809104026020016040519081016040528092919081815260200182805461063d906120ae565b801561068a5780601f1061065f5761010080835404028352916020019161068a565b820191906000526020600020905b81548152906001019060200180831161066d57829003601f168201915b5050505050905090565b600061069f82611463565b6106bc576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106e382610a2e565b9050336001600160a01b0382161461071c576106ff8133610562565b61071c576040516367d9dca160e11b815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006107908261148a565b9050836001600160a01b0316816001600160a01b0316146107c35760405162a1148160e81b815260040160405180910390fd5b600082815260066020526040902080546107ef8187335b6001600160a01b039081169116811491141790565b61081a576107fd8633610562565b61081a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661084157604051633a954ecd60e21b815260040160405180910390fd5b801561084c57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166108d757600184016000818152600460205260409020546108d55760005481146108d55760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61093b838383604051806020016040528060008152506112a7565b505050565b61094b8160016114eb565b50565b61095661162e565b61093b600a8383611ab0565b60608160008167ffffffffffffffff81111561098057610980612129565b6040519080825280602002602001820160405280156109d257816020015b60408051608081018252600080825260208083018290529282018190526060820152825260001990920191018161099e5790505b50905060005b828114610a2557610a008686838181106109f4576109f4612113565b905060200201356112f1565b828281518110610a1257610a12612113565b60209081029190910101526001016109d8565b50949350505050565b60006105fc8261148a565b60006001600160a01b038216610a62576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a9061162e565b610a9a6000611688565b565b6040516370a0823160e01b81526001600160a01b0382166004820152600090819073de76e34db5cc2e1e1a3e80e2ddc19efbc91ab012906370a082319060240160206040518083038186803b158015610af457600080fd5b505afa158015610b08573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b2c9190611e8c565b90506002811015610b405750600092915050565b6000805b82811015610c0a57604051632f745c5960e01b81526001600160a01b03861660048201526024810182905260009073de76e34db5cc2e1e1a3e80e2ddc19efbc91ab01290632f745c599060440160206040518083038186803b158015610ba957600080fd5b505afa158015610bbd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be19190611e8c565b60008181526009602052604090205490915060ff16610c01576001909201915b50600101610b44565b50610c16600282612049565b949350505050565b60606000806000610c2e85610a39565b905060008167ffffffffffffffff811115610c4b57610c4b612129565b604051908082528060200260200182016040528015610c74578160200160208202803683370190505b509050610ca160408051608081018252600080825260208201819052918101829052606081019190915290565b60005b838614610d2257610cb4816116e7565b9150816040015115610cc557610d1a565b81516001600160a01b031615610cda57815194505b876001600160a01b0316856001600160a01b03161415610d1a5780838780600101985081518110610d0d57610d0d612113565b6020026020010181815250505b600101610ca4565b50909695505050505050565b6363a792804210801590610d4657506363a8e4004211155b610d975760405162461bcd60e51b815260206004820152601160248201527f4368726973746d6173206973206f76657200000000000000000000000000000060448201526064015b60405180910390fd5b6040516370a0823160e01b815233600482015260009073de76e34db5cc2e1e1a3e80e2ddc19efbc91ab012906370a082319060240160206040518083038186803b158015610de457600080fd5b505afa158015610df8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1c9190611e8c565b905060018111610e785760405162461bcd60e51b815260206004820152602160248201527f4e6f7420656e6f75676820746f6b656e7320746f20636c61696d2072657761726044820152601960fa1b6064820152608401610d8e565b6000805b82811015610f6157604051632f745c5960e01b81523360048201526024810182905260009073de76e34db5cc2e1e1a3e80e2ddc19efbc91ab01290632f745c599060440160206040518083038186803b158015610ed857600080fd5b505afa158015610eec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f109190611e8c565b60008181526009602052604090205490915060ff16610f58576000818152600960205260409020805460ff19166001908117909155909201916014831415610f585750610f61565b50600101610e7c565b5060018111610fbc5760405162461bcd60e51b815260206004820152602160248201527f4e6f7420656e6f75676820746f6b656e7320746f20636c61696d2072657761726044820152601960fa1b6064820152608401610d8e565b610fc76002826120e9565b6001141561109657600060098173de76e34db5cc2e1e1a3e80e2ddc19efbc91ab012632f745c5933610ffa60018961205d565b6040516001600160e01b031960e085901b1681526001600160a01b039092166004830152602482015260440160206040518083038186803b15801561103e57600080fd5b505afa158015611052573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110769190611e8c565b81526020810191909152604001600020805460ff19169115159190911790555b6110aa336110a5600284612049565b611766565b5050565b606060038054610611906120ae565b60608183106110df57604051631960ccad60e11b815260040160405180910390fd5b6000806110eb60005490565b9050808411156110f9578093505b600061110487610a39565b905084861015611123578585038181101561111d578091505b50611127565b5060005b60008167ffffffffffffffff81111561114257611142612129565b60405190808252806020026020018201604052801561116b578160200160208202803683370190505b5090508161117e57935061123492505050565b6000611189886112f1565b90506000816040015161119a575080515b885b8881141580156111ac5750848714155b15611228576111ba816116e7565b92508260400151156111cb57611220565b82516001600160a01b0316156111e057825191505b8a6001600160a01b0316826001600160a01b03161415611220578084888060010199508151811061121357611213612113565b6020026020010181815250505b60010161119c565b50505092835250909150505b9392505050565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6112b2848484610785565b6001600160a01b0383163b156112eb576112ce84848484611780565b6112eb576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051608080820183526000808352602080840182905283850182905260608085018390528551938401865282845290830182905293820181905292810183905290915060005483106113455792915050565b61134e836116e7565b90508060400151156113605792915050565b61123483611877565b606061137482611463565b61139157604051630a14c4b560e41b815260040160405180910390fd5b600061139b6118ef565b90508051600014156113bc5760405180602001604052806000815250611234565b806113c6846118fe565b6040516020016113d7929190611ed1565b6040516020818303038152906040529392505050565b6113f561162e565b6001600160a01b03811661145a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d8e565b61094b81611688565b60008054821080156105fc575050600090815260046020526040902054600160e01b161590565b6000816000548110156114d257600081815260046020526040902054600160e01b81166114d0575b806112345750600019016000818152600460205260409020546114b2565b505b604051636f96cda160e11b815260040160405180910390fd5b60006114f68361148a565b90508060008061151486600090815260066020526040902080549091565b915091508415611554576115298184336107da565b611554576115378333610562565b61155457604051632ce44b5f60e11b815260040160405180910390fd5b801561155f57600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040902055600160e11b84166115e657600186016000818152600460205260409020546115e45760005481146115e45760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b6008546001600160a01b03163314610a9a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d8e565b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526000828152600460205260409020546105fc90604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6110aa82826040518060200160405280600081525061194c565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906117b5903390899088908890600401611f00565b602060405180830381600087803b1580156117cf57600080fd5b505af19250505080156117ff575060408051601f3d908101601f191682019092526117fc91810190611df6565b60015b61185a573d80801561182d576040519150601f19603f3d011682016040523d82523d6000602084013e611832565b606091505b508051611852576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6040805160808101825260008082526020820181905291810182905260608101919091526105fc6118a78361148a565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6060600a8054610611906120ae565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806119355761193a565b611918565b50819003601f19909101908152919050565b61195683836119b9565b6001600160a01b0383163b1561093b576000548281035b6119806000868380600101945086611780565b61199d576040516368d2bf6b60e11b815260040160405180910390fd5b81811061196d5781600054146119b257600080fd5b5050505050565b600054816119da5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611a8957808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611a51565b5081611aa757604051622e076360e81b815260040160405180910390fd5b60005550505050565b828054611abc906120ae565b90600052602060002090601f016020900481019282611ade5760008555611b24565b82601f10611af75782800160ff19823516178555611b24565b82800160010185558215611b24579182015b82811115611b24578235825591602001919060010190611b09565b50611b30929150611b34565b5090565b5b80821115611b305760008155600101611b35565b80356001600160a01b0381168114611b6057600080fd5b919050565b600060208284031215611b7757600080fd5b61123482611b49565b60008060408385031215611b9357600080fd5b611b9c83611b49565b9150611baa60208401611b49565b90509250929050565b600080600060608486031215611bc857600080fd5b611bd184611b49565b9250611bdf60208501611b49565b9150604084013590509250925092565b60008060008060808587031215611c0557600080fd5b611c0e85611b49565b9350611c1c60208601611b49565b925060408501359150606085013567ffffffffffffffff80821115611c4057600080fd5b818701915087601f830112611c5457600080fd5b813581811115611c6657611c66612129565b604051601f8201601f19908116603f01168101908382118183101715611c8e57611c8e612129565b816040528281528a6020848701011115611ca757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611cde57600080fd5b611ce783611b49565b915060208301358015158114611cfc57600080fd5b809150509250929050565b60008060408385031215611d1a57600080fd5b611d2383611b49565b946020939093013593505050565b600080600060608486031215611d4657600080fd5b611d4f84611b49565b95602085013595506040909401359392505050565b60008060208385031215611d7757600080fd5b823567ffffffffffffffff80821115611d8f57600080fd5b818501915085601f830112611da357600080fd5b813581811115611db257600080fd5b8660208260051b8501011115611dc757600080fd5b60209290920196919550909350505050565b600060208284031215611deb57600080fd5b81356112348161213f565b600060208284031215611e0857600080fd5b81516112348161213f565b60008060208385031215611e2657600080fd5b823567ffffffffffffffff80821115611e3e57600080fd5b818501915085601f830112611e5257600080fd5b813581811115611e6157600080fd5b866020828501011115611dc757600080fd5b600060208284031215611e8557600080fd5b5035919050565b600060208284031215611e9e57600080fd5b5051919050565b60008151808452611ebd816020860160208601612082565b601f01601f19169290920160200192915050565b60008351611ee3818460208801612082565b835190830190611ef7818360208801612082565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152611f326080830184611ea5565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b81811015610d2257611fa68385516001600160a01b03815116825267ffffffffffffffff602082015116602083015260408101511515604083015262ffffff60608201511660608301525050565b9284019260809290920191600101611f58565b6020808252825182820181905260009190848201906040850190845b81811015610d2257835183529284019291840191600101611fd5565b6020815260006112346020830184611ea5565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608083015162ffffff1690820152608081016105fc565b600082612058576120586120fd565b500490565b60008282101561207d57634e487b7160e01b600052601160045260246000fd5b500390565b60005b8381101561209d578181015183820152602001612085565b838111156112eb5750506000910152565b600181811c908216806120c257607f821691505b602082108114156120e357634e487b7160e01b600052602260045260246000fd5b50919050565b6000826120f8576120f86120fd565b500690565b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461094b57600080fdfea264697066735822122067fdeb301bcfbdd88a10d5ceb93fb651720b5a3fd5ab7ff4444aac4db45e58a664736f6c63430008070033
Deployed Bytecode Sourcemap
351:2281:11:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;563:54;;;;;;;;;;;;607:10;563:54;;;;;11526:10:12;11514:23;;;11496:42;;11484:2;11469:18;563:54:11;;;;;;;;9155:630:5;;;;;;;;;;-1:-1:-1;9155:630:5;;;;;:::i;:::-;;:::i;:::-;;;8874:14:12;;8867:22;8849:41;;8837:2;8822:18;9155:630:5;8709:187:12;10039:98:5;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;16360:214::-;;;;;;;;;;-1:-1:-1;16360:214:5;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6458:55:12;;;6440:74;;6428:2;6413:18;16360:214:5;6294:226:12;15812:398:5;;;;;;:::i;:::-;;:::i;:::-;;5894:317;;;;;;;;;;-1:-1:-1;6164:12:5;;5955:7;6148:13;:28;5894:317;;;11316:25:12;;;11304:2;11289:18;5894:317:5;11170:177:12;19903:2764:5;;;;;;:::i;:::-;;:::i;623:52:11:-;;;;;;;;;;;;665:10;623:52;;22758:187:5;;;;;;:::i;:::-;;:::i;510:92:7:-;;;;;;;;;;-1:-1:-1;510:92:7;;;;;:::i;:::-;;:::i;2526:104:11:-;;;;;;;;;;-1:-1:-1;2526:104:11;;;;;:::i;:::-;;:::i;1641:513:8:-;;;;;;;;;;-1:-1:-1;1641:513:8;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;441:116:11:-;;;;;;;;;;;;514:42;441:116;;11391:150:5;;;;;;;;;;-1:-1:-1;11391:150:5;;;;;:::i;:::-;;:::i;7045:230::-;;;;;;;;;;-1:-1:-1;7045:230:5;;;;;:::i;:::-;;:::i;1831:101:0:-;;;;;;;;;;;;;:::i;1889:513:11:-;;;;;;;;;;-1:-1:-1;1889:513:11;;;;;:::i;:::-;;:::i;5417:874:8:-;;;;;;;;;;-1:-1:-1;5417:874:8;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;1201:85:0:-;;;;;;;;;;-1:-1:-1;1273:6:0;;-1:-1:-1;;;;;1273:6:0;1201:85;;918:965:11;;;;;;;;;;;;;:::i;10208:102:5:-;;;;;;;;;;;;;:::i;2528:2454:8:-;;;;;;;;;;-1:-1:-1;2528:2454:8;;;;;:::i;:::-;;:::i;16901:231:5:-;;;;;;;;;;-1:-1:-1;16901:231:5;;;;;:::i;:::-;;:::i;23526:396::-;;;;;;:::i;:::-;;:::i;1070:418:8:-;;;;;;;;;;-1:-1:-1;1070:418:8;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;10411:313:5:-;;;;;;;;;;-1:-1:-1;10411:313:5;;;;;:::i;:::-;;:::i;682:44:11:-;;;;;;;;;;-1:-1:-1;682:44:11;;;;;:::i;:::-;;;;;;;;;;;;;;;;17282:162:5;;;;;;;;;;-1:-1:-1;17282:162:5;;;;;:::i;:::-;-1:-1:-1;;;;;17402:25:5;;;17379:4;17402:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;17282:162;2081:198:0;;;;;;;;;;-1:-1:-1;2081:198:0;;;;;:::i;:::-;;:::i;9155:630:5:-;9240:4;-1:-1:-1;;;;;;;;;9558:25:5;;;;:101;;-1:-1:-1;;;;;;;;;;9634:25:5;;;9558:101;:177;;;-1:-1:-1;;;;;;;;;;9710:25:5;;;9558:177;9539:196;9155:630;-1:-1:-1;;9155:630:5:o;10039:98::-;10093:13;10125:5;10118:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10039:98;:::o;16360:214::-;16436:7;16460:16;16468:7;16460;:16::i;:::-;16455:64;;16485:34;;-1:-1:-1;;;16485:34:5;;;;;;;;;;;16455:64;-1:-1:-1;16537:24:5;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;16537:30:5;;16360:214::o;15812:398::-;15900:13;15916:16;15924:7;15916;:16::i;:::-;15900:32;-1:-1:-1;39523:10:5;-1:-1:-1;;;;;15947:28:5;;;15943:172;;15994:44;16011:5;39523:10;17282:162;:::i;15994:44::-;15989:126;;16065:35;;-1:-1:-1;;;16065:35:5;;;;;;;;;;;15989:126;16125:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;16125:35:5;-1:-1:-1;;;;;16125:35:5;;;;;;;;;16175:28;;16125:24;;16175:28;;;;;;;15890:320;15812:398;;:::o;19903:2764::-;20040:27;20070;20089:7;20070:18;:27::i;:::-;20040:57;;20153:4;-1:-1:-1;;;;;20112:45:5;20128:19;-1:-1:-1;;;;;20112:45:5;;20108:86;;20166:28;;-1:-1:-1;;;20166:28:5;;;;;;;;;;;20108:86;20206:27;19036:24;;;:15;:24;;;;;19260:26;;20394:68;19260:26;20436:4;39523:10;20442:19;-1:-1:-1;;;;;18524:32:5;;;18370:28;;18651:20;;18673:30;;18648:56;;18074:646;20394:68;20389:179;;20481:43;20498:4;39523:10;17282:162;:::i;20481:43::-;20476:92;;20533:35;;-1:-1:-1;;;20533:35:5;;;;;;;;;;;20476:92;-1:-1:-1;;;;;20583:16:5;;20579:52;;20608:23;;-1:-1:-1;;;20608:23:5;;;;;;;;;;;20579:52;20774:15;20771:157;;;20912:1;20891:19;20884:30;20771:157;-1:-1:-1;;;;;21300:24:5;;;;;;;:18;:24;;;;;;21298:26;;-1:-1:-1;;21298:26:5;;;21368:22;;;;;;;;;21366:24;;-1:-1:-1;21366:24:5;;;14703:11;14678:23;14674:41;14661:63;-1:-1:-1;;;14661:63:5;21654:26;;;;:17;:26;;;;;:172;-1:-1:-1;;;21943:47:5;;21939:617;;22047:1;22037:11;;22015:19;22168:30;;;:17;:30;;;;;;22164:378;;22304:13;;22289:11;:28;22285:239;;22449:30;;;;:17;:30;;;;;:52;;;22285:239;21997:559;21939:617;22600:7;22596:2;-1:-1:-1;;;;;22581:27:5;22590:4;-1:-1:-1;;;;;22581:27:5;;;;;;;;;;;20030:2637;;;19903:2764;;;:::o;22758:187::-;22899:39;22916:4;22922:2;22926:7;22899:39;;;;;;;;;;;;:16;:39::i;:::-;22758:187;;;:::o;510:92:7:-;575:20;581:7;590:4;575:5;:20::i;:::-;510:92;:::o;2526:104:11:-;1094:13:0;:11;:13::i;:::-;2600:23:11::1;:13;2616:7:::0;;2600:23:::1;:::i;1641:513:8:-:0;1780:23;1868:8;1843:22;1868:8;1934:36;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1934:36:8;;-1:-1:-1;;1934:36:8;;;;;;;;;;;;1897:73;;1989:9;1984:123;2005:14;2000:1;:19;1984:123;;2060:32;2080:8;;2089:1;2080:11;;;;;;;:::i;:::-;;;;;;;2060:19;:32::i;:::-;2044:10;2055:1;2044:13;;;;;;;;:::i;:::-;;;;;;;;;;:48;2021:3;;1984:123;;;-1:-1:-1;2127:10:8;1641:513;-1:-1:-1;;;;1641:513:8:o;11391:150:5:-;11463:7;11505:27;11524:7;11505:18;:27::i;7045:230::-;7117:7;-1:-1:-1;;;;;7140:19:5;;7136:60;;7168:28;;-1:-1:-1;;;7168:28:5;;;;;;;;;;;7136:60;-1:-1:-1;;;;;;7213:25:5;;;;;:18;:25;;;;;;1360:13;7213:55;;7045:230::o;1831:101:0:-;1094:13;:11;:13::i;:::-;1895:30:::1;1922:1;1895:18;:30::i;:::-;1831:101::o:0;1889:513:11:-;1990:35;;-1:-1:-1;;;1990:35:11;;-1:-1:-1;;;;;6458:55:12;;1990:35:11;;;6440:74:12;1954:7:11;;;;514:42;;1990:28;;6413:18:12;;1990:35:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1972:53;;2048:1;2038:7;:11;2035:48;;;-1:-1:-1;2071:1:11;;1889:513;-1:-1:-1;;1889:513:11:o;2035:48::-;2092:13;;2138:222;2161:7;2157:1;:11;2138:222;;;2208:48;;-1:-1:-1;;;2208:48:11;;-1:-1:-1;;;;;7233:55:12;;2208:48:11;;;7215:74:12;7305:18;;;7298:34;;;2192:13:11;;514:42;;2208:38;;7188:18:12;;2208:48:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2278:19;;;;:12;:19;;;;;;2192:64;;-1:-1:-1;2278:19:11;;2274:72;;2320:7;;;;;2274:72;-1:-1:-1;2170:3:11;;2138:222;;;-1:-1:-1;2386:9:11;2394:1;2386:5;:9;:::i;:::-;2379:16;1889:513;-1:-1:-1;;;;1889:513:11:o;5417:874:8:-;5490:16;5542:19;5575:25;5614:22;5639:16;5649:5;5639:9;:16::i;:::-;5614:41;;5669:25;5711:14;5697:29;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5697:29:8;;5669:57;;5740:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5740:31:8;5790:9;5785:461;5834:14;5819:11;:29;5785:461;;5885:15;5898:1;5885:12;:15::i;:::-;5873:27;;5922:9;:16;;;5918:71;;;5962:8;;5918:71;6010:14;;-1:-1:-1;;;;;6010:28:8;;6006:109;;6082:14;;;-1:-1:-1;6006:109:8;6157:5;-1:-1:-1;;;;;6136:26:8;:17;-1:-1:-1;;;;;6136:26:8;;6132:100;;;6212:1;6186:8;6195:13;;;;;;6186:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;6132:100;5850:3;;5785:461;;;-1:-1:-1;6266:8:8;;5417:874;-1:-1:-1;;;;;;5417:874:8:o;918:965:11:-;607:10;966:15;:37;;;;:76;;-1:-1:-1;665:10:11;1007:15;:35;;966:76;958:106;;;;-1:-1:-1;;;958:106:11;;10753:2:12;958:106:11;;;10735:21:12;10792:2;10772:18;;;10765:30;10831:19;10811:18;;;10804:47;10868:18;;958:106:11;;;;;;;;;1092:40;;-1:-1:-1;;;1092:40:11;;1121:10;1092:40;;;6440:74:12;1074:15:11;;514:42;;1092:28;;6413:18:12;;1092:40:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1074:58;;1160:1;1150:7;:11;1142:57;;;;-1:-1:-1;;;1142:57:11;;9583:2:12;1142:57:11;;;9565:21:12;9622:2;9602:18;;;9595:30;9661:34;9641:18;;;9634:62;-1:-1:-1;;;9712:18:12;;;9705:31;9753:19;;1142:57:11;9381:397:12;1142:57:11;1209:13;;1255:365;1278:7;1274:1;:11;1255:365;;;1325:53;;-1:-1:-1;;;1325:53:11;;1364:10;1325:53;;;7215:74:12;7305:18;;;7298:34;;;1309:13:11;;514:42;;1325:38;;7188:18:12;;1325:53:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1400:19;;;;:12;:19;;;;;;1309:69;;-1:-1:-1;1400:19:11;;1396:210;;1471:19;;;;:12;:19;;;;;:26;;-1:-1:-1;;1471:26:11;1442:7;1471:26;;;;;;1442:7;;;;1531:2;1522:11;;1519:69;;;1560:5;;;1519:69;-1:-1:-1;1287:3:11;;1255:365;;;;1656:1;1648:5;:9;1640:55;;;;-1:-1:-1;;;1640:55:11;;9583:2:12;1640:55:11;;;9565:21:12;9622:2;9602:18;;;9595:30;9661:34;9641:18;;;9634:62;-1:-1:-1;;;9712:18:12;;;9705:31;9753:19;;1640:55:11;9381:397:12;1640:55:11;1708:9;1716:1;1708:5;:9;:::i;:::-;1721:1;1708:14;1705:129;;;1818:5;1738:12;1818:5;514:42;1751:38;1790:10;1802:11;1812:1;1802:7;:11;:::i;:::-;1751:63;;-1:-1:-1;;;;;;1751:63:11;;;;;;;-1:-1:-1;;;;;7233:55:12;;;1751:63:11;;;7215:74:12;7305:18;;;7298:34;7188:18;;1751:63:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1738:77;;;;;;;;;;;-1:-1:-1;1738:77:11;:85;;-1:-1:-1;;1738:85:11;;;;;;;;;;1705:129;1844:32;1854:10;1866:9;1874:1;1866:5;:9;:::i;:::-;1844;:32::i;:::-;948:935;;918:965::o;10208:102:5:-;10264:13;10296:7;10289:14;;;;;:::i;2528:2454:8:-;2667:16;2732:4;2723:5;:13;2719:45;;2745:19;;-1:-1:-1;;;2745:19:8;;;;;;;;;;;2719:45;2778:19;2811:17;2831:14;5645:7:5;5671:13;;5590:101;2831:14:8;2811:34;-1:-1:-1;3076:9:8;3069:4;:16;3065:71;;;3112:9;3105:16;;3065:71;3149:25;3177:16;3187:5;3177:9;:16::i;:::-;3149:44;;3368:4;3360:5;:12;3356:271;;;3414:12;;;3448:31;;;3444:109;;;3523:11;3503:31;;3444:109;3374:193;3356:271;;;-1:-1:-1;3611:1:8;3356:271;3640:25;3682:17;3668:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3668:32:8;-1:-1:-1;3640:60:8;-1:-1:-1;3718:22:8;3714:76;;3767:8;-1:-1:-1;3760:15:8;;-1:-1:-1;;;3760:15:8;3714:76;3931:31;3965:26;3985:5;3965:19;:26::i;:::-;3931:60;;4005:25;4247:9;:16;;;4242:90;;-1:-1:-1;4303:14:8;;4242:90;4362:5;4345:467;4374:4;4369:1;:9;;:45;;;;;4397:17;4382:11;:32;;4369:45;4345:467;;;4451:15;4464:1;4451:12;:15::i;:::-;4439:27;;4488:9;:16;;;4484:71;;;4528:8;;4484:71;4576:14;;-1:-1:-1;;;;;4576:28:8;;4572:109;;4648:14;;;-1:-1:-1;4572:109:8;4723:5;-1:-1:-1;;;;;4702:26:8;:17;-1:-1:-1;;;;;4702:26:8;;4698:100;;;4778:1;4752:8;4761:13;;;;;;4752:23;;;;;;;;:::i;:::-;;;;;;:27;;;;;4698:100;4416:3;;4345:467;;;-1:-1:-1;;;4894:29:8;;;-1:-1:-1;4901:8:8;;-1:-1:-1;;2528:2454:8;;;;;;:::o;16901:231:5:-;39523:10;16995:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;16995:49:5;;;;;;;;;;;;:60;;-1:-1:-1;;16995:60:5;;;;;;;;;;17070:55;;8849:41:12;;;16995:49:5;;39523:10;17070:55;;8822:18:12;17070:55:5;;;;;;;16901:231;;:::o;23526:396::-;23695:31;23708:4;23714:2;23718:7;23695:12;:31::i;:::-;-1:-1:-1;;;;;23740:14:5;;;:19;23736:180;;23778:56;23809:4;23815:2;23819:7;23828:5;23778:30;:56::i;:::-;23773:143;;23861:40;;-1:-1:-1;;;23861:40:5;;;;;;;;;;;23773:143;23526:396;;;;:::o;1070:418:8:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5645:7:5;5671:13;1261:7:8;:25;1228:101;;1309:9;1070:418;-1:-1:-1;;1070:418:8:o;1228:101::-;1350:21;1363:7;1350:12;:21::i;:::-;1338:33;;1385:9;:16;;;1381:63;;;1424:9;1070:418;-1:-1:-1;;1070:418:8:o;1381:63::-;1460:21;1473:7;1460:12;:21::i;10411:313:5:-;10484:13;10514:16;10522:7;10514;:16::i;:::-;10509:59;;10539:29;;-1:-1:-1;;;10539:29:5;;;;;;;;;;;10509:59;10579:21;10603:10;:8;:10::i;:::-;10579:34;;10636:7;10630:21;10655:1;10630:26;;:87;;;;;;;;;;;;;;;;;10683:7;10692:18;10702:7;10692:9;:18::i;:::-;10666:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;10623:94;10411:313;-1:-1:-1;;;10411:313:5:o;2081:198:0:-;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2169:22:0;::::1;2161:73;;;::::0;-1:-1:-1;;;2161:73:0;;9985:2:12;2161:73:0::1;::::0;::::1;9967:21:12::0;10024:2;10004:18;;;9997:30;10063:34;10043:18;;;10036:62;-1:-1:-1;;;10114:18:12;;;10107:36;10160:19;;2161:73:0::1;9783:402:12::0;2161:73:0::1;2244:28;2263:8;2244:18;:28::i;17693:277:5:-:0;17758:4;17845:13;;17835:7;:23;17793:151;;;;-1:-1:-1;;17895:26:5;;;;:17;:26;;;;;;-1:-1:-1;;;17895:44:5;:49;;17693:277::o;12515:1249::-;12582:7;12616;12714:13;;12707:4;:20;12703:997;;;12751:14;12768:23;;;:17;:23;;;;;;-1:-1:-1;;;12855:24:5;;12851:831;;13510:111;13517:11;13510:111;;-1:-1:-1;;;13587:6:5;13569:25;;;;:17;:25;;;;;;13510:111;;12851:831;12729:971;12703:997;13726:31;;-1:-1:-1;;;13726:31:5;;;;;;;;;;;34095:3015;34174:27;34204;34223:7;34204:18;:27::i;:::-;34174:57;-1:-1:-1;34174:57:5;34242:12;;34362:35;34389:7;18927:27;19036:24;;;:15;:24;;;;;19260:26;;19036:24;;18828:474;34362:35;34305:92;;;;34412:13;34408:312;;;34531:68;34556:15;34573:4;39523:10;34579:19;39437:103;34531:68;34526:183;;34622:43;34639:4;39523:10;17282:162;:::i;34622:43::-;34617:92;;34674:35;;-1:-1:-1;;;34674:35:5;;;;;;;;;;;34617:92;34870:15;34867:157;;;35008:1;34987:19;34980:30;34867:157;-1:-1:-1;;;;;35613:24:5;;;;;;:18;:24;;;;;:60;;35641:32;35613:60;;;14703:11;14678:23;14674:41;14661:63;-1:-1:-1;;;14661:63:5;35904:26;;;;:17;:26;;;;;:202;-1:-1:-1;;;36223:47:5;;36219:617;;36327:1;36317:11;;36295:19;36448:30;;;:17;:30;;;;;;36444:378;;36584:13;;36569:11;:28;36565:239;;36729:30;;;;:17;:30;;;;;:52;;;36565:239;36277:559;36219:617;36861:35;;36888:7;;36884:1;;-1:-1:-1;;;;;36861:35:5;;;;;36884:1;;36861:35;-1:-1:-1;;37079:12:5;:14;;;;;;-1:-1:-1;;;;34095:3015:5:o;1359:130:0:-;1273:6;;-1:-1:-1;;;;;1273:6:0;39523:10:5;1422:23:0;1414:68;;;;-1:-1:-1;;;1414:68:0;;10392:2:12;1414:68:0;;;10374:21:12;;;10411:18;;;10404:30;10470:34;10450:18;;;10443:62;10522:18;;1414:68:0;10190:356:12;2433:187:0;2525:6;;;-1:-1:-1;;;;;2541:17:0;;;-1:-1:-1;;2541:17:0;;;;;;;2573:40;;2525:6;;;2541:17;2525:6;;2573:40;;2506:16;;2573:40;2496:124;2433:187;:::o;11979:159:5:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12106:24:5;;;;:17;:24;;;;;;12087:44;;-1:-1:-1;;;;;;;;;;;;;13967:41:5;;;;2004:3;14052:33;;;14018:68;;-1:-1:-1;;;14018:68:5;-1:-1:-1;;;14115:24:5;;:29;;-1:-1:-1;;;14096:48:5;;;;2513:3;14183:28;;;;-1:-1:-1;;;14154:58:5;-1:-1:-1;13858:361:5;33423:110;33499:27;33509:2;33513:8;33499:27;;;;;;;;;;;;:9;:27::i;25948:697::-;26126:88;;-1:-1:-1;;;26126:88:5;;26106:4;;-1:-1:-1;;;;;26126:45:5;;;;;:88;;39523:10;;26193:4;;26199:7;;26208:5;;26126:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26126:88:5;;;;;;;;-1:-1:-1;;26126:88:5;;;;;;;;;;;;:::i;:::-;;;26122:517;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26404:13:5;;26400:229;;26449:40;;-1:-1:-1;;;26449:40:5;;;;;;;;;;;26400:229;26589:6;26583:13;26574:6;26570:2;26566:15;26559:38;26122:517;-1:-1:-1;;;;;;26282:64:5;-1:-1:-1;;;26282:64:5;;-1:-1:-1;25948:697:5;;;;;;:::o;11724:164::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11834:47:5;11853:27;11872:7;11853:18;:27::i;:::-;-1:-1:-1;;;;;;;;;;;;;13967:41:5;;;;2004:3;14052:33;;;14018:68;;-1:-1:-1;;;14018:68:5;-1:-1:-1;;;14115:24:5;;:29;;-1:-1:-1;;;14096:48:5;;;;2513:3;14183:28;;;;-1:-1:-1;;;14154:58:5;-1:-1:-1;13858:361:5;2408:112:11;2468:13;2500;2493:20;;;;;:::i;39637:1708:5:-;39702:17;40130:4;40123;40117:11;40113:22;40220:1;40214:4;40207:15;40293:4;40290:1;40286:12;40279:19;;;40373:1;40368:3;40361:14;40474:3;40708:5;40690:419;40755:1;40750:3;40746:11;40739:18;;40923:2;40917:4;40913:13;40909:2;40905:22;40900:3;40892:36;41015:2;41005:13;;;41070:25;;41088:5;;41070:25;40690:419;;;-1:-1:-1;41137:13:5;;;-1:-1:-1;;41250:14:5;;;41310:19;;;41250:14;39637:1708;-1:-1:-1;39637:1708:5:o;32675:669::-;32801:19;32807:2;32811:8;32801:5;:19::i;:::-;-1:-1:-1;;;;;32859:14:5;;;:19;32855:473;;32898:11;32912:13;32959:14;;;32991:229;33021:62;33060:1;33064:2;33068:7;;;;;;33077:5;33021:30;:62::i;:::-;33016:165;;33118:40;;-1:-1:-1;;;33118:40:5;;;;;;;;;;;33016:165;33215:3;33207:5;:11;32991:229;;33300:3;33283:13;;:20;33279:34;;33305:8;;;33279:34;32880:448;;32675:669;;;:::o;27091:2902::-;27163:20;27186:13;27213;27209:44;;27235:18;;-1:-1:-1;;;27235:18:5;;;;;;;;;;;27209:44;-1:-1:-1;;;;;27728:22:5;;;;;;:18;:22;;;;1495:2;27728:22;;;:71;;27766:32;27754:45;;27728:71;;;28035:31;;;:17;:31;;;;;-1:-1:-1;15123:15:5;;15097:24;15093:46;14703:11;14678:23;14674:41;14671:52;14661:63;;28035:170;;28264:23;;;;28035:31;;27728:22;;29016:25;27728:22;;28872:328;29520:1;29506:12;29502:20;29461:339;29560:3;29551:7;29548:16;29461:339;;29774:7;29764:8;29761:1;29734:25;29731:1;29728;29723:59;29612:1;29599:15;29461:339;;;-1:-1:-1;29831:13:5;29827:45;;29853:19;;-1:-1:-1;;;29853:19:5;;;;;;;;;;;29827:45;29887:13;:19;-1:-1:-1;22758:187:5;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:196:12;82:20;;-1:-1:-1;;;;;131:54:12;;121:65;;111:93;;200:1;197;190:12;111:93;14:196;;;:::o;215:186::-;274:6;327:2;315:9;306:7;302:23;298:32;295:52;;;343:1;340;333:12;295:52;366:29;385:9;366:29;:::i;406:260::-;474:6;482;535:2;523:9;514:7;510:23;506:32;503:52;;;551:1;548;541:12;503:52;574:29;593:9;574:29;:::i;:::-;564:39;;622:38;656:2;645:9;641:18;622:38;:::i;:::-;612:48;;406:260;;;;;:::o;671:328::-;748:6;756;764;817:2;805:9;796:7;792:23;788:32;785:52;;;833:1;830;823:12;785:52;856:29;875:9;856:29;:::i;:::-;846:39;;904:38;938:2;927:9;923:18;904:38;:::i;:::-;894:48;;989:2;978:9;974:18;961:32;951:42;;671:328;;;;;:::o;1004:1138::-;1099:6;1107;1115;1123;1176:3;1164:9;1155:7;1151:23;1147:33;1144:53;;;1193:1;1190;1183:12;1144:53;1216:29;1235:9;1216:29;:::i;:::-;1206:39;;1264:38;1298:2;1287:9;1283:18;1264:38;:::i;:::-;1254:48;;1349:2;1338:9;1334:18;1321:32;1311:42;;1404:2;1393:9;1389:18;1376:32;1427:18;1468:2;1460:6;1457:14;1454:34;;;1484:1;1481;1474:12;1454:34;1522:6;1511:9;1507:22;1497:32;;1567:7;1560:4;1556:2;1552:13;1548:27;1538:55;;1589:1;1586;1579:12;1538:55;1625:2;1612:16;1647:2;1643;1640:10;1637:36;;;1653:18;;:::i;:::-;1728:2;1722:9;1696:2;1782:13;;-1:-1:-1;;1778:22:12;;;1802:2;1774:31;1770:40;1758:53;;;1826:18;;;1846:22;;;1823:46;1820:72;;;1872:18;;:::i;:::-;1912:10;1908:2;1901:22;1947:2;1939:6;1932:18;1987:7;1982:2;1977;1973;1969:11;1965:20;1962:33;1959:53;;;2008:1;2005;1998:12;1959:53;2064:2;2059;2055;2051:11;2046:2;2038:6;2034:15;2021:46;2109:1;2104:2;2099;2091:6;2087:15;2083:24;2076:35;2130:6;2120:16;;;;;;;1004:1138;;;;;;;:::o;2147:347::-;2212:6;2220;2273:2;2261:9;2252:7;2248:23;2244:32;2241:52;;;2289:1;2286;2279:12;2241:52;2312:29;2331:9;2312:29;:::i;:::-;2302:39;;2391:2;2380:9;2376:18;2363:32;2438:5;2431:13;2424:21;2417:5;2414:32;2404:60;;2460:1;2457;2450:12;2404:60;2483:5;2473:15;;;2147:347;;;;;:::o;2499:254::-;2567:6;2575;2628:2;2616:9;2607:7;2603:23;2599:32;2596:52;;;2644:1;2641;2634:12;2596:52;2667:29;2686:9;2667:29;:::i;:::-;2657:39;2743:2;2728:18;;;;2715:32;;-1:-1:-1;;;2499:254:12:o;2758:322::-;2835:6;2843;2851;2904:2;2892:9;2883:7;2879:23;2875:32;2872:52;;;2920:1;2917;2910:12;2872:52;2943:29;2962:9;2943:29;:::i;:::-;2933:39;3019:2;3004:18;;2991:32;;-1:-1:-1;3070:2:12;3055:18;;;3042:32;;2758:322;-1:-1:-1;;;2758:322:12:o;3085:615::-;3171:6;3179;3232:2;3220:9;3211:7;3207:23;3203:32;3200:52;;;3248:1;3245;3238:12;3200:52;3288:9;3275:23;3317:18;3358:2;3350:6;3347:14;3344:34;;;3374:1;3371;3364:12;3344:34;3412:6;3401:9;3397:22;3387:32;;3457:7;3450:4;3446:2;3442:13;3438:27;3428:55;;3479:1;3476;3469:12;3428:55;3519:2;3506:16;3545:2;3537:6;3534:14;3531:34;;;3561:1;3558;3551:12;3531:34;3614:7;3609:2;3599:6;3596:1;3592:14;3588:2;3584:23;3580:32;3577:45;3574:65;;;3635:1;3632;3625:12;3574:65;3666:2;3658:11;;;;;3688:6;;-1:-1:-1;3085:615:12;;-1:-1:-1;;;;3085:615:12:o;3705:245::-;3763:6;3816:2;3804:9;3795:7;3791:23;3787:32;3784:52;;;3832:1;3829;3822:12;3784:52;3871:9;3858:23;3890:30;3914:5;3890:30;:::i;3955:249::-;4024:6;4077:2;4065:9;4056:7;4052:23;4048:32;4045:52;;;4093:1;4090;4083:12;4045:52;4125:9;4119:16;4144:30;4168:5;4144:30;:::i;4209:592::-;4280:6;4288;4341:2;4329:9;4320:7;4316:23;4312:32;4309:52;;;4357:1;4354;4347:12;4309:52;4397:9;4384:23;4426:18;4467:2;4459:6;4456:14;4453:34;;;4483:1;4480;4473:12;4453:34;4521:6;4510:9;4506:22;4496:32;;4566:7;4559:4;4555:2;4551:13;4547:27;4537:55;;4588:1;4585;4578:12;4537:55;4628:2;4615:16;4654:2;4646:6;4643:14;4640:34;;;4670:1;4667;4660:12;4640:34;4715:7;4710:2;4701:6;4697:2;4693:15;4689:24;4686:37;4683:57;;;4736:1;4733;4726:12;4806:180;4865:6;4918:2;4906:9;4897:7;4893:23;4889:32;4886:52;;;4934:1;4931;4924:12;4886:52;-1:-1:-1;4957:23:12;;4806:180;-1:-1:-1;4806:180:12:o;4991:184::-;5061:6;5114:2;5102:9;5093:7;5089:23;5085:32;5082:52;;;5130:1;5127;5120:12;5082:52;-1:-1:-1;5153:16:12;;4991:184;-1:-1:-1;4991:184:12:o;5180:257::-;5221:3;5259:5;5253:12;5286:6;5281:3;5274:19;5302:63;5358:6;5351:4;5346:3;5342:14;5335:4;5328:5;5324:16;5302:63;:::i;:::-;5419:2;5398:15;-1:-1:-1;;5394:29:12;5385:39;;;;5426:4;5381:50;;5180:257;-1:-1:-1;;5180:257:12:o;5819:470::-;5998:3;6036:6;6030:13;6052:53;6098:6;6093:3;6086:4;6078:6;6074:17;6052:53;:::i;:::-;6168:13;;6127:16;;;;6190:57;6168:13;6127:16;6224:4;6212:17;;6190:57;:::i;:::-;6263:20;;5819:470;-1:-1:-1;;;;5819:470:12:o;6525:511::-;6719:4;-1:-1:-1;;;;;6829:2:12;6821:6;6817:15;6806:9;6799:34;6881:2;6873:6;6869:15;6864:2;6853:9;6849:18;6842:43;;6921:6;6916:2;6905:9;6901:18;6894:34;6964:3;6959:2;6948:9;6944:18;6937:31;6985:45;7025:3;7014:9;7010:19;7002:6;6985:45;:::i;:::-;6977:53;6525:511;-1:-1:-1;;;;;;6525:511:12:o;7343:724::-;7578:2;7630:21;;;7700:13;;7603:18;;;7722:22;;;7549:4;;7578:2;7801:15;;;;7775:2;7760:18;;;7549:4;7844:197;7858:6;7855:1;7852:13;7844:197;;;7907:52;7955:3;7946:6;7940:13;-1:-1:-1;;;;;5532:5:12;5526:12;5522:61;5517:3;5510:74;5645:18;5637:4;5630:5;5626:16;5620:23;5616:48;5609:4;5604:3;5600:14;5593:72;5728:4;5721:5;5717:16;5711:23;5704:31;5697:39;5690:4;5685:3;5681:14;5674:63;5798:8;5790:4;5783:5;5779:16;5773:23;5769:38;5762:4;5757:3;5753:14;5746:62;;;5442:372;7907:52;8016:15;;;;7988:4;7979:14;;;;;7880:1;7873:9;7844:197;;8072:632;8243:2;8295:21;;;8365:13;;8268:18;;;8387:22;;;8214:4;;8243:2;8466:15;;;;8440:2;8425:18;;;8214:4;8509:169;8523:6;8520:1;8517:13;8509:169;;;8584:13;;8572:26;;8653:15;;;;8618:12;;;;8545:1;8538:9;8509:169;;9157:219;9306:2;9295:9;9288:21;9269:4;9326:44;9366:2;9355:9;9351:18;9343:6;9326:44;:::i;10897:268::-;5526:12;;-1:-1:-1;;;;;5522:61:12;5510:74;;5637:4;5626:16;;;5620:23;5645:18;5616:48;5600:14;;;5593:72;5728:4;5717:16;;;5711:23;5704:31;5697:39;5681:14;;;5674:63;5790:4;5779:16;;;5773:23;5798:8;5769:38;5753:14;;;5746:62;11095:3;11080:19;;11108:51;5442:372;11549:120;11589:1;11615;11605:35;;11620:18;;:::i;:::-;-1:-1:-1;11654:9:12;;11549:120::o;11674:222::-;11714:4;11742:1;11739;11736:8;11733:131;;;11786:10;11781:3;11777:20;11774:1;11767:31;11821:4;11818:1;11811:15;11849:4;11846:1;11839:15;11733:131;-1:-1:-1;11881:9:12;;11674:222::o;11901:258::-;11973:1;11983:113;11997:6;11994:1;11991:13;11983:113;;;12073:11;;;12067:18;12054:11;;;12047:39;12019:2;12012:10;11983:113;;;12114:6;12111:1;12108:13;12105:48;;;-1:-1:-1;;12149:1:12;12131:16;;12124:27;11901:258::o;12164:380::-;12243:1;12239:12;;;;12286;;;12307:61;;12361:4;12353:6;12349:17;12339:27;;12307:61;12414:2;12406:6;12403:14;12383:18;12380:38;12377:161;;;12460:10;12455:3;12451:20;12448:1;12441:31;12495:4;12492:1;12485:15;12523:4;12520:1;12513:15;12377:161;;12164:380;;;:::o;12549:112::-;12581:1;12607;12597:35;;12612:18;;:::i;:::-;-1:-1:-1;12646:9:12;;12549:112::o;12666:127::-;12727:10;12722:3;12718:20;12715:1;12708:31;12758:4;12755:1;12748:15;12782:4;12779:1;12772:15;12798:127;12859:10;12854:3;12850:20;12847:1;12840:31;12890:4;12887:1;12880:15;12914:4;12911:1;12904:15;12930:127;12991:10;12986:3;12982:20;12979:1;12972:31;13022:4;13019:1;13012:15;13046:4;13043:1;13036:15;13062:131;-1:-1:-1;;;;;;13136:32:12;;13126:43;;13116:71;;13183:1;13180;13173:12
Swarm Source
ipfs://67fdeb301bcfbdd88a10d5ceb93fb651720b5a3fd5ab7ff4444aac4db45e58a6
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.