ERC-721
Overview
Max Total Supply
384 GPUNKZ
Holders
339
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 GPUNKZLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GPunkz
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-10-16 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.17; /** * @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(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * 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; /** * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @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; /** * @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); // ============================================================= // 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); } contract GPunkz is IERC721A { address private _owner; modifier onlyOwner() { require(_owner==msg.sender); _; } uint256 public MAX_SUPPLY = 666; uint256 public MAX_FREE_PER_WALLET = 1; uint256 public MAX_FREE = 333; uint256 public COST = 0.001 ether; string private constant _name = "GPunkz"; string private constant _symbol = "GPUNKZ"; string private constant _baseURI = "Qma1Yi73M5RaxQSBTwgaVx5Fczy4wdMg2EBxhvZYDjG1Wm"; string private constant _contractURI = "Qma3gjFL53ovnLVVHGjwmajQjrboRGGxezEvGUJQX7aUnb"; constructor() { _owner = msg.sender; _mint(msg.sender, 3); } function mint(uint256 amount) external payable{ address _caller = _msgSenderERC721A(); require(totalSupply() + amount <= MAX_SUPPLY, "SoldOut"); require(amount*COST <= msg.value, "Value to Low"); _mint(_caller, amount); } function freeMint() external{ address _caller = _msgSenderERC721A(); uint256 amount = MAX_FREE_PER_WALLET; require(totalSupply() + amount <= MAX_FREE, "Freemint SoldOut"); require(amount + _numberMinted(_caller) <= MAX_FREE_PER_WALLET, "AccLimit"); _mint(_caller, amount); } // 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 = 0; // The number of tokens burned. // uint256 private _burnCounter; // 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; /* function setData(string memory _contract, string memory _base) external onlyOwner{ _contractURI = _contract; _baseURI = _base; } */ function setData(uint256 _MAX_SUPPLY, uint256 _MAX_FREE, uint256 _COST) external onlyOwner{ MAX_SUPPLY = _MAX_SUPPLY; MAX_FREE = _MAX_FREE; COST = _COST; } /** * @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 - _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 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 (_addressToUint256(owner) == 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 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; } 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("ipfs://", baseURI, "/", _toString(tokenId), ".json")) : ""; } function contractURI() public view returns (string memory) { return string(abi.encodePacked("ipfs://", _contractURI)); } /** * @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(); 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); } /** * @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; } /** * @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 (_addressToUint256(to) == 0) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); // 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); } 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 (_addressToUint256(to) == 0) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); // 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(); address approvedAddress = _tokenApprovals[tokenId]; bool isApprovedOrOwner = (_msgSenderERC721A() == from || isApprovedForAll(from, _msgSenderERC721A()) || approvedAddress == _msgSenderERC721A()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); //X if (_addressToUint256(to) == 0) revert TransferToZeroAddress(); // Clear approvals from the previous owner. if (_addressToUint256(approvedAddress) != 0) { 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 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) } } function withdraw() external onlyOwner { uint256 balance = address(this).balance; payable(msg.sender).transfer(balance); } }
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":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","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":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FREE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FREE_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_MAX_SUPPLY","type":"uint256"},{"internalType":"uint256","name":"_MAX_FREE","type":"uint256"},{"internalType":"uint256","name":"_COST","type":"uint256"}],"name":"setData","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405261029a600155600160025561014d60035566038d7ea4c68000600455600060055534801561003157600080fd5b50600080546001600160a01b03191633908117909155610052906003610057565b610132565b6005548260000361007a57604051622e076360e81b815260040160405180910390fd5b8160000361009b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526007602090815260408083208054680100000000000000018702019055838352600690915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106100e65750600555505050565b6110e1806101416000396000f3fe6080604052600436106101405760003560e01c80636352211e116100b6578063b88d4fde1161006f578063b88d4fde14610383578063bf8fbbd2146103a3578063c87b56dd146103b9578063e8a3d485146103d9578063e985e9c5146103ee578063ed6661c21461040e57600080fd5b80636352211e146102cb57806370a08231146102eb57806395d89b411461030b57806398710d1e1461033a578063a0712d6814610350578063a22cb4651461036357600080fd5b806323b872dd1161010857806323b872dd1461022b5780632909f6381461024b57806332cb6b0c1461026b5780633ccfd60b1461028157806342842e0e146102965780635b70ea9f146102b657600080fd5b806301ffc9a71461014557806306fdde031461017a578063081812fc146101b2578063095ea7b3146101ea57806318160ddd1461020c575b600080fd5b34801561015157600080fd5b50610165610160366004610cbb565b610424565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5060408051808201909152600681526523a83ab735bd60d11b60208201525b6040516101719190610d09565b3480156101be57600080fd5b506101d26101cd366004610d3c565b610476565b6040516001600160a01b039091168152602001610171565b3480156101f657600080fd5b5061020a610205366004610d71565b6104bc565b005b34801561021857600080fd5b506005545b604051908152602001610171565b34801561023757600080fd5b5061020a610246366004610d9b565b61057a565b34801561025757600080fd5b5061020a610266366004610dd7565b61058a565b34801561027757600080fd5b5061021d60015481565b34801561028d57600080fd5b5061020a6105af565b3480156102a257600080fd5b5061020a6102b1366004610d9b565b6105f9565b3480156102c257600080fd5b5061020a610614565b3480156102d757600080fd5b506101d26102e6366004610d3c565b6106ed565b3480156102f757600080fd5b5061021d610306366004610e03565b6106f8565b34801561031757600080fd5b5060408051808201909152600681526523a82aa725ad60d11b60208201526101a5565b34801561034657600080fd5b5061021d60025481565b61020a61035e366004610d3c565b610741565b34801561036f57600080fd5b5061020a61037e366004610e1e565b6107e8565b34801561038f57600080fd5b5061020a61039e366004610e70565b61087d565b3480156103af57600080fd5b5061021d60045481565b3480156103c557600080fd5b506101a56103d4366004610d3c565b61088e565b3480156103e557600080fd5b506101a5610925565b3480156103fa57600080fd5b50610165610409366004610f4c565b610964565b34801561041a57600080fd5b5061021d60035481565b60006301ffc9a760e01b6001600160e01b03198316148061045557506380ac58cd60e01b6001600160e01b03198316145b806104705750635b5e139f60e01b6001600160e01b03198316145b92915050565b6000610483826005541190565b6104a0576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b60006104c782610992565b9050806001600160a01b0316836001600160a01b0316036104e757600080fd5b336001600160a01b0382161461051e576105018133610964565b61051e576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6105858383836109f9565b505050565b6000546001600160a01b031633146105a157600080fd5b600192909255600355600455565b6000546001600160a01b031633146105c657600080fd5b6040514790339082156108fc029083906000818181858888f193505050501580156105f5573d6000803e3d6000fd5b5050565b6105858383836040518060200160405280600081525061087d565b6002546003543391908161062760055490565b6106319190610f95565b11156106775760405162461bcd60e51b815260206004820152601060248201526f119c99595b5a5b9d0814dbdb1913dd5d60821b60448201526064015b60405180910390fd5b6002546001600160a01b03831660009081526007602052604090819020546106aa911c67ffffffffffffffff1683610f95565b11156106e35760405162461bcd60e51b81526020600482015260086024820152671058d8d31a5b5a5d60c21b604482015260640161066e565b6105f58282610b91565b600061047082610992565b60008160000361071b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b60015433908261075060055490565b61075a9190610f95565b11156107925760405162461bcd60e51b815260206004820152600760248201526614dbdb1913dd5d60ca1b604482015260640161066e565b34600454836107a19190610fa8565b11156107de5760405162461bcd60e51b815260206004820152600c60248201526b56616c756520746f204c6f7760a01b604482015260640161066e565b6105f58183610b91565b336001600160a01b038316036108115760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6108888484846109f9565b50505050565b606061089b826005541190565b6108b857604051630a14c4b560e41b815260040160405180910390fd5b60006040518060600160405280602e815260200161107e602e9139905080516000036108f3576040518060200160405280600081525061091e565b806108fd84610c6c565b60405160200161090e929190610fbf565b6040516020818303038152906040525b9392505050565b60606040518060600160405280602e8152602001611050602e91396040516020016109509190611020565b604051602081830303815290604052905090565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6000816005548110156109e05760008181526006602052604081205490600160e01b821690036109de575b8060000361091e5750600019016000818152600660205260409020546109bd565b505b604051636f96cda160e11b815260040160405180910390fd5b6000610a0482610992565b9050836001600160a01b0316816001600160a01b031614610a375760405162a1148160e81b815260040160405180910390fd5b6000828152600860205260408120546001600160a01b0390811691908616331480610a675750610a678633610964565b80610a7a57506001600160a01b03821633145b905080610a9a57604051632ce44b5f60e11b815260040160405180910390fd5b8115610abd57600084815260086020526040902080546001600160a01b03191690555b6001600160a01b038681166000908152600760209081526040808320805460001901905592881682528282208054600101905586825260069052908120600160e11b4260a01b8817811790915584169003610b4857600184016000818152600660205260408120549003610b46576005548114610b465760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60055482600003610bb457604051622e076360e81b815260040160405180910390fd5b81600003610bd55760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526007602090815260408083208054680100000000000000018702019055838352600690915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210610c205750600555505050565b604080516080810191829052607f0190826030600a8206018353600a90045b8015610ca957600183039250600a81066030018353600a9004610c8b565b50819003601f19909101908152919050565b600060208284031215610ccd57600080fd5b81356001600160e01b03198116811461091e57600080fd5b60005b83811015610d00578181015183820152602001610ce8565b50506000910152565b6020815260008251806020840152610d28816040850160208701610ce5565b601f01601f19169190910160400192915050565b600060208284031215610d4e57600080fd5b5035919050565b80356001600160a01b0381168114610d6c57600080fd5b919050565b60008060408385031215610d8457600080fd5b610d8d83610d55565b946020939093013593505050565b600080600060608486031215610db057600080fd5b610db984610d55565b9250610dc760208501610d55565b9150604084013590509250925092565b600080600060608486031215610dec57600080fd5b505081359360208301359350604090920135919050565b600060208284031215610e1557600080fd5b61091e82610d55565b60008060408385031215610e3157600080fd5b610e3a83610d55565b915060208301358015158114610e4f57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215610e8657600080fd5b610e8f85610d55565b9350610e9d60208601610d55565b925060408501359150606085013567ffffffffffffffff80821115610ec157600080fd5b818701915087601f830112610ed557600080fd5b813581811115610ee757610ee7610e5a565b604051601f8201601f19908116603f01168101908382118183101715610f0f57610f0f610e5a565b816040528281528a6020848701011115610f2857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215610f5f57600080fd5b610f6883610d55565b9150610f7660208401610d55565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561047057610470610f7f565b808202811582820484141761047057610470610f7f565b66697066733a2f2f60c81b815260008351610fe1816007850160208801610ce5565b602f60f81b6007918401918201528351611002816008840160208801610ce5565b64173539b7b760d91b60089290910191820152600d01949350505050565b66697066733a2f2f60c81b815260008251611042816007850160208701610ce5565b919091016007019291505056fe516d6133676a464c35336f766e4c565648476a776d616a516a72626f52474778657a457647554a51583761556e62516d6131596937334d355261785153425477676156783546637a793477644d673245427868765a59446a4731576da2646970667358221220ec753d2ce044dd17055506ab16815e729155758beb5bcc3e767f16899dd673c964736f6c63430008110033
Deployed Bytecode
0x6080604052600436106101405760003560e01c80636352211e116100b6578063b88d4fde1161006f578063b88d4fde14610383578063bf8fbbd2146103a3578063c87b56dd146103b9578063e8a3d485146103d9578063e985e9c5146103ee578063ed6661c21461040e57600080fd5b80636352211e146102cb57806370a08231146102eb57806395d89b411461030b57806398710d1e1461033a578063a0712d6814610350578063a22cb4651461036357600080fd5b806323b872dd1161010857806323b872dd1461022b5780632909f6381461024b57806332cb6b0c1461026b5780633ccfd60b1461028157806342842e0e146102965780635b70ea9f146102b657600080fd5b806301ffc9a71461014557806306fdde031461017a578063081812fc146101b2578063095ea7b3146101ea57806318160ddd1461020c575b600080fd5b34801561015157600080fd5b50610165610160366004610cbb565b610424565b60405190151581526020015b60405180910390f35b34801561018657600080fd5b5060408051808201909152600681526523a83ab735bd60d11b60208201525b6040516101719190610d09565b3480156101be57600080fd5b506101d26101cd366004610d3c565b610476565b6040516001600160a01b039091168152602001610171565b3480156101f657600080fd5b5061020a610205366004610d71565b6104bc565b005b34801561021857600080fd5b506005545b604051908152602001610171565b34801561023757600080fd5b5061020a610246366004610d9b565b61057a565b34801561025757600080fd5b5061020a610266366004610dd7565b61058a565b34801561027757600080fd5b5061021d60015481565b34801561028d57600080fd5b5061020a6105af565b3480156102a257600080fd5b5061020a6102b1366004610d9b565b6105f9565b3480156102c257600080fd5b5061020a610614565b3480156102d757600080fd5b506101d26102e6366004610d3c565b6106ed565b3480156102f757600080fd5b5061021d610306366004610e03565b6106f8565b34801561031757600080fd5b5060408051808201909152600681526523a82aa725ad60d11b60208201526101a5565b34801561034657600080fd5b5061021d60025481565b61020a61035e366004610d3c565b610741565b34801561036f57600080fd5b5061020a61037e366004610e1e565b6107e8565b34801561038f57600080fd5b5061020a61039e366004610e70565b61087d565b3480156103af57600080fd5b5061021d60045481565b3480156103c557600080fd5b506101a56103d4366004610d3c565b61088e565b3480156103e557600080fd5b506101a5610925565b3480156103fa57600080fd5b50610165610409366004610f4c565b610964565b34801561041a57600080fd5b5061021d60035481565b60006301ffc9a760e01b6001600160e01b03198316148061045557506380ac58cd60e01b6001600160e01b03198316145b806104705750635b5e139f60e01b6001600160e01b03198316145b92915050565b6000610483826005541190565b6104a0576040516333d1c03960e21b815260040160405180910390fd5b506000908152600860205260409020546001600160a01b031690565b60006104c782610992565b9050806001600160a01b0316836001600160a01b0316036104e757600080fd5b336001600160a01b0382161461051e576105018133610964565b61051e576040516367d9dca160e11b815260040160405180910390fd5b60008281526008602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6105858383836109f9565b505050565b6000546001600160a01b031633146105a157600080fd5b600192909255600355600455565b6000546001600160a01b031633146105c657600080fd5b6040514790339082156108fc029083906000818181858888f193505050501580156105f5573d6000803e3d6000fd5b5050565b6105858383836040518060200160405280600081525061087d565b6002546003543391908161062760055490565b6106319190610f95565b11156106775760405162461bcd60e51b815260206004820152601060248201526f119c99595b5a5b9d0814dbdb1913dd5d60821b60448201526064015b60405180910390fd5b6002546001600160a01b03831660009081526007602052604090819020546106aa911c67ffffffffffffffff1683610f95565b11156106e35760405162461bcd60e51b81526020600482015260086024820152671058d8d31a5b5a5d60c21b604482015260640161066e565b6105f58282610b91565b600061047082610992565b60008160000361071b576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526007602052604090205467ffffffffffffffff1690565b60015433908261075060055490565b61075a9190610f95565b11156107925760405162461bcd60e51b815260206004820152600760248201526614dbdb1913dd5d60ca1b604482015260640161066e565b34600454836107a19190610fa8565b11156107de5760405162461bcd60e51b815260206004820152600c60248201526b56616c756520746f204c6f7760a01b604482015260640161066e565b6105f58183610b91565b336001600160a01b038316036108115760405163b06307db60e01b815260040160405180910390fd5b3360008181526009602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6108888484846109f9565b50505050565b606061089b826005541190565b6108b857604051630a14c4b560e41b815260040160405180910390fd5b60006040518060600160405280602e815260200161107e602e9139905080516000036108f3576040518060200160405280600081525061091e565b806108fd84610c6c565b60405160200161090e929190610fbf565b6040516020818303038152906040525b9392505050565b60606040518060600160405280602e8152602001611050602e91396040516020016109509190611020565b604051602081830303815290604052905090565b6001600160a01b03918216600090815260096020908152604080832093909416825291909152205460ff1690565b6000816005548110156109e05760008181526006602052604081205490600160e01b821690036109de575b8060000361091e5750600019016000818152600660205260409020546109bd565b505b604051636f96cda160e11b815260040160405180910390fd5b6000610a0482610992565b9050836001600160a01b0316816001600160a01b031614610a375760405162a1148160e81b815260040160405180910390fd5b6000828152600860205260408120546001600160a01b0390811691908616331480610a675750610a678633610964565b80610a7a57506001600160a01b03821633145b905080610a9a57604051632ce44b5f60e11b815260040160405180910390fd5b8115610abd57600084815260086020526040902080546001600160a01b03191690555b6001600160a01b038681166000908152600760209081526040808320805460001901905592881682528282208054600101905586825260069052908120600160e11b4260a01b8817811790915584169003610b4857600184016000818152600660205260408120549003610b46576005548114610b465760008181526006602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b60055482600003610bb457604051622e076360e81b815260040160405180910390fd5b81600003610bd55760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660009081526007602090815260408083208054680100000000000000018702019055838352600690915290204260a01b84176001841460e11b179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210610c205750600555505050565b604080516080810191829052607f0190826030600a8206018353600a90045b8015610ca957600183039250600a81066030018353600a9004610c8b565b50819003601f19909101908152919050565b600060208284031215610ccd57600080fd5b81356001600160e01b03198116811461091e57600080fd5b60005b83811015610d00578181015183820152602001610ce8565b50506000910152565b6020815260008251806020840152610d28816040850160208701610ce5565b601f01601f19169190910160400192915050565b600060208284031215610d4e57600080fd5b5035919050565b80356001600160a01b0381168114610d6c57600080fd5b919050565b60008060408385031215610d8457600080fd5b610d8d83610d55565b946020939093013593505050565b600080600060608486031215610db057600080fd5b610db984610d55565b9250610dc760208501610d55565b9150604084013590509250925092565b600080600060608486031215610dec57600080fd5b505081359360208301359350604090920135919050565b600060208284031215610e1557600080fd5b61091e82610d55565b60008060408385031215610e3157600080fd5b610e3a83610d55565b915060208301358015158114610e4f57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215610e8657600080fd5b610e8f85610d55565b9350610e9d60208601610d55565b925060408501359150606085013567ffffffffffffffff80821115610ec157600080fd5b818701915087601f830112610ed557600080fd5b813581811115610ee757610ee7610e5a565b604051601f8201601f19908116603f01168101908382118183101715610f0f57610f0f610e5a565b816040528281528a6020848701011115610f2857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215610f5f57600080fd5b610f6883610d55565b9150610f7660208401610d55565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561047057610470610f7f565b808202811582820484141761047057610470610f7f565b66697066733a2f2f60c81b815260008351610fe1816007850160208801610ce5565b602f60f81b6007918401918201528351611002816008840160208801610ce5565b64173539b7b760d91b60089290910191820152600d01949350505050565b66697066733a2f2f60c81b815260008251611042816007850160208701610ce5565b919091016007019291505056fe516d6133676a464c35336f766e4c565648476a776d616a516a72626f52474778657a457647554a51583761556e62516d6131596937334d355261785153425477676156783546637a793477644d673245427868765a59446a4731576da2646970667358221220ec753d2ce044dd17055506ab16815e729155758beb5bcc3e767f16899dd673c964736f6c63430008110033
Deployed Bytecode Sourcemap
9024:24564:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14327:615;;;;;;;;;;-1:-1:-1;14327:615:0;;;;;:::i;:::-;;:::i;:::-;;;470:14:1;;463:22;445:41;;433:2;418:18;14327:615:0;;;;;;;;19080:100;;;;;;;;;;-1:-1:-1;19167:5:0;;;;;;;;;;;;-1:-1:-1;;;19167:5:0;;;;19080:100;;;;;;;:::i;20892:204::-;;;;;;;;;;-1:-1:-1;20892:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1502:32:1;;;1484:51;;1472:2;1457:18;20892:204:0;1338:203:1;20375:451:0;;;;;;;;;;-1:-1:-1;20375:451:0;;;;;:::i;:::-;;:::i;:::-;;13570:300;;;;;;;;;;-1:-1:-1;13820:13:0;;13570:300;;;2129:25:1;;;2117:2;2102:18;13570:300:0;1983:177:1;21778:190:0;;;;;;;;;;-1:-1:-1;21778:190:0;;;;;:::i;:::-;;:::i;12763:187::-;;;;;;;;;;-1:-1:-1;12763:187:0;;;;;:::i;:::-;;:::i;9186:31::-;;;;;;;;;;;;;;;;33440:145;;;;;;;;;;;;;:::i;22039:205::-;;;;;;;;;;-1:-1:-1;22039:205:0;;;;;:::i;:::-;;:::i;9996:328::-;;;;;;;;;;;;;:::i;18869:144::-;;;;;;;;;;-1:-1:-1;18869:144:0;;;;;:::i;:::-;;:::i;15006:234::-;;;;;;;;;;-1:-1:-1;15006:234:0;;;;;:::i;:::-;;:::i;19249:104::-;;;;;;;;;;-1:-1:-1;19338:7:0;;;;;;;;;;;;-1:-1:-1;;;19338:7:0;;;;19249:104;;9224:38;;;;;;;;;;;;;;;;9722:266;;;;;;:::i;:::-;;:::i;21168:308::-;;;;;;;;;;-1:-1:-1;21168:308:0;;;;;:::i;:::-;;:::i;22315:227::-;;;;;;;;;;-1:-1:-1;22315:227:0;;;;;:::i;:::-;;:::i;9305:33::-;;;;;;;;;;;;;;;;19367:339;;;;;;;;;;-1:-1:-1;19367:339:0;;;;;:::i;:::-;;:::i;19714:134::-;;;;;;;;;;;;;:::i;21547:164::-;;;;;;;;;;-1:-1:-1;21547:164:0;;;;;:::i;:::-;;:::i;9269:29::-;;;;;;;;;;;;;;;;14327:615;14412:4;-1:-1:-1;;;;;;;;;14712:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;14789:25:0;;;14712:102;:179;;;-1:-1:-1;;;;;;;;;;14866:25:0;;;14712:179;14692:199;14327:615;-1:-1:-1;;14327:615:0:o;20892:204::-;20960:7;20985:16;20993:7;22944:13;;-1:-1:-1;22934:23:0;22797:168;20985:16;20980:64;;21010:34;;-1:-1:-1;;;21010:34:0;;;;;;;;;;;20980:64;-1:-1:-1;21064:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;21064:24:0;;20892:204::o;20375:451::-;20448:13;20480:27;20499:7;20480:18;:27::i;:::-;20448:61;;20530:5;-1:-1:-1;;;;;20524:11:0;:2;-1:-1:-1;;;;;20524:11:0;;20520:25;;20537:8;;;20520:25;31426:10;-1:-1:-1;;;;;20562:28:0;;;20558:175;;20610:44;20627:5;31426:10;21547:164;:::i;20610:44::-;20605:128;;20682:35;;-1:-1:-1;;;20682:35:0;;;;;;;;;;;20605:128;20745:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;20745:29:0;-1:-1:-1;;;;;20745:29:0;;;;;;;;;20790:28;;20745:24;;20790:28;;;;;;;20437:389;20375:451;;:::o;21778:190::-;21932:28;21942:4;21948:2;21952:7;21932:9;:28::i;:::-;21778:190;;;:::o;12763:187::-;9138:6;;-1:-1:-1;;;;;9138:6:0;9146:10;9138:18;9130:27;;;;;;12864:10:::1;:24:::0;;;;12899:8:::1;:20:::0;12930:4:::1;:12:::0;12763:187::o;33440:145::-;9138:6;;-1:-1:-1;;;;;9138:6:0;9146:10;9138:18;9130:27;;;;;;33540:37:::1;::::0;33508:21:::1;::::0;33548:10:::1;::::0;33540:37;::::1;;;::::0;33508:21;;33490:15:::1;33540:37:::0;33490:15;33540:37;33508:21;33548:10;33540:37;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;33479:106;33440:145::o:0;22039:205::-;22197:39;22214:4;22220:2;22224:7;22197:39;;;;;;;;;;;;:16;:39::i;9996:328::-;10100:19;;10166:8;;31426:10;;10100:19;;10140:13;13820;;;13570:300;10140:13;:22;;;;:::i;:::-;:34;;10132:63;;;;-1:-1:-1;;;10132:63:0;;5366:2:1;10132:63:0;;;5348:21:1;5405:2;5385:18;;;5378:30;-1:-1:-1;;;5424:18:1;;;5417:46;5480:18;;10132:63:0;;;;;;;;;10249:19;;-1:-1:-1;;;;;15411:25:0;;15383:7;15411:25;;;:18;:25;;10572:2;15411:25;;;;;10214:31;;15411:49;10435:13;15410:80;10214:6;:31;:::i;:::-;:54;;10206:75;;;;-1:-1:-1;;;10206:75:0;;5711:2:1;10206:75:0;;;5693:21:1;5750:1;5730:18;;;5723:29;-1:-1:-1;;;5768:18:1;;;5761:38;5816:18;;10206:75:0;5509:331:1;10206:75:0;10294:22;10300:7;10309:6;10294:5;:22::i;18869:144::-;18933:7;18976:27;18995:7;18976:18;:27::i;15006:234::-;15070:7;15112:5;15122:1;15094:29;15090:70;;15132:28;;-1:-1:-1;;;15132:28:0;;;;;;;;;;;15090:70;-1:-1:-1;;;;;;15178:25:0;;;;;:18;:25;;;;;;10435:13;15178:54;;15006:234::o;9722:266::-;9863:10;;31426;;9853:6;9837:13;13820;;;13570:300;9837:13;:22;;;;:::i;:::-;:36;;9829:56;;;;-1:-1:-1;;;9829:56:0;;6047:2:1;9829:56:0;;;6029:21:1;6086:1;6066:18;;;6059:29;-1:-1:-1;;;6104:18:1;;;6097:37;6151:18;;9829:56:0;5845:330:1;9829:56:0;9919:9;9911:4;;9904:6;:11;;;;:::i;:::-;:24;;9896:49;;;;-1:-1:-1;;;9896:49:0;;6555:2:1;9896:49:0;;;6537:21:1;6594:2;6574:18;;;6567:30;-1:-1:-1;;;6613:18:1;;;6606:42;6665:18;;9896:49:0;6353:336:1;9896:49:0;9958:22;9964:7;9973:6;9958:5;:22::i;21168:308::-;31426:10;-1:-1:-1;;;;;21267:31:0;;;21263:61;;21307:17;;-1:-1:-1;;;21307:17:0;;;;;;;;;;;21263:61;31426:10;21337:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;21337:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;21337:60:0;;;;;;;;;;21413:55;;445:41:1;;;21337:49:0;;31426:10;21413:55;;418:18:1;21413:55:0;;;;;;;21168:308;;:::o;22315:227::-;22506:28;22516:4;22522:2;22526:7;22506:9;:28::i;:::-;22315:227;;;;:::o;19367:339::-;19440:13;19471:16;19479:7;22944:13;;-1:-1:-1;22934:23:0;22797:168;19471:16;19466:59;;19496:29;;-1:-1:-1;;;19496:29:0;;;;;;;;;;;19466:59;19536:21;19560:8;;;;;;;;;;;;;;;;;19536:32;;19592:7;19586:21;19611:1;19586:26;:112;;;;;;;;;;;;;;;;;19650:7;19664:18;19674:7;19664:9;:18::i;:::-;19622:70;;;;;;;;;:::i;:::-;;;;;;;;;;;;;19586:112;19579:119;19367:339;-1:-1:-1;;;19367:339:0:o;19714:134::-;19758:13;19826:12;;;;;;;;;;;;;;;;;19798:41;;;;;;;;:::i;:::-;;;;;;;;;;;;;19784:56;;19714:134;:::o;21547:164::-;-1:-1:-1;;;;;21668:25:0;;;21644:4;21668:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;21547:164::o;16384:1129::-;16451:7;16486;16588:13;;16581:4;:20;16577:869;;;16626:14;16643:23;;;:17;:23;;;;;;;-1:-1:-1;;;16732:23:0;;:28;;16728:699;;17251:113;17258:6;17268:1;17258:11;17251:113;;-1:-1:-1;;;17329:6:0;17311:25;;;;:17;:25;;;;;;17251:113;;16728:699;16603:843;16577:869;17474:31;;-1:-1:-1;;;17474:31:0;;;;;;;;;;;27665:2636;27802:27;27832;27851:7;27832:18;:27::i;:::-;27802:57;;27917:4;-1:-1:-1;;;;;27876:45:0;27892:19;-1:-1:-1;;;;;27876:45:0;;27872:86;;27930:28;;-1:-1:-1;;;27930:28:0;;;;;;;;;;;27872:86;27971:23;27997:24;;;:15;:24;;;;;;-1:-1:-1;;;;;27997:24:0;;;;27971:23;28060:27;;31426:10;28060:27;;:91;;-1:-1:-1;28108:43:0;28125:4;31426:10;21547:164;:::i;28108:43::-;28060:150;;;-1:-1:-1;;;;;;28172:38:0;;31426:10;28172:38;28060:150;28034:177;;28229:17;28224:66;;28255:35;;-1:-1:-1;;;28255:35:0;;;;;;;;;;;28224:66;28459:15;28441:39;28437:103;;28504:24;;;;:15;:24;;;;;28497:31;;-1:-1:-1;;;;;;28497:31:0;;;28437:103;-1:-1:-1;;;;;28907:24:0;;;;;;;:18;:24;;;;;;;;28905:26;;-1:-1:-1;;28905:26:0;;;28976:22;;;;;;;;28974:24;;-1:-1:-1;28974:24:0;;;29269:26;;;:17;:26;;;;;-1:-1:-1;;;29357:15:0;11089:3;29357:41;29315:84;;:128;;29269:174;;;29563:46;;:51;;29559:626;;29667:1;29657:11;;29635:19;29790:30;;;:17;:30;;;;;;:35;;29786:384;;29928:13;;29913:11;:28;29909:242;;30075:30;;;;:17;:30;;;;;:52;;;29909:242;29616:569;29559:626;30232:7;30228:2;-1:-1:-1;;;;;30213:27:0;30222:4;-1:-1:-1;;;;;30213:27:0;;;;;;;;;;;27789:2512;;;27665:2636;;;:::o;25817:1594::-;25905:13;;25951:2;25958:1;25933:26;25929:58;;25968:19;;-1:-1:-1;;;25968:19:0;;;;;;;;;;;25929:58;26002:8;26014:1;26002:13;25998:44;;26024:18;;-1:-1:-1;;;26024:18:0;;;;;;;;;;;25998:44;-1:-1:-1;;;;;26519:22:0;;;;;;:18;:22;;;;10572:2;26519:22;;;:70;;26557:31;26545:44;;26519:70;;;26832:31;;;:17;:31;;;;;26925:15;11089:3;26925:41;26883:84;;-1:-1:-1;27003:13:0;;11348:3;26988:56;26883:162;26832:213;;:31;27126:23;;;27166:111;27193:40;;27218:14;;;;;-1:-1:-1;;;;;27193:40:0;;;27210:1;;27193:40;;27210:1;;27193:40;27272:3;27257:12;:18;27166:111;;-1:-1:-1;27293:13:0;:28;21778:190;;;:::o;31550:1882::-;32021:4;32015:11;;32028:3;32011:21;;32102:17;;;;32774:11;;;32651:5;32908:2;32922;32912:13;;32904:22;32774:11;32891:36;32964:2;32954:13;;32548:661;32980:4;32548:661;;;33148:1;33143:3;33139:11;33132:18;;33192:2;33186:4;33182:13;33178:2;33174:22;33169:3;33161:36;33065:2;33055:13;;32548:661;;;-1:-1:-1;33232:13:0;;;-1:-1:-1;;33341:12:0;;;33395:19;;;33341:12;31550:1882;-1:-1:-1;31550:1882:0:o;14:286:1:-;72:6;125:2;113:9;104:7;100:23;96:32;93:52;;;141:1;138;131:12;93:52;167:23;;-1:-1:-1;;;;;;219:32:1;;209:43;;199:71;;266:1;263;256:12;497:250;582:1;592:113;606:6;603:1;600:13;592:113;;;682:11;;;676:18;663:11;;;656:39;628:2;621:10;592:113;;;-1:-1:-1;;739:1:1;721:16;;714:27;497:250::o;752:396::-;901:2;890:9;883:21;864:4;933:6;927:13;976:6;971:2;960:9;956:18;949:34;992:79;1064:6;1059:2;1048:9;1044:18;1039:2;1031:6;1027:15;992:79;:::i;:::-;1132:2;1111:15;-1:-1:-1;;1107:29:1;1092:45;;;;1139:2;1088:54;;752:396;-1:-1:-1;;752:396:1:o;1153:180::-;1212:6;1265:2;1253:9;1244:7;1240:23;1236:32;1233:52;;;1281:1;1278;1271:12;1233:52;-1:-1:-1;1304:23:1;;1153:180;-1:-1:-1;1153:180:1:o;1546:173::-;1614:20;;-1:-1:-1;;;;;1663:31:1;;1653:42;;1643:70;;1709:1;1706;1699:12;1643:70;1546:173;;;:::o;1724:254::-;1792:6;1800;1853:2;1841:9;1832:7;1828:23;1824:32;1821:52;;;1869:1;1866;1859:12;1821:52;1892:29;1911:9;1892:29;:::i;:::-;1882:39;1968:2;1953:18;;;;1940:32;;-1:-1:-1;;;1724:254:1:o;2165:328::-;2242:6;2250;2258;2311:2;2299:9;2290:7;2286:23;2282:32;2279:52;;;2327:1;2324;2317:12;2279:52;2350:29;2369:9;2350:29;:::i;:::-;2340:39;;2398:38;2432:2;2421:9;2417:18;2398:38;:::i;:::-;2388:48;;2483:2;2472:9;2468:18;2455:32;2445:42;;2165:328;;;;;:::o;2498:316::-;2575:6;2583;2591;2644:2;2632:9;2623:7;2619:23;2615:32;2612:52;;;2660:1;2657;2650:12;2612:52;-1:-1:-1;;2683:23:1;;;2753:2;2738:18;;2725:32;;-1:-1:-1;2804:2:1;2789:18;;;2776:32;;2498:316;-1:-1:-1;2498:316:1:o;2819:186::-;2878:6;2931:2;2919:9;2910:7;2906:23;2902:32;2899:52;;;2947:1;2944;2937:12;2899:52;2970:29;2989:9;2970:29;:::i;3010:347::-;3075:6;3083;3136:2;3124:9;3115:7;3111:23;3107:32;3104:52;;;3152:1;3149;3142:12;3104:52;3175:29;3194:9;3175:29;:::i;:::-;3165:39;;3254:2;3243:9;3239:18;3226:32;3301:5;3294:13;3287:21;3280:5;3277:32;3267:60;;3323:1;3320;3313:12;3267:60;3346:5;3336:15;;;3010:347;;;;;:::o;3362:127::-;3423:10;3418:3;3414:20;3411:1;3404:31;3454:4;3451:1;3444:15;3478:4;3475:1;3468:15;3494:1138;3589:6;3597;3605;3613;3666:3;3654:9;3645:7;3641:23;3637:33;3634:53;;;3683:1;3680;3673:12;3634:53;3706:29;3725:9;3706:29;:::i;:::-;3696:39;;3754:38;3788:2;3777:9;3773:18;3754:38;:::i;:::-;3744:48;;3839:2;3828:9;3824:18;3811:32;3801:42;;3894:2;3883:9;3879:18;3866:32;3917:18;3958:2;3950:6;3947:14;3944:34;;;3974:1;3971;3964:12;3944:34;4012:6;4001:9;3997:22;3987:32;;4057:7;4050:4;4046:2;4042:13;4038:27;4028:55;;4079:1;4076;4069:12;4028:55;4115:2;4102:16;4137:2;4133;4130:10;4127:36;;;4143:18;;:::i;:::-;4218:2;4212:9;4186:2;4272:13;;-1:-1:-1;;4268:22:1;;;4292:2;4264:31;4260:40;4248:53;;;4316:18;;;4336:22;;;4313:46;4310:72;;;4362:18;;:::i;:::-;4402:10;4398:2;4391:22;4437:2;4429:6;4422:18;4477:7;4472:2;4467;4463;4459:11;4455:20;4452:33;4449:53;;;4498:1;4495;4488:12;4449:53;4554:2;4549;4545;4541:11;4536:2;4528:6;4524:15;4511:46;4599:1;4594:2;4589;4581:6;4577:15;4573:24;4566:35;4620:6;4610:16;;;;;;;3494:1138;;;;;;;:::o;4637:260::-;4705:6;4713;4766:2;4754:9;4745:7;4741:23;4737:32;4734:52;;;4782:1;4779;4772:12;4734:52;4805:29;4824:9;4805:29;:::i;:::-;4795:39;;4853:38;4887:2;4876:9;4872:18;4853:38;:::i;:::-;4843:48;;4637:260;;;;;:::o;4902:127::-;4963:10;4958:3;4954:20;4951:1;4944:31;4994:4;4991:1;4984:15;5018:4;5015:1;5008:15;5034:125;5099:9;;;5120:10;;;5117:36;;;5133:18;;:::i;6180:168::-;6253:9;;;6284;;6301:15;;;6295:22;;6281:37;6271:71;;6322:18;;:::i;6694:935::-;-1:-1:-1;;;7201:3:1;7194:22;7176:3;7245:6;7239:13;7261:74;7328:6;7324:1;7319:3;7315:11;7308:4;7300:6;7296:17;7261:74;:::i;:::-;-1:-1:-1;;;7394:1:1;7354:16;;;7386:10;;;7379:23;7427:13;;7449:75;7427:13;7511:1;7503:10;;7496:4;7484:17;;7449:75;:::i;:::-;-1:-1:-1;;;7584:1:1;7543:17;;;;7576:10;;;7569:27;7620:2;7612:11;;6694:935;-1:-1:-1;;;;6694:935:1:o;7634:437::-;-1:-1:-1;;;7891:3:1;7884:22;7866:3;7935:6;7929:13;7951:74;8018:6;8014:1;8009:3;8005:11;7998:4;7990:6;7986:17;7951:74;:::i;:::-;8045:16;;;;8063:1;8041:24;;7634:437;-1:-1:-1;;7634:437:1:o
Swarm Source
ipfs://ec753d2ce044dd17055506ab16815e729155758beb5bcc3e767f16899dd673c9
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.