ERC-721
NFT
Overview
Max Total Supply
0 SNT
Holders
41
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SNTLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
StonedSanta
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 20 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721.sol"; import "./Ownable.sol"; import "./Strings.sol"; import "./common/meta-transactions/ContentMixin.sol"; import "./common/meta-transactions/NativeMetaTransaction.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } /** * @title StonedSanta * StonedSanta - ERC721 contract that whitelists a trading address, and has minting functionality. */ contract StonedSanta is ERC721, ContextMixin, NativeMetaTransaction, Ownable { using SafeMath for uint256; address proxyRegistryAddress; string private _baseTokenURI; string constant name1 = "Stoned Santa"; string constant symbol1 = "SNT"; mapping(uint256 => bool) public _distributed; address private _preMintReceiver = 0x5e6CF45E44f03D1ee20d76e288D6f92368678185; address payable private _nftFund = payable(0x9e808c0FfB7ce205a8DA114419338b11b6134BaA); address payable private _developer = payable(0x0a310fa4FbCEe430f7CC3b06AB1B1e08f8cE7689); address private _collectionOwner = 0xA4168d8991656d58Cd0c2A0a037C0C3595C169c9; uint256 public constant MAX_SUPPLY = 20000; event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed fromAddress, address indexed toAddress); event PermanentURI(string _value, uint256 indexed _id); constructor( address _proxyRegistryAddress ) ERC721(name1, symbol1) { require(msg.sender == _preMintReceiver); proxyRegistryAddress = _proxyRegistryAddress; _initializeEIP712(name1); setBaseTokenURI("ipfs://QmVMA8RFWVu2S1tKuBWee8ou2sCjbZF2feht1DGG548KGn/"); transferOwnership(_collectionOwner); mintAllNFT(); } /** * @dev Mints all tokens */ function mintAllNFT() internal { ERC721._balances[_preMintReceiver] = MAX_SUPPLY; emit ConsecutiveTransfer(1, MAX_SUPPLY, address(0), _preMintReceiver); } function _afterTokenTransfer(address, address, uint256 tokenId) internal override { if(!_distributed[tokenId]) { _distributed[tokenId] = true; } } function ownerOf(uint256 tokenId) public view override returns (address) { address owner = ERC721._owners[tokenId]; if (!_distributed[tokenId] && tokenId > 0 && tokenId <= MAX_SUPPLY) { owner = _preMintReceiver; } require(owner != address(0), "Stoned Santa: owner query for nonexistent token"); return owner; } function _exists(uint256 tokenId) internal view override returns (bool) { if (!_distributed[tokenId]) { return tokenId <= MAX_SUPPLY && tokenId > 0; } else { return ERC721._owners[tokenId] != address(0); } } function buySanta(uint id) public payable { require(id > 0 && id <= MAX_SUPPLY, "Invalid NFT id"); require(!_distributed[id], "NFT has already been purchased"); require(getPrice(id) == msg.value, "Ether value sent is not correct"); _transfer(_preMintReceiver, msg.sender, id); } function getPrice(uint id) public pure returns (uint256 price) { require(id > 0 && id <= MAX_SUPPLY, "Invalid NFT id"); if (id <= 500) { return 0; } else if (id <= 2500) { return 0.03 ether; } else if (id <= 4000) { return 0.04 ether; } else if (id <= 5000) { return 0.05 ether; } else if (id <= 6000) { return 0.06 ether; } else if (id <= 7500) { return 0.07 ether; } else if (id <= 10000) { return 0.08 ether; } else if (id <= 12500) { return 0.1 ether; } else if (id <= 15000) { return 0.2 ether; } else if (id <= 17500) { return 0.3 ether; } else if (id <= 19986) { return 1 ether; } else if (id <= MAX_SUPPLY) { return 10 ether; } } function withdraw() public onlyOwner { address payable receiver = payable(owner()); uint balance = address(this).balance; uint256 ownerAmount = balance * 85 / 100; uint256 fundAmount = balance * 10 / 100; uint256 devAmount = balance - ownerAmount - fundAmount; bool sent; (sent,) = receiver.call{value: ownerAmount }(""); require(sent, "Failed to send Ether"); (sent,) = _nftFund.call{value: fundAmount }(""); require(sent, "Failed to send Ether"); (sent,) = _developer.call{value: devAmount }(""); require(sent, "Failed to send Ether"); } function setBaseTokenURI(string memory _url) public onlyOwner { _baseTokenURI = _url; } function freezeMetadata(uint256 tokenId) external onlyOwner { require(bytes(baseTokenURI()).length != 0); emit PermanentURI(string(abi.encodePacked(baseTokenURI(), Strings.toString(tokenId))), tokenId); } function baseTokenURI() public view returns (string memory) { return _baseTokenURI; } function tokenURI(uint256 _tokenId) override public view returns (string memory) { return string(abi.encodePacked(baseTokenURI(), Strings.toString(_tokenId))); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) override public view returns (bool) { // Whitelist OpenSea proxy contract for easy trading. ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (address(proxyRegistry.proxies(owner)) == operator) { return true; } return super.isApprovedForAll(owner, operator); } /** * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea. */ function _msgSender() internal override view returns (address sender) { return ContextMixin.msgSender(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {SafeMath} from "openzeppelin-solidity/contracts/utils/math/SafeMath.sol"; import {EIP712Base} from "./EIP712Base.sol"; contract NativeMetaTransaction is EIP712Base { using SafeMath for uint256; bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256( bytes( "MetaTransaction(uint256 nonce,address from,bytes functionSignature)" ) ); event MetaTransactionExecuted( address userAddress, address payable relayerAddress, bytes functionSignature ); mapping(address => uint256) nonces; /* * Meta transaction structure. * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas * He should call the desired function directly in that case. */ struct MetaTransaction { uint256 nonce; address from; bytes functionSignature; } function executeMetaTransaction( address userAddress, bytes memory functionSignature, bytes32 sigR, bytes32 sigS, uint8 sigV ) public payable returns (bytes memory) { MetaTransaction memory metaTx = MetaTransaction({ nonce: nonces[userAddress], from: userAddress, functionSignature: functionSignature }); require( verify(userAddress, metaTx, sigR, sigS, sigV), "Signer and signature do not match" ); // increase nonce for user (to avoid re-use) nonces[userAddress] = nonces[userAddress].add(1); emit MetaTransactionExecuted( userAddress, payable(msg.sender), functionSignature ); // Append userAddress and relayer address at the end to extract it from calling context (bool success, bytes memory returnData) = address(this).call( abi.encodePacked(functionSignature, userAddress) ); require(success, "Function call not successful"); return returnData; } function hashMetaTransaction(MetaTransaction memory metaTx) internal pure returns (bytes32) { return keccak256( abi.encode( META_TRANSACTION_TYPEHASH, metaTx.nonce, metaTx.from, keccak256(metaTx.functionSignature) ) ); } function getNonce(address user) public view returns (uint256 nonce) { nonce = nonces[user]; } function verify( address signer, MetaTransaction memory metaTx, bytes32 sigR, bytes32 sigS, uint8 sigV ) internal view returns (bool) { require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER"); return signer == ecrecover( toTypedMessageHash(hashMetaTransaction(metaTx)), sigV, sigR, sigS ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract Initializable { bool inited = false; modifier initializer() { require(!inited, "already inited"); _; inited = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {Initializable} from "./Initializable.sol"; contract EIP712Base is Initializable { struct EIP712Domain { string name; string version; address verifyingContract; bytes32 salt; } string constant public ERC712_VERSION = "1"; bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256( bytes( "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)" ) ); bytes32 internal domainSeperator; // supposed to be called once while initializing. // one of the contracts that inherits this contract follows proxy pattern // so it is not possible to do this in a constructor function _initializeEIP712( string memory name ) internal initializer { _setDomainSeperator(name); } function _setDomainSeperator(string memory name) internal { domainSeperator = keccak256( abi.encode( EIP712_DOMAIN_TYPEHASH, keccak256(bytes(name)), keccak256(bytes(ERC712_VERSION)), address(this), bytes32(getChainId()) ) ); } function getDomainSeperator() public view returns (bytes32) { return domainSeperator; } function getChainId() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } /** * Accept message hash and returns hash message in EIP712 compatible form * So that it can be used to recover signer from signature signed using EIP712 formatted data * https://eips.ethereum.org/EIPS/eip-712 * "\\x19" makes the encoding deterministic * "\\x01" is the version byte to make it compatible to EIP-191 */ function toTypedMessageHash(bytes32 messageHash) internal view returns (bytes32) { return keccak256( abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; abstract contract ContextMixin { function msgSender() internal view returns (address payable sender) { if (msg.sender == address(this)) { bytes memory array = msg.data; uint256 index = msg.data.length; assembly { // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those. sender := and( mload(add(array, index)), 0xffffffffffffffffffffffffffffffffffffffff ) } } else { sender = payable(msg.sender); } return sender; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant alphabet = "0123456789abcdef"; /** * @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); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @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] = alphabet[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./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 () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./IERC721Metadata.sol"; import "./Address.sol"; import "./Context.sol"; import "./Strings.sol"; import "./ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping (uint256 => address) internal _owners; // Mapping owner address to token count mapping (address => uint256) internal _balances; // Mapping from token ID to approved address mapping (uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping (address => mapping (address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden * in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require(_msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory _data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory _data) internal virtual { _mint(to, tokenId); require(_checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; _afterTokenTransfer(from, to, tokenId); emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory _data) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { // solhint-disable-next-line no-inline-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } function _afterTokenTransfer(address from, address to, uint256 tokenId) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT 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) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 20 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"toAddress","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":false,"internalType":"string","name":"_value","type":"string"},{"indexed":true,"internalType":"uint256","name":"_id","type":"uint256"}],"name":"PermanentURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_distributed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"buySanta","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getPrice","outputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_url","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526006805460ff19169055600d80546001600160a01b0319908116735e6cf45e44f03d1ee20d76e288d6f9236867818517909155600e80548216739e808c0ffb7ce205a8da114419338b11b6134baa179055600f80548216730a310fa4fbcee430f7cc3b06ab1b1e08f8ce76891790556010805490911673a4168d8991656d58cd0c2a0a037c0c3595c169c91790553480156200009f57600080fd5b5060405162002bce38038062002bce833981016040819052620000c2916200065d565b604080518082018252600c81526b53746f6e65642053616e746160a01b60208083019182528351808501909452600384526214d39560ea1b9084015281519192916200011191600091620005b7565b50805162000127906001906020840190620005b7565b50505060006200013c6200022660201b60201c565b600980546001600160a01b0319166001600160a01b0383169081179091556040519192509060009060008051602062002b78833981519152908290a350600d546001600160a01b031633146200019157600080fd5b600a80546001600160a01b0319166001600160a01b03831617905560408051808201909152600c81526b53746f6e65642053616e746160a01b6020820152620001da9062000242565b620001fe60405180606001604052806036815260200162002b9860369139620002a7565b60105462000215906001600160a01b03166200032d565b6200021f6200044c565b50620006cc565b60006200023d620004b660201b6200144d1760201c565b905090565b60065460ff16156200028c5760405162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b60448201526064015b60405180910390fd5b620002978162000515565b506006805460ff19166001179055565b620002b162000226565b6001600160a01b0316620002cd6009546001600160a01b031690565b6001600160a01b031614620003145760405162461bcd60e51b8152602060048201819052602482015260008051602062002b58833981519152604482015260640162000283565b80516200032990600b906020840190620005b7565b5050565b6200033762000226565b6001600160a01b0316620003536009546001600160a01b031690565b6001600160a01b0316146200039a5760405162461bcd60e51b8152602060048201819052602482015260008051602062002b58833981519152604482015260640162000283565b6001600160a01b038116620004015760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840162000283565b6009546040516001600160a01b0380841692169060008051602062002b7883398151915290600090a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b600d80546001600160a01b03908116600090815260036020526040808220614e20908190559354905192169290916001917fdeaa91b6123d068f5821d0fb0678463d1a8a6079fe8af5de3ce5e896dcf9133d91620004ac91815260200190565b60405180910390a4565b6000333014156200050f57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150620005129050565b50335b90565b6040518060800160405280604f815260200162002b09604f9139805160209182012082519282019290922060408051808201825260018152603160f81b90840152805180840194909452838101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608401523060808401524660a0808501919091528151808503909101815260c090930190528151910120600755565b828054620005c5906200068f565b90600052602060002090601f016020900481019282620005e9576000855562000634565b82601f106200060457805160ff191683800117855562000634565b8280016001018555821562000634579182015b828111156200063457825182559160200191906001019062000617565b506200064292915062000646565b5090565b5b8082111562000642576000815560010162000647565b6000602082840312156200067057600080fd5b81516001600160a01b03811681146200068857600080fd5b9392505050565b600181811c90821680620006a457607f821691505b60208210811415620006c657634e487b7160e01b600052602260045260246000fd5b50919050565b61242d80620006dc6000396000f3fe6080604052600436106101525760003560e01c806301ffc9a71461015757806306fdde031461018c578063081812fc146101ae578063095ea7b3146101db5780630c53c51c146101fd5780630f7e59701461021057806320379ee51461023d57806323b872dd1461025c5780632d0335ab1461027c57806330176e13146102b257806332cb6b0c146102d25780633408e470146102e85780633ccfd60b146102fb57806342842e0e146103105780634dcf6ad614610330578063548d8aac146103505780636352211e1461038057806370a08231146103a0578063715018a6146103c05780638da5cb5b146103d557806395d89b41146103ea578063a22cb465146103ff578063b88d4fde1461041f578063c3a7eeee1461043f578063c87b56dd14610452578063d547cfb714610472578063e757223014610487578063e985e9c5146104a7578063f2fde38b146104c7575b600080fd5b34801561016357600080fd5b50610177610172366004611cb4565b6104e7565b60405190151581526020015b60405180910390f35b34801561019857600080fd5b506101a1610539565b6040516101839190611d29565b3480156101ba57600080fd5b506101ce6101c9366004611d3c565b6105cb565b6040516101839190611d55565b3480156101e757600080fd5b506101fb6101f6366004611d7e565b610658565b005b6101a161020b366004611e55565b61077b565b34801561021c57600080fd5b506101a1604051806040016040528060018152602001603160f81b81525081565b34801561024957600080fd5b506007545b604051908152602001610183565b34801561026857600080fd5b506101fb610277366004611ed2565b610964565b34801561028857600080fd5b5061024e610297366004611f13565b6001600160a01b031660009081526008602052604090205490565b3480156102be57600080fd5b506101fb6102cd366004611f30565b61099c565b3480156102de57600080fd5b5061024e614e2081565b3480156102f457600080fd5b504661024e565b34801561030757600080fd5b506101fb6109f2565b34801561031c57600080fd5b506101fb61032b366004611ed2565b610bf4565b34801561033c57600080fd5b506101fb61034b366004611d3c565b610c0f565b34801561035c57600080fd5b5061017761036b366004611d3c565b600c6020526000908152604090205460ff1681565b34801561038c57600080fd5b506101ce61039b366004611d3c565b610cc9565b3480156103ac57600080fd5b5061024e6103bb366004611f13565b610d8e565b3480156103cc57600080fd5b506101fb610e15565b3480156103e157600080fd5b506101ce610e9e565b3480156103f657600080fd5b506101a1610ead565b34801561040b57600080fd5b506101fb61041a366004611f78565b610ebc565b34801561042b57600080fd5b506101fb61043a366004611fb6565b610fba565b6101fb61044d366004611d3c565b610ff9565b34801561045e57600080fd5b506101a161046d366004611d3c565b6110f7565b34801561047e57600080fd5b506101a1611131565b34801561049357600080fd5b5061024e6104a2366004611d3c565b611140565b3480156104b357600080fd5b506101776104c2366004612021565b611288565b3480156104d357600080fd5b506101fb6104e2366004611f13565b61134d565b60006001600160e01b031982166380ac58cd60e01b148061051857506001600160e01b03198216635b5e139f60e01b145b8061053357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546105489061204f565b80601f01602080910402602001604051908101604052809291908181526020018280546105749061204f565b80156105c15780601f10610596576101008083540402835291602001916105c1565b820191906000526020600020905b8154815290600101906020018083116105a457829003601f168201915b5050505050905090565b60006105d6826114aa565b61063c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061066382610cc9565b9050806001600160a01b0316836001600160a01b031614156106d15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610633565b806001600160a01b03166106e36114f1565b6001600160a01b031614806106ff57506106ff816104c26114f1565b61076c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610633565b6107768383611500565b505050565b60408051606081810183526001600160a01b038816600081815260086020908152908590205484528301529181018690526107b9878287878761156e565b61080f5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610633565b6001600160a01b03871660009081526008602052604090205461083390600161165e565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061088390899033908a9061208a565b60405180910390a1600080306001600160a01b0316888a6040516020016108ab9291906120bf565b60408051601f19818403018152908290526108c5916120f1565b6000604051808303816000865af19150503d8060008114610902576040519150601f19603f3d011682016040523d82523d6000602084013e610907565b606091505b5091509150816109585760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b6044820152606401610633565b98975050505050505050565b61097561096f6114f1565b82611671565b6109915760405162461bcd60e51b81526004016106339061210d565b610776838383611733565b6109a46114f1565b6001600160a01b03166109b5610e9e565b6001600160a01b0316146109db5760405162461bcd60e51b81526004016106339061215e565b80516109ee90600b906020840190611c05565b5050565b6109fa6114f1565b6001600160a01b0316610a0b610e9e565b6001600160a01b031614610a315760405162461bcd60e51b81526004016106339061215e565b6000610a3b610e9e565b90504760006064610a4d8360556121a9565b610a5791906121de565b905060006064610a6884600a6121a9565b610a7291906121de565b9050600081610a8184866121f2565b610a8b91906121f2565b90506000856001600160a01b03168460405160006040518083038185875af1925050503d8060008114610ada576040519150601f19603f3d011682016040523d82523d6000602084013e610adf565b606091505b50508091505080610b025760405162461bcd60e51b815260040161063390612209565b600e546040516001600160a01b03909116908490600081818185875af1925050503d8060008114610b4f576040519150601f19603f3d011682016040523d82523d6000602084013e610b54565b606091505b50508091505080610b775760405162461bcd60e51b815260040161063390612209565b600f546040516001600160a01b03909116908390600081818185875af1925050503d8060008114610bc4576040519150601f19603f3d011682016040523d82523d6000602084013e610bc9565b606091505b50508091505080610bec5760405162461bcd60e51b815260040161063390612209565b505050505050565b61077683838360405180602001604052806000815250610fba565b610c176114f1565b6001600160a01b0316610c28610e9e565b6001600160a01b031614610c4e5760405162461bcd60e51b81526004016106339061215e565b610c56611131565b51610c6057600080fd5b807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207610c8a611131565b610c93846118ef565b604051602001610ca4929190612237565b60408051601f1981840301815290829052610cbe91611d29565b60405180910390a250565b600081815260026020908152604080832054600c9092528220546001600160a01b039091169060ff16158015610cff5750600083115b8015610d0d5750614e208311155b15610d205750600d546001600160a01b03165b6001600160a01b0381166105335760405162461bcd60e51b815260206004820152602f60248201527f53746f6e65642053616e74613a206f776e657220717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610633565b60006001600160a01b038216610df95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610633565b506001600160a01b031660009081526003602052604090205490565b610e1d6114f1565b6001600160a01b0316610e2e610e9e565b6001600160a01b031614610e545760405162461bcd60e51b81526004016106339061215e565b6009546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600980546001600160a01b0319169055565b6009546001600160a01b031690565b6060600180546105489061204f565b610ec46114f1565b6001600160a01b0316826001600160a01b03161415610f215760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610633565b8060056000610f2e6114f1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f726114f1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610fae911515815260200190565b60405180910390a35050565b610fcb610fc56114f1565b83611671565b610fe75760405162461bcd60e51b81526004016106339061210d565b610ff3848484846119ec565b50505050565b60008111801561100b5750614e208111155b6110275760405162461bcd60e51b815260040161063390612266565b6000818152600c602052604090205460ff16156110865760405162461bcd60e51b815260206004820152601e60248201527f4e46542068617320616c7265616479206265656e2070757263686173656400006044820152606401610633565b3461109082611140565b146110dd5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610633565b600d546110f4906001600160a01b03163383611733565b50565b6060611101611131565b61110a836118ef565b60405160200161111b929190612237565b6040516020818303038152906040529050919050565b6060600b80546105489061204f565b600080821180156111535750614e208211155b61116f5760405162461bcd60e51b815260040161063390612266565b6101f4821161118057506000919050565b6109c482116111975750666a94d74f430000919050565b610fa082116111ae5750668e1bc9bf040000919050565b61138882116111c5575066b1a2bc2ec50000919050565b61177082116111dc575066d529ae9e860000919050565b611d4c82116111f3575066f8b0a10e470000919050565b612710821161120b575067011c37937e080000919050565b6130d48211611223575067016345785d8a0000919050565b613a98821161123b57506702c68af0bb140000919050565b61445c82116112535750670429d069189e0000919050565b614e12821161126b5750670de0b6b3a7640000919050565b614e2082116112835750678ac7230489e80000919050565b919050565b600a5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906112c1908890600401611d55565b602060405180830381865afa1580156112de573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611302919061228e565b6001600160a01b0316141561131b576001915050610533565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6113556114f1565b6001600160a01b0316611366610e9e565b6001600160a01b03161461138c5760405162461bcd60e51b81526004016106339061215e565b6001600160a01b0381166113f15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610633565b6009546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000333014156114a457600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506114a79050565b50335b90565b6000818152600c602052604081205460ff166114d357614e208211158015610533575050151590565b506000908152600260205260409020546001600160a01b0316151590565b60006114fb61144d565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061153582610cc9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166115d45760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610633565b60016115e76115e287611a1f565b611a9c565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611635573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600061166a82846122ab565b9392505050565b600061167c826114aa565b6116dd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610633565b60006116e883610cc9565b9050806001600160a01b0316846001600160a01b031614806117235750836001600160a01b0316611718846105cb565b6001600160a01b0316145b8061134557506113458185611288565b826001600160a01b031661174682610cc9565b6001600160a01b0316146117ae5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610633565b6001600160a01b0382166118105760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610633565b61181b600082611500565b6001600160a01b03831660009081526003602052604081208054600192906118449084906121f2565b90915550506001600160a01b03821660009081526003602052604081208054600192906118729084906122ab565b9091555050600081815260026020526040902080546001600160a01b0319166001600160a01b0384161790556118a9838383611acc565b80826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6060816119135750506040805180820190915260018152600360fc1b602082015290565b8160005b811561193d5780611927816122c3565b91506119369050600a836121de565b9150611917565b6000816001600160401b0381111561195757611957611daa565b6040519080825280601f01601f191660200182016040528015611981576020820181803683370190505b5090505b8415611345576119966001836121f2565b91506119a3600a866122de565b6119ae9060306122ab565b60f81b8183815181106119c3576119c36122f2565b60200101906001600160f81b031916908160001a9053506119e5600a866121de565b9450611985565b6119f7848484611733565b611a0384848484611b00565b610ff35760405162461bcd60e51b815260040161063390612308565b60006040518060800160405280604381526020016123b56043913980516020918201208351848301516040808701518051908601209051611a7f950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000611aa760075490565b60405161190160f01b6020820152602281019190915260428101839052606201611a7f565b6000818152600c602052604090205460ff16610776576000818152600c60205260409020805460ff19166001179055505050565b60006001600160a01b0384163b15611bfa57836001600160a01b031663150b7a02611b296114f1565b8786866040518563ffffffff1660e01b8152600401611b4b949392919061235a565b6020604051808303816000875af1925050508015611b86575060408051601f3d908101601f19168201909252611b8391810190612397565b60015b611be0573d808015611bb4576040519150601f19603f3d011682016040523d82523d6000602084013e611bb9565b606091505b508051611bd85760405162461bcd60e51b815260040161063390612308565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611345565b506001949350505050565b828054611c119061204f565b90600052602060002090601f016020900481019282611c335760008555611c79565b82601f10611c4c57805160ff1916838001178555611c79565b82800160010185558215611c79579182015b82811115611c79578251825591602001919060010190611c5e565b50611c85929150611c89565b5090565b5b80821115611c855760008155600101611c8a565b6001600160e01b0319811681146110f457600080fd5b600060208284031215611cc657600080fd5b813561166a81611c9e565b60005b83811015611cec578181015183820152602001611cd4565b83811115610ff35750506000910152565b60008151808452611d15816020860160208601611cd1565b601f01601f19169290920160200192915050565b60208152600061166a6020830184611cfd565b600060208284031215611d4e57600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b03811681146110f457600080fd5b60008060408385031215611d9157600080fd5b8235611d9c81611d69565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115611dda57611dda611daa565b604051601f8501601f19908116603f01168101908282118183101715611e0257611e02611daa565b81604052809350858152868686011115611e1b57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112611e4657600080fd5b61166a83833560208501611dc0565b600080600080600060a08688031215611e6d57600080fd5b8535611e7881611d69565b945060208601356001600160401b03811115611e9357600080fd5b611e9f88828901611e35565b9450506040860135925060608601359150608086013560ff81168114611ec457600080fd5b809150509295509295909350565b600080600060608486031215611ee757600080fd5b8335611ef281611d69565b92506020840135611f0281611d69565b929592945050506040919091013590565b600060208284031215611f2557600080fd5b813561166a81611d69565b600060208284031215611f4257600080fd5b81356001600160401b03811115611f5857600080fd5b8201601f81018413611f6957600080fd5b61134584823560208401611dc0565b60008060408385031215611f8b57600080fd5b8235611f9681611d69565b915060208301358015158114611fab57600080fd5b809150509250929050565b60008060008060808587031215611fcc57600080fd5b8435611fd781611d69565b93506020850135611fe781611d69565b92506040850135915060608501356001600160401b0381111561200957600080fd5b61201587828801611e35565b91505092959194509250565b6000806040838503121561203457600080fd5b823561203f81611d69565b91506020830135611fab81611d69565b600181811c9082168061206357607f821691505b6020821081141561208457634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b038481168252831660208201526060604082018190526000906120b690830184611cfd565b95945050505050565b600083516120d1818460208801611cd1565b60609390931b6001600160601b0319169190920190815260140192915050565b60008251612103818460208701611cd1565b9190910192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156121c3576121c3612193565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826121ed576121ed6121c8565b500490565b60008282101561220457612204612193565b500390565b6020808252601490820152732330b4b632b2103a379039b2b7321022ba3432b960611b604082015260600190565b60008351612249818460208801611cd1565b83519083019061225d818360208801611cd1565b01949350505050565b6020808252600e908201526d125b9d985b1a5908139195081a5960921b604082015260600190565b6000602082840312156122a057600080fd5b815161166a81611d69565b600082198211156122be576122be612193565b500190565b60006000198214156122d7576122d7612193565b5060010190565b6000826122ed576122ed6121c8565b500690565b634e487b7160e01b600052603260045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061238d90830184611cfd565b9695505050505050565b6000602082840312156123a957600080fd5b815161166a81611c9e56fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212207587fc0a8086ccc1658dbd64f818e1497a23b1ec30e380e558dc480dff2e2a6e64736f6c634300080a0033454950373132446f6d61696e28737472696e67206e616d652c737472696e672076657273696f6e2c6164647265737320766572696679696e67436f6e74726163742c627974657333322073616c74294f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65728be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0697066733a2f2f516d564d41385246575675325331744b7542576565386f753273436a625a463266656874314447473534384b476e2f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Deployed Bytecode
0x6080604052600436106101525760003560e01c806301ffc9a71461015757806306fdde031461018c578063081812fc146101ae578063095ea7b3146101db5780630c53c51c146101fd5780630f7e59701461021057806320379ee51461023d57806323b872dd1461025c5780632d0335ab1461027c57806330176e13146102b257806332cb6b0c146102d25780633408e470146102e85780633ccfd60b146102fb57806342842e0e146103105780634dcf6ad614610330578063548d8aac146103505780636352211e1461038057806370a08231146103a0578063715018a6146103c05780638da5cb5b146103d557806395d89b41146103ea578063a22cb465146103ff578063b88d4fde1461041f578063c3a7eeee1461043f578063c87b56dd14610452578063d547cfb714610472578063e757223014610487578063e985e9c5146104a7578063f2fde38b146104c7575b600080fd5b34801561016357600080fd5b50610177610172366004611cb4565b6104e7565b60405190151581526020015b60405180910390f35b34801561019857600080fd5b506101a1610539565b6040516101839190611d29565b3480156101ba57600080fd5b506101ce6101c9366004611d3c565b6105cb565b6040516101839190611d55565b3480156101e757600080fd5b506101fb6101f6366004611d7e565b610658565b005b6101a161020b366004611e55565b61077b565b34801561021c57600080fd5b506101a1604051806040016040528060018152602001603160f81b81525081565b34801561024957600080fd5b506007545b604051908152602001610183565b34801561026857600080fd5b506101fb610277366004611ed2565b610964565b34801561028857600080fd5b5061024e610297366004611f13565b6001600160a01b031660009081526008602052604090205490565b3480156102be57600080fd5b506101fb6102cd366004611f30565b61099c565b3480156102de57600080fd5b5061024e614e2081565b3480156102f457600080fd5b504661024e565b34801561030757600080fd5b506101fb6109f2565b34801561031c57600080fd5b506101fb61032b366004611ed2565b610bf4565b34801561033c57600080fd5b506101fb61034b366004611d3c565b610c0f565b34801561035c57600080fd5b5061017761036b366004611d3c565b600c6020526000908152604090205460ff1681565b34801561038c57600080fd5b506101ce61039b366004611d3c565b610cc9565b3480156103ac57600080fd5b5061024e6103bb366004611f13565b610d8e565b3480156103cc57600080fd5b506101fb610e15565b3480156103e157600080fd5b506101ce610e9e565b3480156103f657600080fd5b506101a1610ead565b34801561040b57600080fd5b506101fb61041a366004611f78565b610ebc565b34801561042b57600080fd5b506101fb61043a366004611fb6565b610fba565b6101fb61044d366004611d3c565b610ff9565b34801561045e57600080fd5b506101a161046d366004611d3c565b6110f7565b34801561047e57600080fd5b506101a1611131565b34801561049357600080fd5b5061024e6104a2366004611d3c565b611140565b3480156104b357600080fd5b506101776104c2366004612021565b611288565b3480156104d357600080fd5b506101fb6104e2366004611f13565b61134d565b60006001600160e01b031982166380ac58cd60e01b148061051857506001600160e01b03198216635b5e139f60e01b145b8061053357506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546105489061204f565b80601f01602080910402602001604051908101604052809291908181526020018280546105749061204f565b80156105c15780601f10610596576101008083540402835291602001916105c1565b820191906000526020600020905b8154815290600101906020018083116105a457829003601f168201915b5050505050905090565b60006105d6826114aa565b61063c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061066382610cc9565b9050806001600160a01b0316836001600160a01b031614156106d15760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610633565b806001600160a01b03166106e36114f1565b6001600160a01b031614806106ff57506106ff816104c26114f1565b61076c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f776044820152771b995c881b9bdc88185c1c1c9bdd995908199bdc88185b1b60421b6064820152608401610633565b6107768383611500565b505050565b60408051606081810183526001600160a01b038816600081815260086020908152908590205484528301529181018690526107b9878287878761156e565b61080f5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610633565b6001600160a01b03871660009081526008602052604090205461083390600161165e565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b9061088390899033908a9061208a565b60405180910390a1600080306001600160a01b0316888a6040516020016108ab9291906120bf565b60408051601f19818403018152908290526108c5916120f1565b6000604051808303816000865af19150503d8060008114610902576040519150601f19603f3d011682016040523d82523d6000602084013e610907565b606091505b5091509150816109585760405162461bcd60e51b815260206004820152601c60248201527b119d5b98dd1a5bdb8818d85b1b081b9bdd081cdd58d8d95cdcd99d5b60221b6044820152606401610633565b98975050505050505050565b61097561096f6114f1565b82611671565b6109915760405162461bcd60e51b81526004016106339061210d565b610776838383611733565b6109a46114f1565b6001600160a01b03166109b5610e9e565b6001600160a01b0316146109db5760405162461bcd60e51b81526004016106339061215e565b80516109ee90600b906020840190611c05565b5050565b6109fa6114f1565b6001600160a01b0316610a0b610e9e565b6001600160a01b031614610a315760405162461bcd60e51b81526004016106339061215e565b6000610a3b610e9e565b90504760006064610a4d8360556121a9565b610a5791906121de565b905060006064610a6884600a6121a9565b610a7291906121de565b9050600081610a8184866121f2565b610a8b91906121f2565b90506000856001600160a01b03168460405160006040518083038185875af1925050503d8060008114610ada576040519150601f19603f3d011682016040523d82523d6000602084013e610adf565b606091505b50508091505080610b025760405162461bcd60e51b815260040161063390612209565b600e546040516001600160a01b03909116908490600081818185875af1925050503d8060008114610b4f576040519150601f19603f3d011682016040523d82523d6000602084013e610b54565b606091505b50508091505080610b775760405162461bcd60e51b815260040161063390612209565b600f546040516001600160a01b03909116908390600081818185875af1925050503d8060008114610bc4576040519150601f19603f3d011682016040523d82523d6000602084013e610bc9565b606091505b50508091505080610bec5760405162461bcd60e51b815260040161063390612209565b505050505050565b61077683838360405180602001604052806000815250610fba565b610c176114f1565b6001600160a01b0316610c28610e9e565b6001600160a01b031614610c4e5760405162461bcd60e51b81526004016106339061215e565b610c56611131565b51610c6057600080fd5b807fa109ba539900bf1b633f956d63c96fc89b814c7287f7aa50a9216d0b55657207610c8a611131565b610c93846118ef565b604051602001610ca4929190612237565b60408051601f1981840301815290829052610cbe91611d29565b60405180910390a250565b600081815260026020908152604080832054600c9092528220546001600160a01b039091169060ff16158015610cff5750600083115b8015610d0d5750614e208311155b15610d205750600d546001600160a01b03165b6001600160a01b0381166105335760405162461bcd60e51b815260206004820152602f60248201527f53746f6e65642053616e74613a206f776e657220717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610633565b60006001600160a01b038216610df95760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610633565b506001600160a01b031660009081526003602052604090205490565b610e1d6114f1565b6001600160a01b0316610e2e610e9e565b6001600160a01b031614610e545760405162461bcd60e51b81526004016106339061215e565b6009546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600980546001600160a01b0319169055565b6009546001600160a01b031690565b6060600180546105489061204f565b610ec46114f1565b6001600160a01b0316826001600160a01b03161415610f215760405162461bcd60e51b815260206004820152601960248201527822a9219b99189d1030b8383937bb32903a379031b0b63632b960391b6044820152606401610633565b8060056000610f2e6114f1565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610f726114f1565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610fae911515815260200190565b60405180910390a35050565b610fcb610fc56114f1565b83611671565b610fe75760405162461bcd60e51b81526004016106339061210d565b610ff3848484846119ec565b50505050565b60008111801561100b5750614e208111155b6110275760405162461bcd60e51b815260040161063390612266565b6000818152600c602052604090205460ff16156110865760405162461bcd60e51b815260206004820152601e60248201527f4e46542068617320616c7265616479206265656e2070757263686173656400006044820152606401610633565b3461109082611140565b146110dd5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610633565b600d546110f4906001600160a01b03163383611733565b50565b6060611101611131565b61110a836118ef565b60405160200161111b929190612237565b6040516020818303038152906040529050919050565b6060600b80546105489061204f565b600080821180156111535750614e208211155b61116f5760405162461bcd60e51b815260040161063390612266565b6101f4821161118057506000919050565b6109c482116111975750666a94d74f430000919050565b610fa082116111ae5750668e1bc9bf040000919050565b61138882116111c5575066b1a2bc2ec50000919050565b61177082116111dc575066d529ae9e860000919050565b611d4c82116111f3575066f8b0a10e470000919050565b612710821161120b575067011c37937e080000919050565b6130d48211611223575067016345785d8a0000919050565b613a98821161123b57506702c68af0bb140000919050565b61445c82116112535750670429d069189e0000919050565b614e12821161126b5750670de0b6b3a7640000919050565b614e2082116112835750678ac7230489e80000919050565b919050565b600a5460405163c455279160e01b81526000916001600160a01b039081169190841690829063c4552791906112c1908890600401611d55565b602060405180830381865afa1580156112de573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611302919061228e565b6001600160a01b0316141561131b576001915050610533565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b6113556114f1565b6001600160a01b0316611366610e9e565b6001600160a01b03161461138c5760405162461bcd60e51b81526004016106339061215e565b6001600160a01b0381166113f15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610633565b6009546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600980546001600160a01b0319166001600160a01b0392909216919091179055565b6000333014156114a457600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506114a79050565b50335b90565b6000818152600c602052604081205460ff166114d357614e208211158015610533575050151590565b506000908152600260205260409020546001600160a01b0316151590565b60006114fb61144d565b905090565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061153582610cc9565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b0386166115d45760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610633565b60016115e76115e287611a1f565b611a9c565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611635573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600061166a82846122ab565b9392505050565b600061167c826114aa565b6116dd5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610633565b60006116e883610cc9565b9050806001600160a01b0316846001600160a01b031614806117235750836001600160a01b0316611718846105cb565b6001600160a01b0316145b8061134557506113458185611288565b826001600160a01b031661174682610cc9565b6001600160a01b0316146117ae5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610633565b6001600160a01b0382166118105760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610633565b61181b600082611500565b6001600160a01b03831660009081526003602052604081208054600192906118449084906121f2565b90915550506001600160a01b03821660009081526003602052604081208054600192906118729084906122ab565b9091555050600081815260026020526040902080546001600160a01b0319166001600160a01b0384161790556118a9838383611acc565b80826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6060816119135750506040805180820190915260018152600360fc1b602082015290565b8160005b811561193d5780611927816122c3565b91506119369050600a836121de565b9150611917565b6000816001600160401b0381111561195757611957611daa565b6040519080825280601f01601f191660200182016040528015611981576020820181803683370190505b5090505b8415611345576119966001836121f2565b91506119a3600a866122de565b6119ae9060306122ab565b60f81b8183815181106119c3576119c36122f2565b60200101906001600160f81b031916908160001a9053506119e5600a866121de565b9450611985565b6119f7848484611733565b611a0384848484611b00565b610ff35760405162461bcd60e51b815260040161063390612308565b60006040518060800160405280604381526020016123b56043913980516020918201208351848301516040808701518051908601209051611a7f950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000611aa760075490565b60405161190160f01b6020820152602281019190915260428101839052606201611a7f565b6000818152600c602052604090205460ff16610776576000818152600c60205260409020805460ff19166001179055505050565b60006001600160a01b0384163b15611bfa57836001600160a01b031663150b7a02611b296114f1565b8786866040518563ffffffff1660e01b8152600401611b4b949392919061235a565b6020604051808303816000875af1925050508015611b86575060408051601f3d908101601f19168201909252611b8391810190612397565b60015b611be0573d808015611bb4576040519150601f19603f3d011682016040523d82523d6000602084013e611bb9565b606091505b508051611bd85760405162461bcd60e51b815260040161063390612308565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611345565b506001949350505050565b828054611c119061204f565b90600052602060002090601f016020900481019282611c335760008555611c79565b82601f10611c4c57805160ff1916838001178555611c79565b82800160010185558215611c79579182015b82811115611c79578251825591602001919060010190611c5e565b50611c85929150611c89565b5090565b5b80821115611c855760008155600101611c8a565b6001600160e01b0319811681146110f457600080fd5b600060208284031215611cc657600080fd5b813561166a81611c9e565b60005b83811015611cec578181015183820152602001611cd4565b83811115610ff35750506000910152565b60008151808452611d15816020860160208601611cd1565b601f01601f19169290920160200192915050565b60208152600061166a6020830184611cfd565b600060208284031215611d4e57600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b03811681146110f457600080fd5b60008060408385031215611d9157600080fd5b8235611d9c81611d69565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b0380841115611dda57611dda611daa565b604051601f8501601f19908116603f01168101908282118183101715611e0257611e02611daa565b81604052809350858152868686011115611e1b57600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112611e4657600080fd5b61166a83833560208501611dc0565b600080600080600060a08688031215611e6d57600080fd5b8535611e7881611d69565b945060208601356001600160401b03811115611e9357600080fd5b611e9f88828901611e35565b9450506040860135925060608601359150608086013560ff81168114611ec457600080fd5b809150509295509295909350565b600080600060608486031215611ee757600080fd5b8335611ef281611d69565b92506020840135611f0281611d69565b929592945050506040919091013590565b600060208284031215611f2557600080fd5b813561166a81611d69565b600060208284031215611f4257600080fd5b81356001600160401b03811115611f5857600080fd5b8201601f81018413611f6957600080fd5b61134584823560208401611dc0565b60008060408385031215611f8b57600080fd5b8235611f9681611d69565b915060208301358015158114611fab57600080fd5b809150509250929050565b60008060008060808587031215611fcc57600080fd5b8435611fd781611d69565b93506020850135611fe781611d69565b92506040850135915060608501356001600160401b0381111561200957600080fd5b61201587828801611e35565b91505092959194509250565b6000806040838503121561203457600080fd5b823561203f81611d69565b91506020830135611fab81611d69565b600181811c9082168061206357607f821691505b6020821081141561208457634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b038481168252831660208201526060604082018190526000906120b690830184611cfd565b95945050505050565b600083516120d1818460208801611cd1565b60609390931b6001600160601b0319169190920190815260140192915050565b60008251612103818460208701611cd1565b9190910192915050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156121c3576121c3612193565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826121ed576121ed6121c8565b500490565b60008282101561220457612204612193565b500390565b6020808252601490820152732330b4b632b2103a379039b2b7321022ba3432b960611b604082015260600190565b60008351612249818460208801611cd1565b83519083019061225d818360208801611cd1565b01949350505050565b6020808252600e908201526d125b9d985b1a5908139195081a5960921b604082015260600190565b6000602082840312156122a057600080fd5b815161166a81611d69565b600082198211156122be576122be612193565b500190565b60006000198214156122d7576122d7612193565b5060010190565b6000826122ed576122ed6121c8565b500690565b634e487b7160e01b600052603260045260246000fd5b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061238d90830184611cfd565b9695505050505050565b6000602082840312156123a957600080fd5b815161166a81611c9e56fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a26469706673582212207587fc0a8086ccc1658dbd64f818e1497a23b1ec30e380e558dc480dff2e2a6e64736f6c634300080a0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
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.