Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
28 0xApe
Holders
19
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 0xApeLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
xApe721
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.8.10; import "@rari-capital/solmate/src/tokens/ERC721.sol"; import "@rari-capital/solmate/src/utils/SafeTransferLib.sol"; import "./Ownable.sol"; import "./IERC721.sol"; import "./Strings.sol"; error DoesNotExist(); error NoTokensLeft(); error NotEnoughETH(); error AssertionError(); error NotTokenOwner(); error MintNotActive(); error MintAlreadyActive(); error MintLimitPerTx(); contract xApe721 is Ownable, ERC721 { using Strings for uint256; uint256 public constant TOTAL_SUPPLY = 10_000; uint256 public constant PRICE_PER_MINT = 0.05 ether; uint256 public constant MAX_MINT_PER_TX = 20; bool public mintActive; uint256 public totalSupply; string public baseURI; IERC721 public oldContract = IERC721(0x090b1DE324fEA5f0A0B4226101Db645819102629); address private teamWallet = 0xC7639015cB3da4FDd1C8c1925B22fB32ae133dAb; address private dev1Wallet = 0x29c36265c63fE0C3d024b2E4d204b49deeFdD671; address private dev2Wallet = 0x0c4618FfbE21f926d040043976457d0a489ea360; uint256 private devMints = 0; constructor( string memory name, string memory symbol, string memory _baseURI, address _oldContract, address _dev1Wallet, address _dev2Wallet, address _teamWallet ) payable ERC721(name, symbol) { baseURI = _baseURI; if (_oldContract != address(0)) { oldContract = IERC721(_oldContract); } if (_dev1Wallet != address(0)) { dev1Wallet = _dev1Wallet; } if (_dev2Wallet != address(0)) { dev2Wallet = _dev2Wallet; } if (_teamWallet != address(0)) { teamWallet = _teamWallet; } } modifier onlyTeamWallet() { require(msg.sender == teamWallet, "Not callable except by team wallet"); _; } modifier onlyDev() { require( (msg.sender == dev1Wallet || msg.sender == dev2Wallet), "Only callable by devs"); _; } modifier devMintLimit(uint256 amount) { require(devMints + amount <= 6, "Devs only promised 3 free mints each"); _; } function mint(uint16 amount) external payable { if (!mintActive) revert MintNotActive(); if (totalSupply + amount >= TOTAL_SUPPLY) revert NoTokensLeft(); if (msg.value < amount * PRICE_PER_MINT) revert NotEnoughETH(); if (amount > MAX_MINT_PER_TX) revert MintLimitPerTx(); unchecked { for (uint16 index = 0; index < amount; index++) { uint256 newId = _getNextUnusedID(totalSupply++); _mint(msg.sender, newId); } } } function claim(uint256 tokenId) external payable { if (_ownsOldToken(msg.sender, tokenId)) { // Transfering into this contract effectively burns the old // token as there is no way to get it out of here oldContract.safeTransferFrom(msg.sender, address(this), tokenId); _mint(msg.sender, tokenId); return; } revert NotTokenOwner(); } function claimAll() external payable { uint256[] memory ownedTokens = oldContract.getPhunksBelongingToOwner(msg.sender); uint256 length = ownedTokens.length; // gas saving for (uint256 i; i < length; ++i) { if (ownerOf[ownedTokens[i]] == address(0)) { // Has not been claimed yet // Transfering into this contract effectively burns the // old token as there is no way to get it out of here oldContract.safeTransferFrom(msg.sender, address(this), ownedTokens[i]); _mint(msg.sender, ownedTokens[i]); } } } function _ownsOldToken(address account, uint256 tokenId) internal view returns(bool) { try oldContract.ownerOf(tokenId) returns (address tokenOwner) { return account == tokenOwner; } catch Error(string memory /*reason*/) { return false; } } function _getNextUnusedID(uint256 currentSupply) internal view returns (uint256) { uint256 newId = 10000 + currentSupply; // IDs start at 10000 // Using 10 iterations instead of while loop as it is known // that the maximum contiguous group of successive IDs in // the original contract is 7 (14960-14966). Cannot have unbounded gas usage for (uint256 i; i < 10; ++i) { if (ownerOf[newId] != address(0)) { // Token is owned in this contract newId++; continue; } try oldContract.ownerOf(newId) returns (address) { // Token is owned in the old contract // ownerOf always reverts if the token isn't owned // so no need for zero check here newId++; continue; } catch Error(string memory /*reason*/) { return newId; } } revert AssertionError(); } function tokenURI(uint256 id) public view override returns (string memory) { if (ownerOf[id] == address(0)) revert DoesNotExist(); return string(abi.encodePacked(baseURI, id.toString())); } function withdraw() external onlyTeamWallet() { SafeTransferLib.safeTransferETH(teamWallet, address(this).balance); } function devMint(uint16 amount) external onlyDev() devMintLimit(amount) { if (totalSupply + amount >= TOTAL_SUPPLY) revert NoTokensLeft(); unchecked { for (uint16 index = 0; index < amount; index++) { uint256 newId = _getNextUnusedID(totalSupply++); _mint(msg.sender, newId); devMints++; } } } function pauseMint() external { if (msg.sender != _owner) revert NotOwner(); if (!mintActive) revert MintNotActive(); mintActive = false; } function startMint() external { if (msg.sender != _owner) revert NotOwner(); if (mintActive) revert MintAlreadyActive(); mintActive = true; } function supportsInterface(bytes4 interfaceId) public pure override returns (bool) { return interfaceId == 0x7f5828d0 || // ERC165 Interface ID for ERC173 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f || // ERC165 Interface ID for ERC165 interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC721Metadata interfaceId == 0x150b7a02; // ERC721 Receiver } function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4) { return 0x150b7a02; } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern, minimalist, and gas efficient ERC-721 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) /// @dev Note that balanceOf does not revert if passed the zero address, in defiance of the ERC. abstract contract ERC721 { /*/////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /*/////////////////////////////////////////////////////////////// METADATA STORAGE/LOGIC //////////////////////////////////////////////////////////////*/ string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /*/////////////////////////////////////////////////////////////// ERC721 STORAGE //////////////////////////////////////////////////////////////*/ mapping(address => uint256) public balanceOf; mapping(uint256 => address) public ownerOf; mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /*/////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /*/////////////////////////////////////////////////////////////// ERC721 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 id) public virtual { address owner = ownerOf[id]; require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED"); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom( address from, address to, uint256 id ) public virtual { require(from == ownerOf[id], "WRONG_FROM"); require(to != address(0), "INVALID_RECIPIENT"); require( msg.sender == from || msg.sender == getApproved[id] || isApprovedForAll[from][msg.sender], "NOT_AUTHORIZED" ); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { balanceOf[from]--; balanceOf[to]++; } ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom( address from, address to, uint256 id ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function safeTransferFrom( address from, address to, uint256 id, bytes memory data ) public virtual { transferFrom(from, to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } /*/////////////////////////////////////////////////////////////// ERC165 LOGIC //////////////////////////////////////////////////////////////*/ function supportsInterface(bytes4 interfaceId) public pure virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /*/////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 id) internal virtual { require(to != address(0), "INVALID_RECIPIENT"); require(ownerOf[id] == address(0), "ALREADY_MINTED"); // Counter overflow is incredibly unrealistic. unchecked { balanceOf[to]++; } ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = ownerOf[id]; require(ownerOf[id] != address(0), "NOT_MINTED"); // Ownership check above ensures no underflow. unchecked { balanceOf[owner]--; } delete ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /*/////////////////////////////////////////////////////////////// INTERNAL SAFE MINT LOGIC //////////////////////////////////////////////////////////////*/ function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } function _safeMint( address to, uint256 id, bytes memory data ) internal virtual { _mint(to, id); require( to.code.length == 0 || ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) == ERC721TokenReceiver.onERC721Received.selector, "UNSAFE_RECIPIENT" ); } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol) interface ERC721TokenReceiver { function onERC721Received( address operator, address from, uint256 id, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; import {ERC20} from "../tokens/ERC20.sol"; /// @notice Safe ETH and ERC20 transfer library that gracefully handles missing return values. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/utils/SafeTransferLib.sol) /// @author Modified from Gnosis (https://github.com/gnosis/gp-v2-contracts/blob/main/src/contracts/libraries/GPv2SafeERC20.sol) /// @dev Use with caution! Some functions in this library knowingly create dirty bits at the destination of the free memory pointer. library SafeTransferLib { /*/////////////////////////////////////////////////////////////// ETH OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferETH(address to, uint256 amount) internal { bool callStatus; assembly { // Transfer the ETH and store if it succeeded or not. callStatus := call(gas(), to, amount, 0, 0, 0, 0) } require(callStatus, "ETH_TRANSFER_FAILED"); } /*/////////////////////////////////////////////////////////////// ERC20 OPERATIONS //////////////////////////////////////////////////////////////*/ function safeTransferFrom( ERC20 token, address from, address to, uint256 amount ) internal { bool callStatus; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata to memory piece by piece: mstore(freeMemoryPointer, 0x23b872dd00000000000000000000000000000000000000000000000000000000) // Begin with the function selector. mstore(add(freeMemoryPointer, 4), and(from, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "from" argument. mstore(add(freeMemoryPointer, 36), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "to" argument. mstore(add(freeMemoryPointer, 68), amount) // Finally append the "amount" argument. No mask as it's a full 32 byte value. // Call the token and store if it succeeded or not. // We use 100 because the calldata length is 4 + 32 * 3. callStatus := call(gas(), token, 0, freeMemoryPointer, 100, 0, 0) } require(didLastOptionalReturnCallSucceed(callStatus), "TRANSFER_FROM_FAILED"); } function safeTransfer( ERC20 token, address to, uint256 amount ) internal { bool callStatus; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata to memory piece by piece: mstore(freeMemoryPointer, 0xa9059cbb00000000000000000000000000000000000000000000000000000000) // Begin with the function selector. mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Finally append the "amount" argument. No mask as it's a full 32 byte value. // Call the token and store if it succeeded or not. // We use 68 because the calldata length is 4 + 32 * 2. callStatus := call(gas(), token, 0, freeMemoryPointer, 68, 0, 0) } require(didLastOptionalReturnCallSucceed(callStatus), "TRANSFER_FAILED"); } function safeApprove( ERC20 token, address to, uint256 amount ) internal { bool callStatus; assembly { // Get a pointer to some free memory. let freeMemoryPointer := mload(0x40) // Write the abi-encoded calldata to memory piece by piece: mstore(freeMemoryPointer, 0x095ea7b300000000000000000000000000000000000000000000000000000000) // Begin with the function selector. mstore(add(freeMemoryPointer, 4), and(to, 0xffffffffffffffffffffffffffffffffffffffff)) // Mask and append the "to" argument. mstore(add(freeMemoryPointer, 36), amount) // Finally append the "amount" argument. No mask as it's a full 32 byte value. // Call the token and store if it succeeded or not. // We use 68 because the calldata length is 4 + 32 * 2. callStatus := call(gas(), token, 0, freeMemoryPointer, 68, 0, 0) } require(didLastOptionalReturnCallSucceed(callStatus), "APPROVE_FAILED"); } /*/////////////////////////////////////////////////////////////// INTERNAL HELPER LOGIC //////////////////////////////////////////////////////////////*/ function didLastOptionalReturnCallSucceed(bool callStatus) private pure returns (bool success) { assembly { // Get how many bytes the call returned. let returnDataSize := returndatasize() // If the call reverted: if iszero(callStatus) { // Copy the revert message into memory. returndatacopy(0, 0, returnDataSize) // Revert with the same message. revert(0, returnDataSize) } switch returnDataSize case 32 { // Copy the return data into memory. returndatacopy(0, 0, returnDataSize) // Set success to whether it returned true. success := iszero(iszero(mload(0))) } case 0 { // There was no return data. success := 1 } default { // It returned some malformed input. success := 0 } } } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.8.10; error NotOwner(); abstract contract Ownable { address internal _owner; event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); constructor() { _owner = msg.sender; } function owner() external view returns (address) { return _owner; } function transferOwnership(address _newOwner) external { if (msg.sender != _owner) revert NotOwner(); _owner = _newOwner; } function renounceOwnership() public { if (msg.sender != _owner) revert NotOwner(); _owner = address(0); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.10; /** * @dev Required interface of an ERC721 compliant contract. */ interface 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 ) 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 Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @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 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); /** * @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; // Original 0xApes contract specifc function getPhunksBelongingToOwner(address _owner) external view returns (uint256[] memory); }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity 0.8.10; library Strings { /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } }
// SPDX-License-Identifier: AGPL-3.0-only pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*/////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*/////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*/////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*/////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*/////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*/////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*/////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, value, nonces[owner]++, deadline)) ) ); address recoveredAddress = ecrecover(digest, v, r, s); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*/////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"_baseURI","type":"string"},{"internalType":"address","name":"_oldContract","type":"address"},{"internalType":"address","name":"_dev1Wallet","type":"address"},{"internalType":"address","name":"_dev2Wallet","type":"address"},{"internalType":"address","name":"_teamWallet","type":"address"}],"stateMutability":"payable","type":"constructor"},{"inputs":[],"name":"AssertionError","type":"error"},{"inputs":[],"name":"DoesNotExist","type":"error"},{"inputs":[],"name":"MintAlreadyActive","type":"error"},{"inputs":[],"name":"MintLimitPerTx","type":"error"},{"inputs":[],"name":"MintNotActive","type":"error"},{"inputs":[],"name":"NoTokensLeft","type":"error"},{"inputs":[],"name":"NotEnoughETH","type":"error"},{"inputs":[],"name":"NotOwner","type":"error"},{"inputs":[],"name":"NotTokenOwner","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"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":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimAll","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"amount","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"oldContract","outputs":[{"internalType":"contract IERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pauseMint","outputs":[],"stateMutability":"nonpayable","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":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","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":"id","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
60806040819052600a80546001600160a01b031990811673090b1de324fea5f0a0b4226101db64581910262917909155600b8054821673c7639015cb3da4fdd1c8c1925b22fb32ae133dab179055600c805482167329c36265c63fe0c3d024b2e4d204b49deefdd671179055600d8054909116730c4618ffbe21f926d040043976457d0a489ea3601790556000600e55620022c738819003908190833981016040819052620000ae9162000355565b600080546001600160a01b03191633179055865187908790620000d9906001906020850190620001c5565b508051620000ef906002906020840190620001c5565b505085516200010791506009906020880190620001c5565b506001600160a01b038416156200013457600a80546001600160a01b0319166001600160a01b0386161790555b6001600160a01b038316156200016057600c80546001600160a01b0319166001600160a01b0385161790555b6001600160a01b038216156200018c57600d80546001600160a01b0319166001600160a01b0384161790555b6001600160a01b03811615620001b857600b80546001600160a01b0319166001600160a01b0383161790555b505050505050506200046e565b828054620001d39062000431565b90600052602060002090601f016020900481019282620001f7576000855562000242565b82601f106200021257805160ff191683800117855562000242565b8280016001018555821562000242579182015b828111156200024257825182559160200191906001019062000225565b506200025092915062000254565b5090565b5b8082111562000250576000815560010162000255565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200029357600080fd5b81516001600160401b0380821115620002b057620002b06200026b565b604051601f8301601f19908116603f01168101908282118183101715620002db57620002db6200026b565b81604052838152602092508683858801011115620002f857600080fd5b600091505b838210156200031c5785820183015181830184015290820190620002fd565b838211156200032e5760008385830101525b9695505050505050565b80516001600160a01b03811681146200035057600080fd5b919050565b600080600080600080600060e0888a0312156200037157600080fd5b87516001600160401b03808211156200038957600080fd5b620003978b838c0162000281565b985060208a0151915080821115620003ae57600080fd5b620003bc8b838c0162000281565b975060408a0151915080821115620003d357600080fd5b50620003e28a828b0162000281565b955050620003f36060890162000338565b9350620004036080890162000338565b92506200041360a0890162000338565b91506200042360c0890162000338565b905092959891949750929550565b600181811c908216806200044657607f821691505b602082108114156200046857634e487b7160e01b600052602260045260246000fd5b50919050565b611e49806200047e6000396000f3fe6080604052600436106101d85760003560e01c80636c0360eb11610102578063a22cb46511610095578063cd85cdb511610064578063cd85cdb51461055d578063d1058e5914610572578063e985e9c51461057a578063f2fde38b146105b557600080fd5b8063a22cb465146104dd578063b88d4fde146104fd578063c367ab4a1461051d578063c87b56dd1461053d57600080fd5b80638da5cb5b116100d15780638da5cb5b1461047f5780638ecad7211461049d578063902d55a5146104b257806395d89b41146104c857600080fd5b80636c0360eb1461040d57806370a0823114610422578063715018a61461044f57806386b8703b1461046457600080fd5b806323cf0a221161017a578063379607f511610149578063379607f51461038f5780633ccfd60b146103a257806342842e0e146103b75780636352211e146103d757600080fd5b806323cf0a221461032d57806325fd90f3146103405780632be095611461035a57806330503c4e1461036f57600080fd5b8063095ea7b3116101b6578063095ea7b314610282578063150b7a02146102a457806318160ddd146102e957806323b872dd1461030d57600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f83660046116fd565b6105d5565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b5061022761065d565b6040516102099190611779565b34801561024057600080fd5b5061026a61024f36600461178c565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610209565b34801561028e57600080fd5b506102a261029d3660046117ba565b6106eb565b005b3480156102b057600080fd5b506102d06102bf3660046117e6565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610209565b3480156102f557600080fd5b506102ff60085481565b604051908152602001610209565b34801561031957600080fd5b506102a2610328366004611885565b6107d2565b6102a261033b3660046118c6565b610999565b34801561034c57600080fd5b506007546101fd9060ff1681565b34801561036657600080fd5b506102a2610a8d565b34801561037b57600080fd5b50600a5461026a906001600160a01b031681565b6102a261039d36600461178c565b610aeb565b3480156103ae57600080fd5b506102a2610b8a565b3480156103c357600080fd5b506102a26103d2366004611885565b610c07565b3480156103e357600080fd5b5061026a6103f236600461178c565b6004602052600090815260409020546001600160a01b031681565b34801561041957600080fd5b50610227610cff565b34801561042e57600080fd5b506102ff61043d3660046118ea565b60036020526000908152604090205481565b34801561045b57600080fd5b506102a2610d0c565b34801561047057600080fd5b506102ff66b1a2bc2ec5000081565b34801561048b57600080fd5b506000546001600160a01b031661026a565b3480156104a957600080fd5b506102ff601481565b3480156104be57600080fd5b506102ff61271081565b3480156104d457600080fd5b50610227610d49565b3480156104e957600080fd5b506102a26104f8366004611907565b610d56565b34801561050957600080fd5b506102a2610518366004611988565b610dc2565b34801561052957600080fd5b506102a26105383660046118c6565b610ea7565b34801561054957600080fd5b5061022761055836600461178c565b610ff9565b34801561056957600080fd5b506102a2611063565b6102a26110bd565b34801561058657600080fd5b506101fd610595366004611a50565b600660209081526000928352604080842090915290825290205460ff1681565b3480156105c157600080fd5b506102a26105d03660046118ea565b61125b565b60006307f5828d60e41b6001600160e01b03198316148061060657506380ac58cd60e01b6001600160e01b03198316145b806106215750635b5e139f60e01b6001600160e01b03198316145b8061063c57506301ffc9a760e01b6001600160e01b03198316145b806106575750630a85bd0160e11b6001600160e01b03198316145b92915050565b6001805461066a90611a7e565b80601f016020809104026020016040519081016040528092919081815260200182805461069690611a7e565b80156106e35780601f106106b8576101008083540402835291602001916106e3565b820191906000526020600020905b8154815290600101906020018083116106c657829003601f168201915b505050505081565b6000818152600460205260409020546001600160a01b03163381148061073457506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6107765760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600460205260409020546001600160a01b038481169116146108285760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161076d565b6001600160a01b0382166108725760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161076d565b336001600160a01b038416148061089f57506000818152600560205260409020546001600160a01b031633145b806108cd57506001600160a01b038316600090815260066020908152604080832033845290915290205460ff165b61090a5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161076d565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526004825284832080546001600160a01b03199081168317909155600590925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60075460ff166109bc5760405163914edb0f60e01b815260040160405180910390fd5b6127108161ffff166008546109d19190611acf565b106109ef57604051637364ba1760e01b815260040160405180910390fd5b610a0466b1a2bc2ec5000061ffff8316611ae7565b341015610a2457604051632c1d501360e11b815260040160405180910390fd5b60148161ffff161115610a4a57604051632493f4c960e11b815260040160405180910390fd5b60005b8161ffff168161ffff161015610a89576008805460018101909155600090610a74906112a8565b9050610a8033826113d3565b50600101610a4d565b5050565b6000546001600160a01b03163314610ab8576040516330cd747160e01b815260040160405180910390fd5b60075460ff1615610adc576040516376c855ed60e01b815260040160405180910390fd5b6007805460ff19166001179055565b610af533826114de565b15610b7157600a54604051632142170760e11b8152336004820152306024820152604481018390526001600160a01b03909116906342842e0e90606401600060405180830381600087803b158015610b4c57600080fd5b505af1158015610b60573d6000803e3d6000fd5b50505050610b6e33826113d3565b50565b6040516359dc379f60e01b815260040160405180910390fd5b600b546001600160a01b03163314610bef5760405162461bcd60e51b815260206004820152602260248201527f4e6f742063616c6c61626c6520657863657074206279207465616d2077616c6c604482015261195d60f21b606482015260840161076d565b600b54610c05906001600160a01b031647611590565b565b610c128383836107d2565b6001600160a01b0382163b1580610cbb5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610c8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610caf9190611b06565b6001600160e01b031916145b610cfa5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161076d565b505050565b6009805461066a90611a7e565b6000546001600160a01b03163314610d37576040516330cd747160e01b815260040160405180910390fd5b600080546001600160a01b0319169055565b6002805461066a90611a7e565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610dcd8484846107d2565b6001600160a01b0383163b1580610e625750604051630a85bd0160e11b808252906001600160a01b0385169063150b7a0290610e13903390899088908890600401611b23565b6020604051808303816000875af1158015610e32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e569190611b06565b6001600160e01b031916145b610ea15760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161076d565b50505050565b600c546001600160a01b0316331480610eca5750600d546001600160a01b031633145b610f0e5760405162461bcd60e51b81526020600482015260156024820152744f6e6c792063616c6c61626c65206279206465767360581b604482015260640161076d565b8061ffff16600681600e54610f239190611acf565b1115610f7d5760405162461bcd60e51b8152602060048201526024808201527f44657673206f6e6c792070726f6d6973656420332066726565206d696e7473206044820152630cac2c6d60e31b606482015260840161076d565b6127108261ffff16600854610f929190611acf565b10610fb057604051637364ba1760e01b815260040160405180910390fd5b60005b8261ffff168161ffff161015610cfa576008805460018101909155600090610fda906112a8565b9050610fe633826113d3565b50600e8054600190810190915501610fb3565b6000818152600460205260409020546060906001600160a01b03166110315760405163b0ce759160e01b815260040160405180910390fd5b600961103c836115e1565b60405160200161104d929190611b7c565b6040516020818303038152906040529050919050565b6000546001600160a01b0316331461108e576040516330cd747160e01b815260040160405180910390fd5b60075460ff166110b15760405163914edb0f60e01b815260040160405180910390fd5b6007805460ff19169055565b600a54604051630ee64c8d60e41b81523360048201526000916001600160a01b03169063ee64c8d090602401600060405180830381865afa158015611106573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261112e9190810190611c23565b805190915060005b81811015610cfa5760006001600160a01b03166004600085848151811061115f5761115f611cca565b6020908102919091018101518252810191909152604001600020546001600160a01b0316141561124b57600a5483516001600160a01b03909116906342842e0e90339030908790869081106111b6576111b6611cca565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561121057600080fd5b505af1158015611224573d6000803e3d6000fd5b5050505061124b3384838151811061123e5761123e611cca565b60200260200101516113d3565b61125481611ce0565b9050611136565b6000546001600160a01b03163314611286576040516330cd747160e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806112b783612710611acf565b905060005b600a8110156113b9576000828152600460205260409020546001600160a01b0316156112f457816112ec81611ce0565b9250506113a9565b600a546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e90602401602060405180830381865afa925050508015611359575060408051601f3d908101601f1916820190925261135691810190611cfb565b60015b61139a57611365611d18565b806308c379a0141561138e575061137a611d34565b806113855750611390565b50909392505050565b505b3d6000803e3d6000fd5b826113a481611ce0565b935050505b6113b281611ce0565b90506112bc565b5060405163b009d33760e01b815260040160405180910390fd5b6001600160a01b03821661141d5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161076d565b6000818152600460205260409020546001600160a01b0316156114735760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161076d565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600490915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa925050508015611544575060408051601f3d908101601f1916820190925261154191810190611cfb565b60015b61157a57611550611d18565b806308c379a0141561138e5750611565611d34565b806115705750611390565b6000915050610657565b6001600160a01b03848116911614905092915050565b600080600080600085875af1905080610cfa5760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015260640161076d565b6060816116055750506040805180820190915260018152600360fc1b602082015290565b8160005b811561162f578061161981611ce0565b91506116289050600a83611dd4565b9150611609565b60008167ffffffffffffffff81111561164a5761164a611945565b6040519080825280601f01601f191660200182016040528015611674576020820181803683370190505b5090505b84156116df57611689600183611de8565b9150611696600a86611dff565b6116a1906030611acf565b60f81b8183815181106116b6576116b6611cca565b60200101906001600160f81b031916908160001a9053506116d8600a86611dd4565b9450611678565b949350505050565b6001600160e01b031981168114610b6e57600080fd5b60006020828403121561170f57600080fd5b813561171a816116e7565b9392505050565b60005b8381101561173c578181015183820152602001611724565b83811115610ea15750506000910152565b60008151808452611765816020860160208601611721565b601f01601f19169290920160200192915050565b60208152600061171a602083018461174d565b60006020828403121561179e57600080fd5b5035919050565b6001600160a01b0381168114610b6e57600080fd5b600080604083850312156117cd57600080fd5b82356117d8816117a5565b946020939093013593505050565b6000806000806000608086880312156117fe57600080fd5b8535611809816117a5565b94506020860135611819816117a5565b935060408601359250606086013567ffffffffffffffff8082111561183d57600080fd5b818801915088601f83011261185157600080fd5b81358181111561186057600080fd5b89602082850101111561187257600080fd5b9699959850939650602001949392505050565b60008060006060848603121561189a57600080fd5b83356118a5816117a5565b925060208401356118b5816117a5565b929592945050506040919091013590565b6000602082840312156118d857600080fd5b813561ffff8116811461171a57600080fd5b6000602082840312156118fc57600080fd5b813561171a816117a5565b6000806040838503121561191a57600080fd5b8235611925816117a5565b91506020830135801515811461193a57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561198157611981611945565b6040525050565b6000806000806080858703121561199e57600080fd5b84356119a9816117a5565b93506020858101356119ba816117a5565b935060408601359250606086013567ffffffffffffffff808211156119de57600080fd5b818801915088601f8301126119f257600080fd5b813581811115611a0457611a04611945565b6040519150611a1c601f8201601f191685018361195b565b8082528984828501011115611a3057600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215611a6357600080fd5b8235611a6e816117a5565b9150602083013561193a816117a5565b600181811c90821680611a9257607f821691505b60208210811415611ab357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611ae257611ae2611ab9565b500190565b6000816000190483118215151615611b0157611b01611ab9565b500290565b600060208284031215611b1857600080fd5b815161171a816116e7565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b569083018461174d565b9695505050505050565b60008151611b72818560208601611721565b9290920192915050565b600080845481600182811c915080831680611b9857607f831692505b6020808410821415611bb857634e487b7160e01b86526022600452602486fd5b818015611bcc5760018114611bdd57611c0a565b60ff19861689528489019650611c0a565b60008b81526020902060005b86811015611c025781548b820152908501908301611be9565b505084890196505b505050505050611c1a8185611b60565b95945050505050565b60006020808385031215611c3657600080fd5b825167ffffffffffffffff80821115611c4e57600080fd5b818501915085601f830112611c6257600080fd5b815181811115611c7457611c74611945565b8060051b9150604051611c898584018261195b565b81815291830184019184810188841115611ca257600080fd5b938501935b83851015611cbe5784518152938501938501611ca7565b50979650505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611cf457611cf4611ab9565b5060010190565b600060208284031215611d0d57600080fd5b815161171a816117a5565b600060033d1115611d315760046000803e5060005160e01c5b90565b600060443d1015611d425790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611d7257505050505090565b8285019150815181811115611d8a5750505050505090565b843d8701016020828501011115611da45750505050505090565b611db36020828601018761195b565b509095945050505050565b634e487b7160e01b600052601260045260246000fd5b600082611de357611de3611dbe565b500490565b600082821015611dfa57611dfa611ab9565b500390565b600082611e0e57611e0e611dbe565b50069056fea2646970667358221220b733a9431c64a7079ba7f7ecf22454f6fd8e514b885683651e958f78a041885864736f6c634300080a003300000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063078417065730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000530784170650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d563972467973324c6b7339706961525348696a637545717465625a596854384c416462327a5a5a4c347832432f00000000000000000000
Deployed Bytecode
0x6080604052600436106101d85760003560e01c80636c0360eb11610102578063a22cb46511610095578063cd85cdb511610064578063cd85cdb51461055d578063d1058e5914610572578063e985e9c51461057a578063f2fde38b146105b557600080fd5b8063a22cb465146104dd578063b88d4fde146104fd578063c367ab4a1461051d578063c87b56dd1461053d57600080fd5b80638da5cb5b116100d15780638da5cb5b1461047f5780638ecad7211461049d578063902d55a5146104b257806395d89b41146104c857600080fd5b80636c0360eb1461040d57806370a0823114610422578063715018a61461044f57806386b8703b1461046457600080fd5b806323cf0a221161017a578063379607f511610149578063379607f51461038f5780633ccfd60b146103a257806342842e0e146103b75780636352211e146103d757600080fd5b806323cf0a221461032d57806325fd90f3146103405780632be095611461035a57806330503c4e1461036f57600080fd5b8063095ea7b3116101b6578063095ea7b314610282578063150b7a02146102a457806318160ddd146102e957806323b872dd1461030d57600080fd5b806301ffc9a7146101dd57806306fdde0314610212578063081812fc14610234575b600080fd5b3480156101e957600080fd5b506101fd6101f83660046116fd565b6105d5565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b5061022761065d565b6040516102099190611779565b34801561024057600080fd5b5061026a61024f36600461178c565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610209565b34801561028e57600080fd5b506102a261029d3660046117ba565b6106eb565b005b3480156102b057600080fd5b506102d06102bf3660046117e6565b630a85bd0160e11b95945050505050565b6040516001600160e01b03199091168152602001610209565b3480156102f557600080fd5b506102ff60085481565b604051908152602001610209565b34801561031957600080fd5b506102a2610328366004611885565b6107d2565b6102a261033b3660046118c6565b610999565b34801561034c57600080fd5b506007546101fd9060ff1681565b34801561036657600080fd5b506102a2610a8d565b34801561037b57600080fd5b50600a5461026a906001600160a01b031681565b6102a261039d36600461178c565b610aeb565b3480156103ae57600080fd5b506102a2610b8a565b3480156103c357600080fd5b506102a26103d2366004611885565b610c07565b3480156103e357600080fd5b5061026a6103f236600461178c565b6004602052600090815260409020546001600160a01b031681565b34801561041957600080fd5b50610227610cff565b34801561042e57600080fd5b506102ff61043d3660046118ea565b60036020526000908152604090205481565b34801561045b57600080fd5b506102a2610d0c565b34801561047057600080fd5b506102ff66b1a2bc2ec5000081565b34801561048b57600080fd5b506000546001600160a01b031661026a565b3480156104a957600080fd5b506102ff601481565b3480156104be57600080fd5b506102ff61271081565b3480156104d457600080fd5b50610227610d49565b3480156104e957600080fd5b506102a26104f8366004611907565b610d56565b34801561050957600080fd5b506102a2610518366004611988565b610dc2565b34801561052957600080fd5b506102a26105383660046118c6565b610ea7565b34801561054957600080fd5b5061022761055836600461178c565b610ff9565b34801561056957600080fd5b506102a2611063565b6102a26110bd565b34801561058657600080fd5b506101fd610595366004611a50565b600660209081526000928352604080842090915290825290205460ff1681565b3480156105c157600080fd5b506102a26105d03660046118ea565b61125b565b60006307f5828d60e41b6001600160e01b03198316148061060657506380ac58cd60e01b6001600160e01b03198316145b806106215750635b5e139f60e01b6001600160e01b03198316145b8061063c57506301ffc9a760e01b6001600160e01b03198316145b806106575750630a85bd0160e11b6001600160e01b03198316145b92915050565b6001805461066a90611a7e565b80601f016020809104026020016040519081016040528092919081815260200182805461069690611a7e565b80156106e35780601f106106b8576101008083540402835291602001916106e3565b820191906000526020600020905b8154815290600101906020018083116106c657829003601f168201915b505050505081565b6000818152600460205260409020546001600160a01b03163381148061073457506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6107765760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600460205260409020546001600160a01b038481169116146108285760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b604482015260640161076d565b6001600160a01b0382166108725760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161076d565b336001600160a01b038416148061089f57506000818152600560205260409020546001600160a01b031633145b806108cd57506001600160a01b038316600090815260066020908152604080832033845290915290205460ff165b61090a5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b604482015260640161076d565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526004825284832080546001600160a01b03199081168317909155600590925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60075460ff166109bc5760405163914edb0f60e01b815260040160405180910390fd5b6127108161ffff166008546109d19190611acf565b106109ef57604051637364ba1760e01b815260040160405180910390fd5b610a0466b1a2bc2ec5000061ffff8316611ae7565b341015610a2457604051632c1d501360e11b815260040160405180910390fd5b60148161ffff161115610a4a57604051632493f4c960e11b815260040160405180910390fd5b60005b8161ffff168161ffff161015610a89576008805460018101909155600090610a74906112a8565b9050610a8033826113d3565b50600101610a4d565b5050565b6000546001600160a01b03163314610ab8576040516330cd747160e01b815260040160405180910390fd5b60075460ff1615610adc576040516376c855ed60e01b815260040160405180910390fd5b6007805460ff19166001179055565b610af533826114de565b15610b7157600a54604051632142170760e11b8152336004820152306024820152604481018390526001600160a01b03909116906342842e0e90606401600060405180830381600087803b158015610b4c57600080fd5b505af1158015610b60573d6000803e3d6000fd5b50505050610b6e33826113d3565b50565b6040516359dc379f60e01b815260040160405180910390fd5b600b546001600160a01b03163314610bef5760405162461bcd60e51b815260206004820152602260248201527f4e6f742063616c6c61626c6520657863657074206279207465616d2077616c6c604482015261195d60f21b606482015260840161076d565b600b54610c05906001600160a01b031647611590565b565b610c128383836107d2565b6001600160a01b0382163b1580610cbb5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610c8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610caf9190611b06565b6001600160e01b031916145b610cfa5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161076d565b505050565b6009805461066a90611a7e565b6000546001600160a01b03163314610d37576040516330cd747160e01b815260040160405180910390fd5b600080546001600160a01b0319169055565b6002805461066a90611a7e565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610dcd8484846107d2565b6001600160a01b0383163b1580610e625750604051630a85bd0160e11b808252906001600160a01b0385169063150b7a0290610e13903390899088908890600401611b23565b6020604051808303816000875af1158015610e32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e569190611b06565b6001600160e01b031916145b610ea15760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b604482015260640161076d565b50505050565b600c546001600160a01b0316331480610eca5750600d546001600160a01b031633145b610f0e5760405162461bcd60e51b81526020600482015260156024820152744f6e6c792063616c6c61626c65206279206465767360581b604482015260640161076d565b8061ffff16600681600e54610f239190611acf565b1115610f7d5760405162461bcd60e51b8152602060048201526024808201527f44657673206f6e6c792070726f6d6973656420332066726565206d696e7473206044820152630cac2c6d60e31b606482015260840161076d565b6127108261ffff16600854610f929190611acf565b10610fb057604051637364ba1760e01b815260040160405180910390fd5b60005b8261ffff168161ffff161015610cfa576008805460018101909155600090610fda906112a8565b9050610fe633826113d3565b50600e8054600190810190915501610fb3565b6000818152600460205260409020546060906001600160a01b03166110315760405163b0ce759160e01b815260040160405180910390fd5b600961103c836115e1565b60405160200161104d929190611b7c565b6040516020818303038152906040529050919050565b6000546001600160a01b0316331461108e576040516330cd747160e01b815260040160405180910390fd5b60075460ff166110b15760405163914edb0f60e01b815260040160405180910390fd5b6007805460ff19169055565b600a54604051630ee64c8d60e41b81523360048201526000916001600160a01b03169063ee64c8d090602401600060405180830381865afa158015611106573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261112e9190810190611c23565b805190915060005b81811015610cfa5760006001600160a01b03166004600085848151811061115f5761115f611cca565b6020908102919091018101518252810191909152604001600020546001600160a01b0316141561124b57600a5483516001600160a01b03909116906342842e0e90339030908790869081106111b6576111b6611cca565b60209081029190910101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401600060405180830381600087803b15801561121057600080fd5b505af1158015611224573d6000803e3d6000fd5b5050505061124b3384838151811061123e5761123e611cca565b60200260200101516113d3565b61125481611ce0565b9050611136565b6000546001600160a01b03163314611286576040516330cd747160e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000806112b783612710611acf565b905060005b600a8110156113b9576000828152600460205260409020546001600160a01b0316156112f457816112ec81611ce0565b9250506113a9565b600a546040516331a9108f60e11b8152600481018490526001600160a01b0390911690636352211e90602401602060405180830381865afa925050508015611359575060408051601f3d908101601f1916820190925261135691810190611cfb565b60015b61139a57611365611d18565b806308c379a0141561138e575061137a611d34565b806113855750611390565b50909392505050565b505b3d6000803e3d6000fd5b826113a481611ce0565b935050505b6113b281611ce0565b90506112bc565b5060405163b009d33760e01b815260040160405180910390fd5b6001600160a01b03821661141d5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b604482015260640161076d565b6000818152600460205260409020546001600160a01b0316156114735760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161076d565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600490915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600a546040516331a9108f60e11b8152600481018390526000916001600160a01b031690636352211e90602401602060405180830381865afa925050508015611544575060408051601f3d908101601f1916820190925261154191810190611cfb565b60015b61157a57611550611d18565b806308c379a0141561138e5750611565611d34565b806115705750611390565b6000915050610657565b6001600160a01b03848116911614905092915050565b600080600080600085875af1905080610cfa5760405162461bcd60e51b815260206004820152601360248201527211551217d514905394d1915497d19052531151606a1b604482015260640161076d565b6060816116055750506040805180820190915260018152600360fc1b602082015290565b8160005b811561162f578061161981611ce0565b91506116289050600a83611dd4565b9150611609565b60008167ffffffffffffffff81111561164a5761164a611945565b6040519080825280601f01601f191660200182016040528015611674576020820181803683370190505b5090505b84156116df57611689600183611de8565b9150611696600a86611dff565b6116a1906030611acf565b60f81b8183815181106116b6576116b6611cca565b60200101906001600160f81b031916908160001a9053506116d8600a86611dd4565b9450611678565b949350505050565b6001600160e01b031981168114610b6e57600080fd5b60006020828403121561170f57600080fd5b813561171a816116e7565b9392505050565b60005b8381101561173c578181015183820152602001611724565b83811115610ea15750506000910152565b60008151808452611765816020860160208601611721565b601f01601f19169290920160200192915050565b60208152600061171a602083018461174d565b60006020828403121561179e57600080fd5b5035919050565b6001600160a01b0381168114610b6e57600080fd5b600080604083850312156117cd57600080fd5b82356117d8816117a5565b946020939093013593505050565b6000806000806000608086880312156117fe57600080fd5b8535611809816117a5565b94506020860135611819816117a5565b935060408601359250606086013567ffffffffffffffff8082111561183d57600080fd5b818801915088601f83011261185157600080fd5b81358181111561186057600080fd5b89602082850101111561187257600080fd5b9699959850939650602001949392505050565b60008060006060848603121561189a57600080fd5b83356118a5816117a5565b925060208401356118b5816117a5565b929592945050506040919091013590565b6000602082840312156118d857600080fd5b813561ffff8116811461171a57600080fd5b6000602082840312156118fc57600080fd5b813561171a816117a5565b6000806040838503121561191a57600080fd5b8235611925816117a5565b91506020830135801515811461193a57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f1916810167ffffffffffffffff8111828210171561198157611981611945565b6040525050565b6000806000806080858703121561199e57600080fd5b84356119a9816117a5565b93506020858101356119ba816117a5565b935060408601359250606086013567ffffffffffffffff808211156119de57600080fd5b818801915088601f8301126119f257600080fd5b813581811115611a0457611a04611945565b6040519150611a1c601f8201601f191685018361195b565b8082528984828501011115611a3057600080fd5b808484018584013760008482840101525080935050505092959194509250565b60008060408385031215611a6357600080fd5b8235611a6e816117a5565b9150602083013561193a816117a5565b600181811c90821680611a9257607f821691505b60208210811415611ab357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115611ae257611ae2611ab9565b500190565b6000816000190483118215151615611b0157611b01611ab9565b500290565b600060208284031215611b1857600080fd5b815161171a816116e7565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611b569083018461174d565b9695505050505050565b60008151611b72818560208601611721565b9290920192915050565b600080845481600182811c915080831680611b9857607f831692505b6020808410821415611bb857634e487b7160e01b86526022600452602486fd5b818015611bcc5760018114611bdd57611c0a565b60ff19861689528489019650611c0a565b60008b81526020902060005b86811015611c025781548b820152908501908301611be9565b505084890196505b505050505050611c1a8185611b60565b95945050505050565b60006020808385031215611c3657600080fd5b825167ffffffffffffffff80821115611c4e57600080fd5b818501915085601f830112611c6257600080fd5b815181811115611c7457611c74611945565b8060051b9150604051611c898584018261195b565b81815291830184019184810188841115611ca257600080fd5b938501935b83851015611cbe5784518152938501938501611ca7565b50979650505050505050565b634e487b7160e01b600052603260045260246000fd5b6000600019821415611cf457611cf4611ab9565b5060010190565b600060208284031215611d0d57600080fd5b815161171a816117a5565b600060033d1115611d315760046000803e5060005160e01c5b90565b600060443d1015611d425790565b6040516003193d81016004833e81513d67ffffffffffffffff8160248401118184111715611d7257505050505090565b8285019150815181811115611d8a5750505050505090565b843d8701016020828501011115611da45750505050505090565b611db36020828601018761195b565b509095945050505050565b634e487b7160e01b600052601260045260246000fd5b600082611de357611de3611dbe565b500490565b600082821015611dfa57611dfa611ab9565b500390565b600082611e0e57611e0e611dbe565b50069056fea2646970667358221220b733a9431c64a7079ba7f7ecf22454f6fd8e514b885683651e958f78a041885864736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063078417065730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000530784170650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d563972467973324c6b7339706961525348696a637545717465625a596854384c416462327a5a5a4c347832432f00000000000000000000
-----Decoded View---------------
Arg [0] : name (string): 0xApes
Arg [1] : symbol (string): 0xApe
Arg [2] : _baseURI (string): ipfs://QmV9rFys2Lks9piaRSHijcuEqtebZYhT8LAdb2zZZL4x2C/
Arg [3] : _oldContract (address): 0x0000000000000000000000000000000000000000
Arg [4] : _dev1Wallet (address): 0x0000000000000000000000000000000000000000
Arg [5] : _dev2Wallet (address): 0x0000000000000000000000000000000000000000
Arg [6] : _teamWallet (address): 0x0000000000000000000000000000000000000000
-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [8] : 3078417065730000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [10] : 3078417065000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [12] : 697066733a2f2f516d563972467973324c6b7339706961525348696a63754571
Arg [13] : 7465625a596854384c416462327a5a5a4c347832432f00000000000000000000
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.