ERC-721
NFT
Overview
Max Total Supply
16,348 ELEM
Holders
5,403
Market
Volume (24H)
5.2765 ETH
Min Price (24H)
$1,152.17 @ 0.380000 ETH
Max Price (24H)
$2,728.82 @ 0.900000 ETH
Other Info
Token Contract
Balance
1 ELEMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Elemental
Compiler Version
v0.8.18+commit.87f61d96
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.18; import "solbase/src/tokens/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; import {BitMaps} from "@openzeppelin/contracts/utils/structs/BitMaps.sol"; import "closedsea/OperatorFilterer.sol"; import "./MultisigOwnable.sol"; error NotAllowedByRegistry(); error RegistryNotSet(); error InvalidTokenId(); error BeanAddressNotSet(); error RedeemBeanNotOpen(); error InvalidRedeemer(); error NoMoreTokenIds(); interface IRegistry { function isAllowedOperator(address operator) external view returns (bool); } contract Elemental is ERC2981, ERC721, MultisigOwnable, OperatorFilterer { using Strings for uint256; using BitMaps for BitMaps.BitMap; event BeanRedeemed( address indexed to, uint256 indexed tokenId, uint256 indexed beanId ); bool public operatorFilteringEnabled = true; bool public isRegistryActive = false; address public registryAddress; struct RedeemInfo { bool redeemBeanOpen; address beanAddress; } RedeemInfo public redeemInfo; uint16 public immutable MAX_SUPPLY; uint16 internal _numAvailableRemainingTokens; // Data structure used for Fisher Yates shuffle uint16[65536] internal _availableRemainingTokens; constructor( string memory _name, string memory _symbol, uint16 maxSupply_ ) ERC721(_name, _symbol) { MAX_SUPPLY = maxSupply_; _numAvailableRemainingTokens = maxSupply_; _registerForOperatorFiltering(); operatorFilteringEnabled = true; } // --------------- // Name and symbol // --------------- function setNameAndSymbol( string calldata _newName, string calldata _newSymbol ) external onlyOwner { name = _newName; symbol = _newSymbol; } // ------------ // Redeem beans // ------------ function redeemBeans(address to, uint256[] calldata beanIds) public returns (uint256[] memory) { RedeemInfo memory info = redeemInfo; if (!info.redeemBeanOpen) { revert RedeemBeanNotOpen(); } if (msg.sender != info.beanAddress) { revert InvalidRedeemer(); } uint256 amount = beanIds.length; uint256[] memory tokenIds = new uint256[](amount); // Assume data has already been validated by the bean contract for (uint256 i; i < amount; ) { uint256 beanId = beanIds[i]; uint256 tokenId = _useRandomAvailableTokenId(); // Don't need safeMint, as the calling address has a MysteryBean in it already _mint(to, tokenId); emit BeanRedeemed(to, tokenId, beanId); tokenIds[i] = tokenId; unchecked { ++i; } } return tokenIds; } // Generates a pseudorandom number between [0,MAX_SUPPLY) that has not yet been generated before, in O(1) time. // // Uses Durstenfeld's version of the Yates Shuffle https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle // with a twist to avoid having to manually spend gas to preset an array's values to be values 0...n. // It does this by interpreting zero-values for an index X as meaning that index X itself is an available value // that is returnable. // // How it works: // - zero-initialize a mapping (_availableRemainingTokens) and track its length (_numAvailableRemainingTokens). functionally similar to an array with dynamic sizing // - this mapping will track all remaining valid values that haven't been generated yet, through a combination of its indices and values // - if _availableRemainingTokens[x] == 0, that means x has not been generated yet // - if _availableRemainingTokens[x] != 0, that means _availableRemainingTokens[x] has not been generated yet // - when prompted for a random number between [0,MAX_SUPPLY) that hasn't already been used: // - generate a random index randIndex between [0,_numAvailableRemainingTokens) // - examine the value at _availableRemainingTokens[randIndex] // - if the value is zero, it means randIndex has not been used, so we can return randIndex // - if the value is non-zero, it means the value has not been used, so we can return _availableRemainingTokens[randIndex] // - update the _availableRemainingTokens mapping state // - set _availableRemainingTokens[randIndex] to either the index or the value of the last entry in the mapping (depends on the last entry's state) // - decrement _numAvailableRemainingTokens to mimic the shrinking of an array function _useRandomAvailableTokenId() internal returns (uint256) { uint256 numAvailableRemainingTokens = _numAvailableRemainingTokens; if (numAvailableRemainingTokens == 0) { revert NoMoreTokenIds(); } uint256 randomNum = _getRandomNum(numAvailableRemainingTokens); uint256 randomIndex = randomNum % numAvailableRemainingTokens; uint256 valAtIndex = _availableRemainingTokens[randomIndex]; uint256 result; if (valAtIndex == 0) { // This means the index itself is still an available token result = randomIndex; } else { // This means the index itself is not an available token, but the val at that index is. result = valAtIndex; } uint256 lastIndex = numAvailableRemainingTokens - 1; if (randomIndex != lastIndex) { // Replace the value at randomIndex, now that it's been used. // Replace it with the data from the last index in the array, since we are going to decrease the array size afterwards. uint256 lastValInArray = _availableRemainingTokens[lastIndex]; if (lastValInArray == 0) { // This means the index itself is still an available token // Cast is safe as we know that lastIndex cannot > MAX_SUPPLY, which is a uint16 _availableRemainingTokens[randomIndex] = uint16(lastIndex); } else { // This means the index itself is not an available token, but the val at that index is. // Cast is safe as we know that lastValInArray cannot > MAX_SUPPLY, which is a uint16 _availableRemainingTokens[randomIndex] = uint16(lastValInArray); delete _availableRemainingTokens[lastIndex]; } } --_numAvailableRemainingTokens; return result; } // On-chain randomness tradeoffs are acceptable here as it's only used for the Elemental's id number itself, not the resulting Elemental's metadata (which is determined by the source MysteryBean). function _getRandomNum(uint256 numAvailableRemainingTokens) internal view returns (uint256) { return uint256( keccak256( abi.encode( block.prevrandao, blockhash(block.number - 1), address(this), numAvailableRemainingTokens ) ) ); } function setBeanAddress(address contractAddress) external onlyOwner { redeemInfo = RedeemInfo(redeemInfo.redeemBeanOpen, contractAddress); } function setRedeemBeanState(bool _redeemBeanOpen) external onlyOwner { address beanAddress = redeemInfo.beanAddress; if (beanAddress == address(0)) { revert BeanAddressNotSet(); } redeemInfo = RedeemInfo(_redeemBeanOpen, beanAddress); } // ------------ // Total Supply // ------------ function totalSupply() external view returns (uint256) { unchecked { // Does not need to account for burns as they aren't supported. return MAX_SUPPLY - _numAvailableRemainingTokens; } } // -------- // Metadata // -------- function tokenURI(uint256 tokenId) public view override returns (string memory) { if (_ownerOf[tokenId] == address(0)) { revert InvalidTokenId(); } string memory baseURI = _getBaseURIForToken(tokenId); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } string private _baseTokenURI; string private _baseTokenURIPermanent; // Keys are Elemental token ids BitMaps.BitMap private _isUriPermanentForToken; function _getBaseURIForToken(uint256 tokenId) private view returns (string memory) { return _isUriPermanentForToken.get(tokenId) ? _baseTokenURIPermanent : _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function setBaseURIPermanent(string calldata baseURIPermanent) external onlyOwner { _baseTokenURIPermanent = baseURIPermanent; } function setIsUriPermanent(uint256[] calldata tokenIds) external onlyOwner { for (uint256 i = 0; i < tokenIds.length; ) { _isUriPermanentForToken.set(tokenIds[i]); unchecked { ++i; } } } // -------- // EIP-2981 // -------- function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) external onlyOwner { _setTokenRoyalty(tokenId, receiver, feeNumerator); } // --------------------------------------------------- // OperatorFilterer overrides (overrides, values etc.) // --------------------------------------------------- function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } function setOperatorFilteringEnabled(bool value) public onlyOwner { operatorFilteringEnabled = value; } function _operatorFilteringEnabled() internal view override returns (bool) { return operatorFilteringEnabled; } function approve(address operator, uint256 tokenId) public override onlyAllowedOperatorApproval(operator) { super.approve(operator, tokenId); } // -------------- // Registry check // -------------- // Solbase ERC721 calls transferFrom internally in its two safeTransferFrom functions, so we don't need to override those. // Also, onlyAllowedOperator is from closedsea function transferFrom( address from, address to, uint256 id ) public override onlyAllowedOperator(from) { if (!_isValidAgainstRegistry(msg.sender)) { revert NotAllowedByRegistry(); } super.transferFrom(from, to, id); } function _isValidAgainstRegistry(address operator) internal view returns (bool) { if (isRegistryActive) { IRegistry registry = IRegistry(registryAddress); return registry.isAllowedOperator(operator); } return true; } function setIsRegistryActive(bool _isRegistryActive) external onlyOwner { if (registryAddress == address(0)) revert RegistryNotSet(); isRegistryActive = _isRegistryActive; } function setRegistryAddress(address _registryAddress) external onlyOwner { registryAddress = _registryAddress; } // ------- // EIP-165 // ------- function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC2981) returns (bool) { return ERC721.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Modern, minimalist, and gas-optimized ERC721 implementation. /// @author SolDAO (https://github.com/Sol-DAO/solbase/blob/main/src/tokens/ERC721.sol) /// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721 { /// ----------------------------------------------------------------------- /// Events /// ----------------------------------------------------------------------- event Transfer(address indexed from, address indexed to, uint256 indexed id); event Approval(address indexed owner, address indexed spender, uint256 indexed id); event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /// ----------------------------------------------------------------------- /// Custom Errors /// ----------------------------------------------------------------------- error NotMinted(); error ZeroAddress(); error Unauthorized(); error WrongFrom(); error InvalidRecipient(); error UnsafeRecipient(); error AlreadyMinted(); /// ----------------------------------------------------------------------- /// Metadata Storage/Logic /// ----------------------------------------------------------------------- string public name; string public symbol; function tokenURI(uint256 id) public view virtual returns (string memory); /// ----------------------------------------------------------------------- /// ERC721 Balance/Owner Storage /// ----------------------------------------------------------------------- mapping(uint256 => address) internal _ownerOf; mapping(address => uint256) internal _balanceOf; function ownerOf(uint256 id) public view virtual returns (address owner) { if ((owner = _ownerOf[id]) == address(0)) revert NotMinted(); } function balanceOf(address owner) public view virtual returns (uint256) { if (owner == address(0)) revert ZeroAddress(); return _balanceOf[owner]; } /// ----------------------------------------------------------------------- /// ERC721 Approval Storage /// ----------------------------------------------------------------------- mapping(uint256 => address) public getApproved; mapping(address => mapping(address => bool)) public isApprovedForAll; /// ----------------------------------------------------------------------- /// Constructor /// ----------------------------------------------------------------------- constructor(string memory _name, string memory _symbol) { name = _name; symbol = _symbol; } /// ----------------------------------------------------------------------- /// ERC721 Logic /// ----------------------------------------------------------------------- function approve(address spender, uint256 id) public virtual { address owner = _ownerOf[id]; if (msg.sender != owner && !isApprovedForAll[owner][msg.sender]) revert Unauthorized(); getApproved[id] = spender; emit Approval(owner, spender, id); } function setApprovalForAll(address operator, bool approved) public virtual { isApprovedForAll[msg.sender][operator] = approved; emit ApprovalForAll(msg.sender, operator, approved); } function transferFrom(address from, address to, uint256 id) public virtual { if (from != _ownerOf[id]) revert WrongFrom(); if (to == address(0)) revert InvalidRecipient(); if (msg.sender != from && !isApprovedForAll[from][msg.sender] && msg.sender != getApproved[id]) revert Unauthorized(); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. unchecked { _balanceOf[from]--; _balanceOf[to]++; } _ownerOf[id] = to; delete getApproved[id]; emit Transfer(from, to, id); } function safeTransferFrom(address from, address to, uint256 id) public virtual { transferFrom(from, to, id); if (to.code.length != 0) { if ( ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") != ERC721TokenReceiver.onERC721Received.selector ) revert UnsafeRecipient(); } } function safeTransferFrom(address from, address to, uint256 id, bytes calldata data) public virtual { transferFrom(from, to, id); if (to.code.length != 0) { if ( ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) != ERC721TokenReceiver.onERC721Received.selector ) revert UnsafeRecipient(); } } /// ----------------------------------------------------------------------- /// ERC165 Logic /// ----------------------------------------------------------------------- function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165 interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721 interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata } /// ----------------------------------------------------------------------- /// Internal Mint/Burn Logic /// ----------------------------------------------------------------------- function _mint(address to, uint256 id) internal virtual { if (to == address(0)) revert InvalidRecipient(); if (_ownerOf[id] != address(0)) revert AlreadyMinted(); // Counter overflow is incredibly unrealistic. unchecked { _balanceOf[to]++; } _ownerOf[id] = to; emit Transfer(address(0), to, id); } function _burn(uint256 id) internal virtual { address owner = _ownerOf[id]; if (owner == address(0)) revert NotMinted(); // Ownership check above ensures no underflow. unchecked { _balanceOf[owner]--; } delete _ownerOf[id]; delete getApproved[id]; emit Transfer(owner, address(0), id); } /// ----------------------------------------------------------------------- /// Internal Safe Mint Logic /// ----------------------------------------------------------------------- function _safeMint(address to, uint256 id) internal virtual { _mint(to, id); if (to.code.length != 0) { if ( ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") != ERC721TokenReceiver.onERC721Received.selector ) revert UnsafeRecipient(); } } function _safeMint(address to, uint256 id, bytes memory data) internal virtual { _mint(to, id); if (to.code.length != 0) { if ( ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) != ERC721TokenReceiver.onERC721Received.selector ) revert UnsafeRecipient(); } } } /// @notice A generic interface for a contract which properly accepts ERC721 tokens. /// @author SolDAO (https://github.com/Sol-DAO/solbase/blob/main/src/tokens/ERC721.sol) /// @author Modified from Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC721.sol) abstract contract ERC721TokenReceiver { function onERC721Received(address, address, uint256, bytes calldata) external virtual returns (bytes4) { return ERC721TokenReceiver.onERC721Received.selector; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/BitMaps.sol) pragma solidity ^0.8.0; /** * @dev Library for managing uint256 to bool mapping in a compact and efficient way, providing the keys are sequential. * Largely inspired by Uniswap's https://github.com/Uniswap/merkle-distributor/blob/master/contracts/MerkleDistributor.sol[merkle-distributor]. */ library BitMaps { struct BitMap { mapping(uint256 => uint256) _data; } /** * @dev Returns whether the bit at `index` is set. */ function get(BitMap storage bitmap, uint256 index) internal view returns (bool) { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); return bitmap._data[bucket] & mask != 0; } /** * @dev Sets the bit at `index` to the boolean `value`. */ function setTo(BitMap storage bitmap, uint256 index, bool value) internal { if (value) { set(bitmap, index); } else { unset(bitmap, index); } } /** * @dev Sets the bit at `index`. */ function set(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); bitmap._data[bucket] |= mask; } /** * @dev Unsets the bit at `index`. */ function unset(BitMap storage bitmap, uint256 index) internal { uint256 bucket = index >> 8; uint256 mask = 1 << (index & 0xff); bitmap._data[bucket] &= ~mask; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Optimized and flexible operator filterer to abide to OpenSea's /// mandatory on-chain royalty enforcement in order for new collections to /// receive royalties. /// For more information, see: /// See: https://github.com/ProjectOpenSea/operator-filter-registry abstract contract OperatorFilterer { /// @dev The default OpenSea operator blocklist subscription. address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; /// @dev The OpenSea operator filter registry. address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E; /// @dev Registers the current contract to OpenSea's operator filter, /// and subscribe to the default OpenSea operator blocklist. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering() internal virtual { _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true); } /// @dev Registers the current contract to OpenSea's operator filter. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe) internal virtual { /// @solidity memory-safe-assembly assembly { let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`. // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty. subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy)) for {} iszero(subscribe) {} { if iszero(subscriptionOrRegistrantToCopy) { functionSelector := 0x4420e486 // `register(address)`. break } functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`. break } // Store the function selector. mstore(0x00, shl(224, functionSelector)) // Store the `address(this)`. mstore(0x04, address()) // Store the `subscriptionOrRegistrantToCopy`. mstore(0x24, subscriptionOrRegistrantToCopy) // Register into the registry. if iszero(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04)) { // If the function selector has not been overwritten, // it is an out-of-gas error. if eq(shr(224, mload(0x00)), functionSelector) { // To prevent gas under-estimation. revert(0, 0) } } // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, because of Solidity's memory size limits. mstore(0x24, 0) } } /// @dev Modifier to guard a function and revert if the caller is a blocked operator. modifier onlyAllowedOperator(address from) virtual { if (from != msg.sender) { if (!_isPriorityOperator(msg.sender)) { if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender); } } _; } /// @dev Modifier to guard a function from approving a blocked operator.. modifier onlyAllowedOperatorApproval(address operator) virtual { if (!_isPriorityOperator(operator)) { if (_operatorFilteringEnabled()) _revertIfBlocked(operator); } _; } /// @dev Helper function that reverts if the `operator` is blocked by the registry. function _revertIfBlocked(address operator) private view { /// @solidity memory-safe-assembly assembly { // Store the function selector of `isOperatorAllowed(address,address)`, // shifted left by 6 bytes, which is enough for 8tb of memory. // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL). mstore(0x00, 0xc6171134001122334455) // Store the `address(this)`. mstore(0x1a, address()) // Store the `operator`. mstore(0x3a, operator) // `isOperatorAllowed` always returns true if it does not revert. if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) { // Bubble up the revert if the staticcall reverts. returndatacopy(0x00, 0x00, returndatasize()) revert(0x00, returndatasize()) } // We'll skip checking if `from` is inside the blacklist. // Even though that can block transferring out of wrapper contracts, // we don't want tokens to be stuck. // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, if less than 8tb of memory is used. mstore(0x3a, 0) } } /// @dev For deriving contracts to override, so that operator filtering /// can be turned on / off. /// Returns true by default. function _operatorFilteringEnabled() internal view virtual returns (bool) { return true; } /// @dev For deriving contracts to override, so that preferred marketplaces can /// skip operator filtering, helping users save gas. /// Returns false for all inputs by default. function _isPriorityOperator(address) internal view virtual returns (bool) { return false; } }
// SPDX-License-Identifier: CC0-1.0 // Source: https://github.com/tubby-cats/dual-ownership-nft pragma solidity ^0.8.4; import '@openzeppelin/contracts/access/Ownable.sol'; abstract contract MultisigOwnable is Ownable { address public realOwner; constructor() { realOwner = msg.sender; } modifier onlyRealOwner() { require( realOwner == msg.sender, 'MultisigOwnable: caller is not the real owner' ); _; } function transferRealOwnership(address newRealOwner) public onlyRealOwner { realOwner = newRealOwner; } function transferLowerOwnership(address newOwner) public onlyRealOwner { transferOwnership(newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// 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); }
{ "remappings": [ "@openzeppelin/=lib/openzeppelin-contracts/", "ERC721A/=lib/ERC721A/contracts/", "closedsea/=lib/closedsea/src/", "ds-test/=lib/forge-std/lib/ds-test/src/", "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/", "erc721a-upgradeable/=lib/closedsea/lib/erc721a-upgradeable/contracts/", "erc721a/=lib/ERC721A/", "forge-std/=lib/forge-std/src/", "openzeppelin-contracts-upgradeable/=lib/closedsea/lib/openzeppelin-contracts-upgradeable/", "openzeppelin-contracts/=lib/openzeppelin-contracts/", "operator-filter-registry/=lib/closedsea/", "solbase/=lib/solbase/", "solmate/=lib/solmate/src/" ], "optimizer": { "enabled": true, "runs": 200 }, "metadata": { "bytecodeHash": "ipfs", "appendCBOR": true }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "evmVersion": "london", "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint16","name":"maxSupply_","type":"uint16"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AlreadyMinted","type":"error"},{"inputs":[],"name":"BeanAddressNotSet","type":"error"},{"inputs":[],"name":"InvalidRecipient","type":"error"},{"inputs":[],"name":"InvalidRedeemer","type":"error"},{"inputs":[],"name":"InvalidTokenId","type":"error"},{"inputs":[],"name":"NoMoreTokenIds","type":"error"},{"inputs":[],"name":"NotAllowedByRegistry","type":"error"},{"inputs":[],"name":"NotMinted","type":"error"},{"inputs":[],"name":"RedeemBeanNotOpen","type":"error"},{"inputs":[],"name":"RegistryNotSet","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"UnsafeRecipient","type":"error"},{"inputs":[],"name":"WrongFrom","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"beanId","type":"uint256"}],"name":"BeanRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRegistryActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"realOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"beanIds","type":"uint256[]"}],"name":"redeemBeans","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemInfo","outputs":[{"internalType":"bool","name":"redeemBeanOpen","type":"bool"},{"internalType":"address","name":"beanAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURIPermanent","type":"string"}],"name":"setBaseURIPermanent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setBeanAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isRegistryActive","type":"bool"}],"name":"setIsRegistryActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"setIsUriPermanent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newName","type":"string"},{"internalType":"string","name":"_newSymbol","type":"string"}],"name":"setNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_redeemBeanOpen","type":"bool"}],"name":"setRedeemBeanState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_registryAddress","type":"address"}],"name":"setRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferLowerOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRealOwner","type":"address"}],"name":"transferRealOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040526009805461ffff60a01b1916600160a01b1790553480156200002557600080fd5b50604051620027e6380380620027e683398101604081905262000048916200028c565b82826002620000588382620003a1565b506003620000678282620003a1565b505050620000846200007e620000d460201b60201c565b620000d8565b600980546001600160a01b0319163317905561ffff81166080819052600c805461ffff19169091179055620000b86200012a565b50506009805460ff60a01b1916600160a01b179055506200046d565b3390565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200014b733cc6cdda760b79bafa08df41ecfa224f810dceb660016200014d565b565b6001600160a01b0390911690637d3e3dbe816200017d5782620001765750634420e4866200017d565b5063a0af29035b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af1620001bd578060005160e01c03620001bd57600080fd5b5060006024525050565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001ef57600080fd5b81516001600160401b03808211156200020c576200020c620001c7565b604051601f8301601f19908116603f01168101908282118183101715620002375762000237620001c7565b816040528381526020925086838588010111156200025457600080fd5b600091505b8382101562000278578582018301518183018401529082019062000259565b600093810190920192909252949350505050565b600080600060608486031215620002a257600080fd5b83516001600160401b0380821115620002ba57600080fd5b620002c887838801620001dd565b94506020860151915080821115620002df57600080fd5b50620002ee86828701620001dd565b925050604084015161ffff811681146200030757600080fd5b809150509250925092565b600181811c908216806200032757607f821691505b6020821081036200034857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200039c57600081815260208120601f850160051c81016020861015620003775750805b601f850160051c820191505b81811015620003985782815560010162000383565b5050505b505050565b81516001600160401b03811115620003bd57620003bd620001c7565b620003d581620003ce845462000312565b846200034e565b602080601f8311600181146200040d5760008415620003f45750858301515b600019600386901b1c1916600185901b17855562000398565b600085815260208120601f198616915b828110156200043e578886015182559484019460019091019084016200041d565b50858210156200045d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805161235662000490600039600081816102fb015261039b01526123566000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c80636352211e11610130578063abd017ea116100b8578063e985e9c51161007c578063e985e9c514610555578063ed9aab5114610583578063efe7aa4914610596578063f2fde38b146105d2578063fb796e6c146105e557600080fd5b8063abd017ea146104e8578063b7c0b8e8146104fc578063b88d4fde1461050f578063c87b56dd14610522578063d443af801461053557600080fd5b80638e0d9fcc116100ff5780638e0d9fcc1461049457806390d9c86a146104a757806395d89b41146104ba578063a22cb465146104c2578063ab7b4993146104d557600080fd5b80636352211e1461045557806370a0823114610468578063715018a61461047b5780638da5cb5b1461048357600080fd5b80632a55205a116101be57806346fff98d1161018257806346fff98d146103f657806354ecf3091461040957806355f804b31461041c5780635944c7531461042f5780635a4462151461044257600080fd5b80632a55205a146103515780632cff67701461038357806332cb6b0c146103965780633c115fa6146103d057806342842e0e146103e357600080fd5b8063095ea7b311610205578063095ea7b3146102ca57806309af3f9a146102dd57806318160ddd146102f05780631df270f31461032b57806323b872dd1461033e57600080fd5b806301ffc9a71461023757806304634d8d1461025f57806306fdde0314610274578063081812fc14610289575b600080fd5b61024a610245366004611af2565b6105f9565b60405190151581526020015b60405180910390f35b61027261026d366004611b3d565b610619565b005b61027c61062f565b6040516102569190611b94565b6102b2610297366004611bc7565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610256565b6102726102d8366004611be0565b6106bd565b6102726102eb366004611c0a565b6106e8565b600c5461ffff9081167f000000000000000000000000000000000000000000000000000000000000000003165b604051908152602001610256565b6009546102b2906001600160a01b031681565b61027261034c366004611c25565b610727565b61036461035f366004611c61565b61078a565b604080516001600160a01b039093168352602083019190915201610256565b610272610391366004611c0a565b610838565b6103bd7f000000000000000000000000000000000000000000000000000000000000000081565b60405161ffff9091168152602001610256565b6102726103de366004611cc5565b610884565b6102726103f1366004611c25565b61089a565b610272610404366004611d15565b610968565b610272610417366004611c0a565b6109b7565b61027261042a366004611cc5565b610a10565b61027261043d366004611d32565b610a26565b610272610450366004611d6e565b610a39565b6102b2610463366004611bc7565b610a63565b61031d610476366004611c0a565b610a9e565b610272610ae3565b6008546001600160a01b03166102b2565b6102726104a2366004611e1f565b610af7565b6102726104b5366004611d15565b610b3f565b61027c610bc5565b6102726104d0366004611e55565b610bd2565b6102726104e3366004611c0a565b610bf8565b60095461024a90600160a81b900460ff1681565b61027261050a366004611d15565b610c22565b61027261051d366004611e8c565b610c48565b61027c610530366004611bc7565b610d04565b610548610543366004611efb565b610d99565b6040516102569190611f4e565b61024a610563366004611f92565b600760209081526000928352604080842090915290825290205460ff1681565b600a546102b2906001600160a01b031681565b600b546105b39060ff81169061010090046001600160a01b031682565b6040805192151583526001600160a01b03909116602083015201610256565b6102726105e0366004611c0a565b610f0b565b60095461024a90600160a01b900460ff1681565b600061060482610f81565b80610613575061061382610fcf565b92915050565b610621611004565b61062b828261105e565b5050565b6002805461063c90611fbc565b80601f016020809104026020016040519081016040528092919081815260200182805461066890611fbc565b80156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b505050505081565b81600954600160a01b900460ff16156106d9576106d981611118565b6106e3838361115c565b505050565b6009546001600160a01b0316331461071b5760405162461bcd60e51b815260040161071290611ff6565b60405180910390fd5b61072481610f0b565b50565b826001600160a01b038116331461075357600954600160a01b900460ff16156107535761075333611118565b61075c33611221565b610779576040516326406c5f60e11b815260040160405180910390fd5b6107848484846112ae565b50505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916107ff5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061081e906001600160601b031687612059565b6108289190612086565b91519350909150505b9250929050565b6009546001600160a01b031633146108625760405162461bcd60e51b815260040161071290611ff6565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b61088c611004565b61100e6106e38284836120fe565b6108a5838383610727565b6001600160a01b0382163b156106e357604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561091c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094091906121be565b6001600160e01b031916146106e357604051633da6393160e01b815260040160405180910390fd5b610970611004565b600a546001600160a01b031661099957604051630e048e7160e41b815260040160405180910390fd5b60098054911515600160a81b0260ff60a81b19909216919091179055565b6109bf611004565b60408051808201909152600b805460ff811615158084526001600160a01b039490941660209093018390526001600160a81b031916610100600160a81b031990931692909217610100909102179055565b610a18611004565b61100d6106e38284836120fe565b610a2e611004565b6106e383838361141b565b610a41611004565b6002610a4e8486836120fe565b506003610a5c8284836120fe565b5050505050565b6000818152600460205260409020546001600160a01b031680610a9957604051634d5e5fb360e01b815260040160405180910390fd5b919050565b60006001600160a01b038216610ac75760405163d92e233d60e01b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205490565b610aeb611004565b610af560006114e6565b565b610aff611004565b60005b818110156106e357610b37838383818110610b1f57610b1f6121db565b9050602002013561100f61153890919063ffffffff16565b600101610b02565b610b47611004565b600b5461010090046001600160a01b031680610b76576040516313142f0760e31b815260040160405180910390fd5b604080518082019091529115158083526001600160a01b039091166020909201829052600b8054610100909302610100600160a81b03199092166001600160a81b031990931692909217179055565b6003805461063c90611fbc565b81600954600160a01b900460ff1615610bee57610bee81611118565b6106e38383611561565b610c00611004565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b610c2a611004565b60098054911515600160a01b0260ff60a01b19909216919091179055565b610c53858585610727565b6001600160a01b0384163b15610a5c57604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610c999033908a908990899089906004016121f1565b6020604051808303816000875af1158015610cb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdc91906121be565b6001600160e01b03191614610a5c57604051633da6393160e01b815260040160405180910390fd5b6000818152600460205260409020546060906001600160a01b0316610d3c576040516307ed98ed60e31b815260040160405180910390fd5b6000610d47836115cd565b90506000815111610d675760405180602001604052806000815250610d92565b80610d718461168d565b604051602001610d82929190612245565b6040516020818303038152906040525b9392505050565b60408051808201909152600b5460ff811615158083526101009091046001600160a01b0316602083015260609190610de4576040516372a58b2b60e11b815260040160405180910390fd5b80602001516001600160a01b0316336001600160a01b031614610e1a5760405163d8546cf160e01b815260040160405180910390fd5b8260008167ffffffffffffffff811115610e3657610e3661209a565b604051908082528060200260200182016040528015610e5f578160200160208202803683370190505b50905060005b82811015610f00576000878783818110610e8157610e816121db565b9050602002013590506000610e94611720565b9050610ea08a826118ee565b81818b6001600160a01b03167f71e92ec5a8e5a2b5c4717c4520cea4ce2cfe75c53bba10efe28c4328b31047cb60405160405180910390a480848481518110610eeb57610eeb6121db565b60209081029190910101525050600101610e65565b509695505050505050565b610f13611004565b6001600160a01b038116610f785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610712565b610724816114e6565b60006301ffc9a760e01b6001600160e01b031983161480610fb257506380ac58cd60e01b6001600160e01b03198316145b806106135750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061061357506301ffc9a760e01b6001600160e01b0319831614610613565b6008546001600160a01b03163314610af55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610712565b6127106001600160601b03821611156110895760405162461bcd60e51b815260040161071290612274565b6001600160a01b0382166110df5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610712565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa611154573d6000803e3d6000fd5b6000603a5250565b6000818152600460205260409020546001600160a01b03163381148015906111a857506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b156111c5576040516282b42960e81b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600954600090600160a81b900460ff16156112a657600a546040516370c5e04560e11b81526001600160a01b03848116600483015290911690819063e18bc08a90602401602060405180830381865afa158015611282573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9291906122be565b506001919050565b6000818152600460205260409020546001600160a01b038481169116146112e85760405163c6de3f2560e01b815260040160405180910390fd5b6001600160a01b03821661130f57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061134c57506001600160a01b038316600090815260076020908152604080832033845290915290205460ff16155b801561136f57506000818152600660205260409020546001600160a01b03163314155b1561138c576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0380841660008181526005602090815260408083208054600019019055938616808352848320805460010190558583526004825284832080546001600160a01b03199081168317909155600690925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127106001600160601b03821611156114465760405162461bcd60e51b815260040161071290612274565b6001600160a01b03821661149c5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610712565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600881901c600090815260209290925260409091208054600160ff9093169290921b9091179055565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600881901c600090815261100f6020526040902054606090600160ff84161b166115f95761100d6115fd565b61100e5b805461160890611fbc565b80601f016020809104026020016040519081016040528092919081815260200182805461163490611fbc565b80156116815780601f1061165657610100808354040283529160200191611681565b820191906000526020600020905b81548152906001019060200180831161166457829003601f168201915b50505050509050919050565b6060600061169a836119b6565b600101905060008167ffffffffffffffff8111156116ba576116ba61209a565b6040519080825280601f01601f1916602001820160405280156116e4576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846116ee57509392505050565b600c5460009061ffff1680820361174a5760405163aeb0cc9b60e01b815260040160405180910390fd5b600061175582611a8e565b9050600061176383836122db565b90506000600d8262010000811061177c5761177c6121db565b601091828204019190066002029054906101000a900461ffff1661ffff1690506000816000036117ad5750816117b0565b50805b60006117bd6001876122ef565b90508084146118b4576000600d826201000081106117dd576117dd6121db565b601091828204019190066002029054906101000a900461ffff1661ffff169050806000036118455781600d8662010000811061181b5761181b6121db565b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506118b2565b80600d8662010000811061185b5761185b6121db565b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600d82620100008110611895576118956121db565b601091828204019190066002026101000a81549061ffff02191690555b505b600c80546000906118c89061ffff16612302565b91906101000a81548161ffff021916908361ffff16021790555081965050505050505090565b6001600160a01b03821661191557604051634e46966960e11b815260040160405180910390fd5b6000818152600460205260409020546001600160a01b03161561194b57604051631bbdf5c560e31b815260040160405180910390fd5b6001600160a01b038216600081815260056020908152604080832080546001019055848352600490915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106119f55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611a21576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611a3f57662386f26fc10000830492506010015b6305f5e1008310611a57576305f5e100830492506008015b6127108310611a6b57612710830492506004015b60648310611a7d576064830492506002015b600a83106106135760010192915050565b600044611a9c6001436122ef565b6040805160208101939093529040908201523060608201526080810183905260a00160408051601f19818403018152919052805160209091012092915050565b6001600160e01b03198116811461072457600080fd5b600060208284031215611b0457600080fd5b8135610d9281611adc565b80356001600160a01b0381168114610a9957600080fd5b80356001600160601b0381168114610a9957600080fd5b60008060408385031215611b5057600080fd5b611b5983611b0f565b9150611b6760208401611b26565b90509250929050565b60005b83811015611b8b578181015183820152602001611b73565b50506000910152565b6020815260008251806020840152611bb3816040850160208701611b70565b601f01601f19169190910160400192915050565b600060208284031215611bd957600080fd5b5035919050565b60008060408385031215611bf357600080fd5b611bfc83611b0f565b946020939093013593505050565b600060208284031215611c1c57600080fd5b610d9282611b0f565b600080600060608486031215611c3a57600080fd5b611c4384611b0f565b9250611c5160208501611b0f565b9150604084013590509250925092565b60008060408385031215611c7457600080fd5b50508035926020909101359150565b60008083601f840112611c9557600080fd5b50813567ffffffffffffffff811115611cad57600080fd5b60208301915083602082850101111561083157600080fd5b60008060208385031215611cd857600080fd5b823567ffffffffffffffff811115611cef57600080fd5b611cfb85828601611c83565b90969095509350505050565b801515811461072457600080fd5b600060208284031215611d2757600080fd5b8135610d9281611d07565b600080600060608486031215611d4757600080fd5b83359250611d5760208501611b0f565b9150611d6560408501611b26565b90509250925092565b60008060008060408587031215611d8457600080fd5b843567ffffffffffffffff80821115611d9c57600080fd5b611da888838901611c83565b90965094506020870135915080821115611dc157600080fd5b50611dce87828801611c83565b95989497509550505050565b60008083601f840112611dec57600080fd5b50813567ffffffffffffffff811115611e0457600080fd5b6020830191508360208260051b850101111561083157600080fd5b60008060208385031215611e3257600080fd5b823567ffffffffffffffff811115611e4957600080fd5b611cfb85828601611dda565b60008060408385031215611e6857600080fd5b611e7183611b0f565b91506020830135611e8181611d07565b809150509250929050565b600080600080600060808688031215611ea457600080fd5b611ead86611b0f565b9450611ebb60208701611b0f565b935060408601359250606086013567ffffffffffffffff811115611ede57600080fd5b611eea88828901611c83565b969995985093965092949392505050565b600080600060408486031215611f1057600080fd5b611f1984611b0f565b9250602084013567ffffffffffffffff811115611f3557600080fd5b611f4186828701611dda565b9497909650939450505050565b6020808252825182820181905260009190848201906040850190845b81811015611f8657835183529284019291840191600101611f6a565b50909695505050505050565b60008060408385031215611fa557600080fd5b611fae83611b0f565b9150611b6760208401611b0f565b600181811c90821680611fd057607f821691505b602082108103611ff057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4d756c74697369674f776e61626c653a2063616c6c6572206973206e6f74207460408201526c3432903932b0b61037bbb732b960991b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761061357610613612043565b634e487b7160e01b600052601260045260246000fd5b60008261209557612095612070565b500490565b634e487b7160e01b600052604160045260246000fd5b601f8211156106e357600081815260208120601f850160051c810160208610156120d75750805b601f850160051c820191505b818110156120f6578281556001016120e3565b505050505050565b67ffffffffffffffff8311156121165761211661209a565b61212a836121248354611fbc565b836120b0565b6000601f84116001811461215e57600085156121465750838201355b600019600387901b1c1916600186901b178355610a5c565b600083815260209020601f19861690835b8281101561218f578685013582556020948501946001909201910161216f565b50868210156121ac5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000602082840312156121d057600080fd5b8151610d9281611adc565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008351612257818460208801611b70565b83519083019061226b818360208801611b70565b01949350505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6000602082840312156122d057600080fd5b8151610d9281611d07565b6000826122ea576122ea612070565b500690565b8181038181111561061357610613612043565b600061ffff82168061231657612316612043565b600019019291505056fea2646970667358221220f3f8fbc968aecb6b35aaa683702a084009954f3d41ec2600830b833c89bb673264736f6c63430008120033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000004e200000000000000000000000000000000000000000000000000000000000000009456c656d656e74616c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004454c454d00000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102325760003560e01c80636352211e11610130578063abd017ea116100b8578063e985e9c51161007c578063e985e9c514610555578063ed9aab5114610583578063efe7aa4914610596578063f2fde38b146105d2578063fb796e6c146105e557600080fd5b8063abd017ea146104e8578063b7c0b8e8146104fc578063b88d4fde1461050f578063c87b56dd14610522578063d443af801461053557600080fd5b80638e0d9fcc116100ff5780638e0d9fcc1461049457806390d9c86a146104a757806395d89b41146104ba578063a22cb465146104c2578063ab7b4993146104d557600080fd5b80636352211e1461045557806370a0823114610468578063715018a61461047b5780638da5cb5b1461048357600080fd5b80632a55205a116101be57806346fff98d1161018257806346fff98d146103f657806354ecf3091461040957806355f804b31461041c5780635944c7531461042f5780635a4462151461044257600080fd5b80632a55205a146103515780632cff67701461038357806332cb6b0c146103965780633c115fa6146103d057806342842e0e146103e357600080fd5b8063095ea7b311610205578063095ea7b3146102ca57806309af3f9a146102dd57806318160ddd146102f05780631df270f31461032b57806323b872dd1461033e57600080fd5b806301ffc9a71461023757806304634d8d1461025f57806306fdde0314610274578063081812fc14610289575b600080fd5b61024a610245366004611af2565b6105f9565b60405190151581526020015b60405180910390f35b61027261026d366004611b3d565b610619565b005b61027c61062f565b6040516102569190611b94565b6102b2610297366004611bc7565b6006602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610256565b6102726102d8366004611be0565b6106bd565b6102726102eb366004611c0a565b6106e8565b600c5461ffff9081167f0000000000000000000000000000000000000000000000000000000000004e2003165b604051908152602001610256565b6009546102b2906001600160a01b031681565b61027261034c366004611c25565b610727565b61036461035f366004611c61565b61078a565b604080516001600160a01b039093168352602083019190915201610256565b610272610391366004611c0a565b610838565b6103bd7f0000000000000000000000000000000000000000000000000000000000004e2081565b60405161ffff9091168152602001610256565b6102726103de366004611cc5565b610884565b6102726103f1366004611c25565b61089a565b610272610404366004611d15565b610968565b610272610417366004611c0a565b6109b7565b61027261042a366004611cc5565b610a10565b61027261043d366004611d32565b610a26565b610272610450366004611d6e565b610a39565b6102b2610463366004611bc7565b610a63565b61031d610476366004611c0a565b610a9e565b610272610ae3565b6008546001600160a01b03166102b2565b6102726104a2366004611e1f565b610af7565b6102726104b5366004611d15565b610b3f565b61027c610bc5565b6102726104d0366004611e55565b610bd2565b6102726104e3366004611c0a565b610bf8565b60095461024a90600160a81b900460ff1681565b61027261050a366004611d15565b610c22565b61027261051d366004611e8c565b610c48565b61027c610530366004611bc7565b610d04565b610548610543366004611efb565b610d99565b6040516102569190611f4e565b61024a610563366004611f92565b600760209081526000928352604080842090915290825290205460ff1681565b600a546102b2906001600160a01b031681565b600b546105b39060ff81169061010090046001600160a01b031682565b6040805192151583526001600160a01b03909116602083015201610256565b6102726105e0366004611c0a565b610f0b565b60095461024a90600160a01b900460ff1681565b600061060482610f81565b80610613575061061382610fcf565b92915050565b610621611004565b61062b828261105e565b5050565b6002805461063c90611fbc565b80601f016020809104026020016040519081016040528092919081815260200182805461066890611fbc565b80156106b55780601f1061068a576101008083540402835291602001916106b5565b820191906000526020600020905b81548152906001019060200180831161069857829003601f168201915b505050505081565b81600954600160a01b900460ff16156106d9576106d981611118565b6106e3838361115c565b505050565b6009546001600160a01b0316331461071b5760405162461bcd60e51b815260040161071290611ff6565b60405180910390fd5b61072481610f0b565b50565b826001600160a01b038116331461075357600954600160a01b900460ff16156107535761075333611118565b61075c33611221565b610779576040516326406c5f60e11b815260040160405180910390fd5b6107848484846112ae565b50505050565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916107ff5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061081e906001600160601b031687612059565b6108289190612086565b91519350909150505b9250929050565b6009546001600160a01b031633146108625760405162461bcd60e51b815260040161071290611ff6565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b61088c611004565b61100e6106e38284836120fe565b6108a5838383610727565b6001600160a01b0382163b156106e357604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af115801561091c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061094091906121be565b6001600160e01b031916146106e357604051633da6393160e01b815260040160405180910390fd5b610970611004565b600a546001600160a01b031661099957604051630e048e7160e41b815260040160405180910390fd5b60098054911515600160a81b0260ff60a81b19909216919091179055565b6109bf611004565b60408051808201909152600b805460ff811615158084526001600160a01b039490941660209093018390526001600160a81b031916610100600160a81b031990931692909217610100909102179055565b610a18611004565b61100d6106e38284836120fe565b610a2e611004565b6106e383838361141b565b610a41611004565b6002610a4e8486836120fe565b506003610a5c8284836120fe565b5050505050565b6000818152600460205260409020546001600160a01b031680610a9957604051634d5e5fb360e01b815260040160405180910390fd5b919050565b60006001600160a01b038216610ac75760405163d92e233d60e01b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205490565b610aeb611004565b610af560006114e6565b565b610aff611004565b60005b818110156106e357610b37838383818110610b1f57610b1f6121db565b9050602002013561100f61153890919063ffffffff16565b600101610b02565b610b47611004565b600b5461010090046001600160a01b031680610b76576040516313142f0760e31b815260040160405180910390fd5b604080518082019091529115158083526001600160a01b039091166020909201829052600b8054610100909302610100600160a81b03199092166001600160a81b031990931692909217179055565b6003805461063c90611fbc565b81600954600160a01b900460ff1615610bee57610bee81611118565b6106e38383611561565b610c00611004565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b610c2a611004565b60098054911515600160a01b0260ff60a01b19909216919091179055565b610c53858585610727565b6001600160a01b0384163b15610a5c57604051630a85bd0160e11b808252906001600160a01b0386169063150b7a0290610c999033908a908990899089906004016121f1565b6020604051808303816000875af1158015610cb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cdc91906121be565b6001600160e01b03191614610a5c57604051633da6393160e01b815260040160405180910390fd5b6000818152600460205260409020546060906001600160a01b0316610d3c576040516307ed98ed60e31b815260040160405180910390fd5b6000610d47836115cd565b90506000815111610d675760405180602001604052806000815250610d92565b80610d718461168d565b604051602001610d82929190612245565b6040516020818303038152906040525b9392505050565b60408051808201909152600b5460ff811615158083526101009091046001600160a01b0316602083015260609190610de4576040516372a58b2b60e11b815260040160405180910390fd5b80602001516001600160a01b0316336001600160a01b031614610e1a5760405163d8546cf160e01b815260040160405180910390fd5b8260008167ffffffffffffffff811115610e3657610e3661209a565b604051908082528060200260200182016040528015610e5f578160200160208202803683370190505b50905060005b82811015610f00576000878783818110610e8157610e816121db565b9050602002013590506000610e94611720565b9050610ea08a826118ee565b81818b6001600160a01b03167f71e92ec5a8e5a2b5c4717c4520cea4ce2cfe75c53bba10efe28c4328b31047cb60405160405180910390a480848481518110610eeb57610eeb6121db565b60209081029190910101525050600101610e65565b509695505050505050565b610f13611004565b6001600160a01b038116610f785760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610712565b610724816114e6565b60006301ffc9a760e01b6001600160e01b031983161480610fb257506380ac58cd60e01b6001600160e01b03198316145b806106135750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b148061061357506301ffc9a760e01b6001600160e01b0319831614610613565b6008546001600160a01b03163314610af55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610712565b6127106001600160601b03821611156110895760405162461bcd60e51b815260040161071290612274565b6001600160a01b0382166110df5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610712565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa611154573d6000803e3d6000fd5b6000603a5250565b6000818152600460205260409020546001600160a01b03163381148015906111a857506001600160a01b038116600090815260076020908152604080832033845290915290205460ff16155b156111c5576040516282b42960e81b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600954600090600160a81b900460ff16156112a657600a546040516370c5e04560e11b81526001600160a01b03848116600483015290911690819063e18bc08a90602401602060405180830381865afa158015611282573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9291906122be565b506001919050565b6000818152600460205260409020546001600160a01b038481169116146112e85760405163c6de3f2560e01b815260040160405180910390fd5b6001600160a01b03821661130f57604051634e46966960e11b815260040160405180910390fd5b336001600160a01b0384161480159061134c57506001600160a01b038316600090815260076020908152604080832033845290915290205460ff16155b801561136f57506000818152600660205260409020546001600160a01b03163314155b1561138c576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0380841660008181526005602090815260408083208054600019019055938616808352848320805460010190558583526004825284832080546001600160a01b03199081168317909155600690925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127106001600160601b03821611156114465760405162461bcd60e51b815260040161071290612274565b6001600160a01b03821661149c5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610712565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600881901c600090815260209290925260409091208054600160ff9093169290921b9091179055565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b600881901c600090815261100f6020526040902054606090600160ff84161b166115f95761100d6115fd565b61100e5b805461160890611fbc565b80601f016020809104026020016040519081016040528092919081815260200182805461163490611fbc565b80156116815780601f1061165657610100808354040283529160200191611681565b820191906000526020600020905b81548152906001019060200180831161166457829003601f168201915b50505050509050919050565b6060600061169a836119b6565b600101905060008167ffffffffffffffff8111156116ba576116ba61209a565b6040519080825280601f01601f1916602001820160405280156116e4576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846116ee57509392505050565b600c5460009061ffff1680820361174a5760405163aeb0cc9b60e01b815260040160405180910390fd5b600061175582611a8e565b9050600061176383836122db565b90506000600d8262010000811061177c5761177c6121db565b601091828204019190066002029054906101000a900461ffff1661ffff1690506000816000036117ad5750816117b0565b50805b60006117bd6001876122ef565b90508084146118b4576000600d826201000081106117dd576117dd6121db565b601091828204019190066002029054906101000a900461ffff1661ffff169050806000036118455781600d8662010000811061181b5761181b6121db565b601091828204019190066002026101000a81548161ffff021916908361ffff1602179055506118b2565b80600d8662010000811061185b5761185b6121db565b601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600d82620100008110611895576118956121db565b601091828204019190066002026101000a81549061ffff02191690555b505b600c80546000906118c89061ffff16612302565b91906101000a81548161ffff021916908361ffff16021790555081965050505050505090565b6001600160a01b03821661191557604051634e46966960e11b815260040160405180910390fd5b6000818152600460205260409020546001600160a01b03161561194b57604051631bbdf5c560e31b815260040160405180910390fd5b6001600160a01b038216600081815260056020908152604080832080546001019055848352600490915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106119f55772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611a21576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611a3f57662386f26fc10000830492506010015b6305f5e1008310611a57576305f5e100830492506008015b6127108310611a6b57612710830492506004015b60648310611a7d576064830492506002015b600a83106106135760010192915050565b600044611a9c6001436122ef565b6040805160208101939093529040908201523060608201526080810183905260a00160408051601f19818403018152919052805160209091012092915050565b6001600160e01b03198116811461072457600080fd5b600060208284031215611b0457600080fd5b8135610d9281611adc565b80356001600160a01b0381168114610a9957600080fd5b80356001600160601b0381168114610a9957600080fd5b60008060408385031215611b5057600080fd5b611b5983611b0f565b9150611b6760208401611b26565b90509250929050565b60005b83811015611b8b578181015183820152602001611b73565b50506000910152565b6020815260008251806020840152611bb3816040850160208701611b70565b601f01601f19169190910160400192915050565b600060208284031215611bd957600080fd5b5035919050565b60008060408385031215611bf357600080fd5b611bfc83611b0f565b946020939093013593505050565b600060208284031215611c1c57600080fd5b610d9282611b0f565b600080600060608486031215611c3a57600080fd5b611c4384611b0f565b9250611c5160208501611b0f565b9150604084013590509250925092565b60008060408385031215611c7457600080fd5b50508035926020909101359150565b60008083601f840112611c9557600080fd5b50813567ffffffffffffffff811115611cad57600080fd5b60208301915083602082850101111561083157600080fd5b60008060208385031215611cd857600080fd5b823567ffffffffffffffff811115611cef57600080fd5b611cfb85828601611c83565b90969095509350505050565b801515811461072457600080fd5b600060208284031215611d2757600080fd5b8135610d9281611d07565b600080600060608486031215611d4757600080fd5b83359250611d5760208501611b0f565b9150611d6560408501611b26565b90509250925092565b60008060008060408587031215611d8457600080fd5b843567ffffffffffffffff80821115611d9c57600080fd5b611da888838901611c83565b90965094506020870135915080821115611dc157600080fd5b50611dce87828801611c83565b95989497509550505050565b60008083601f840112611dec57600080fd5b50813567ffffffffffffffff811115611e0457600080fd5b6020830191508360208260051b850101111561083157600080fd5b60008060208385031215611e3257600080fd5b823567ffffffffffffffff811115611e4957600080fd5b611cfb85828601611dda565b60008060408385031215611e6857600080fd5b611e7183611b0f565b91506020830135611e8181611d07565b809150509250929050565b600080600080600060808688031215611ea457600080fd5b611ead86611b0f565b9450611ebb60208701611b0f565b935060408601359250606086013567ffffffffffffffff811115611ede57600080fd5b611eea88828901611c83565b969995985093965092949392505050565b600080600060408486031215611f1057600080fd5b611f1984611b0f565b9250602084013567ffffffffffffffff811115611f3557600080fd5b611f4186828701611dda565b9497909650939450505050565b6020808252825182820181905260009190848201906040850190845b81811015611f8657835183529284019291840191600101611f6a565b50909695505050505050565b60008060408385031215611fa557600080fd5b611fae83611b0f565b9150611b6760208401611b0f565b600181811c90821680611fd057607f821691505b602082108103611ff057634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4d756c74697369674f776e61626c653a2063616c6c6572206973206e6f74207460408201526c3432903932b0b61037bbb732b960991b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761061357610613612043565b634e487b7160e01b600052601260045260246000fd5b60008261209557612095612070565b500490565b634e487b7160e01b600052604160045260246000fd5b601f8211156106e357600081815260208120601f850160051c810160208610156120d75750805b601f850160051c820191505b818110156120f6578281556001016120e3565b505050505050565b67ffffffffffffffff8311156121165761211661209a565b61212a836121248354611fbc565b836120b0565b6000601f84116001811461215e57600085156121465750838201355b600019600387901b1c1916600186901b178355610a5c565b600083815260209020601f19861690835b8281101561218f578685013582556020948501946001909201910161216f565b50868210156121ac5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6000602082840312156121d057600080fd5b8151610d9281611adc565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038681168252851660208201526040810184905260806060820181905281018290526000828460a0840137600060a0848401015260a0601f19601f85011683010190509695505050505050565b60008351612257818460208801611b70565b83519083019061226b818360208801611b70565b01949350505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6000602082840312156122d057600080fd5b8151610d9281611d07565b6000826122ea576122ea612070565b500690565b8181038181111561061357610613612043565b600061ffff82168061231657612316612043565b600019019291505056fea2646970667358221220f3f8fbc968aecb6b35aaa683702a084009954f3d41ec2600830b833c89bb673264736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000004e200000000000000000000000000000000000000000000000000000000000000009456c656d656e74616c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004454c454d00000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _name (string): Elemental
Arg [1] : _symbol (string): ELEM
Arg [2] : maxSupply_ (uint16): 20000
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000004e20
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [4] : 456c656d656e74616c0000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 454c454d00000000000000000000000000000000000000000000000000000000
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.