ERC-721
Overview
Max Total Supply
0 SING
Holders
52
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 SINGLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SignatureFund
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; import { ERC721Tradable } from "./base/ERC721Tradable.sol"; import { IERC20 } from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import { SafeERC20 } from '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; import { IWETH } from './interfaces/IWETH.sol'; import { Counters } from "@openzeppelin/contracts/utils/Counters.sol"; // ,,_ // zd$$??= // z$$P? F:`c, _ // d$$, `c'we&&i ,=caRe // $$$$ sign,?888i ,=P"2?us" // $" " ?$$$,?888. ,-''`>, bee // $'joy,?$$,?888 ,h' "I$'J$e // ... `?$$$,"88,`$$h 88love'd$" // d$PP""?-,"?$$,?8h`$$,,88'$Q42" // ?,,_`=4c,?=,"?ye$s`?E2$'? ' // `""?==""=-"" `""-`'_,,,, // .eco?qualiJC,-,"=? // """=='?" contract SignatureFund is ERC721Tradable { using SafeERC20 for IERC20; using Counters for Counters.Counter; Counters.Counter private _tokenIdCounter; error NotAuthorized(); // the permaweb url where all the metadata is stored string public arweaveBase = 'https://arweave.net/SuPXgNnLyr_X4FR-a9M3jTloVH9wZnN334g9ToxyNZU/'; // An array of values used to determine what kind of image gets minted uint256[2] values = [1e18, 1e19]; // A Kernel address for proper attribution address public creator; // The address of the WETH contract address public weth; event SignCreated(address indexed signer, uint256 amount, uint256 indexed tokenId, string uri, string selectMeta); modifier onlyCreator() { if (msg.sender != creator) { revert NotAuthorized(); } _; } constructor( address _proxyRegistryAddress, address _creator, address _weth ) ERC721Tradable('Signature Fund', 'SING', _proxyRegistryAddress) { creator = _creator; weth = _weth; } /** * @notice Link to contract metadata */ function contractURI() external pure returns (string memory) { return "https://arweave.net/JB096wImG3pVLPLQVe0tmgiJHUjrNSCtWdi-ojxTETg"; } /** @notice Set the royalties for the whole contract. Our intention is to set it to 10% in perpetuity. * @param recipient the royalties recipient - will always be pr1s0nart, for regulatory reasons. * @param value royalties value (between 0 and 10000) */ function setRoyalties(address recipient, uint256 value) external onlyCreator { _setRoyalties(recipient, value); } /** * @dev Receives donation and mints new NFT for donor * @param selectedNFT a string that allows us to determine which NFT at which level to mint and return to the donor */ function createSign(string memory selectedNFT) external payable { require(msg.value >= 0.01 ether, "SignatureFund: Minimum donation is 0.01 ETH"); // Here, we let the reader select which of the 8 available NFTs they wish to mint. // Each of these is already stored in Arweave, with 3 different versions. // Depending on the value of the message which mints the selected NFT, we assign // the metadataURI used when minting the NFT. The url links to a json file with // all the relevant information, especially the mp4 video of the signature seals. string memory selectMeta; if(msg.value < values[0]) { selectMeta = string(abi.encodePacked("0/",selectedNFT)); } else if(msg.value >= values[0] && msg.value < values[1]) { selectMeta = string(abi.encodePacked("1/",selectedNFT)); } else { selectMeta = string(abi.encodePacked("10/",selectedNFT)); } string memory uri = string(abi.encodePacked(arweaveBase,selectMeta,".json")); uint256 newTokenId = _tokenIdCounter.current(); _safeMint(creator, msg.sender, newTokenId); _setTokenURI(newTokenId, uri); _tokenIdCounter.increment(); emit SignCreated(msg.sender, msg.value, newTokenId, uri, selectMeta); _safeTransferETHWithFallback(msg.value); } /** * @notice allows the creator to update the arweave base url to change images that get minted from this point onwards * @param newUrl a new arweave url which hosts new metadata to keep things lively */ function setArweave(string memory newUrl) external onlyCreator { arweaveBase = newUrl; } /** * @notice allows the creator to update the values which determine what kind of image gets minted * @param newValues a new arrray of values to go along with new metadata in case we wish to change the game and keep things infinite * "This idea of continued discourse, or play, can be found underneath everything we do at Kernel. * We do not spurn rules or convention; we just contextualise them appropriately. Rules are not followed * as a means of gaining control or power, and we do not care whose turn it is next. Rules exist in order * to continue playing increasingly principled games with one another, always in the light of the common knowledge * that any rule, any boundary, is just a convention, inviting ever more creative, dramatic kinds of play." */ function setValues(uint256[2] memory newValues) external onlyCreator { values = newValues; } /** * @notice Transfer ETH. If the ETH transfer fails, wrap the ETH and try send it as WETH. * @param amount the total amount */ function _safeTransferETHWithFallback(uint256 amount) internal { if (!_safeTransferETH(amount)) { IWETH(weth).deposit{ value: amount }(); IERC20(weth).safeTransfer(creator, amount); } } /** * @notice Transfer ETH and return the success status. */ function _safeTransferETH(uint256 amount) internal returns (bool) { (bool success, ) = creator.call{value: amount, gas: 30_000 }(new bytes(0)); return success; } }
// SPDX-License-Identifier: MIT /// @title ERC721Tradable /// /// An ERC721 contract that whitelists the OpenSea Proxy for easy listing & trading and allows us to set contract-wide royalty information. /// /// Based on work done originally by Dynamic Culture /// https://github.com/Dynamiculture/neurapunks-contract/blob/d250e955453773566ba54e64fdea39ee221bc3d4/contracts/ERC721Tradable.sol pragma solidity 0.8.7; import { ERC721 } from "./ERC721.sol"; import { ERC721URIStorage } from "./ERC721URIStorage.sol"; import { ERC2981ContractWideRoyalties, ERC2981Royalties } from "./ERC2981ContractWideRoyalties.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } contract ERC721Tradable is ERC721URIStorage, ERC2981ContractWideRoyalties { // OpenSea's Proxy Registry address proxyRegistryAddress; constructor( string memory _name, string memory _symbol, address _proxyRegistryAddress ) ERC721(_name, _symbol) { proxyRegistryAddress = _proxyRegistryAddress; } function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721) { super._beforeTokenTransfer(from, to, tokenId); } function tokenURI(uint256 tokenId) public view virtual override(ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC2981Royalties) returns (bool) { return super.supportsInterface(interfaceId); } /** * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings. */ function isApprovedForAll(address owner, address operator) public view override 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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity 0.8.7; interface IWETH { function deposit() external payable; function withdraw(uint256 wad) external; function transfer(address to, uint256 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT /// @title ERC721 Token Implementation // LICENSE // ERC721.sol modifies OpenZeppelin's ERC721.sol: // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/ERC721.sol // // ERC721.sol source code copyright OpenZeppelin licensed under the MIT License. // With modifications by Nounders DAO. // // // MODIFICATIONS: // `_safeMint` and `_mint` contain an additional `creator` argument and // emit two `Transfer` logs, rather than one. The first log displays the // transfer (mint) from `address(0)` to the `creator`. The second displays the // transfer from the `creator` to the `to` address. This enables correct // attribution on various NFT marketplaces. pragma solidity 0.8.7; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/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}. */ 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) private _owners; // Mapping owner address to token count mapping(address => uint256) private _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}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.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 = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId`, transfers it to `to`, and emits two log events - * 1. Credits the `minter` with the mint. * 2. Shows transfer from the `minter` 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 creator, address to, uint256 tokenId ) internal virtual { _safeMint(creator, 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 creator, address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(creator, to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), 'ERC721: transfer to non ERC721Receiver implementer' ); } /** * @dev Mints `tokenId`, transfers it to `to`, and emits two log events - * 1. Credits the `creator` with the mint. * 2. Shows transfer from the `creator` 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 creator, 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), creator, tokenId); emit Transfer(creator, 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 = ERC721.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(ERC721.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; 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(ERC721.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 { 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` and `to` are never both zero. * * 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 {} }
// SPDX-License-Identifier: MIT /// @title ERC721 URI Storage Extension // LICENSE // ERC721.sol modifies OpenZeppelin's ERC721URIStorage.sol: // https://github.com/OpenZeppelin/openzeppelin-contracts/blob/6618f9f18424ade44116d0221719f4c93be6a078/contracts/token/ERC721/extensions/ERC721URIStorage.sol // // ERC721URIStorage.sol source code copyright OpenZeppelin licensed under the MIT License. // With modifications by Nounders DAO. // // MODIFICATIONS: // Consumes modified `ERC721` contract. See notes in `ERC721.sol`. pragma solidity 0.8.7; import "./ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token"); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @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 override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// SPDX-License-Identifier: MIT /// @title ERC721 URI Storage Extension /// This contract and the contracts it imports are copied from our good friend dievardump, with deep thanks and love. /// https://github.com/dievardump/EIP2981-implementation/blob/9d7da405f16adfddb2b9a528d146e1049fcf5e5d/contracts/ERC2981ContractWideRoyalties.sol /// /// We have modified the pragma and the way imports are specified. pragma solidity 0.8.7; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import { ERC2981Royalties, IERC2981Royalties } from './ERC2981Royalties.sol'; /// @dev This is a contract used to add ERC2981 support to ERC721 contracts /// @dev This implementation has the same royalties for each and every token abstract contract ERC2981ContractWideRoyalties is ERC2981Royalties { RoyaltyInfo private _royalties; /// @dev Sets token royalties /// @param recipient recipient of the royalties /// @param value percentage (using 2 decimals - 10000 = 100, 0 = 0) function _setRoyalties(address recipient, uint256 value) internal { require(value <= 10000, 'ERC2981Royalties: Too high'); _royalties = RoyaltyInfo(recipient, uint24(value)); } /// @inheritdoc IERC2981Royalties function royaltyInfo(uint256, uint256 value) external view override returns (address receiver, uint256 royaltyAmount) { RoyaltyInfo memory royalties = _royalties; receiver = royalties.recipient; royaltyAmount = (value * royalties.amount) / 10000; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/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`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) 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 `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) 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 // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "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] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) 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 // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) 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.7; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; import { IERC2981Royalties } from '../interfaces/IERC2981Royalties.sol'; /// @dev This is a contract used to add ERC2981 support to ERC721 and 1155 abstract contract ERC2981Royalties is ERC165, IERC2981Royalties { struct RoyaltyInfo { address recipient; uint24 amount; } /// @inheritdoc ERC165 function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC2981Royalties).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.7; /// @title IERC2981Royalties /// @dev Interface for the ERC2981 - Token Royalty standard interface IERC2981Royalties { /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _value - the sale price of the NFT asset specified by _tokenId /// @return _receiver - address of who should be sent the royalty payment /// @return _royaltyAmount - the royalty payment amount for value sale price function royaltyInfo(uint256 _tokenId, uint256 _value) external view returns (address _receiver, uint256 _royaltyAmount); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"address","name":"_creator","type":"address"},{"internalType":"address","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NotAuthorized","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"signer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"uri","type":"string"},{"indexed":false,"internalType":"string","name":"selectMeta","type":"string"}],"name":"SignCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"arweaveBase","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"string","name":"selectedNFT","type":"string"}],"name":"createSign","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"creator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"newUrl","type":"string"}],"name":"setArweave","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"setRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[2]","name":"newValues","type":"uint256[2]"}],"name":"setValues","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":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60e06040908152608081815290620026e960a03980516200002991600a916020909101906200014f565b5060408051808201909152670de0b6b3a76400008152678ac7230489e8000060208201526200005d90600b906002620001de565b503480156200006b57600080fd5b5060405162002729380380620027298339810160408190526200008e916200024e565b6040518060400160405280600e81526020016d14da59db985d1d5c9948119d5b9960921b8152506040518060400160405280600481526020016353494e4760e01b8152508482828160009080519060200190620000ed9291906200014f565b508051620001039060019060208401906200014f565b5050600880546001600160a01b03199081166001600160a01b0394851617909155600d805482169784169790971790965550600e805490951693169290921790925550620002d5915050565b8280546200015d9062000298565b90600052602060002090601f016020900481019282620001815760008555620001cc565b82601f106200019c57805160ff1916838001178555620001cc565b82800160010185558215620001cc579182015b82811115620001cc578251825591602001919060010190620001af565b50620001da9291506200021a565b5090565b8260028101928215620001cc579160200282015b82811115620001cc57825182906001600160401b0316905591602001919060010190620001f2565b5b80821115620001da57600081556001016200021b565b80516001600160a01b03811681146200024957600080fd5b919050565b6000806000606084860312156200026457600080fd5b6200026f8462000231565b92506200027f6020850162000231565b91506200028f6040850162000231565b90509250925092565b600181811c90821680620002ad57607f821691505b60208210811415620002cf57634e487b7160e01b600052602260045260246000fd5b50919050565b61240480620002e56000396000f3fe6080604052600436106101355760003560e01c806370a08231116100ab578063bcfa249e1161006f578063bcfa249e14610382578063c75eafb3146103a2578063c87b56dd146103c2578063d241c71a146103e2578063e8a3d485146103f5578063e985e9c51461040a57600080fd5b806370a08231146102df5780638c7ea24b1461030d57806395d89b411461032d578063a22cb46514610342578063b88d4fde1461036257600080fd5b806323b872dd116100fd57806323b872dd1461020b5780632a55205a1461022b5780633fc8cef31461026a57806342842e0e1461028a57806356a419e6146102aa5780636352211e146102bf57600080fd5b806301ffc9a71461013a57806302d05d3f1461016f57806306fdde03146101a7578063081812fc146101c9578063095ea7b3146101e9575b600080fd5b34801561014657600080fd5b5061015a610155366004611e4d565b61042a565b60405190151581526020015b60405180910390f35b34801561017b57600080fd5b50600d5461018f906001600160a01b031681565b6040516001600160a01b039091168152602001610166565b3480156101b357600080fd5b506101bc61043b565b6040516101669190612125565b3480156101d557600080fd5b5061018f6101e4366004611eed565b6104cd565b3480156101f557600080fd5b50610209610204366004611d7c565b61055a565b005b34801561021757600080fd5b50610209610226366004611c8d565b610670565b34801561023757600080fd5b5061024b610246366004611f06565b6106a1565b604080516001600160a01b039093168352602083019190915201610166565b34801561027657600080fd5b50600e5461018f906001600160a01b031681565b34801561029657600080fd5b506102096102a5366004611c8d565b6106f6565b3480156102b657600080fd5b506101bc610711565b3480156102cb57600080fd5b5061018f6102da366004611eed565b61079f565b3480156102eb57600080fd5b506102ff6102fa366004611c37565b610816565b604051908152602001610166565b34801561031957600080fd5b50610209610328366004611d7c565b61089d565b34801561033957600080fd5b506101bc6108d6565b34801561034e57600080fd5b5061020961035d366004611d4e565b6108e5565b34801561036e57600080fd5b5061020961037d366004611cce565b6109aa565b34801561038e57600080fd5b5061020961039d366004611da8565b6109e2565b3480156103ae57600080fd5b506102096103bd366004611ea4565b610a1a565b3480156103ce57600080fd5b506101bc6103dd366004611eed565b610a58565b6102096103f0366004611ea4565b610a63565b34801561040157600080fd5b506101bc610c01565b34801561041657600080fd5b5061015a610425366004611c54565b610c21565b600061043582610cf1565b92915050565b60606000805461044a90612294565b80601f016020809104026020016040519081016040528092919081815260200182805461047690612294565b80156104c35780601f10610498576101008083540402835291602001916104c3565b820191906000526020600020905b8154815290600101906020018083116104a657829003601f168201915b5050505050905090565b60006104d882610d16565b61053e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105658261079f565b9050806001600160a01b0316836001600160a01b031614156105d35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610535565b336001600160a01b03821614806105ef57506105ef8133610c21565b6106615760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610535565b61066b8383610d33565b505050565b61067a3382610da1565b6106965760405162461bcd60e51b81526004016105359061218a565b61066b838383610e63565b604080518082019091526007546001600160a01b038116808352600160a01b90910462ffffff16602083018190529091600091612710906106e29086612232565b6106ec919061221e565b9150509250929050565b61066b838383604051806020016040528060008152506109aa565b600a805461071e90612294565b80601f016020809104026020016040519081016040528092919081815260200182805461074a90612294565b80156107975780601f1061076c57610100808354040283529160200191610797565b820191906000526020600020905b81548152906001019060200180831161077a57829003601f168201915b505050505081565b6000818152600260205260408120546001600160a01b0316806104355760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610535565b60006001600160a01b0382166108815760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610535565b506001600160a01b031660009081526003602052604090205490565b600d546001600160a01b031633146108c85760405163ea8e4eb560e01b815260040160405180910390fd5b6108d28282611003565b5050565b60606001805461044a90612294565b6001600160a01b03821633141561093e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610535565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6109b43383610da1565b6109d05760405162461bcd60e51b81526004016105359061218a565b6109dc8484848461109f565b50505050565b600d546001600160a01b03163314610a0d5760405163ea8e4eb560e01b815260040160405180910390fd5b6108d2600b826002611afb565b600d546001600160a01b03163314610a455760405163ea8e4eb560e01b815260040160405180910390fd5b80516108d290600a906020840190611b39565b6060610435826110d2565b662386f26fc10000341015610ace5760405162461bcd60e51b815260206004820152602b60248201527f5369676e617475726546756e643a204d696e696d756d20646f6e6174696f6e2060448201526a0d2e640605c6062408aa8960ab1b6064820152608401610535565b600b54606090341015610b025781604051602001610aec91906120cb565b6040516020818303038152906040529050610b4e565b600b543410801590610b155750600c5434105b15610b2b5781604051602001610aec9190612076565b81604051602001610b3c91906120a0565b60405160208183030381529060405290505b6000600a82604051602001610b64929190611fbb565b60405160208183030381529060405290506000610b8060095490565b600d54909150610b9a906001600160a01b03163383611241565b610ba4818361125c565b610bb2600980546001019055565b80336001600160a01b03167f6b706b0b1581083caeadcbdb6dd6e416e84619a68a6d9c419af7c055df86b9d2348587604051610bf0939291906121db565b60405180910390a36109dc346112e7565b60606040518060600160405280603f8152602001612390603f9139905090565b60085460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015610c6e57600080fd5b505afa158015610c82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca69190611e87565b6001600160a01b03161415610cbf576001915050610435565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b60006001600160e01b0319821663152a902d60e11b148061043557506104358261137e565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d688261079f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610dac82610d16565b610e0d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610535565b6000610e188361079f565b9050806001600160a01b0316846001600160a01b03161480610e535750836001600160a01b0316610e48846104cd565b6001600160a01b0316145b80610ce95750610ce98185610c21565b826001600160a01b0316610e768261079f565b6001600160a01b031614610ede5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610535565b6001600160a01b038216610f405760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610535565b610f4b600082610d33565b6001600160a01b0383166000908152600360205260408120805460019290610f74908490612251565b90915550506001600160a01b0382166000908152600360205260408120805460019290610fa2908490612206565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127108111156110555760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610535565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260078054600160a01b9093026001600160b81b0319909316909117919091179055565b6110aa848484610e63565b6110b6848484846113ce565b6109dc5760405162461bcd60e51b815260040161053590612138565b60606110dd82610d16565b6111435760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610535565b6000828152600660205260408120805461115c90612294565b80601f016020809104026020016040519081016040528092919081815260200182805461118890612294565b80156111d55780601f106111aa576101008083540402835291602001916111d5565b820191906000526020600020905b8154815290600101906020018083116111b857829003601f168201915b5050505050905060006111f360408051602081019091526000815290565b9050805160001415611206575092915050565b815115611238578082604051602001611220929190611f8c565b60405160208183030381529060405292505050919050565b610ce9846114db565b61066b838383604051806020016040528060008152506115b3565b61126582610d16565b6112c85760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610535565b6000828152600660209081526040909120825161066b92840190611b39565b6112f0816115cb565b61137b57600e60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561134457600080fd5b505af1158015611358573d6000803e3d6000fd5b5050600d54600e5461137b94506001600160a01b0390811693501690508361164a565b50565b60006001600160e01b031982166380ac58cd60e01b14806113af57506001600160e01b03198216635b5e139f60e01b145b8061043557506301ffc9a760e01b6001600160e01b0319831614610435565b60006001600160a01b0384163b156114d057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906114129033908990889088906004016120e8565b602060405180830381600087803b15801561142c57600080fd5b505af192505050801561145c575060408051601f3d908101601f1916820190925261145991810190611e6a565b60015b6114b6573d80801561148a576040519150601f19603f3d011682016040523d82523d6000602084013e61148f565b606091505b5080516114ae5760405162461bcd60e51b815260040161053590612138565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ce9565b506001949350505050565b60606114e682610d16565b61154a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610535565b600061156160408051602081019091526000815290565b9050600081511161158157604051806020016040528060008152506115ac565b8061158b8461169c565b60405160200161159c929190611f8c565b6040516020818303038152906040525b9392505050565b6115be84848461179a565b6110b660008484846113ce565b600d5460408051600080825260208201928390529283926001600160a01b03909116916175309186916115fd91611f70565b600060405180830381858888f193505050503d806000811461163b576040519150601f19603f3d011682016040523d82523d6000602084013e611640565b606091505b5090949350505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261066b908490611915565b6060816116c05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156116ea57806116d4816122cf565b91506116e39050600a8361221e565b91506116c4565b60008167ffffffffffffffff81111561170557611705612340565b6040519080825280601f01601f19166020018201604052801561172f576020820181803683370190505b5090505b8415610ce957611744600183612251565b9150611751600a866122ea565b61175c906030612206565b60f81b8183815181106117715761177161232a565b60200101906001600160f81b031916908160001a905350611793600a8661221e565b9450611733565b6001600160a01b0382166117f05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610535565b6117f981610d16565b156118465760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610535565b6001600160a01b038216600090815260036020526040812080546001929061186f908490612206565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116919091179091559051839291861691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061196a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166119e79092919063ffffffff16565b80519091501561066b57808060200190518101906119889190611e30565b61066b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610535565b6060610ce98484600085856001600160a01b0385163b611a495760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610535565b600080866001600160a01b03168587604051611a659190611f70565b60006040518083038185875af1925050503d8060008114611aa2576040519150601f19603f3d011682016040523d82523d6000602084013e611aa7565b606091505b5091509150611ab7828286611ac2565b979650505050505050565b60608315611ad15750816115ac565b825115611ae15782518084602001fd5b8160405162461bcd60e51b81526004016105359190612125565b8260028101928215611b29579160200282015b82811115611b29578251825591602001919060010190611b0e565b50611b35929150611bac565b5090565b828054611b4590612294565b90600052602060002090601f016020900481019282611b675760008555611b29565b82601f10611b8057805160ff1916838001178555611b29565b82800160010185558215611b295791820182811115611b29578251825591602001919060010190611b0e565b5b80821115611b355760008155600101611bad565b600067ffffffffffffffff80841115611bdc57611bdc612340565b604051601f8501601f19908116603f01168101908282118183101715611c0457611c04612340565b81604052809350858152868686011115611c1d57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611c4957600080fd5b81356115ac81612356565b60008060408385031215611c6757600080fd5b8235611c7281612356565b91506020830135611c8281612356565b809150509250929050565b600080600060608486031215611ca257600080fd5b8335611cad81612356565b92506020840135611cbd81612356565b929592945050506040919091013590565b60008060008060808587031215611ce457600080fd5b8435611cef81612356565b93506020850135611cff81612356565b925060408501359150606085013567ffffffffffffffff811115611d2257600080fd5b8501601f81018713611d3357600080fd5b611d4287823560208401611bc1565b91505092959194509250565b60008060408385031215611d6157600080fd5b8235611d6c81612356565b91506020830135611c828161236b565b60008060408385031215611d8f57600080fd5b8235611d9a81612356565b946020939093013593505050565b600060408284031215611dba57600080fd5b82601f830112611dc957600080fd5b6040516040810181811067ffffffffffffffff82111715611dec57611dec612340565b8060405250808385604086011115611e0357600080fd5b60005b6002811015611e25578135835260209283019290910190600101611e06565b509195945050505050565b600060208284031215611e4257600080fd5b81516115ac8161236b565b600060208284031215611e5f57600080fd5b81356115ac81612379565b600060208284031215611e7c57600080fd5b81516115ac81612379565b600060208284031215611e9957600080fd5b81516115ac81612356565b600060208284031215611eb657600080fd5b813567ffffffffffffffff811115611ecd57600080fd5b8201601f81018413611ede57600080fd5b610ce984823560208401611bc1565b600060208284031215611eff57600080fd5b5035919050565b60008060408385031215611f1957600080fd5b50508035926020909101359150565b60008151808452611f40816020860160208601612268565b601f01601f19169290920160200192915050565b60008151611f66818560208601612268565b9290920192915050565b60008251611f82818460208701612268565b9190910192915050565b60008351611f9e818460208801612268565b835190830190611fb2818360208801612268565b01949350505050565b600080845481600182811c915080831680611fd757607f831692505b6020808410821415611ff757634e487b7160e01b86526022600452602486fd5b81801561200b576001811461201c57612049565b60ff19861689528489019650612049565b60008b81526020902060005b868110156120415781548b820152908501908301612028565b505084890196505b50505050505061206d61205c8286611f54565b64173539b7b760d91b815260050190565b95945050505050565b61312f60f01b815260008251612093816002850160208701612268565b9190910160020192915050565b6231302f60e81b8152600082516120be816003850160208701612268565b9190910160030192915050565b61302f60f01b815260008251612093816002850160208701612268565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061211b90830184611f28565b9695505050505050565b6020815260006115ac6020830184611f28565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b8381526060602082015260006121f46060830185611f28565b828103604084015261211b8185611f28565b60008219821115612219576122196122fe565b500190565b60008261222d5761222d612314565b500490565b600081600019048311821515161561224c5761224c6122fe565b500290565b600082821015612263576122636122fe565b500390565b60005b8381101561228357818101518382015260200161226b565b838111156109dc5750506000910152565b600181811c908216806122a857607f821691505b602082108114156122c957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156122e3576122e36122fe565b5060010190565b6000826122f9576122f9612314565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461137b57600080fd5b801515811461137b57600080fd5b6001600160e01b03198116811461137b57600080fdfe68747470733a2f2f617277656176652e6e65742f4a4230393677496d473370564c504c51566530746d67694a48556a724e5343745764692d6f6a7854455467a264697066735822122028384941fe306b84c5fae4e50684a35f113677e6f26db5cc882172b923253f7f64736f6c6343000807003368747470733a2f2f617277656176652e6e65742f53755058674e6e4c79725f583446522d61394d336a546c6f564839775a6e4e3333346739546f78794e5a552f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000007dac9fc15c1db4379d75a6e3f330ae849dffce18000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x6080604052600436106101355760003560e01c806370a08231116100ab578063bcfa249e1161006f578063bcfa249e14610382578063c75eafb3146103a2578063c87b56dd146103c2578063d241c71a146103e2578063e8a3d485146103f5578063e985e9c51461040a57600080fd5b806370a08231146102df5780638c7ea24b1461030d57806395d89b411461032d578063a22cb46514610342578063b88d4fde1461036257600080fd5b806323b872dd116100fd57806323b872dd1461020b5780632a55205a1461022b5780633fc8cef31461026a57806342842e0e1461028a57806356a419e6146102aa5780636352211e146102bf57600080fd5b806301ffc9a71461013a57806302d05d3f1461016f57806306fdde03146101a7578063081812fc146101c9578063095ea7b3146101e9575b600080fd5b34801561014657600080fd5b5061015a610155366004611e4d565b61042a565b60405190151581526020015b60405180910390f35b34801561017b57600080fd5b50600d5461018f906001600160a01b031681565b6040516001600160a01b039091168152602001610166565b3480156101b357600080fd5b506101bc61043b565b6040516101669190612125565b3480156101d557600080fd5b5061018f6101e4366004611eed565b6104cd565b3480156101f557600080fd5b50610209610204366004611d7c565b61055a565b005b34801561021757600080fd5b50610209610226366004611c8d565b610670565b34801561023757600080fd5b5061024b610246366004611f06565b6106a1565b604080516001600160a01b039093168352602083019190915201610166565b34801561027657600080fd5b50600e5461018f906001600160a01b031681565b34801561029657600080fd5b506102096102a5366004611c8d565b6106f6565b3480156102b657600080fd5b506101bc610711565b3480156102cb57600080fd5b5061018f6102da366004611eed565b61079f565b3480156102eb57600080fd5b506102ff6102fa366004611c37565b610816565b604051908152602001610166565b34801561031957600080fd5b50610209610328366004611d7c565b61089d565b34801561033957600080fd5b506101bc6108d6565b34801561034e57600080fd5b5061020961035d366004611d4e565b6108e5565b34801561036e57600080fd5b5061020961037d366004611cce565b6109aa565b34801561038e57600080fd5b5061020961039d366004611da8565b6109e2565b3480156103ae57600080fd5b506102096103bd366004611ea4565b610a1a565b3480156103ce57600080fd5b506101bc6103dd366004611eed565b610a58565b6102096103f0366004611ea4565b610a63565b34801561040157600080fd5b506101bc610c01565b34801561041657600080fd5b5061015a610425366004611c54565b610c21565b600061043582610cf1565b92915050565b60606000805461044a90612294565b80601f016020809104026020016040519081016040528092919081815260200182805461047690612294565b80156104c35780601f10610498576101008083540402835291602001916104c3565b820191906000526020600020905b8154815290600101906020018083116104a657829003601f168201915b5050505050905090565b60006104d882610d16565b61053e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105658261079f565b9050806001600160a01b0316836001600160a01b031614156105d35760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610535565b336001600160a01b03821614806105ef57506105ef8133610c21565b6106615760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610535565b61066b8383610d33565b505050565b61067a3382610da1565b6106965760405162461bcd60e51b81526004016105359061218a565b61066b838383610e63565b604080518082019091526007546001600160a01b038116808352600160a01b90910462ffffff16602083018190529091600091612710906106e29086612232565b6106ec919061221e565b9150509250929050565b61066b838383604051806020016040528060008152506109aa565b600a805461071e90612294565b80601f016020809104026020016040519081016040528092919081815260200182805461074a90612294565b80156107975780601f1061076c57610100808354040283529160200191610797565b820191906000526020600020905b81548152906001019060200180831161077a57829003601f168201915b505050505081565b6000818152600260205260408120546001600160a01b0316806104355760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610535565b60006001600160a01b0382166108815760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610535565b506001600160a01b031660009081526003602052604090205490565b600d546001600160a01b031633146108c85760405163ea8e4eb560e01b815260040160405180910390fd5b6108d28282611003565b5050565b60606001805461044a90612294565b6001600160a01b03821633141561093e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610535565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6109b43383610da1565b6109d05760405162461bcd60e51b81526004016105359061218a565b6109dc8484848461109f565b50505050565b600d546001600160a01b03163314610a0d5760405163ea8e4eb560e01b815260040160405180910390fd5b6108d2600b826002611afb565b600d546001600160a01b03163314610a455760405163ea8e4eb560e01b815260040160405180910390fd5b80516108d290600a906020840190611b39565b6060610435826110d2565b662386f26fc10000341015610ace5760405162461bcd60e51b815260206004820152602b60248201527f5369676e617475726546756e643a204d696e696d756d20646f6e6174696f6e2060448201526a0d2e640605c6062408aa8960ab1b6064820152608401610535565b600b54606090341015610b025781604051602001610aec91906120cb565b6040516020818303038152906040529050610b4e565b600b543410801590610b155750600c5434105b15610b2b5781604051602001610aec9190612076565b81604051602001610b3c91906120a0565b60405160208183030381529060405290505b6000600a82604051602001610b64929190611fbb565b60405160208183030381529060405290506000610b8060095490565b600d54909150610b9a906001600160a01b03163383611241565b610ba4818361125c565b610bb2600980546001019055565b80336001600160a01b03167f6b706b0b1581083caeadcbdb6dd6e416e84619a68a6d9c419af7c055df86b9d2348587604051610bf0939291906121db565b60405180910390a36109dc346112e7565b60606040518060600160405280603f8152602001612390603f9139905090565b60085460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b158015610c6e57600080fd5b505afa158015610c82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca69190611e87565b6001600160a01b03161415610cbf576001915050610435565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b60006001600160e01b0319821663152a902d60e11b148061043557506104358261137e565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610d688261079f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610dac82610d16565b610e0d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610535565b6000610e188361079f565b9050806001600160a01b0316846001600160a01b03161480610e535750836001600160a01b0316610e48846104cd565b6001600160a01b0316145b80610ce95750610ce98185610c21565b826001600160a01b0316610e768261079f565b6001600160a01b031614610ede5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610535565b6001600160a01b038216610f405760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610535565b610f4b600082610d33565b6001600160a01b0383166000908152600360205260408120805460019290610f74908490612251565b90915550506001600160a01b0382166000908152600360205260408120805460019290610fa2908490612206565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127108111156110555760405162461bcd60e51b815260206004820152601a60248201527f45524332393831526f79616c746965733a20546f6f20686967680000000000006044820152606401610535565b604080518082019091526001600160a01b0390921680835262ffffff909116602090920182905260078054600160a01b9093026001600160b81b0319909316909117919091179055565b6110aa848484610e63565b6110b6848484846113ce565b6109dc5760405162461bcd60e51b815260040161053590612138565b60606110dd82610d16565b6111435760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b6064820152608401610535565b6000828152600660205260408120805461115c90612294565b80601f016020809104026020016040519081016040528092919081815260200182805461118890612294565b80156111d55780601f106111aa576101008083540402835291602001916111d5565b820191906000526020600020905b8154815290600101906020018083116111b857829003601f168201915b5050505050905060006111f360408051602081019091526000815290565b9050805160001415611206575092915050565b815115611238578082604051602001611220929190611f8c565b60405160208183030381529060405292505050919050565b610ce9846114db565b61066b838383604051806020016040528060008152506115b3565b61126582610d16565b6112c85760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610535565b6000828152600660209081526040909120825161066b92840190611b39565b6112f0816115cb565b61137b57600e60009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561134457600080fd5b505af1158015611358573d6000803e3d6000fd5b5050600d54600e5461137b94506001600160a01b0390811693501690508361164a565b50565b60006001600160e01b031982166380ac58cd60e01b14806113af57506001600160e01b03198216635b5e139f60e01b145b8061043557506301ffc9a760e01b6001600160e01b0319831614610435565b60006001600160a01b0384163b156114d057604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906114129033908990889088906004016120e8565b602060405180830381600087803b15801561142c57600080fd5b505af192505050801561145c575060408051601f3d908101601f1916820190925261145991810190611e6a565b60015b6114b6573d80801561148a576040519150601f19603f3d011682016040523d82523d6000602084013e61148f565b606091505b5080516114ae5760405162461bcd60e51b815260040161053590612138565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610ce9565b506001949350505050565b60606114e682610d16565b61154a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610535565b600061156160408051602081019091526000815290565b9050600081511161158157604051806020016040528060008152506115ac565b8061158b8461169c565b60405160200161159c929190611f8c565b6040516020818303038152906040525b9392505050565b6115be84848461179a565b6110b660008484846113ce565b600d5460408051600080825260208201928390529283926001600160a01b03909116916175309186916115fd91611f70565b600060405180830381858888f193505050503d806000811461163b576040519150601f19603f3d011682016040523d82523d6000602084013e611640565b606091505b5090949350505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261066b908490611915565b6060816116c05750506040805180820190915260018152600360fc1b602082015290565b8160005b81156116ea57806116d4816122cf565b91506116e39050600a8361221e565b91506116c4565b60008167ffffffffffffffff81111561170557611705612340565b6040519080825280601f01601f19166020018201604052801561172f576020820181803683370190505b5090505b8415610ce957611744600183612251565b9150611751600a866122ea565b61175c906030612206565b60f81b8183815181106117715761177161232a565b60200101906001600160f81b031916908160001a905350611793600a8661221e565b9450611733565b6001600160a01b0382166117f05760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610535565b6117f981610d16565b156118465760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610535565b6001600160a01b038216600090815260036020526040812080546001929061186f908490612206565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03868116919091179091559051839291861691907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600061196a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166119e79092919063ffffffff16565b80519091501561066b57808060200190518101906119889190611e30565b61066b5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610535565b6060610ce98484600085856001600160a01b0385163b611a495760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610535565b600080866001600160a01b03168587604051611a659190611f70565b60006040518083038185875af1925050503d8060008114611aa2576040519150601f19603f3d011682016040523d82523d6000602084013e611aa7565b606091505b5091509150611ab7828286611ac2565b979650505050505050565b60608315611ad15750816115ac565b825115611ae15782518084602001fd5b8160405162461bcd60e51b81526004016105359190612125565b8260028101928215611b29579160200282015b82811115611b29578251825591602001919060010190611b0e565b50611b35929150611bac565b5090565b828054611b4590612294565b90600052602060002090601f016020900481019282611b675760008555611b29565b82601f10611b8057805160ff1916838001178555611b29565b82800160010185558215611b295791820182811115611b29578251825591602001919060010190611b0e565b5b80821115611b355760008155600101611bad565b600067ffffffffffffffff80841115611bdc57611bdc612340565b604051601f8501601f19908116603f01168101908282118183101715611c0457611c04612340565b81604052809350858152868686011115611c1d57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611c4957600080fd5b81356115ac81612356565b60008060408385031215611c6757600080fd5b8235611c7281612356565b91506020830135611c8281612356565b809150509250929050565b600080600060608486031215611ca257600080fd5b8335611cad81612356565b92506020840135611cbd81612356565b929592945050506040919091013590565b60008060008060808587031215611ce457600080fd5b8435611cef81612356565b93506020850135611cff81612356565b925060408501359150606085013567ffffffffffffffff811115611d2257600080fd5b8501601f81018713611d3357600080fd5b611d4287823560208401611bc1565b91505092959194509250565b60008060408385031215611d6157600080fd5b8235611d6c81612356565b91506020830135611c828161236b565b60008060408385031215611d8f57600080fd5b8235611d9a81612356565b946020939093013593505050565b600060408284031215611dba57600080fd5b82601f830112611dc957600080fd5b6040516040810181811067ffffffffffffffff82111715611dec57611dec612340565b8060405250808385604086011115611e0357600080fd5b60005b6002811015611e25578135835260209283019290910190600101611e06565b509195945050505050565b600060208284031215611e4257600080fd5b81516115ac8161236b565b600060208284031215611e5f57600080fd5b81356115ac81612379565b600060208284031215611e7c57600080fd5b81516115ac81612379565b600060208284031215611e9957600080fd5b81516115ac81612356565b600060208284031215611eb657600080fd5b813567ffffffffffffffff811115611ecd57600080fd5b8201601f81018413611ede57600080fd5b610ce984823560208401611bc1565b600060208284031215611eff57600080fd5b5035919050565b60008060408385031215611f1957600080fd5b50508035926020909101359150565b60008151808452611f40816020860160208601612268565b601f01601f19169290920160200192915050565b60008151611f66818560208601612268565b9290920192915050565b60008251611f82818460208701612268565b9190910192915050565b60008351611f9e818460208801612268565b835190830190611fb2818360208801612268565b01949350505050565b600080845481600182811c915080831680611fd757607f831692505b6020808410821415611ff757634e487b7160e01b86526022600452602486fd5b81801561200b576001811461201c57612049565b60ff19861689528489019650612049565b60008b81526020902060005b868110156120415781548b820152908501908301612028565b505084890196505b50505050505061206d61205c8286611f54565b64173539b7b760d91b815260050190565b95945050505050565b61312f60f01b815260008251612093816002850160208701612268565b9190910160020192915050565b6231302f60e81b8152600082516120be816003850160208701612268565b9190910160030192915050565b61302f60f01b815260008251612093816002850160208701612268565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061211b90830184611f28565b9695505050505050565b6020815260006115ac6020830184611f28565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b8381526060602082015260006121f46060830185611f28565b828103604084015261211b8185611f28565b60008219821115612219576122196122fe565b500190565b60008261222d5761222d612314565b500490565b600081600019048311821515161561224c5761224c6122fe565b500290565b600082821015612263576122636122fe565b500390565b60005b8381101561228357818101518382015260200161226b565b838111156109dc5750506000910152565b600181811c908216806122a857607f821691505b602082108114156122c957634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156122e3576122e36122fe565b5060010190565b6000826122f9576122f9612314565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461137b57600080fd5b801515811461137b57600080fd5b6001600160e01b03198116811461137b57600080fdfe68747470733a2f2f617277656176652e6e65742f4a4230393677496d473370564c504c51566530746d67694a48556a724e5343745764692d6f6a7854455467a264697066735822122028384941fe306b84c5fae4e50684a35f113677e6f26db5cc882172b923253f7f64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000007dac9fc15c1db4379d75a6e3f330ae849dffce18000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [1] : _creator (address): 0x7DAC9Fc15C1Db4379D75A6E3f330aE849dFfcE18
Arg [2] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 0000000000000000000000007dac9fc15c1db4379d75a6e3f330ae849dffce18
Arg [2] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
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.