ERC-721
Overview
Max Total Supply
2,477 Insomniacs
Holders
2,032
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 InsomniacsLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Insomniacs
Compiler Version
v0.8.15+commit.e14f2714
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-07-28 */ // SPDX-License-Identifier: None pragma solidity ^0.8.4; abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } interface IERC721A { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); // ============================== // IERC165 // ============================== /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); // ============================== // IERC721 // ============================== /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); // ============================== // IERC721Metadata // ============================== /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } interface ERC721A__IERC721Receiver { function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); } /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is IERC721A { // Mask of an entry in packed address data. uint256 private constant BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1; // The bit position of `numberMinted` in packed address data. uint256 private constant BITPOS_NUMBER_MINTED = 64; // The bit position of `numberBurned` in packed address data. uint256 private constant BITPOS_NUMBER_BURNED = 128; // The bit position of `aux` in packed address data. uint256 private constant BITPOS_AUX = 192; // Mask of all 256 bits in packed address data except the 64 bits for `aux`. uint256 private constant BITMASK_AUX_COMPLEMENT = (1 << 192) - 1; // The bit position of `startTimestamp` in packed ownership. uint256 private constant BITPOS_START_TIMESTAMP = 160; // The bit mask of the `burned` bit in packed ownership. uint256 private constant BITMASK_BURNED = 1 << 224; // The bit position of the `nextInitialized` bit in packed ownership. uint256 private constant BITPOS_NEXT_INITIALIZED = 225; // The bit mask of the `nextInitialized` bit in packed ownership. uint256 private constant BITMASK_NEXT_INITIALIZED = 1 << 225; // The tokenId of the next token to be minted. uint256 private _currentIndex; // The number of tokens burned. uint256 private _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. // See `_packedOwnershipOf` implementation for details. // // Bits Layout: // - [0..159] `addr` // - [160..223] `startTimestamp` // - [224] `burned` // - [225] `nextInitialized` mapping(uint256 => uint256) private _packedOwnerships; // Mapping owner address to address data. // // Bits Layout: // - [0..63] `balance` // - [64..127] `numberMinted` // - [128..191] `numberBurned` // - [192..255] `aux` mapping(address => uint256) private _packedAddressData; // Mapping from token ID to approved address. mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * @dev Returns the starting token ID. * To change the starting token ID, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Returns the next token ID to be minted. */ function _nextTokenId() internal view returns (uint256) { return _currentIndex; } /** * @dev Returns the total number of tokens in existence. * Burned tokens will reduce the count. * To get the total number of tokens minted, please see `_totalMinted`. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than `_currentIndex - _startTokenId()` times. unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * @dev Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to `_startTokenId()` unchecked { return _currentIndex - _startTokenId(); } } /** * @dev Returns the total number of tokens burned. */ function _totalBurned() internal view returns (uint256) { return _burnCounter; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { // The interface IDs are constants representing the first 4 bytes of the XOR of // all function selectors in the interface. See: https://eips.ethereum.org/EIPS/eip-165 // e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)` return interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165. interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721. interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata. } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return _packedAddressData[owner] & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_MINTED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return (_packedAddressData[owner] >> BITPOS_NUMBER_BURNED) & BITMASK_ADDRESS_DATA_ENTRY; } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return uint64(_packedAddressData[owner] >> BITPOS_AUX); } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { uint256 packed = _packedAddressData[owner]; uint256 auxCasted; assembly { // Cast aux without masking. auxCasted := aux } packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX); _packedAddressData[owner] = packed; } /** * Returns the packed ownership data of `tokenId`. */ function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { uint256 packed = _packedOwnerships[curr]; // If not burned. if (packed & BITMASK_BURNED == 0) { // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. // // We can directly compare the packed value. // If the address is zero, packed is zero. while (packed == 0) { packed = _packedOwnerships[--curr]; } return packed; } } } revert OwnerQueryForNonexistentToken(); } /** * Returns the unpacked `TokenOwnership` struct from `packed`. */ function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) { ownership.addr = address(uint160(packed)); ownership.startTimestamp = uint64(packed >> BITPOS_START_TIMESTAMP); ownership.burned = packed & BITMASK_BURNED != 0; } /** * Returns the unpacked `TokenOwnership` struct at `index`. */ function _ownershipAt(uint256 index) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnerships[index]); } /** * @dev Initializes the ownership slot minted at `index` for efficiency purposes. */ function _initializeOwnershipAt(uint256 index) internal { if (_packedOwnerships[index] == 0) { _packedOwnerships[index] = _packedOwnershipOf(index); } } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { return _unpackedOwnership(_packedOwnershipOf(tokenId)); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return address(uint160(_packedOwnershipOf(tokenId))); } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev Casts the address to uint256 without masking. */ function _addressToUint256(address value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev Casts the boolean to uint256 without branching. */ function _boolToUint256(bool value) private pure returns (uint256 result) { assembly { result := value } } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = address(uint160(_packedOwnershipOf(tokenId))); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSenderERC721A() != owner) if (!isApprovedForAll(owner, _msgSenderERC721A())) { revert ApprovalCallerNotOwnerNorApproved(); } _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSenderERC721A()) revert ApproveToCaller(); _operatorApprovals[_msgSenderERC721A()][operator] = approved; emit ApprovalForAll(_msgSenderERC721A(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.code.length != 0) if (!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && // If within bounds, _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned. } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.code.length != 0) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { // Updates: // - `balance += quantity`. // - `numberMinted += quantity`. // // We can directly add to the balance and number minted. _packedAddressData[to] += quantity * ((1 << BITPOS_NUMBER_MINTED) | 1); // Updates: // - `address` to the owner. // - `startTimestamp` to the timestamp of minting. // - `burned` to `false`. // - `nextInitialized` to `quantity == 1`. _packedOwnerships[startTokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // We can directly increment and decrement the balances. --_packedAddressData[from]; // Updates: `balance -= 1`. ++_packedAddressData[to]; // Updates: `balance += 1`. // Updates: // - `address` to the next owner. // - `startTimestamp` to the timestamp of transfering. // - `burned` to `false`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(to) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId); address from = address(uint160(prevOwnershipPacked)); if (approvalCheck) { bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || getApproved(tokenId) == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner. delete _tokenApprovals[tokenId]; // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { // Updates: // - `balance -= 1`. // - `numberBurned += 1`. // // We can directly decrement the balance, and increment the number burned. // This is equivalent to `packed -= 1; packed += 1 << BITPOS_NUMBER_BURNED;`. _packedAddressData[from] += (1 << BITPOS_NUMBER_BURNED) - 1; // Updates: // - `address` to the last owner. // - `startTimestamp` to the timestamp of burning. // - `burned` to `true`. // - `nextInitialized` to `true`. _packedOwnerships[tokenId] = _addressToUint256(from) | (block.timestamp << BITPOS_START_TIMESTAMP) | BITMASK_BURNED | BITMASK_NEXT_INITIALIZED; // If the next slot may not have been initialized (i.e. `nextInitialized == false`) . if (prevOwnershipPacked & BITMASK_NEXT_INITIALIZED == 0) { uint256 nextTokenId = tokenId + 1; // If the next slot's address is zero and not burned (i.e. packed value is zero). if (_packedOwnerships[nextTokenId] == 0) { // If the next slot is within bounds. if (nextTokenId != _currentIndex) { // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`. _packedOwnerships[nextTokenId] = prevOwnershipPacked; } } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns ( bytes4 retval ) { return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Returns the message sender (defaults to `msg.sender`). * * If you are writing GSN compatible contracts, you need to override this function. */ function _msgSenderERC721A() internal view virtual returns (address) { return msg.sender; } /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function _toString(uint256 value) internal pure returns (string memory ptr) { assembly { // The maximum value of a uint256 contains 78 digits (1 byte per digit), // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged. // We will need 1 32-byte word to store the length, // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128. ptr := add(mload(0x40), 128) // Update the free memory pointer to allocate. mstore(0x40, ptr) // Cache the end of the memory to calculate the length later. let end := ptr // We write the string from the rightmost digit to the leftmost digit. // The following is essentially a do-while loop that also handles the zero case. // Costs a bit more than early returning for the zero case, // but cheaper in terms of deployment and overall runtime costs. for { // Initialize and perform the first pass without check. let temp := value // Move the pointer 1 byte leftwards to point to an empty character slot. ptr := sub(ptr, 1) // Write the character to the pointer. 48 is the ASCII index of '0'. mstore8(ptr, add(48, mod(temp, 10))) temp := div(temp, 10) } temp { // Keep dividing `temp` until zero. temp := div(temp, 10) } { // Body of the for loop. ptr := sub(ptr, 1) mstore8(ptr, add(48, mod(temp, 10))) } let length := sub(end, ptr) // Move the pointer 32 bytes leftwards to make room for the length. ptr := sub(ptr, 32) // Store the length. mstore(ptr, length) } } } contract Insomniacs is ERC721A, Ownable { uint256 constant EXTRA_MINT_PRICE = 0.0066 ether; uint256 constant MAX_SUPPLY_PLUS_ONE = 6667; uint256 constant MAX_PER_TRANSACTION_PLUS_ONE = 7; string tokenBaseUri = "ipfs://TBA/"; bool public paused = true; mapping(address => uint256) private _freeMintedCount; constructor() ERC721A("Insomniacs", "Insomniacs") {} function mint(uint256 _quantity) external payable { require(!paused, "Minting paused"); uint256 _totalSupply = totalSupply(); require(_totalSupply + _quantity < MAX_SUPPLY_PLUS_ONE, "Exceeds supply"); require(_quantity < MAX_PER_TRANSACTION_PLUS_ONE, "Exceeds max per tx"); uint256 payForCount = _quantity; uint256 freeMintCount = _freeMintedCount[msg.sender]; if (freeMintCount < 1) { if (_quantity > 1) { payForCount = _quantity - 1; } else { payForCount = 0; } _freeMintedCount[msg.sender] = 1; } require(msg.value >= payForCount * EXTRA_MINT_PRICE, "ETH sent not correct"); _mint(msg.sender, _quantity); } function freeMintedCount(address owner) external view returns (uint256) { return _freeMintedCount[owner]; } function _startTokenId() internal pure override returns (uint256) { return 1; } function _baseURI() internal view override returns (string memory) { return tokenBaseUri; } function setBaseURI(string calldata _newBaseUri) external onlyOwner { tokenBaseUri = _newBaseUri; } function flipSale() external onlyOwner { paused = !paused; } function collectReserves() external onlyOwner { require(totalSupply() == 0, "Reserves already taken"); _mint(msg.sender, 100); } function withdraw() external onlyOwner { require( payable(owner()).send(address(this).balance), "Withdraw unsuccessful" ); } }
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":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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":"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collectReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"freeMintedCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052600b60809081526a697066733a2f2f5442412f60a81b60a0526009906200002c9082620001a9565b50600a805460ff191660011790553480156200004757600080fd5b50604080518082018252600a80825269496e736f6d6e6961637360b01b60208084018290528451808601909552918452908301529060026200008a8382620001a9565b506003620000998282620001a9565b5050600160005550620000ac33620000b2565b62000275565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200012f57607f821691505b6020821081036200015057634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001a457600081815260208120601f850160051c810160208610156200017f5750805b601f850160051c820191505b81811015620001a0578281556001016200018b565b5050505b505050565b81516001600160401b03811115620001c557620001c562000104565b620001dd81620001d684546200011a565b8462000156565b602080601f831160018114620002155760008415620001fc5750858301515b600019600386901b1c1916600185901b178555620001a0565b600085815260208120601f198616915b82811015620002465788860151825594840194600190910190840162000225565b5085821015620002655787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61170180620002856000396000f3fe60806040526004361061014b5760003560e01c806370a08231116100b6578063a0712d681161006f578063a0712d681461039f578063a22cb465146103b2578063b88d4fde146103d2578063c87b56dd146103f2578063e985e9c514610412578063f2fde38b1461045b57600080fd5b806370a08231146102ec578063715018a61461030c5780637ba5e621146103215780638da5cb5b1461033657806395d89b4114610354578063981332351461036957600080fd5b806323b872dd1161010857806323b872dd1461023d5780633ccfd60b1461025d57806342842e0e1461027257806355f804b3146102925780635c975abb146102b25780636352211e146102cc57600080fd5b806301ffc9a714610150578063029877b61461018557806306fdde031461019c578063081812fc146101be578063095ea7b3146101f657806318160ddd14610216575b600080fd5b34801561015c57600080fd5b5061017061016b366004611150565b61047b565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5061019a6104cd565b005b3480156101a857600080fd5b506101b161055e565b60405161017c91906111c5565b3480156101ca57600080fd5b506101de6101d93660046111d8565b6105f0565b6040516001600160a01b03909116815260200161017c565b34801561020257600080fd5b5061019a61021136600461120d565b610634565b34801561022257600080fd5b5060015460005403600019015b60405190815260200161017c565b34801561024957600080fd5b5061019a610258366004611237565b610706565b34801561026957600080fd5b5061019a610716565b34801561027e57600080fd5b5061019a61028d366004611237565b6107ac565b34801561029e57600080fd5b5061019a6102ad366004611273565b6107c7565b3480156102be57600080fd5b50600a546101709060ff1681565b3480156102d857600080fd5b506101de6102e73660046111d8565b6107fe565b3480156102f857600080fd5b5061022f6103073660046112e5565b610809565b34801561031857600080fd5b5061019a610858565b34801561032d57600080fd5b5061019a61088c565b34801561034257600080fd5b506008546001600160a01b03166101de565b34801561036057600080fd5b506101b16108ca565b34801561037557600080fd5b5061022f6103843660046112e5565b6001600160a01b03166000908152600b602052604090205490565b61019a6103ad3660046111d8565b6108d9565b3480156103be57600080fd5b5061019a6103cd366004611300565b610a7a565b3480156103de57600080fd5b5061019a6103ed366004611352565b610b0f565b3480156103fe57600080fd5b506101b161040d3660046111d8565b610b53565b34801561041e57600080fd5b5061017061042d36600461142e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561046757600080fd5b5061019a6104763660046112e5565b610bd7565b60006301ffc9a760e01b6001600160e01b0319831614806104ac57506380ac58cd60e01b6001600160e01b03198316145b806104c75750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146105005760405162461bcd60e51b81526004016104f790611461565b60405180910390fd5b6001546000540360001901156105515760405162461bcd60e51b81526020600482015260166024820152752932b9b2b93b32b99030b63932b0b23c903a30b5b2b760511b60448201526064016104f7565b61055c336064610c72565b565b60606002805461056d90611496565b80601f016020809104026020016040519081016040528092919081815260200182805461059990611496565b80156105e65780601f106105bb576101008083540402835291602001916105e6565b820191906000526020600020905b8154815290600101906020018083116105c957829003601f168201915b5050505050905090565b60006105fb82610d53565b610618576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061063f82610d88565b9050806001600160a01b0316836001600160a01b0316036106735760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146106aa5761068d813361042d565b6106aa576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610711838383610df7565b505050565b6008546001600160a01b031633146107405760405162461bcd60e51b81526004016104f790611461565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505061055c5760405162461bcd60e51b815260206004820152601560248201527415da5d1a191c985dc81d5b9cdd58d8d95cdcd99d5b605a1b60448201526064016104f7565b61071183838360405180602001604052806000815250610b0f565b6008546001600160a01b031633146107f15760405162461bcd60e51b81526004016104f790611461565b600961071182848361151e565b60006104c782610d88565b60006001600160a01b038216610832576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146108825760405162461bcd60e51b81526004016104f790611461565b61055c6000610f9f565b6008546001600160a01b031633146108b65760405162461bcd60e51b81526004016104f790611461565b600a805460ff19811660ff90911615179055565b60606003805461056d90611496565b600a5460ff161561091d5760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d1a5b99c81c185d5cd95960921b60448201526064016104f7565b60006109326001546000546000199190030190565b9050611a0b61094183836115f4565b1061097f5760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b60448201526064016104f7565b600782106109c45760405162461bcd60e51b815260206004820152601260248201527108af0c6cacac8e640dac2f040e0cae440e8f60731b60448201526064016104f7565b336000908152600b602052604090205482906001811015610a135760018411156109fa576109f360018561160c565b91506109ff565b600091505b336000908152600b60205260409020600190555b610a24661772aa3f84800083611623565b341015610a6a5760405162461bcd60e51b8152602060048201526014602482015273115512081cd95b9d081b9bdd0818dbdc9c9958dd60621b60448201526064016104f7565b610a743385610c72565b50505050565b336001600160a01b03831603610aa35760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b1a848484610df7565b6001600160a01b0383163b15610a7457610b3684848484610ff1565b610a74576040516368d2bf6b60e11b815260040160405180910390fd5b6060610b5e82610d53565b610b7b57604051630a14c4b560e41b815260040160405180910390fd5b6000610b856110dc565b90508051600003610ba55760405180602001604052806000815250610bd0565b80610baf846110eb565b604051602001610bc0929190611642565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314610c015760405162461bcd60e51b81526004016104f790611461565b6001600160a01b038116610c665760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104f7565b610c6f81610f9f565b50565b6000546001600160a01b038316610c9b57604051622e076360e81b815260040160405180910390fd5b81600003610cbc5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210610d075750600055505050565b600081600111158015610d67575060005482105b80156104c7575050600090815260046020526040902054600160e01b161590565b60008180600111610dde57600054811015610dde5760008181526004602052604081205490600160e01b82169003610ddc575b80600003610bd0575060001901600081815260046020526040902054610dbb565b505b604051636f96cda160e11b815260040160405180910390fd5b6000610e0282610d88565b9050836001600160a01b0316816001600160a01b031614610e355760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480610e535750610e53853361042d565b80610e6e575033610e63846105f0565b6001600160a01b0316145b905080610e8e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416610eb557604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003610f5657600183016000818152600460205260408120549003610f54576000548114610f545760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611026903390899088908890600401611671565b6020604051808303816000875af1925050508015611061575060408051601f3d908101601f1916820190925261105e918101906116ae565b60015b6110bf573d80801561108f576040519150601f19603f3d011682016040523d82523d6000602084013e611094565b606091505b5080516000036110b7576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606009805461056d90611496565b604080516080810191829052607f0190826030600a8206018353600a90045b801561112857600183039250600a81066030018353600a900461110a565b50819003601f19909101908152919050565b6001600160e01b031981168114610c6f57600080fd5b60006020828403121561116257600080fd5b8135610bd08161113a565b60005b83811015611188578181015183820152602001611170565b83811115610a745750506000910152565b600081518084526111b181602086016020860161116d565b601f01601f19169290920160200192915050565b602081526000610bd06020830184611199565b6000602082840312156111ea57600080fd5b5035919050565b80356001600160a01b038116811461120857600080fd5b919050565b6000806040838503121561122057600080fd5b611229836111f1565b946020939093013593505050565b60008060006060848603121561124c57600080fd5b611255846111f1565b9250611263602085016111f1565b9150604084013590509250925092565b6000806020838503121561128657600080fd5b823567ffffffffffffffff8082111561129e57600080fd5b818501915085601f8301126112b257600080fd5b8135818111156112c157600080fd5b8660208285010111156112d357600080fd5b60209290920196919550909350505050565b6000602082840312156112f757600080fd5b610bd0826111f1565b6000806040838503121561131357600080fd5b61131c836111f1565b91506020830135801515811461133157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561136857600080fd5b611371856111f1565b935061137f602086016111f1565b925060408501359150606085013567ffffffffffffffff808211156113a357600080fd5b818701915087601f8301126113b757600080fd5b8135818111156113c9576113c961133c565b604051601f8201601f19908116603f011681019083821181831017156113f1576113f161133c565b816040528281528a602084870101111561140a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561144157600080fd5b61144a836111f1565b9150611458602084016111f1565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806114aa57607f821691505b6020821081036114ca57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561071157600081815260208120601f850160051c810160208610156114f75750805b601f850160051c820191505b8181101561151657828155600101611503565b505050505050565b67ffffffffffffffff8311156115365761153661133c565b61154a836115448354611496565b836114d0565b6000601f84116001811461157e57600085156115665750838201355b600019600387901b1c1916600186901b178355610f98565b600083815260209020601f19861690835b828110156115af578685013582556020948501946001909201910161158f565b50868210156115cc5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611607576116076115de565b500190565b60008282101561161e5761161e6115de565b500390565b600081600019048311821515161561163d5761163d6115de565b500290565b6000835161165481846020880161116d565b83519083019061166881836020880161116d565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906116a490830184611199565b9695505050505050565b6000602082840312156116c057600080fd5b8151610bd08161113a56fea2646970667358221220ad6200917f5ee9964415c15e0149989b66ed083b0901f0ea3e0245e977f7316a64736f6c634300080f0033
Deployed Bytecode
0x60806040526004361061014b5760003560e01c806370a08231116100b6578063a0712d681161006f578063a0712d681461039f578063a22cb465146103b2578063b88d4fde146103d2578063c87b56dd146103f2578063e985e9c514610412578063f2fde38b1461045b57600080fd5b806370a08231146102ec578063715018a61461030c5780637ba5e621146103215780638da5cb5b1461033657806395d89b4114610354578063981332351461036957600080fd5b806323b872dd1161010857806323b872dd1461023d5780633ccfd60b1461025d57806342842e0e1461027257806355f804b3146102925780635c975abb146102b25780636352211e146102cc57600080fd5b806301ffc9a714610150578063029877b61461018557806306fdde031461019c578063081812fc146101be578063095ea7b3146101f657806318160ddd14610216575b600080fd5b34801561015c57600080fd5b5061017061016b366004611150565b61047b565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5061019a6104cd565b005b3480156101a857600080fd5b506101b161055e565b60405161017c91906111c5565b3480156101ca57600080fd5b506101de6101d93660046111d8565b6105f0565b6040516001600160a01b03909116815260200161017c565b34801561020257600080fd5b5061019a61021136600461120d565b610634565b34801561022257600080fd5b5060015460005403600019015b60405190815260200161017c565b34801561024957600080fd5b5061019a610258366004611237565b610706565b34801561026957600080fd5b5061019a610716565b34801561027e57600080fd5b5061019a61028d366004611237565b6107ac565b34801561029e57600080fd5b5061019a6102ad366004611273565b6107c7565b3480156102be57600080fd5b50600a546101709060ff1681565b3480156102d857600080fd5b506101de6102e73660046111d8565b6107fe565b3480156102f857600080fd5b5061022f6103073660046112e5565b610809565b34801561031857600080fd5b5061019a610858565b34801561032d57600080fd5b5061019a61088c565b34801561034257600080fd5b506008546001600160a01b03166101de565b34801561036057600080fd5b506101b16108ca565b34801561037557600080fd5b5061022f6103843660046112e5565b6001600160a01b03166000908152600b602052604090205490565b61019a6103ad3660046111d8565b6108d9565b3480156103be57600080fd5b5061019a6103cd366004611300565b610a7a565b3480156103de57600080fd5b5061019a6103ed366004611352565b610b0f565b3480156103fe57600080fd5b506101b161040d3660046111d8565b610b53565b34801561041e57600080fd5b5061017061042d36600461142e565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561046757600080fd5b5061019a6104763660046112e5565b610bd7565b60006301ffc9a760e01b6001600160e01b0319831614806104ac57506380ac58cd60e01b6001600160e01b03198316145b806104c75750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146105005760405162461bcd60e51b81526004016104f790611461565b60405180910390fd5b6001546000540360001901156105515760405162461bcd60e51b81526020600482015260166024820152752932b9b2b93b32b99030b63932b0b23c903a30b5b2b760511b60448201526064016104f7565b61055c336064610c72565b565b60606002805461056d90611496565b80601f016020809104026020016040519081016040528092919081815260200182805461059990611496565b80156105e65780601f106105bb576101008083540402835291602001916105e6565b820191906000526020600020905b8154815290600101906020018083116105c957829003601f168201915b5050505050905090565b60006105fb82610d53565b610618576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061063f82610d88565b9050806001600160a01b0316836001600160a01b0316036106735760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146106aa5761068d813361042d565b6106aa576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610711838383610df7565b505050565b6008546001600160a01b031633146107405760405162461bcd60e51b81526004016104f790611461565b6008546040516001600160a01b03909116904780156108fc02916000818181858888f1935050505061055c5760405162461bcd60e51b815260206004820152601560248201527415da5d1a191c985dc81d5b9cdd58d8d95cdcd99d5b605a1b60448201526064016104f7565b61071183838360405180602001604052806000815250610b0f565b6008546001600160a01b031633146107f15760405162461bcd60e51b81526004016104f790611461565b600961071182848361151e565b60006104c782610d88565b60006001600160a01b038216610832576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146108825760405162461bcd60e51b81526004016104f790611461565b61055c6000610f9f565b6008546001600160a01b031633146108b65760405162461bcd60e51b81526004016104f790611461565b600a805460ff19811660ff90911615179055565b60606003805461056d90611496565b600a5460ff161561091d5760405162461bcd60e51b815260206004820152600e60248201526d135a5b9d1a5b99c81c185d5cd95960921b60448201526064016104f7565b60006109326001546000546000199190030190565b9050611a0b61094183836115f4565b1061097f5760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320737570706c7960901b60448201526064016104f7565b600782106109c45760405162461bcd60e51b815260206004820152601260248201527108af0c6cacac8e640dac2f040e0cae440e8f60731b60448201526064016104f7565b336000908152600b602052604090205482906001811015610a135760018411156109fa576109f360018561160c565b91506109ff565b600091505b336000908152600b60205260409020600190555b610a24661772aa3f84800083611623565b341015610a6a5760405162461bcd60e51b8152602060048201526014602482015273115512081cd95b9d081b9bdd0818dbdc9c9958dd60621b60448201526064016104f7565b610a743385610c72565b50505050565b336001600160a01b03831603610aa35760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610b1a848484610df7565b6001600160a01b0383163b15610a7457610b3684848484610ff1565b610a74576040516368d2bf6b60e11b815260040160405180910390fd5b6060610b5e82610d53565b610b7b57604051630a14c4b560e41b815260040160405180910390fd5b6000610b856110dc565b90508051600003610ba55760405180602001604052806000815250610bd0565b80610baf846110eb565b604051602001610bc0929190611642565b6040516020818303038152906040525b9392505050565b6008546001600160a01b03163314610c015760405162461bcd60e51b81526004016104f790611461565b6001600160a01b038116610c665760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104f7565b610c6f81610f9f565b50565b6000546001600160a01b038316610c9b57604051622e076360e81b815260040160405180910390fd5b81600003610cbc5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526005602090815260408083208054680100000000000000018702019055838352600490915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210610d075750600055505050565b600081600111158015610d67575060005482105b80156104c7575050600090815260046020526040902054600160e01b161590565b60008180600111610dde57600054811015610dde5760008181526004602052604081205490600160e01b82169003610ddc575b80600003610bd0575060001901600081815260046020526040902054610dbb565b505b604051636f96cda160e11b815260040160405180910390fd5b6000610e0282610d88565b9050836001600160a01b0316816001600160a01b031614610e355760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480610e535750610e53853361042d565b80610e6e575033610e63846105f0565b6001600160a01b0316145b905080610e8e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416610eb557604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091528120600160e11b4260a01b8717811790915583169003610f5657600183016000818152600460205260408120549003610f54576000548114610f545760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611026903390899088908890600401611671565b6020604051808303816000875af1925050508015611061575060408051601f3d908101601f1916820190925261105e918101906116ae565b60015b6110bf573d80801561108f576040519150601f19603f3d011682016040523d82523d6000602084013e611094565b606091505b5080516000036110b7576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606009805461056d90611496565b604080516080810191829052607f0190826030600a8206018353600a90045b801561112857600183039250600a81066030018353600a900461110a565b50819003601f19909101908152919050565b6001600160e01b031981168114610c6f57600080fd5b60006020828403121561116257600080fd5b8135610bd08161113a565b60005b83811015611188578181015183820152602001611170565b83811115610a745750506000910152565b600081518084526111b181602086016020860161116d565b601f01601f19169290920160200192915050565b602081526000610bd06020830184611199565b6000602082840312156111ea57600080fd5b5035919050565b80356001600160a01b038116811461120857600080fd5b919050565b6000806040838503121561122057600080fd5b611229836111f1565b946020939093013593505050565b60008060006060848603121561124c57600080fd5b611255846111f1565b9250611263602085016111f1565b9150604084013590509250925092565b6000806020838503121561128657600080fd5b823567ffffffffffffffff8082111561129e57600080fd5b818501915085601f8301126112b257600080fd5b8135818111156112c157600080fd5b8660208285010111156112d357600080fd5b60209290920196919550909350505050565b6000602082840312156112f757600080fd5b610bd0826111f1565b6000806040838503121561131357600080fd5b61131c836111f1565b91506020830135801515811461133157600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561136857600080fd5b611371856111f1565b935061137f602086016111f1565b925060408501359150606085013567ffffffffffffffff808211156113a357600080fd5b818701915087601f8301126113b757600080fd5b8135818111156113c9576113c961133c565b604051601f8201601f19908116603f011681019083821181831017156113f1576113f161133c565b816040528281528a602084870101111561140a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561144157600080fd5b61144a836111f1565b9150611458602084016111f1565b90509250929050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c908216806114aa57607f821691505b6020821081036114ca57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561071157600081815260208120601f850160051c810160208610156114f75750805b601f850160051c820191505b8181101561151657828155600101611503565b505050505050565b67ffffffffffffffff8311156115365761153661133c565b61154a836115448354611496565b836114d0565b6000601f84116001811461157e57600085156115665750838201355b600019600387901b1c1916600186901b178355610f98565b600083815260209020601f19861690835b828110156115af578685013582556020948501946001909201910161158f565b50868210156115cc5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611607576116076115de565b500190565b60008282101561161e5761161e6115de565b500390565b600081600019048311821515161561163d5761163d6115de565b500290565b6000835161165481846020880161116d565b83519083019061166881836020880161116d565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906116a490830184611199565b9695505050505050565b6000602082840312156116c057600080fd5b8151610bd08161113a56fea2646970667358221220ad6200917f5ee9964415c15e0149989b66ed083b0901f0ea3e0245e977f7316a64736f6c634300080f0033
Deployed Bytecode Sourcemap
40177:1930:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14897:615;;;;;;;;;;-1:-1:-1;14897:615:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;14897:615:0;;;;;;;;41804:143;;;;;;;;;;;;;:::i;:::-;;19910:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;21978:204::-;;;;;;;;;;-1:-1:-1;21978:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;21978:204:0;1528:203:1;21438:474:0;;;;;;;;;;-1:-1:-1;21438:474:0;;;;;:::i;:::-;;:::i;13951:315::-;;;;;;;;;;-1:-1:-1;41499:1:0;14217:12;14004:7;14201:13;:28;-1:-1:-1;;14201:46:0;13951:315;;;2319:25:1;;;2307:2;2292:18;13951:315:0;2173:177:1;22864:170:0;;;;;;;;;;-1:-1:-1;22864:170:0;;;;;:::i;:::-;;:::i;41953:151::-;;;;;;;;;;;;;:::i;23105:185::-;;;;;;;;;;-1:-1:-1;23105:185:0;;;;;:::i;:::-;;:::i;41617:107::-;;;;;;;;;;-1:-1:-1;41617:107:0;;;;;:::i;:::-;;:::i;40421:25::-;;;;;;;;;;-1:-1:-1;40421:25:0;;;;;;;;19699:144;;;;;;;;;;-1:-1:-1;19699:144:0;;;;;:::i;:::-;;:::i;15576:224::-;;;;;;;;;;-1:-1:-1;15576:224:0;;;;;:::i;:::-;;:::i;1373:103::-;;;;;;;;;;;;;:::i;41730:68::-;;;;;;;;;;;;;:::i;722:87::-;;;;;;;;;;-1:-1:-1;795:6:0;;-1:-1:-1;;;;;795:6:0;722:87;;20079:104;;;;;;;;;;;;;:::i;41298:115::-;;;;;;;;;;-1:-1:-1;41298:115:0;;;;;:::i;:::-;-1:-1:-1;;;;;41384:23:0;41361:7;41384:23;;;:16;:23;;;;;;;41298:115;40570:722;;;;;;:::i;:::-;;:::i;22254:308::-;;;;;;;;;;-1:-1:-1;22254:308:0;;;;;:::i;:::-;;:::i;23361:396::-;;;;;;;;;;-1:-1:-1;23361:396:0;;;;;:::i;:::-;;:::i;20254:318::-;;;;;;;;;;-1:-1:-1;20254:318:0;;;;;:::i;:::-;;:::i;22633:164::-;;;;;;;;;;-1:-1:-1;22633:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;22754:25:0;;;22730:4;22754:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;22633:164;1631:201;;;;;;;;;;-1:-1:-1;1631:201:0;;;;;:::i;:::-;;:::i;14897:615::-;14982:4;-1:-1:-1;;;;;;;;;15282:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;15359:25:0;;;15282:102;:179;;;-1:-1:-1;;;;;;;;;;15436:25:0;;;15282:179;15262:199;14897:615;-1:-1:-1;;14897:615:0:o;41804:143::-;795:6;;-1:-1:-1;;;;;795:6:0;176:10;942:23;934:68;;;;-1:-1:-1;;;934:68:0;;;;;;;:::i;:::-;;;;;;;;;41499:1;14217:12;14004:7;14201:13;:28;-1:-1:-1;;14201:46:0;41865:18;41857:53:::1;;;::::0;-1:-1:-1;;;41857:53:0;;5931:2:1;41857:53:0::1;::::0;::::1;5913:21:1::0;5970:2;5950:18;;;5943:30;-1:-1:-1;;;5989:18:1;;;5982:52;6051:18;;41857:53:0::1;5729:346:1::0;41857:53:0::1;41919:22;41925:10;41937:3;41919:5;:22::i;:::-;41804:143::o:0;19910:100::-;19964:13;19997:5;19990:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19910:100;:::o;21978:204::-;22046:7;22071:16;22079:7;22071;:16::i;:::-;22066:64;;22096:34;;-1:-1:-1;;;22096:34:0;;;;;;;;;;;22066:64;-1:-1:-1;22150:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;22150:24:0;;21978:204::o;21438:474::-;21511:13;21543:27;21562:7;21543:18;:27::i;:::-;21511:61;;21593:5;-1:-1:-1;;;;;21587:11:0;:2;-1:-1:-1;;;;;21587:11:0;;21583:48;;21607:24;;-1:-1:-1;;;21607:24:0;;;;;;;;;;;21583:48;176:10;-1:-1:-1;;;;;21648:28:0;;;21644:175;;21696:44;21713:5;176:10;22633:164;:::i;21696:44::-;21691:128;;21768:35;;-1:-1:-1;;;21768:35:0;;;;;;;;;;;21691:128;21831:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;21831:29:0;-1:-1:-1;;;;;21831:29:0;;;;;;;;;21876:28;;21831:24;;21876:28;;;;;;;21500:412;21438:474;;:::o;22864:170::-;22998:28;23008:4;23014:2;23018:7;22998:9;:28::i;:::-;22864:170;;;:::o;41953:151::-;795:6;;-1:-1:-1;;;;;795:6:0;176:10;942:23;934:68;;;;-1:-1:-1;;;934:68:0;;;;;;;:::i;:::-;795:6;;42015:44:::1;::::0;-1:-1:-1;;;;;795:6:0;;;;42037:21:::1;42015:44:::0;::::1;;;::::0;::::1;::::0;;;42037:21;795:6;42015:44;::::1;;;;;;41999:99;;;::::0;-1:-1:-1;;;41999:99:0;;6667:2:1;41999:99:0::1;::::0;::::1;6649:21:1::0;6706:2;6686:18;;;6679:30;-1:-1:-1;;;6725:18:1;;;6718:51;6786:18;;41999:99:0::1;6465:345:1::0;23105:185:0;23243:39;23260:4;23266:2;23270:7;23243:39;;;;;;;;;;;;:16;:39::i;41617:107::-;795:6;;-1:-1:-1;;;;;795:6:0;176:10;942:23;934:68;;;;-1:-1:-1;;;934:68:0;;;;;;;:::i;:::-;41692:12:::1;:26;41707:11:::0;;41692:12;:26:::1;:::i;19699:144::-:0;19763:7;19806:27;19825:7;19806:18;:27::i;15576:224::-;15640:7;-1:-1:-1;;;;;15664:19:0;;15660:60;;15692:28;;-1:-1:-1;;;15692:28:0;;;;;;;;;;;15660:60;-1:-1:-1;;;;;;15738:25:0;;;;;:18;:25;;;;;;10915:13;15738:54;;15576:224::o;1373:103::-;795:6;;-1:-1:-1;;;;;795:6:0;176:10;942:23;934:68;;;;-1:-1:-1;;;934:68:0;;;;;;;:::i;:::-;1438:30:::1;1465:1;1438:18;:30::i;41730:68::-:0;795:6;;-1:-1:-1;;;;;795:6:0;176:10;942:23;934:68;;;;-1:-1:-1;;;934:68:0;;;;;;;:::i;:::-;41786:6:::1;::::0;;-1:-1:-1;;41776:16:0;::::1;41786:6;::::0;;::::1;41785:7;41776:16;::::0;;41730:68::o;20079:104::-;20135:13;20168:7;20161:14;;;;;:::i;40570:722::-;40636:6;;;;40635:7;40627:34;;;;-1:-1:-1;;;40627:34:0;;9075:2:1;40627:34:0;;;9057:21:1;9114:2;9094:18;;;9087:30;-1:-1:-1;;;9133:18:1;;;9126:44;9187:18;;40627:34:0;8873:338:1;40627:34:0;40670:20;40693:13;41499:1;14217:12;14004:7;14201:13;-1:-1:-1;;14201:28:0;;;:46;;13951:315;40693:13;40670:36;-1:-1:-1;40314:4:0;40723:24;40738:9;40670:36;40723:24;:::i;:::-;:46;40715:73;;;;-1:-1:-1;;;40715:73:0;;9683:2:1;40715:73:0;;;9665:21:1;9722:2;9702:18;;;9695:30;-1:-1:-1;;;9741:18:1;;;9734:44;9795:18;;40715:73:0;9481:338:1;40715:73:0;40371:1;40803:9;:40;40795:71;;;;-1:-1:-1;;;40795:71:0;;10026:2:1;40795:71:0;;;10008:21:1;10065:2;10045:18;;;10038:30;-1:-1:-1;;;10084:18:1;;;10077:48;10142:18;;40795:71:0;9824:342:1;40795:71:0;40954:10;40875:19;40937:28;;;:16;:28;;;;;;40897:9;;40994:1;40978:17;;40974:191;;;41022:1;41010:9;:13;41006:109;;;41050:13;41062:1;41050:9;:13;:::i;:::-;41036:27;;41006:109;;;41104:1;41090:15;;41006:109;41142:10;41125:28;;;;:16;:28;;;;;41156:1;41125:32;;40974:191;41194:30;40258:12;41194:11;:30;:::i;:::-;41181:9;:43;;41173:76;;;;-1:-1:-1;;;41173:76:0;;10676:2:1;41173:76:0;;;10658:21:1;10715:2;10695:18;;;10688:30;-1:-1:-1;;;10734:18:1;;;10727:50;10794:18;;41173:76:0;10474:344:1;41173:76:0;41258:28;41264:10;41276:9;41258:5;:28::i;:::-;40620:672;;;40570:722;:::o;22254:308::-;176:10;-1:-1:-1;;;;;22353:31:0;;;22349:61;;22393:17;;-1:-1:-1;;;22393:17:0;;;;;;;;;;;22349:61;176:10;22423:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;22423:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;22423:60:0;;;;;;;;;;22499:55;;540:41:1;;;22423:49:0;;176:10;22499:55;;513:18:1;22499:55:0;;;;;;;22254:308;;:::o;23361:396::-;23528:28;23538:4;23544:2;23548:7;23528:9;:28::i;:::-;-1:-1:-1;;;;;23571:14:0;;;:19;23567:183;;23610:56;23641:4;23647:2;23651:7;23660:5;23610:30;:56::i;:::-;23605:145;;23694:40;;-1:-1:-1;;;23694:40:0;;;;;;;;;;;20254:318;20327:13;20358:16;20366:7;20358;:16::i;:::-;20353:59;;20383:29;;-1:-1:-1;;;20383:29:0;;;;;;;;;;;20353:59;20425:21;20449:10;:8;:10::i;:::-;20425:34;;20483:7;20477:21;20502:1;20477:26;:87;;;;;;;;;;;;;;;;;20530:7;20539:18;20549:7;20539:9;:18::i;:::-;20513:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;20477:87;20470:94;20254:318;-1:-1:-1;;;20254:318:0:o;1631:201::-;795:6;;-1:-1:-1;;;;;795:6:0;176:10;942:23;934:68;;;;-1:-1:-1;;;934:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;1720:22:0;::::1;1712:73;;;::::0;-1:-1:-1;;;1712:73:0;;11500:2:1;1712:73:0::1;::::0;::::1;11482:21:1::0;11539:2;11519:18;;;11512:30;11578:34;11558:18;;;11551:62;-1:-1:-1;;;11629:18:1;;;11622:36;11675:19;;1712:73:0::1;11298:402:1::0;1712:73:0::1;1796:28;1815:8;1796:18;:28::i;:::-;1631:201:::0;:::o;27341:1656::-;27406:20;27429:13;-1:-1:-1;;;;;27457:16:0;;27453:48;;27482:19;;-1:-1:-1;;;27482:19:0;;;;;;;;;;;27453:48;27516:8;27528:1;27516:13;27512:44;;27538:18;;-1:-1:-1;;;27538:18:0;;;;;;;;;;;27512:44;-1:-1:-1;;;;;28105:22:0;;;;;;:18;:22;;;;11052:2;28105:22;;;:70;;28143:31;28131:44;;28105:70;;;28418:31;;;:17;:31;;;;;28511:15;11569:3;28511:41;28469:84;;-1:-1:-1;28589:13:0;;11832:3;28574:56;28469:162;28418:213;;:31;28712:23;;;28752:111;28779:40;;28804:14;;;;;-1:-1:-1;;;;;28779:40:0;;;28796:1;;28779:40;;28796:1;;28779:40;28858:3;28843:12;:18;28752:111;;-1:-1:-1;28879:13:0;:28;22864:170;;;:::o;24012:273::-;24069:4;24125:7;41499:1;24106:26;;:66;;;;;24159:13;;24149:7;:23;24106:66;:152;;;;-1:-1:-1;;24210:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;24210:43:0;:48;;24012:273::o;17214:1129::-;17281:7;17316;;41499:1;17365:23;17361:915;;17418:13;;17411:4;:20;17407:869;;;17456:14;17473:23;;;:17;:23;;;;;;;-1:-1:-1;;;17562:23:0;;:28;;17558:699;;18081:113;18088:6;18098:1;18088:11;18081:113;;-1:-1:-1;;;18159:6:0;18141:25;;;;:17;:25;;;;;;18081:113;;17558:699;17433:843;17407:869;18304:31;;-1:-1:-1;;;18304:31:0;;;;;;;;;;;29251:2515;29366:27;29396;29415:7;29396:18;:27::i;:::-;29366:57;;29481:4;-1:-1:-1;;;;;29440:45:0;29456:19;-1:-1:-1;;;;;29440:45:0;;29436:86;;29494:28;;-1:-1:-1;;;29494:28:0;;;;;;;;;;;29436:86;29535:22;176:10;-1:-1:-1;;;;;29561:27:0;;;;:87;;-1:-1:-1;29605:43:0;29622:4;176:10;22633:164;:::i;29605:43::-;29561:147;;;-1:-1:-1;176:10:0;29665:20;29677:7;29665:11;:20::i;:::-;-1:-1:-1;;;;;29665:43:0;;29561:147;29535:174;;29727:17;29722:66;;29753:35;;-1:-1:-1;;;29753:35:0;;;;;;;;;;;29722:66;-1:-1:-1;;;;;29803:16:0;;29799:52;;29828:23;;-1:-1:-1;;;29828:23:0;;;;;;;;;;;29799:52;29980:24;;;;:15;:24;;;;;;;;29973:31;;-1:-1:-1;;;;;;29973:31:0;;;-1:-1:-1;;;;;30372:24:0;;;;;:18;:24;;;;;30370:26;;-1:-1:-1;;30370:26:0;;;30441:22;;;;;;;30439:24;;-1:-1:-1;30439:24:0;;;30734:26;;;:17;:26;;;;;-1:-1:-1;;;30822:15:0;11569:3;30822:41;30780:84;;:128;;30734:174;;;31028:46;;:51;;31024:626;;31132:1;31122:11;;31100:19;31255:30;;;:17;:30;;;;;;:35;;31251:384;;31393:13;;31378:11;:28;31374:242;;31540:30;;;;:17;:30;;;;;:52;;;31374:242;31081:569;31024:626;31697:7;31693:2;-1:-1:-1;;;;;31678:27:0;31687:4;-1:-1:-1;;;;;31678:27:0;;;;;;;;;;;31716:42;29355:2411;;29251:2515;;;:::o;1992:191::-;2085:6;;;-1:-1:-1;;;;;2102:17:0;;;-1:-1:-1;;;;;;2102:17:0;;;;;;;2135:40;;2085:6;;;2102:17;2085:6;;2135:40;;2066:16;;2135:40;2055:128;1992:191;:::o;35463:716::-;35647:88;;-1:-1:-1;;;35647:88:0;;35626:4;;-1:-1:-1;;;;;35647:45:0;;;;;:88;;176:10;;35714:4;;35720:7;;35729:5;;35647:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35647:88:0;;;;;;;;-1:-1:-1;;35647:88:0;;;;;;;;;;;;:::i;:::-;;;35643:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35930:6;:13;35947:1;35930:18;35926:235;;35976:40;;-1:-1:-1;;;35976:40:0;;;;;;;;;;;35926:235;36119:6;36113:13;36104:6;36100:2;36096:15;36089:38;35643:529;-1:-1:-1;;;;;;35806:64:0;-1:-1:-1;;;35806:64:0;;-1:-1:-1;35463:716:0;;;;;;:::o;41512:99::-;41564:13;41593:12;41586:19;;;;;:::i;38205:1959::-;38676:4;38670:11;;38683:3;38666:21;;38761:17;;;;39458:11;;;39337:5;39590:2;39604;39594:13;;39586:22;39458:11;39573:36;39645:2;39635:13;;39228:682;39664:4;39228:682;;;39839:1;39834:3;39830:11;39823:18;;39890:2;39884:4;39880:13;39876:2;39872:22;39867:3;39859:36;39760:2;39750:13;;39228:682;;;-1:-1:-1;39952:13:0;;;-1:-1:-1;;40067:12:0;;;40127:19;;;40067:12;38205:1959;-1:-1:-1;38205:1959:0:o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2355:328::-;2432:6;2440;2448;2501:2;2489:9;2480:7;2476:23;2472:32;2469:52;;;2517:1;2514;2507:12;2469:52;2540:29;2559:9;2540:29;:::i;:::-;2530:39;;2588:38;2622:2;2611:9;2607:18;2588:38;:::i;:::-;2578:48;;2673:2;2662:9;2658:18;2645:32;2635:42;;2355:328;;;;;:::o;2688:592::-;2759:6;2767;2820:2;2808:9;2799:7;2795:23;2791:32;2788:52;;;2836:1;2833;2826:12;2788:52;2876:9;2863:23;2905:18;2946:2;2938:6;2935:14;2932:34;;;2962:1;2959;2952:12;2932:34;3000:6;2989:9;2985:22;2975:32;;3045:7;3038:4;3034:2;3030:13;3026:27;3016:55;;3067:1;3064;3057:12;3016:55;3107:2;3094:16;3133:2;3125:6;3122:14;3119:34;;;3149:1;3146;3139:12;3119:34;3194:7;3189:2;3180:6;3176:2;3172:15;3168:24;3165:37;3162:57;;;3215:1;3212;3205:12;3162:57;3246:2;3238:11;;;;;3268:6;;-1:-1:-1;2688:592:1;;-1:-1:-1;;;;2688:592:1:o;3285:186::-;3344:6;3397:2;3385:9;3376:7;3372:23;3368:32;3365:52;;;3413:1;3410;3403:12;3365:52;3436:29;3455:9;3436:29;:::i;3476:347::-;3541:6;3549;3602:2;3590:9;3581:7;3577:23;3573:32;3570:52;;;3618:1;3615;3608:12;3570:52;3641:29;3660:9;3641:29;:::i;:::-;3631:39;;3720:2;3709:9;3705:18;3692:32;3767:5;3760:13;3753:21;3746:5;3743:32;3733:60;;3789:1;3786;3779:12;3733:60;3812:5;3802:15;;;3476:347;;;;;:::o;3828:127::-;3889:10;3884:3;3880:20;3877:1;3870:31;3920:4;3917:1;3910:15;3944:4;3941:1;3934:15;3960:1138;4055:6;4063;4071;4079;4132:3;4120:9;4111:7;4107:23;4103:33;4100:53;;;4149:1;4146;4139:12;4100:53;4172:29;4191:9;4172:29;:::i;:::-;4162:39;;4220:38;4254:2;4243:9;4239:18;4220:38;:::i;:::-;4210:48;;4305:2;4294:9;4290:18;4277:32;4267:42;;4360:2;4349:9;4345:18;4332:32;4383:18;4424:2;4416:6;4413:14;4410:34;;;4440:1;4437;4430:12;4410:34;4478:6;4467:9;4463:22;4453:32;;4523:7;4516:4;4512:2;4508:13;4504:27;4494:55;;4545:1;4542;4535:12;4494:55;4581:2;4568:16;4603:2;4599;4596:10;4593:36;;;4609:18;;:::i;:::-;4684:2;4678:9;4652:2;4738:13;;-1:-1:-1;;4734:22:1;;;4758:2;4730:31;4726:40;4714:53;;;4782:18;;;4802:22;;;4779:46;4776:72;;;4828:18;;:::i;:::-;4868:10;4864:2;4857:22;4903:2;4895:6;4888:18;4943:7;4938:2;4933;4929;4925:11;4921:20;4918:33;4915:53;;;4964:1;4961;4954:12;4915:53;5020:2;5015;5011;5007:11;5002:2;4994:6;4990:15;4977:46;5065:1;5060:2;5055;5047:6;5043:15;5039:24;5032:35;5086:6;5076:16;;;;;;;3960:1138;;;;;;;:::o;5103:260::-;5171:6;5179;5232:2;5220:9;5211:7;5207:23;5203:32;5200:52;;;5248:1;5245;5238:12;5200:52;5271:29;5290:9;5271:29;:::i;:::-;5261:39;;5319:38;5353:2;5342:9;5338:18;5319:38;:::i;:::-;5309:48;;5103:260;;;;;:::o;5368:356::-;5570:2;5552:21;;;5589:18;;;5582:30;5648:34;5643:2;5628:18;;5621:62;5715:2;5700:18;;5368:356::o;6080:380::-;6159:1;6155:12;;;;6202;;;6223:61;;6277:4;6269:6;6265:17;6255:27;;6223:61;6330:2;6322:6;6319:14;6299:18;6296:38;6293:161;;6376:10;6371:3;6367:20;6364:1;6357:31;6411:4;6408:1;6401:15;6439:4;6436:1;6429:15;6293:161;;6080:380;;;:::o;6941:545::-;7043:2;7038:3;7035:11;7032:448;;;7079:1;7104:5;7100:2;7093:17;7149:4;7145:2;7135:19;7219:2;7207:10;7203:19;7200:1;7196:27;7190:4;7186:38;7255:4;7243:10;7240:20;7237:47;;;-1:-1:-1;7278:4:1;7237:47;7333:2;7328:3;7324:12;7321:1;7317:20;7311:4;7307:31;7297:41;;7388:82;7406:2;7399:5;7396:13;7388:82;;;7451:17;;;7432:1;7421:13;7388:82;;;7392:3;;;6941:545;;;:::o;7662:1206::-;7786:18;7781:3;7778:27;7775:53;;;7808:18;;:::i;:::-;7837:94;7927:3;7887:38;7919:4;7913:11;7887:38;:::i;:::-;7881:4;7837:94;:::i;:::-;7957:1;7982:2;7977:3;7974:11;7999:1;7994:616;;;;8654:1;8671:3;8668:93;;;-1:-1:-1;8727:19:1;;;8714:33;8668:93;-1:-1:-1;;7619:1:1;7615:11;;;7611:24;7607:29;7597:40;7643:1;7639:11;;;7594:57;8774:78;;7967:895;;7994:616;6888:1;6881:14;;;6925:4;6912:18;;-1:-1:-1;;8030:17:1;;;8131:9;8153:229;8167:7;8164:1;8161:14;8153:229;;;8256:19;;;8243:33;8228:49;;8363:4;8348:20;;;;8316:1;8304:14;;;;8183:12;8153:229;;;8157:3;8410;8401:7;8398:16;8395:159;;;8534:1;8530:6;8524:3;8518;8515:1;8511:11;8507:21;8503:34;8499:39;8486:9;8481:3;8477:19;8464:33;8460:79;8452:6;8445:95;8395:159;;;8597:1;8591:3;8588:1;8584:11;8580:19;8574:4;8567:33;7967:895;;7662:1206;;;:::o;9216:127::-;9277:10;9272:3;9268:20;9265:1;9258:31;9308:4;9305:1;9298:15;9332:4;9329:1;9322:15;9348:128;9388:3;9419:1;9415:6;9412:1;9409:13;9406:39;;;9425:18;;:::i;:::-;-1:-1:-1;9461:9:1;;9348:128::o;10171:125::-;10211:4;10239:1;10236;10233:8;10230:34;;;10244:18;;:::i;:::-;-1:-1:-1;10281:9:1;;10171:125::o;10301:168::-;10341:7;10407:1;10403;10399:6;10395:14;10392:1;10389:21;10384:1;10377:9;10370:17;10366:45;10363:71;;;10414:18;;:::i;:::-;-1:-1:-1;10454:9:1;;10301:168::o;10823:470::-;11002:3;11040:6;11034:13;11056:53;11102:6;11097:3;11090:4;11082:6;11078:17;11056:53;:::i;:::-;11172:13;;11131:16;;;;11194:57;11172:13;11131:16;11228:4;11216:17;;11194:57;:::i;:::-;11267:20;;10823:470;-1:-1:-1;;;;10823:470:1:o;11705:489::-;-1:-1:-1;;;;;11974:15:1;;;11956:34;;12026:15;;12021:2;12006:18;;11999:43;12073:2;12058:18;;12051:34;;;12121:3;12116:2;12101:18;;12094:31;;;11899:4;;12142:46;;12168:19;;12160:6;12142:46;:::i;:::-;12134:54;11705:489;-1:-1:-1;;;;;;11705:489:1:o;12199:249::-;12268:6;12321:2;12309:9;12300:7;12296:23;12292:32;12289:52;;;12337:1;12334;12327:12;12289:52;12369:9;12363:16;12388:30;12412:5;12388:30;:::i
Swarm Source
ipfs://ad6200917f5ee9964415c15e0149989b66ed083b0901f0ea3e0245e977f7316a
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.