ERC-721
Overview
Max Total Supply
0 SQUADX
Holders
152
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SQUADXLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
NFT
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.15; import "solmate/tokens/ERC721.sol"; import "openzeppelin-contracts/utils/Strings.sol"; import "openzeppelin-contracts/access/Ownable.sol"; interface IVault { function balanceOf(address) external view returns (uint256); } contract NFT is ERC721, Ownable{ using Strings for uint256; string public baseURI; uint256 public currentTokenId; uint256 public constant MAX_SUPPLY = 10_000; address public vault; uint256 public shopxRequired = 10_000 ether; // 10000 shopx in wei event UpdateShopxRequired(uint256 amount); event UpdateVault(address vault); error MaxSupply(); error NonExistentTokenURI(); error NotEnoughStakingBalance(); constructor(string memory _name, string memory _symbol, address _vault) ERC721(_name, _symbol) { baseURI = "https://shopx-metadata.s3.us-east-2.amazonaws.com/"; vault = _vault; } function mintTo(address recipient) public returns (uint256) { // check if balanceOf(contract squadX's msg.sender address) >= shopxRequired if (IVault(vault).balanceOf(msg.sender) < shopxRequired) revert NotEnoughStakingBalance(); uint256 newTokenId = ++currentTokenId; if (newTokenId > MAX_SUPPLY) revert MaxSupply(); _safeMint(recipient, newTokenId); return newTokenId; } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (ownerOf(tokenId) == address(0)) revert NonExistentTokenURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } function updateShopxRequired(uint256 _amount) external onlyOwner returns (uint256) { require(_amount!=0, "Invalid input"); shopxRequired = _amount; emit UpdateShopxRequired(shopxRequired); return shopxRequired; } function updateVault(address _addr) external onlyOwner returns (address) { require(_addr!=address(0), "Invalid input"); vault = _addr; emit UpdateVault(vault); return vault; } function updateBaseUri(string memory _uri) external onlyOwner returns (string memory) { baseURI = _uri; return baseURI; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// 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/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) 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 BALANCE/OWNER STORAGE //////////////////////////////////////////////////////////////*/ mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { require((owner = _ownerOf[id]) != address(0), "NOT_MINTED"); } function balanceOf(address owner) public view virtual returns (uint256) { require(owner != address(0), "ZERO_ADDRESS"); return _balanceOf[owner]; } /*////////////////////////////////////////////////////////////// ERC721 APPROVAL STORAGE //////////////////////////////////////////////////////////////*/ 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 || isApprovedForAll[from][msg.sender] || msg.sender == getApproved[id], "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 calldata 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 view 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(owner != 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/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received( address, address, uint256, bytes calldata ) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
{ "remappings": [ "ds-test/=lib/forge-std/lib/ds-test/src/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/", "solmate/=lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "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":"address","name":"_vault","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"MaxSupply","type":"error"},{"inputs":[],"name":"NonExistentTokenURI","type":"error"},{"inputs":[],"name":"NotEnoughStakingBalance","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UpdateShopxRequired","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"vault","type":"address"}],"name":"UpdateVault","type":"event"},{"inputs":[],"name":"MAX_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":"owner","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":[],"name":"currentTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"address","name":"recipient","type":"address"}],"name":"mintTo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"shopxRequired","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[{"internalType":"string","name":"_uri","type":"string"}],"name":"updateBaseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"updateShopxRequired","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"updateVault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405269021e19e0c9bab2400000600a553480156200001f57600080fd5b5060405162001bcb38038062001bcb8339810160408190526200004291620001f4565b8282600062000052838262000310565b50600162000061828262000310565b5050506200007e62000078620000d160201b60201c565b620000d5565b60405180606001604052806032815260200162001b9960329139600790620000a7908262000310565b50600980546001600160a01b0319166001600160a01b039290921691909117905550620003dc9050565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200014f57600080fd5b81516001600160401b03808211156200016c576200016c62000127565b604051601f8301601f19908116603f0116810190828211818310171562000197576200019762000127565b81604052838152602092508683858801011115620001b457600080fd5b600091505b83821015620001d85785820183015181830184015290820190620001b9565b83821115620001ea5760008385830101525b9695505050505050565b6000806000606084860312156200020a57600080fd5b83516001600160401b03808211156200022257600080fd5b62000230878388016200013d565b945060208601519150808211156200024757600080fd5b5062000256868287016200013d565b604086015190935090506001600160a01b03811681146200027657600080fd5b809150509250925092565b600181811c908216806200029657607f821691505b602082108103620002b757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200030b57600081815260208120601f850160051c81016020861015620002e65750805b601f850160051c820191505b818110156200030757828155600101620002f2565b5050505b505050565b81516001600160401b038111156200032c576200032c62000127565b62000344816200033d845462000281565b84620002bd565b602080601f8311600181146200037c5760008415620003635750858301515b600019600386901b1c1916600185901b17855562000307565b600085815260208120601f198616915b82811015620003ad578886015182559484019460019091019084016200038c565b5085821015620003cc5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6117ad80620003ec6000396000f3fe608060405234801561001057600080fd5b50600436106101725760003560e01c806370a08231116100de578063b88d4fde11610097578063e7563f3f11610071578063e7563f3f1461031a578063e985e9c51461032d578063f2fde38b1461035b578063fbfa77cf1461036e57600080fd5b8063b88d4fde146102e1578063c18ae20c146102f4578063c87b56dd1461030757600080fd5b806370a0823114610287578063715018a61461029a578063755edd17146102a25780638da5cb5b146102b557806395d89b41146102c6578063a22cb465146102ce57600080fd5b806332cb6b0c1161013057806332cb6b0c1461023457806339f7e37f1461023d57806342842e0e1461025057806347b9481b146102635780636352211e1461026c5780636c0360eb1461027f57600080fd5b80629a9b7b1461017757806301ffc9a71461019357806306fdde03146101b6578063081812fc146101cb578063095ea7b31461020c57806323b872dd14610221575b600080fd5b61018060085481565b6040519081526020015b60405180910390f35b6101a66101a13660046111c4565b610381565b604051901515815260200161018a565b6101be6103d3565b60405161018a9190611218565b6101f46101d936600461124b565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161018a565b61021f61021a36600461127b565b610461565b005b61021f61022f3660046112a5565b610548565b61018061271081565b6101be61024b3660046112f7565b61070f565b61021f61025e3660046112a5565b6107b9565b610180600a5481565b6101f461027a36600461124b565b61088e565b6101be6108e0565b6101806102953660046113a8565b6108ed565b61021f610950565b6101806102b03660046113a8565b610964565b6006546001600160a01b03166101f4565b6101be610a39565b61021f6102dc3660046113c3565b610a46565b61021f6102ef3660046113ff565b610ab2565b61018061030236600461124b565b610b77565b6101be61031536600461124b565b610c01565b6101f46103283660046113a8565b610c91565b6101a661033b36600461149a565b600560209081526000928352604080842090915290825290205460ff1681565b61021f6103693660046113a8565b610d43565b6009546101f4906001600160a01b031681565b60006301ffc9a760e01b6001600160e01b0319831614806103b257506380ac58cd60e01b6001600160e01b03198316145b806103cd5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546103e0906114cd565b80601f016020809104026020016040519081016040528092919081815260200182805461040c906114cd565b80156104595780601f1061042e57610100808354040283529160200191610459565b820191906000526020600020905b81548152906001019060200180831161043c57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b0316338114806104aa57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6104ec5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461059e5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016104e3565b6001600160a01b0382166105e85760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016104e3565b336001600160a01b038416148061062257506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061064357506000818152600460205260409020546001600160a01b031633145b6106805760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016104e3565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6060610719610dbc565b60076107258382611555565b5060078054610733906114cd565b80601f016020809104026020016040519081016040528092919081815260200182805461075f906114cd565b80156107ac5780601f10610781576101008083540402835291602001916107ac565b820191906000526020600020905b81548152906001019060200180831161078f57829003601f168201915b505050505090505b919050565b6107c4838383610548565b6001600160a01b0382163b158061086d5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561083d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108619190611615565b6001600160e01b031916145b6108895760405162461bcd60e51b81526004016104e390611632565b505050565b6000818152600260205260409020546001600160a01b0316806107b45760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016104e3565b600780546103e0906114cd565b60006001600160a01b0382166109345760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016104e3565b506001600160a01b031660009081526003602052604090205490565b610958610dbc565b6109626000610e16565b565b600a546009546040516370a0823160e01b8152336004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa1580156109b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d5919061165c565b10156109f457604051631aa0d9cd60e21b815260040160405180910390fd5b6000600860008154610a0590611675565b91829055509050612710811115610a2f57604051632cdb04a160e21b815260040160405180910390fd5b6103cd8382610e68565b600180546103e0906114cd565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610abd858585610548565b6001600160a01b0384163b1580610b545750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610b059033908a9089908990899060040161169c565b6020604051808303816000875af1158015610b24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b489190611615565b6001600160e01b031916145b610b705760405162461bcd60e51b81526004016104e390611632565b5050505050565b6000610b81610dbc565b81600003610bc15760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064016104e3565b600a8290556040518281527f9edbbfc9ea05beef7ee1fbd0465236fc629bee192718831cb6a4fbd778179f609060200160405180910390a15050600a5490565b60606000610c0e8361088e565b6001600160a01b031603610c355760405163d872946b60e01b815260040160405180910390fd5b600060078054610c44906114cd565b905011610c6057604051806020016040528060008152506103cd565b6007610c6b83610f38565b604051602001610c7c9291906116f0565b60405160208183030381529060405292915050565b6000610c9b610dbc565b6001600160a01b038216610ce15760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064016104e3565b600980546001600160a01b0319166001600160a01b0384169081179091556040519081527f81ff71f5398c6c0feb681613c0153a88914e10f1bf901d466657bf2ca37114909060200160405180910390a150506009546001600160a01b031690565b610d4b610dbc565b6001600160a01b038116610db05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104e3565b610db981610e16565b50565b6006546001600160a01b031633146109625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e3565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e728282610fcb565b6001600160a01b0382163b1580610f185750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af1158015610ee8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0c9190611615565b6001600160e01b031916145b610f345760405162461bcd60e51b81526004016104e390611632565b5050565b60606000610f45836110d6565b600101905060008167ffffffffffffffff811115610f6557610f656112e1565b6040519080825280601f01601f191660200182016040528015610f8f576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610f9957509392505050565b6001600160a01b0382166110155760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016104e3565b6000818152600260205260409020546001600160a01b03161561106b5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016104e3565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106111155772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611141576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061115f57662386f26fc10000830492506010015b6305f5e1008310611177576305f5e100830492506008015b612710831061118b57612710830492506004015b6064831061119d576064830492506002015b600a83106103cd5760010192915050565b6001600160e01b031981168114610db957600080fd5b6000602082840312156111d657600080fd5b81356111e1816111ae565b9392505050565b60005b838110156112035781810151838201526020016111eb565b83811115611212576000848401525b50505050565b60208152600082518060208401526112378160408501602087016111e8565b601f01601f19169190910160400192915050565b60006020828403121561125d57600080fd5b5035919050565b80356001600160a01b03811681146107b457600080fd5b6000806040838503121561128e57600080fd5b61129783611264565b946020939093013593505050565b6000806000606084860312156112ba57600080fd5b6112c384611264565b92506112d160208501611264565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561130957600080fd5b813567ffffffffffffffff8082111561132157600080fd5b818401915084601f83011261133557600080fd5b813581811115611347576113476112e1565b604051601f8201601f19908116603f0116810190838211818310171561136f5761136f6112e1565b8160405282815287602084870101111561138857600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000602082840312156113ba57600080fd5b6111e182611264565b600080604083850312156113d657600080fd5b6113df83611264565b9150602083013580151581146113f457600080fd5b809150509250929050565b60008060008060006080868803121561141757600080fd5b61142086611264565b945061142e60208701611264565b935060408601359250606086013567ffffffffffffffff8082111561145257600080fd5b818801915088601f83011261146657600080fd5b81358181111561147557600080fd5b89602082850101111561148757600080fd5b9699959850939650602001949392505050565b600080604083850312156114ad57600080fd5b6114b683611264565b91506114c460208401611264565b90509250929050565b600181811c908216806114e157607f821691505b60208210810361150157634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561088957600081815260208120601f850160051c8101602086101561152e5750805b601f850160051c820191505b8181101561154d5782815560010161153a565b505050505050565b815167ffffffffffffffff81111561156f5761156f6112e1565b6115838161157d84546114cd565b84611507565b602080601f8311600181146115b857600084156115a05750858301515b600019600386901b1c1916600185901b17855561154d565b600085815260208120601f198616915b828110156115e7578886015182559484019460019091019084016115c8565b50858210156116055787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561162757600080fd5b81516111e1816111ae565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b60006020828403121561166e57600080fd5b5051919050565b60006001820161169557634e487b7160e01b600052601160045260246000fd5b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008084546116fe816114cd565b60018281168015611716576001811461172b5761175a565b60ff198416875282151583028701945061175a565b8860005260208060002060005b858110156117515781548a820152908401908201611738565b50505082870194505b50505050835161176e8183602088016111e8565b0194935050505056fea264697066735822122012f566bee86226b43f98f6f6e32ba74bd4c1b40a43cf1b83019fe70382317bb864736f6c634300080f003368747470733a2f2f73686f70782d6d657461646174612e73332e75732d656173742d322e616d617a6f6e6177732e636f6d2f000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000088da47fc43572bcdd781f2d7883aec314aa17e5c000000000000000000000000000000000000000000000000000000000000001253484f505820537175616458204261646765000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065351554144580000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101725760003560e01c806370a08231116100de578063b88d4fde11610097578063e7563f3f11610071578063e7563f3f1461031a578063e985e9c51461032d578063f2fde38b1461035b578063fbfa77cf1461036e57600080fd5b8063b88d4fde146102e1578063c18ae20c146102f4578063c87b56dd1461030757600080fd5b806370a0823114610287578063715018a61461029a578063755edd17146102a25780638da5cb5b146102b557806395d89b41146102c6578063a22cb465146102ce57600080fd5b806332cb6b0c1161013057806332cb6b0c1461023457806339f7e37f1461023d57806342842e0e1461025057806347b9481b146102635780636352211e1461026c5780636c0360eb1461027f57600080fd5b80629a9b7b1461017757806301ffc9a71461019357806306fdde03146101b6578063081812fc146101cb578063095ea7b31461020c57806323b872dd14610221575b600080fd5b61018060085481565b6040519081526020015b60405180910390f35b6101a66101a13660046111c4565b610381565b604051901515815260200161018a565b6101be6103d3565b60405161018a9190611218565b6101f46101d936600461124b565b6004602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161018a565b61021f61021a36600461127b565b610461565b005b61021f61022f3660046112a5565b610548565b61018061271081565b6101be61024b3660046112f7565b61070f565b61021f61025e3660046112a5565b6107b9565b610180600a5481565b6101f461027a36600461124b565b61088e565b6101be6108e0565b6101806102953660046113a8565b6108ed565b61021f610950565b6101806102b03660046113a8565b610964565b6006546001600160a01b03166101f4565b6101be610a39565b61021f6102dc3660046113c3565b610a46565b61021f6102ef3660046113ff565b610ab2565b61018061030236600461124b565b610b77565b6101be61031536600461124b565b610c01565b6101f46103283660046113a8565b610c91565b6101a661033b36600461149a565b600560209081526000928352604080842090915290825290205460ff1681565b61021f6103693660046113a8565b610d43565b6009546101f4906001600160a01b031681565b60006301ffc9a760e01b6001600160e01b0319831614806103b257506380ac58cd60e01b6001600160e01b03198316145b806103cd5750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546103e0906114cd565b80601f016020809104026020016040519081016040528092919081815260200182805461040c906114cd565b80156104595780601f1061042e57610100808354040283529160200191610459565b820191906000526020600020905b81548152906001019060200180831161043c57829003601f168201915b505050505081565b6000818152600260205260409020546001600160a01b0316338114806104aa57506001600160a01b038116600090815260056020908152604080832033845290915290205460ff165b6104ec5760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526004602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000818152600260205260409020546001600160a01b0384811691161461059e5760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016104e3565b6001600160a01b0382166105e85760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016104e3565b336001600160a01b038416148061062257506001600160a01b038316600090815260056020908152604080832033845290915290205460ff165b8061064357506000818152600460205260409020546001600160a01b031633145b6106805760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016104e3565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526002825284832080546001600160a01b03199081168317909155600490925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6060610719610dbc565b60076107258382611555565b5060078054610733906114cd565b80601f016020809104026020016040519081016040528092919081815260200182805461075f906114cd565b80156107ac5780601f10610781576101008083540402835291602001916107ac565b820191906000526020600020905b81548152906001019060200180831161078f57829003601f168201915b505050505090505b919050565b6107c4838383610548565b6001600160a01b0382163b158061086d5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561083d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108619190611615565b6001600160e01b031916145b6108895760405162461bcd60e51b81526004016104e390611632565b505050565b6000818152600260205260409020546001600160a01b0316806107b45760405162461bcd60e51b815260206004820152600a6024820152691393d517d3525395115160b21b60448201526064016104e3565b600780546103e0906114cd565b60006001600160a01b0382166109345760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b60448201526064016104e3565b506001600160a01b031660009081526003602052604090205490565b610958610dbc565b6109626000610e16565b565b600a546009546040516370a0823160e01b8152336004820152600092916001600160a01b0316906370a0823190602401602060405180830381865afa1580156109b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d5919061165c565b10156109f457604051631aa0d9cd60e21b815260040160405180910390fd5b6000600860008154610a0590611675565b91829055509050612710811115610a2f57604051632cdb04a160e21b815260040160405180910390fd5b6103cd8382610e68565b600180546103e0906114cd565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610abd858585610548565b6001600160a01b0384163b1580610b545750604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610b059033908a9089908990899060040161169c565b6020604051808303816000875af1158015610b24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b489190611615565b6001600160e01b031916145b610b705760405162461bcd60e51b81526004016104e390611632565b5050505050565b6000610b81610dbc565b81600003610bc15760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064016104e3565b600a8290556040518281527f9edbbfc9ea05beef7ee1fbd0465236fc629bee192718831cb6a4fbd778179f609060200160405180910390a15050600a5490565b60606000610c0e8361088e565b6001600160a01b031603610c355760405163d872946b60e01b815260040160405180910390fd5b600060078054610c44906114cd565b905011610c6057604051806020016040528060008152506103cd565b6007610c6b83610f38565b604051602001610c7c9291906116f0565b60405160208183030381529060405292915050565b6000610c9b610dbc565b6001600160a01b038216610ce15760405162461bcd60e51b815260206004820152600d60248201526c125b9d985b1a59081a5b9c1d5d609a1b60448201526064016104e3565b600980546001600160a01b0319166001600160a01b0384169081179091556040519081527f81ff71f5398c6c0feb681613c0153a88914e10f1bf901d466657bf2ca37114909060200160405180910390a150506009546001600160a01b031690565b610d4b610dbc565b6001600160a01b038116610db05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016104e3565b610db981610e16565b50565b6006546001600160a01b031633146109625760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016104e3565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e728282610fcb565b6001600160a01b0382163b1580610f185750604051630a85bd0160e11b80825233600483015260006024830181905260448301849052608060648401526084830152906001600160a01b0384169063150b7a029060a4016020604051808303816000875af1158015610ee8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0c9190611615565b6001600160e01b031916145b610f345760405162461bcd60e51b81526004016104e390611632565b5050565b60606000610f45836110d6565b600101905060008167ffffffffffffffff811115610f6557610f656112e1565b6040519080825280601f01601f191660200182016040528015610f8f576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610f9957509392505050565b6001600160a01b0382166110155760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016104e3565b6000818152600260205260409020546001600160a01b03161561106b5760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016104e3565b6001600160a01b038216600081815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106111155772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611141576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061115f57662386f26fc10000830492506010015b6305f5e1008310611177576305f5e100830492506008015b612710831061118b57612710830492506004015b6064831061119d576064830492506002015b600a83106103cd5760010192915050565b6001600160e01b031981168114610db957600080fd5b6000602082840312156111d657600080fd5b81356111e1816111ae565b9392505050565b60005b838110156112035781810151838201526020016111eb565b83811115611212576000848401525b50505050565b60208152600082518060208401526112378160408501602087016111e8565b601f01601f19169190910160400192915050565b60006020828403121561125d57600080fd5b5035919050565b80356001600160a01b03811681146107b457600080fd5b6000806040838503121561128e57600080fd5b61129783611264565b946020939093013593505050565b6000806000606084860312156112ba57600080fd5b6112c384611264565b92506112d160208501611264565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b60006020828403121561130957600080fd5b813567ffffffffffffffff8082111561132157600080fd5b818401915084601f83011261133557600080fd5b813581811115611347576113476112e1565b604051601f8201601f19908116603f0116810190838211818310171561136f5761136f6112e1565b8160405282815287602084870101111561138857600080fd5b826020860160208301376000928101602001929092525095945050505050565b6000602082840312156113ba57600080fd5b6111e182611264565b600080604083850312156113d657600080fd5b6113df83611264565b9150602083013580151581146113f457600080fd5b809150509250929050565b60008060008060006080868803121561141757600080fd5b61142086611264565b945061142e60208701611264565b935060408601359250606086013567ffffffffffffffff8082111561145257600080fd5b818801915088601f83011261146657600080fd5b81358181111561147557600080fd5b89602082850101111561148757600080fd5b9699959850939650602001949392505050565b600080604083850312156114ad57600080fd5b6114b683611264565b91506114c460208401611264565b90509250929050565b600181811c908216806114e157607f821691505b60208210810361150157634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561088957600081815260208120601f850160051c8101602086101561152e5750805b601f850160051c820191505b8181101561154d5782815560010161153a565b505050505050565b815167ffffffffffffffff81111561156f5761156f6112e1565b6115838161157d84546114cd565b84611507565b602080601f8311600181146115b857600084156115a05750858301515b600019600386901b1c1916600185901b17855561154d565b600085815260208120601f198616915b828110156115e7578886015182559484019460019091019084016115c8565b50858210156116055787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60006020828403121561162757600080fd5b81516111e1816111ae565b60208082526010908201526f155394d0519157d49150d2541251539560821b604082015260600190565b60006020828403121561166e57600080fd5b5051919050565b60006001820161169557634e487b7160e01b600052601160045260246000fd5b5060010190565b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008084546116fe816114cd565b60018281168015611716576001811461172b5761175a565b60ff198416875282151583028701945061175a565b8860005260208060002060005b858110156117515781548a820152908401908201611738565b50505082870194505b50505050835161176e8183602088016111e8565b0194935050505056fea264697066735822122012f566bee86226b43f98f6f6e32ba74bd4c1b40a43cf1b83019fe70382317bb864736f6c634300080f0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000088da47fc43572bcdd781f2d7883aec314aa17e5c000000000000000000000000000000000000000000000000000000000000001253484f505820537175616458204261646765000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000065351554144580000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): SHOPX SquadX Badge
Arg [1] : _symbol (string): SQUADX
Arg [2] : _vault (address): 0x88dA47FC43572BCDD781F2d7883aEC314AA17E5c
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000088da47fc43572bcdd781f2d7883aec314aa17e5c
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [4] : 53484f5058205371756164582042616467650000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 5351554144580000000000000000000000000000000000000000000000000000
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.