Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
NFT
Overview
Max Total Supply
550 DOLTAB
Holders
128
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
6 DOLTABLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Doltab
Compiler Version
v0.8.19+commit.7dd6d404
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.19; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; contract Doltab is ERC2981, ReentrancyGuard, ERC721, Ownable { using Strings for uint256; uint256 public constant MAX_ALLOWLIST_MINT = 1; uint256 public constant MAX_PUBLIC_MINT = 5; uint256 public constant MAX_SUPPLY = 550; uint256 public pricePerToken = 0.022 ether; uint256 public posterityFee = 0.001 ether; address payable public constant POSTERITY_WALLET = payable(0xE262AC7c87A23ac9A08d14a5eFfc6BcB7a6b4781); bool public isAllowListActive; bool public isSaleActive; mapping(address => uint256) public allowListNumMinted; mapping(uint256 => string) public scripts; mapping(uint256 => bytes32) internal _tokenSeeds; bytes32 public merkleRoot; uint256 public ratioNumerator = 10000; uint256 public version = 2; string public communityHash; string public provenanceHash; string public traitScript; string public artLicense; string public shortDescription; string public projectWebsite; string public artistName; string private _baseURIextended; uint256 private _totalPublicSupply; // ************************************************************************* // CUSTOM ERRORS /// Allow list sale is not active error AllowListIsNotActive(); /// Not accepting calls from contracts error CallerIsAContract(); /// Purchase would exceed the address's allowlist quota error ExceedsMaximumAllowListTokens(); /// Purchase would exceed the maximum supply error ExceedsMaximumSupply(); /// Purchase would exceed the maximum tokens per purchase error ExceedsMaximumTokenPurchase(); /// Fee withdrawal failed error FeeTransferFailed(); /// Insufficient ETH sent with the call error InsufficientEtherValueSent(); /// Numerator must be between 5000 and 20,000 inclusive error InvalidNumerator(); /// Address is not on the allow list error NotOnAllowList(); /// This function is access restricted error OnlyPosterityAccess(); /// Token sale is not active error SaleIsNotActive(); /// Short description must be 256 bytes or fewer error StringTooLong(); /// This token ID does not exist error TokenIDDoesNotExist(uint256 tokenID); /// ETH transfer failed error TransferFailed(); // ************************************************************************* // MODIFIERS modifier callerIsUser() { if (tx.origin != msg.sender) revert CallerIsAContract(); _; } // ************************************************************************* // FUNCTIONS constructor() ERC721("Doltab", "DOLTAB") { _baseURIextended = string.concat( "https://api.posterity.io/api/metadata/", Strings.toHexString(address(this)), "/" ); } /** * @notice get the mint cost per token, including token price * and posterity fee */ function pricePerMint() external view returns (uint256) { return pricePerToken + posterityFee; } /** * @notice mint tokens on the allow list * @param numberOfTokens quantity of tokens to mint * @param merkleProof authorisation proof for the allow list */ function mintAllowList( uint256 numberOfTokens, bytes32[] memory merkleProof ) external payable nonReentrant callerIsUser { if (!isAllowListActive) revert AllowListIsNotActive(); if (!onAllowList(msg.sender, merkleProof)) revert NotOnAllowList(); uint256 minted_ = allowListNumMinted[msg.sender]; if (numberOfTokens > MAX_ALLOWLIST_MINT - minted_) { revert ExceedsMaximumAllowListTokens(); } uint256 currentSupply = _totalPublicSupply; _preMintChecksEffectsFees(currentSupply, numberOfTokens); allowListNumMinted[msg.sender] = minted_ + numberOfTokens; for (uint256 i; i < numberOfTokens; ++i) { _mintToken(msg.sender, currentSupply + i); } } /** * @notice mint tokens * @param numberOfTokens quantity of tokens to mint */ function mint( uint256 numberOfTokens ) external payable nonReentrant callerIsUser { if (!isSaleActive) revert SaleIsNotActive(); if (numberOfTokens > MAX_PUBLIC_MINT) { revert ExceedsMaximumTokenPurchase(); } uint256 currentSupply = _totalPublicSupply; _preMintChecksEffectsFees(currentSupply, numberOfTokens); for (uint256 i; i < numberOfTokens; ++i) { _mintToken(msg.sender, currentSupply + i); } } /** * @notice mint reserved tokens to a recipient * @param to the token recipient * @param numberOfTokens the quantity of tokens to mint */ function devMint( address to, uint256 numberOfTokens ) external onlyOwner nonReentrant { uint256 currentSupply = _totalPublicSupply; if (currentSupply + numberOfTokens > MAX_SUPPLY) revert ExceedsMaximumSupply(); _totalPublicSupply = currentSupply + numberOfTokens; for (uint256 i; i < numberOfTokens; ++i) { _mintToken(to, currentSupply + i); } } /** * @dev Check token supply and price vs requested number of tokens. * Then update the token supply count and fee total. * @param _currentSupply the current token supply, e.g. use totalSupply() * @param _numberOfTokens the number of tokens to mint */ function _preMintChecksEffectsFees( uint256 _currentSupply, uint256 _numberOfTokens ) private { // checks if (_currentSupply + _numberOfTokens > MAX_SUPPLY) { revert ExceedsMaximumSupply(); } uint256 feePerToken = posterityFee; if ((pricePerToken + feePerToken) * _numberOfTokens > msg.value) { revert InsufficientEtherValueSent(); } // effects _totalPublicSupply = _currentSupply + _numberOfTokens; // trusted call to send posterity fee (bool feeSuccess, ) = POSTERITY_WALLET.call{ value: feePerToken * _numberOfTokens }(""); if (!feeSuccess) revert FeeTransferFailed(); } /** * @dev mints a token ID to a specified address and generates * a unique, pseudo-random seed for it * @param _to token recipient * @param _tokenId token ID to mint */ function _mintToken(address _to, uint256 _tokenId) internal { bytes32 seed = keccak256( abi.encodePacked( _tokenId, provenanceHash, block.prevrandao, communityHash ) ); _tokenSeeds[_tokenId] = seed; _safeMint(_to, _tokenId); } /** * @notice start and stop the public sale * @param newState true starts, false stops the sale */ function setSaleActive(bool newState) external onlyOwner { isSaleActive = newState; } /** * @notice start and stop the allow list sale * @param newState true starts, false stops the sale */ function setAllowListActive(bool newState) external onlyOwner { isAllowListActive = newState; } /** * @notice set the merkle root for allow list authorization * @param _merkleRoot the new merkle root */ function setAllowList(bytes32 _merkleRoot) external onlyOwner { merkleRoot = _merkleRoot; } /** * @notice check if an address is on the allow list * @param claimer address to check * @param proof merkle proof for the claimer */ function onAllowList( address claimer, bytes32[] memory proof ) public view returns (bool) { bytes32 leaf = keccak256(abi.encodePacked(claimer)); return MerkleProof.verify(proof, merkleRoot, leaf); } /** * @notice check the remaining available allow list mints for an address * @param claimer address to check * @param proof merkle proof for the claimer */ function numAvailableToMint( address claimer, bytes32[] memory proof ) public view returns (uint256) { if (onAllowList(claimer, proof)) { return MAX_ALLOWLIST_MINT - allowListNumMinted[claimer]; } else { return 0; } } /** * @notice set a script at a specific index * @param _index the index in scripts mapping * @param _script the script to assign at _index */ function setScript( uint256 _index, string memory _script ) external onlyOwner { scripts[_index] = _script; } /** * @notice set the community hash * @param _communityHash the new hash */ function setCommunityHash(string memory _communityHash) external onlyOwner { communityHash = _communityHash; } /** * @notice set the provenance hash * @param _provenanceHash the new hash */ function setProvenanceHash( string memory _provenanceHash ) external onlyOwner { provenanceHash = _provenanceHash; } /** * @notice set the traitScript * @param _traitScript the new trait script */ function setTraitScript(string memory _traitScript) external onlyOwner { traitScript = _traitScript; } /** * @notice get the token seeds associated with a token ID * @param _tokenId the token ID to query */ function showTokenSeeds(uint256 _tokenId) external view returns (bytes32) { return _tokenSeeds[_tokenId]; } /** * @notice get the total number of minted tokens */ function totalSupply() external view returns (uint256) { return _totalPublicSupply; } /** * @notice check if a token ID has been minted yet */ function isMinted(uint256 tokenId) external view returns (bool) { return _exists(tokenId); } /** * @notice set the base URI for the collection * @param baseURI_ the new base URI */ function setBaseURI(string memory baseURI_) external onlyOwner { _baseURIextended = baseURI_; } /** * @dev See {ERC721 _baseURI()} */ function _baseURI() internal view virtual override returns (string memory) { return _baseURIextended; } /** * @notice get the URI for a token once it has been minted * @param _tokenId the token ID to query */ function tokenURI( uint256 _tokenId ) public view override returns (string memory) { if (!_exists(_tokenId)) revert TokenIDDoesNotExist(_tokenId); return string(abi.encodePacked(_baseURI(), _tokenId.toString())); } /** * @notice withdraw all funds from this contract */ function withdraw() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); if (!success) revert TransferFailed(); } /** * @notice set the aspect ratio numerator. Must be between 5000 and 20,000. * The denominator is 10,000. Divide numerator by denominator to get the * aspect ratio. * @param numerator the numerator */ function setRatioNumerator(uint256 numerator) external onlyOwner { if (numerator < 5000 || numerator > 20_000) revert InvalidNumerator(); ratioNumerator = numerator; } /** * @notice set the art license * @param _artLicense the license */ function setArtLicense(string memory _artLicense) external onlyOwner { artLicense = _artLicense; } /** * @notice set a short description for the collection * @param _shortDescription the new description */ function setShortDescription( string memory _shortDescription ) external onlyOwner { if (bytes(_shortDescription).length > 256) revert StringTooLong(); shortDescription = _shortDescription; } /** * @notice set the project website address * @param _projectWebsite the new web address */ function setProjectWebsite( string memory _projectWebsite ) external onlyOwner { projectWebsite = _projectWebsite; } /** * @notice set the artist's name for this collection * @param _artistName the artist's name */ function setArtistName(string memory _artistName) external onlyOwner { artistName = _artistName; } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC2981, ERC721) returns (bool) { return ERC721.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId) || super.supportsInterface(interfaceId); } // ************************************************************************* // Posterity Admin /** * @notice set the fee per mint received by Posterity * @param feePerMintInWei the fee per mint, in wei */ function setFee(uint256 feePerMintInWei) external { if (msg.sender != POSTERITY_WALLET) revert OnlyPosterityAccess(); posterityFee = feePerMintInWei; } // ************************************************************************* // ERC2981 /** * @notice Get the royalty fee denominator. * @dev See {ERC2981-_feeDenominator}. */ function feeDenominator() external pure returns (uint96) { return _feeDenominator(); } /** * @dev See {ERC2981-_setDefaultRoyalty}. */ function setDefaultRoyalty( address receiver, uint96 feeNumerator ) external onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } /** * @dev See {ERC2981-_deleteDefaultRoyalty}. */ function deleteDefaultRoyalty() external onlyOwner { _deleteDefaultRoyalty(); } /** * @dev See {ERC2981-_setTokenRoyalty}. */ function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) external onlyOwner { _setTokenRoyalty(tokenId, receiver, feeNumerator); } /** * @dev See {ERC2981-_resetTokenRoyalty}. */ function resetTokenRoyalty(uint256 tokenId) external onlyOwner { _resetTokenRoyalty(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_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) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AllowListIsNotActive","type":"error"},{"inputs":[],"name":"CallerIsAContract","type":"error"},{"inputs":[],"name":"ExceedsMaximumAllowListTokens","type":"error"},{"inputs":[],"name":"ExceedsMaximumSupply","type":"error"},{"inputs":[],"name":"ExceedsMaximumTokenPurchase","type":"error"},{"inputs":[],"name":"FeeTransferFailed","type":"error"},{"inputs":[],"name":"InsufficientEtherValueSent","type":"error"},{"inputs":[],"name":"InvalidNumerator","type":"error"},{"inputs":[],"name":"NotOnAllowList","type":"error"},{"inputs":[],"name":"OnlyPosterityAccess","type":"error"},{"inputs":[],"name":"SaleIsNotActive","type":"error"},{"inputs":[],"name":"StringTooLong","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"TokenIDDoesNotExist","type":"error"},{"inputs":[],"name":"TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_ALLOWLIST_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PUBLIC_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POSTERITY_WALLET","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowListNumMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artLicense","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"artistName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"communityHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeDenominator","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isAllowListActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"isMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintAllowList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"numAvailableToMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"claimer","type":"address"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"onAllowList","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":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"posterityFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectWebsite","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ratioNumerator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","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":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"scripts","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setAllowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setAllowListActive","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":"_artLicense","type":"string"}],"name":"setArtLicense","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_artistName","type":"string"}],"name":"setArtistName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_communityHash","type":"string"}],"name":"setCommunityHash","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":"uint256","name":"feePerMintInWei","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_projectWebsite","type":"string"}],"name":"setProjectWebsite","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"}],"name":"setRatioNumerator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newState","type":"bool"}],"name":"setSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"},{"internalType":"string","name":"_script","type":"string"}],"name":"setScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_shortDescription","type":"string"}],"name":"setShortDescription","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":"string","name":"_traitScript","type":"string"}],"name":"setTraitScript","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shortDescription","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"showTokenSeeds","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"traitScript","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052664e28e2290f0000600a5566038d7ea4c68000600b5561271060115560026012553480156200003257600080fd5b506040805180820182526006808252652237b63a30b160d11b6020808401919091528351808501909452908352652227a62a20a160d11b908301526001600255906003620000818382620003cc565b506004620000908282620003cc565b505050620000ad620000a7620000f060201b60201c565b620000f4565b620000b83062000146565b604051602001620000ca919062000498565b604051602081830303815290604052601a9081620000e99190620003cc565b5062000580565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60606200015e6001600160a01b038316601462000164565b92915050565b606060006200017583600262000520565b620001829060026200053a565b6001600160401b038111156200019c576200019c62000327565b6040519080825280601f01601f191660200182016040528015620001c7576020820181803683370190505b509050600360fc1b81600081518110620001e557620001e562000550565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811062000217576200021762000550565b60200101906001600160f81b031916908160001a90535060006200023d84600262000520565b6200024a9060016200053a565b90505b6001811115620002cc576f181899199a1a9b1b9c1cb0b131b232b360811b85600f166010811062000282576200028262000550565b1a60f81b8282815181106200029b576200029b62000550565b60200101906001600160f81b031916908160001a90535060049490941c93620002c48162000566565b90506200024d565b508315620003205760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640160405180910390fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200035257607f821691505b6020821081036200037357634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003c757600081815260208120601f850160051c81016020861015620003a25750805b601f850160051c820191505b81811015620003c357828155600101620003ae565b5050505b505050565b81516001600160401b03811115620003e857620003e862000327565b6200040081620003f984546200033d565b8462000379565b602080601f8311600181146200043857600084156200041f5750858301515b600019600386901b1c1916600185901b178555620003c3565b600085815260208120601f198616915b82811015620004695788860151825594840194600190910190840162000448565b5085821015620004885787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b7f68747470733a2f2f6170692e706f737465726974792e696f2f6170692f6d65748152600060206561646174612f60d01b81840152835160005b81811015620004f057858101830151858201602601528201620004d2565b50602f60f81b602694909101938401525050602701919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176200015e576200015e6200050a565b808201808211156200015e576200015e6200050a565b634e487b7160e01b600052603260045260246000fd5b6000816200057857620005786200050a565b506000190190565b612d7d80620005906000396000f3fe6080604052600436106103d95760003560e01c806369fe0e2d116101fd578063aa1b103f11610118578063d410cb64116100ab578063f1dd302e1161007a578063f1dd302e14610b3d578063f2fde38b14610b53578063f6787d8a14610b73578063f6c11dad14610b89578063fa05a65714610ba957600080fd5b8063d410cb6414610aaa578063e0c9f80c14610abf578063e2ba90ae14610ad4578063e985e9c514610af457600080fd5b8063c246450f116100e7578063c246450f14610a40578063c5610a2914610a60578063c6ab67a314610a75578063c87b56dd14610a8a57600080fd5b8063aa1b103f146109cb578063b32c5680146109e0578063b4837d9e14610a00578063b88d4fde14610a2057600080fd5b806388879b1c116101905780639a459f751161015f5780639a459f7514610958578063a0712d6814610978578063a22cb4651461098b578063a282a60e146109ab57600080fd5b806388879b1c146108d85780638a616bc0146109055780638da5cb5b1461092557806395d89b411461094357600080fd5b806372f85d51116101cc57806372f85d511461086d5780637b1b1de614610882578063841718a61461089857806384584d07146108b857600080fd5b806369fe0e2d146107f857806370a082311461081857806371199d3014610838578063715018a61461085857600080fd5b806332cb6b0c116102f857806355f804b31161028b5780635c3ed6941161025a5780635c3ed69414610756578063627804af146107765780636352211e1461079657806365f13097146107b6578063697c64f9146107cb57600080fd5b806355f804b3146106e2578063564566a8146107025780635944c753146107215780635b2f515b1461074157600080fd5b80633ecb79e7116102c75780633ecb79e71461066f5780633f1bf8681461068457806342842e0e146106ac57806354fd4d50146106cc57600080fd5b806332cb6b0c1461060457806333c41a901461061a5780633a73c58d1461063a5780633ccfd60b1461065a57600080fd5b8063109695231161037057806323b872dd1161033f57806323b872dd1461057557806329fc6bae146105955780632a55205a146105af5780632eb4a7ab146105ee57600080fd5b80631096952314610504578063180b0d7e1461052457806318160ddd146105415780631da989601461056057600080fd5b8063081812fc116103ac578063081812fc1461046c57806308ff7f61146104a4578063095ea7b3146104c45780630d546361146104e457600080fd5b806301ffc9a7146103de57806303e5979d1461041357806304634d8d1461043557806306fdde0314610457575b600080fd5b3480156103ea57600080fd5b506103fe6103f93660046123f7565b610bbc565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b50610428610beb565b60405161040a9190612464565b34801561044157600080fd5b506104556104503660046124aa565b610c79565b005b34801561046357600080fd5b50610428610c8f565b34801561047857600080fd5b5061048c6104873660046124dd565b610d21565b6040516001600160a01b03909116815260200161040a565b3480156104b057600080fd5b506104286104bf3660046124dd565b610d48565b3480156104d057600080fd5b506104556104df3660046124f6565b610d61565b3480156104f057600080fd5b506104556104ff3660046125df565b610e7b565b34801561051057600080fd5b5061045561051f3660046125df565b610e8f565b34801561053057600080fd5b50604051612710815260200161040a565b34801561054d57600080fd5b50601b545b60405190815260200161040a565b34801561056c57600080fd5b50610428610ea8565b34801561058157600080fd5b50610455610590366004612614565b610eb5565b3480156105a157600080fd5b50600c546103fe9060ff1681565b3480156105bb57600080fd5b506105cf6105ca366004612650565b610ee6565b604080516001600160a01b03909316835260208301919091520161040a565b3480156105fa57600080fd5b5061055260105481565b34801561061057600080fd5b5061055261022681565b34801561062657600080fd5b506103fe6106353660046124dd565b610f92565b34801561064657600080fd5b50610455610655366004612682565b610fb1565b34801561066657600080fd5b50610455610fcc565b34801561067b57600080fd5b5061042861106a565b34801561069057600080fd5b5061048c73e262ac7c87a23ac9a08d14a5effc6bcb7a6b478181565b3480156106b857600080fd5b506104556106c7366004612614565b611077565b3480156106d857600080fd5b5061055260125481565b3480156106ee57600080fd5b506104556106fd3660046125df565b611092565b34801561070e57600080fd5b50600c546103fe90610100900460ff1681565b34801561072d57600080fd5b5061045561073c36600461269d565b6110a6565b34801561074d57600080fd5b506104286110b9565b34801561076257600080fd5b506104556107713660046124dd565b6110c6565b34801561078257600080fd5b506104556107913660046124f6565b611102565b3480156107a257600080fd5b5061048c6107b13660046124dd565b6111a4565b3480156107c257600080fd5b50610552600581565b3480156107d757600080fd5b506105526107e63660046124dd565b6000908152600f602052604090205490565b34801561080457600080fd5b506104556108133660046124dd565b611204565b34801561082457600080fd5b506105526108333660046126d9565b61123d565b34801561084457600080fd5b506104556108533660046126f4565b6112c3565b34801561086457600080fd5b506104556112e3565b34801561087957600080fd5b50610552600181565b34801561088e57600080fd5b50610552600a5481565b3480156108a457600080fd5b506104556108b3366004612682565b6112f7565b3480156108c457600080fd5b506104556108d33660046124dd565b611319565b3480156108e457600080fd5b506105526108f33660046126d9565b600d6020526000908152604090205481565b34801561091157600080fd5b506104556109203660046124dd565b611326565b34801561093157600080fd5b506009546001600160a01b031661048c565b34801561094f57600080fd5b50610428611342565b34801561096457600080fd5b506104556109733660046125df565b611351565b6104556109863660046124dd565b611389565b34801561099757600080fd5b506104556109a636600461273b565b611457565b3480156109b757600080fd5b506104556109c63660046125df565b611462565b3480156109d757600080fd5b50610455611476565b3480156109ec57600080fd5b506103fe6109fb3660046127e5565b611487565b348015610a0c57600080fd5b50610455610a1b3660046125df565b6114d8565b348015610a2c57600080fd5b50610455610a3b366004612829565b6114ec565b348015610a4c57600080fd5b50610455610a5b3660046125df565b611524565b348015610a6c57600080fd5b50610552611538565b348015610a8157600080fd5b5061042861154a565b348015610a9657600080fd5b50610428610aa53660046124dd565b611557565b348015610ab657600080fd5b506104286115ca565b348015610acb57600080fd5b506104286115d7565b348015610ae057600080fd5b50610455610aef3660046125df565b6115e4565b348015610b0057600080fd5b506103fe610b0f3660046128a5565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610b4957600080fd5b50610552600b5481565b348015610b5f57600080fd5b50610455610b6e3660046126d9565b6115f8565b348015610b7f57600080fd5b5061055260115481565b348015610b9557600080fd5b50610552610ba43660046127e5565b61166e565b610455610bb73660046128cf565b6116b2565b6000610bc7826117d9565b80610bd65750610bd682611815565b80610be55750610be5826117d9565b92915050565b60188054610bf890612900565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2490612900565b8015610c715780601f10610c4657610100808354040283529160200191610c71565b820191906000526020600020905b815481529060010190602001808311610c5457829003601f168201915b505050505081565b610c8161184a565b610c8b82826118a4565b5050565b606060038054610c9e90612900565b80601f0160208091040260200160405190810160405280929190818152602001828054610cca90612900565b8015610d175780601f10610cec57610100808354040283529160200191610d17565b820191906000526020600020905b815481529060010190602001808311610cfa57829003601f168201915b5050505050905090565b6000610d2c8261195e565b506000908152600760205260409020546001600160a01b031690565b600e6020526000908152604090208054610bf890612900565b6000610d6c826111a4565b9050806001600160a01b0316836001600160a01b031603610dde5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610dfa5750610dfa8133610b0f565b610e6c5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610dd5565b610e7683836119bd565b505050565b610e8361184a565b6016610c8b8282612988565b610e9761184a565b6014610c8b8282612988565b905090565b60178054610bf890612900565b610ebf3382611a2b565b610edb5760405162461bcd60e51b8152600401610dd590612a48565b610e76838383611aa9565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610f5b5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610f7a906001600160601b031687612aac565b610f849190612ad9565b915196919550909350505050565b6000818152600560205260408120546001600160a01b03161515610be5565b610fb961184a565b600c805460ff1916911515919091179055565b610fd461184a565b6002805403610ff55760405162461bcd60e51b8152600401610dd590612aed565b60028055604051600090339047908381818185875af1925050503d806000811461103b576040519150601f19603f3d011682016040523d82523d6000602084013e611040565b606091505b5050905080611062576040516312171d8360e31b815260040160405180910390fd5b506001600255565b60168054610bf890612900565b610e76838383604051806020016040528060008152506114ec565b61109a61184a565b601a610c8b8282612988565b6110ae61184a565b610e76838383611c45565b60198054610bf890612900565b6110ce61184a565b6113888110806110df5750614e2081115b156110fd57604051631693114d60e21b815260040160405180910390fd5b601155565b61110a61184a565b600280540361112b5760405162461bcd60e51b8152600401610dd590612aed565b60028055601b5461022661113f8383612b24565b111561115e57604051638f0c6ebf60e01b815260040160405180910390fd5b6111688282612b24565b601b5560005b8281101561119957611189846111848385612b24565b611d10565b61119281612b37565b905061116e565b505060016002555050565b6000818152600560205260408120546001600160a01b031680610be55760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610dd5565b3373e262ac7c87a23ac9a08d14a5effc6bcb7a6b478114611238576040516343c535c760e01b815260040160405180910390fd5b600b55565b60006001600160a01b0382166112a75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610dd5565b506001600160a01b031660009081526006602052604090205490565b6112cb61184a565b6000828152600e60205260409020610e768282612988565b6112eb61184a565b6112f56000611d5e565b565b6112ff61184a565b600c80549115156101000261ff0019909216919091179055565b61132161184a565b601055565b61132e61184a565b600090815260016020526040812055565b50565b606060048054610c9e90612900565b61135961184a565b6101008151111561137d57604051631623655b60e31b815260040160405180910390fd5b6017610c8b8282612988565b60028054036113aa5760405162461bcd60e51b8152600401610dd590612aed565b600280553233146113ce576040516338c554f360e01b815260040160405180910390fd5b600c54610100900460ff166113f55760405162ecac0160e01b815260040160405180910390fd5b6005811115611417576040516328f0161960e01b815260040160405180910390fd5b601b546114248183611db0565b60005b8281101561144d5761143d336111848385612b24565b61144681612b37565b9050611427565b5050600160025550565b610c8b338383611eab565b61146a61184a565b6015610c8b8282612988565b61147e61184a565b6112f560008055565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506114d08360105483611f79565b949350505050565b6114e061184a565b6019610c8b8282612988565b6114f63383611a2b565b6115125760405162461bcd60e51b8152600401610dd590612a48565b61151e84848484611f8f565b50505050565b61152c61184a565b6018610c8b8282612988565b6000600b54600a54610ea39190612b24565b60148054610bf890612900565b6000818152600560205260409020546060906001600160a01b03166115925760405163174ae5a960e21b815260048101839052602401610dd5565b61159a611fc2565b6115a383611fd1565b6040516020016115b4929190612b50565b6040516020818303038152906040529050919050565b60158054610bf890612900565b60138054610bf890612900565b6115ec61184a565b6013610c8b8282612988565b61160061184a565b6001600160a01b0381166116655760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dd5565b61133f81611d5e565b600061167a8383611487565b156116aa576001600160a01b0383166000908152600d60205260409020546116a3906001612b7f565b9050610be5565b506000610be5565b60028054036116d35760405162461bcd60e51b8152600401610dd590612aed565b600280553233146116f7576040516338c554f360e01b815260040160405180910390fd5b600c5460ff1661171a5760405163261a1a1d60e11b815260040160405180910390fd5b6117243382611487565b611741576040516360cea48b60e01b815260040160405180910390fd5b336000908152600d602052604090205461175c816001612b7f565b83111561177c576040516307bbfa3d60e41b815260040160405180910390fd5b601b546117898185611db0565b6117938483612b24565b336000908152600d60205260408120919091555b848110156117cd576117bd336111848385612b24565b6117c681612b37565b90506117a7565b50506001600255505050565b60006001600160e01b031982166380ac58cd60e01b148061180a57506001600160e01b03198216635b5e139f60e01b145b80610be55750610be5825b60006001600160e01b0319821663152a902d60e11b1480610be557506301ffc9a760e01b6001600160e01b0319831614610be5565b6009546001600160a01b031633146112f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dd5565b6127106001600160601b03821611156118cf5760405162461bcd60e51b8152600401610dd590612b92565b6001600160a01b0382166119255760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610dd5565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000818152600560205260409020546001600160a01b031661133f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610dd5565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119f2826111a4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611a37836111a4565b9050806001600160a01b0316846001600160a01b03161480611a7e57506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b806114d05750836001600160a01b0316611a9784610d21565b6001600160a01b031614949350505050565b826001600160a01b0316611abc826111a4565b6001600160a01b031614611b205760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610dd5565b6001600160a01b038216611b825760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610dd5565b611b8d6000826119bd565b6001600160a01b0383166000908152600660205260408120805460019290611bb6908490612b7f565b90915550506001600160a01b0382166000908152600660205260408120805460019290611be4908490612b24565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127106001600160601b0382161115611c705760405162461bcd60e51b8152600401610dd590612b92565b6001600160a01b038216611cc65760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610dd5565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b6000816014446013604051602001611d2b9493929190612c4f565b60408051601f1981840301815291815281516020928301206000858152600f90935291208190559050610e7683836120d2565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610226611dbd8284612b24565b1115611ddc57604051638f0c6ebf60e01b815260040160405180910390fd5b600b54600a5434908390611df1908490612b24565b611dfb9190612aac565b1115611e1a57604051632f80d5d760e21b815260040160405180910390fd5b611e248284612b24565b601b55600073e262ac7c87a23ac9a08d14a5effc6bcb7a6b4781611e488484612aac565b604051600081818185875af1925050503d8060008114611e84576040519150601f19603f3d011682016040523d82523d6000602084013e611e89565b606091505b505090508061151e57604051634033e4e360e01b815260040160405180910390fd5b816001600160a01b0316836001600160a01b031603611f0c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610dd5565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600082611f8685846120ec565b14949350505050565b611f9a848484611aa9565b611fa684848484612139565b61151e5760405162461bcd60e51b8152600401610dd590612c71565b6060601a8054610c9e90612900565b606081600003611ff85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612022578061200c81612b37565b915061201b9050600a83612ad9565b9150611ffc565b60008167ffffffffffffffff81111561203d5761203d612520565b6040519080825280601f01601f191660200182016040528015612067576020820181803683370190505b5090505b84156114d05761207c600183612b7f565b9150612089600a86612cc3565b612094906030612b24565b60f81b8183815181106120a9576120a9612cd7565b60200101906001600160f81b031916908160001a9053506120cb600a86612ad9565b945061206b565b610c8b82826040518060200160405280600081525061223a565b600081815b84518110156121315761211d8286838151811061211057612110612cd7565b602002602001015161226d565b91508061212981612b37565b9150506120f1565b509392505050565b60006001600160a01b0384163b1561222f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061217d903390899088908890600401612ced565b6020604051808303816000875af19250505080156121b8575060408051601f3d908101601f191682019092526121b591810190612d2a565b60015b612215573d8080156121e6576040519150601f19603f3d011682016040523d82523d6000602084013e6121eb565b606091505b50805160000361220d5760405162461bcd60e51b8152600401610dd590612c71565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506114d0565b506001949350505050565b612244838361229f565b6122516000848484612139565b610e765760405162461bcd60e51b8152600401610dd590612c71565b6000818310612289576000828152602084905260409020612298565b60008381526020839052604090205b9392505050565b6001600160a01b0382166122f55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610dd5565b6000818152600560205260409020546001600160a01b03161561235a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610dd5565b6001600160a01b0382166000908152600660205260408120805460019290612383908490612b24565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461133f57600080fd5b60006020828403121561240957600080fd5b8135612298816123e1565b60005b8381101561242f578181015183820152602001612417565b50506000910152565b60008151808452612450816020860160208601612414565b601f01601f19169290920160200192915050565b6020815260006122986020830184612438565b80356001600160a01b038116811461248e57600080fd5b919050565b80356001600160601b038116811461248e57600080fd5b600080604083850312156124bd57600080fd5b6124c683612477565b91506124d460208401612493565b90509250929050565b6000602082840312156124ef57600080fd5b5035919050565b6000806040838503121561250957600080fd5b61251283612477565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561255f5761255f612520565b604052919050565b600067ffffffffffffffff83111561258157612581612520565b612594601f8401601f1916602001612536565b90508281528383830111156125a857600080fd5b828260208301376000602084830101529392505050565b600082601f8301126125d057600080fd5b61229883833560208501612567565b6000602082840312156125f157600080fd5b813567ffffffffffffffff81111561260857600080fd5b6114d0848285016125bf565b60008060006060848603121561262957600080fd5b61263284612477565b925061264060208501612477565b9150604084013590509250925092565b6000806040838503121561266357600080fd5b50508035926020909101359150565b8035801515811461248e57600080fd5b60006020828403121561269457600080fd5b61229882612672565b6000806000606084860312156126b257600080fd5b833592506126c260208501612477565b91506126d060408501612493565b90509250925092565b6000602082840312156126eb57600080fd5b61229882612477565b6000806040838503121561270757600080fd5b82359150602083013567ffffffffffffffff81111561272557600080fd5b612731858286016125bf565b9150509250929050565b6000806040838503121561274e57600080fd5b61275783612477565b91506124d460208401612672565b600082601f83011261277657600080fd5b8135602067ffffffffffffffff82111561279257612792612520565b8160051b6127a1828201612536565b92835284810182019282810190878511156127bb57600080fd5b83870192505b848310156127da578235825291830191908301906127c1565b979650505050505050565b600080604083850312156127f857600080fd5b61280183612477565b9150602083013567ffffffffffffffff81111561281d57600080fd5b61273185828601612765565b6000806000806080858703121561283f57600080fd5b61284885612477565b935061285660208601612477565b925060408501359150606085013567ffffffffffffffff81111561287957600080fd5b8501601f8101871361288a57600080fd5b61289987823560208401612567565b91505092959194509250565b600080604083850312156128b857600080fd5b6128c183612477565b91506124d460208401612477565b600080604083850312156128e257600080fd5b82359150602083013567ffffffffffffffff81111561281d57600080fd5b600181811c9082168061291457607f821691505b60208210810361293457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610e7657600081815260208120601f850160051c810160208610156129615750805b601f850160051c820191505b818110156129805782815560010161296d565b505050505050565b815167ffffffffffffffff8111156129a2576129a2612520565b6129b6816129b08454612900565b8461293a565b602080601f8311600181146129eb57600084156129d35750858301515b600019600386901b1c1916600185901b178555612980565b600085815260208120601f198616915b82811015612a1a578886015182559484019460019091019084016129fb565b5085821015612a385787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610be557610be5612a96565b634e487b7160e01b600052601260045260246000fd5b600082612ae857612ae8612ac3565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b80820180821115610be557610be5612a96565b600060018201612b4957612b49612a96565b5060010190565b60008351612b62818460208801612414565b835190830190612b76818360208801612414565b01949350505050565b81810381811115610be557610be5612a96565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60008154612be981612900565b60018281168015612c015760018114612c1657612c45565b60ff1984168752821515830287019450612c45565b8560005260208060002060005b85811015612c3c5781548a820152908401908201612c23565b50505082870194505b5050505092915050565b8481526000612c616020830186612bdc565b8481526127da6020820185612bdc565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612cd257612cd2612ac3565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612d2090830184612438565b9695505050505050565b600060208284031215612d3c57600080fd5b8151612298816123e156fea2646970667358221220c49157e94e9afeecc9c8741a697c894856f0366c9cb5a11eafc6baebd74c296064736f6c63430008130033
Deployed Bytecode
0x6080604052600436106103d95760003560e01c806369fe0e2d116101fd578063aa1b103f11610118578063d410cb64116100ab578063f1dd302e1161007a578063f1dd302e14610b3d578063f2fde38b14610b53578063f6787d8a14610b73578063f6c11dad14610b89578063fa05a65714610ba957600080fd5b8063d410cb6414610aaa578063e0c9f80c14610abf578063e2ba90ae14610ad4578063e985e9c514610af457600080fd5b8063c246450f116100e7578063c246450f14610a40578063c5610a2914610a60578063c6ab67a314610a75578063c87b56dd14610a8a57600080fd5b8063aa1b103f146109cb578063b32c5680146109e0578063b4837d9e14610a00578063b88d4fde14610a2057600080fd5b806388879b1c116101905780639a459f751161015f5780639a459f7514610958578063a0712d6814610978578063a22cb4651461098b578063a282a60e146109ab57600080fd5b806388879b1c146108d85780638a616bc0146109055780638da5cb5b1461092557806395d89b411461094357600080fd5b806372f85d51116101cc57806372f85d511461086d5780637b1b1de614610882578063841718a61461089857806384584d07146108b857600080fd5b806369fe0e2d146107f857806370a082311461081857806371199d3014610838578063715018a61461085857600080fd5b806332cb6b0c116102f857806355f804b31161028b5780635c3ed6941161025a5780635c3ed69414610756578063627804af146107765780636352211e1461079657806365f13097146107b6578063697c64f9146107cb57600080fd5b806355f804b3146106e2578063564566a8146107025780635944c753146107215780635b2f515b1461074157600080fd5b80633ecb79e7116102c75780633ecb79e71461066f5780633f1bf8681461068457806342842e0e146106ac57806354fd4d50146106cc57600080fd5b806332cb6b0c1461060457806333c41a901461061a5780633a73c58d1461063a5780633ccfd60b1461065a57600080fd5b8063109695231161037057806323b872dd1161033f57806323b872dd1461057557806329fc6bae146105955780632a55205a146105af5780632eb4a7ab146105ee57600080fd5b80631096952314610504578063180b0d7e1461052457806318160ddd146105415780631da989601461056057600080fd5b8063081812fc116103ac578063081812fc1461046c57806308ff7f61146104a4578063095ea7b3146104c45780630d546361146104e457600080fd5b806301ffc9a7146103de57806303e5979d1461041357806304634d8d1461043557806306fdde0314610457575b600080fd5b3480156103ea57600080fd5b506103fe6103f93660046123f7565b610bbc565b60405190151581526020015b60405180910390f35b34801561041f57600080fd5b50610428610beb565b60405161040a9190612464565b34801561044157600080fd5b506104556104503660046124aa565b610c79565b005b34801561046357600080fd5b50610428610c8f565b34801561047857600080fd5b5061048c6104873660046124dd565b610d21565b6040516001600160a01b03909116815260200161040a565b3480156104b057600080fd5b506104286104bf3660046124dd565b610d48565b3480156104d057600080fd5b506104556104df3660046124f6565b610d61565b3480156104f057600080fd5b506104556104ff3660046125df565b610e7b565b34801561051057600080fd5b5061045561051f3660046125df565b610e8f565b34801561053057600080fd5b50604051612710815260200161040a565b34801561054d57600080fd5b50601b545b60405190815260200161040a565b34801561056c57600080fd5b50610428610ea8565b34801561058157600080fd5b50610455610590366004612614565b610eb5565b3480156105a157600080fd5b50600c546103fe9060ff1681565b3480156105bb57600080fd5b506105cf6105ca366004612650565b610ee6565b604080516001600160a01b03909316835260208301919091520161040a565b3480156105fa57600080fd5b5061055260105481565b34801561061057600080fd5b5061055261022681565b34801561062657600080fd5b506103fe6106353660046124dd565b610f92565b34801561064657600080fd5b50610455610655366004612682565b610fb1565b34801561066657600080fd5b50610455610fcc565b34801561067b57600080fd5b5061042861106a565b34801561069057600080fd5b5061048c73e262ac7c87a23ac9a08d14a5effc6bcb7a6b478181565b3480156106b857600080fd5b506104556106c7366004612614565b611077565b3480156106d857600080fd5b5061055260125481565b3480156106ee57600080fd5b506104556106fd3660046125df565b611092565b34801561070e57600080fd5b50600c546103fe90610100900460ff1681565b34801561072d57600080fd5b5061045561073c36600461269d565b6110a6565b34801561074d57600080fd5b506104286110b9565b34801561076257600080fd5b506104556107713660046124dd565b6110c6565b34801561078257600080fd5b506104556107913660046124f6565b611102565b3480156107a257600080fd5b5061048c6107b13660046124dd565b6111a4565b3480156107c257600080fd5b50610552600581565b3480156107d757600080fd5b506105526107e63660046124dd565b6000908152600f602052604090205490565b34801561080457600080fd5b506104556108133660046124dd565b611204565b34801561082457600080fd5b506105526108333660046126d9565b61123d565b34801561084457600080fd5b506104556108533660046126f4565b6112c3565b34801561086457600080fd5b506104556112e3565b34801561087957600080fd5b50610552600181565b34801561088e57600080fd5b50610552600a5481565b3480156108a457600080fd5b506104556108b3366004612682565b6112f7565b3480156108c457600080fd5b506104556108d33660046124dd565b611319565b3480156108e457600080fd5b506105526108f33660046126d9565b600d6020526000908152604090205481565b34801561091157600080fd5b506104556109203660046124dd565b611326565b34801561093157600080fd5b506009546001600160a01b031661048c565b34801561094f57600080fd5b50610428611342565b34801561096457600080fd5b506104556109733660046125df565b611351565b6104556109863660046124dd565b611389565b34801561099757600080fd5b506104556109a636600461273b565b611457565b3480156109b757600080fd5b506104556109c63660046125df565b611462565b3480156109d757600080fd5b50610455611476565b3480156109ec57600080fd5b506103fe6109fb3660046127e5565b611487565b348015610a0c57600080fd5b50610455610a1b3660046125df565b6114d8565b348015610a2c57600080fd5b50610455610a3b366004612829565b6114ec565b348015610a4c57600080fd5b50610455610a5b3660046125df565b611524565b348015610a6c57600080fd5b50610552611538565b348015610a8157600080fd5b5061042861154a565b348015610a9657600080fd5b50610428610aa53660046124dd565b611557565b348015610ab657600080fd5b506104286115ca565b348015610acb57600080fd5b506104286115d7565b348015610ae057600080fd5b50610455610aef3660046125df565b6115e4565b348015610b0057600080fd5b506103fe610b0f3660046128a5565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610b4957600080fd5b50610552600b5481565b348015610b5f57600080fd5b50610455610b6e3660046126d9565b6115f8565b348015610b7f57600080fd5b5061055260115481565b348015610b9557600080fd5b50610552610ba43660046127e5565b61166e565b610455610bb73660046128cf565b6116b2565b6000610bc7826117d9565b80610bd65750610bd682611815565b80610be55750610be5826117d9565b92915050565b60188054610bf890612900565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2490612900565b8015610c715780601f10610c4657610100808354040283529160200191610c71565b820191906000526020600020905b815481529060010190602001808311610c5457829003601f168201915b505050505081565b610c8161184a565b610c8b82826118a4565b5050565b606060038054610c9e90612900565b80601f0160208091040260200160405190810160405280929190818152602001828054610cca90612900565b8015610d175780601f10610cec57610100808354040283529160200191610d17565b820191906000526020600020905b815481529060010190602001808311610cfa57829003601f168201915b5050505050905090565b6000610d2c8261195e565b506000908152600760205260409020546001600160a01b031690565b600e6020526000908152604090208054610bf890612900565b6000610d6c826111a4565b9050806001600160a01b0316836001600160a01b031603610dde5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610dfa5750610dfa8133610b0f565b610e6c5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610dd5565b610e7683836119bd565b505050565b610e8361184a565b6016610c8b8282612988565b610e9761184a565b6014610c8b8282612988565b905090565b60178054610bf890612900565b610ebf3382611a2b565b610edb5760405162461bcd60e51b8152600401610dd590612a48565b610e76838383611aa9565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610f5b5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610f7a906001600160601b031687612aac565b610f849190612ad9565b915196919550909350505050565b6000818152600560205260408120546001600160a01b03161515610be5565b610fb961184a565b600c805460ff1916911515919091179055565b610fd461184a565b6002805403610ff55760405162461bcd60e51b8152600401610dd590612aed565b60028055604051600090339047908381818185875af1925050503d806000811461103b576040519150601f19603f3d011682016040523d82523d6000602084013e611040565b606091505b5050905080611062576040516312171d8360e31b815260040160405180910390fd5b506001600255565b60168054610bf890612900565b610e76838383604051806020016040528060008152506114ec565b61109a61184a565b601a610c8b8282612988565b6110ae61184a565b610e76838383611c45565b60198054610bf890612900565b6110ce61184a565b6113888110806110df5750614e2081115b156110fd57604051631693114d60e21b815260040160405180910390fd5b601155565b61110a61184a565b600280540361112b5760405162461bcd60e51b8152600401610dd590612aed565b60028055601b5461022661113f8383612b24565b111561115e57604051638f0c6ebf60e01b815260040160405180910390fd5b6111688282612b24565b601b5560005b8281101561119957611189846111848385612b24565b611d10565b61119281612b37565b905061116e565b505060016002555050565b6000818152600560205260408120546001600160a01b031680610be55760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610dd5565b3373e262ac7c87a23ac9a08d14a5effc6bcb7a6b478114611238576040516343c535c760e01b815260040160405180910390fd5b600b55565b60006001600160a01b0382166112a75760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610dd5565b506001600160a01b031660009081526006602052604090205490565b6112cb61184a565b6000828152600e60205260409020610e768282612988565b6112eb61184a565b6112f56000611d5e565b565b6112ff61184a565b600c80549115156101000261ff0019909216919091179055565b61132161184a565b601055565b61132e61184a565b600090815260016020526040812055565b50565b606060048054610c9e90612900565b61135961184a565b6101008151111561137d57604051631623655b60e31b815260040160405180910390fd5b6017610c8b8282612988565b60028054036113aa5760405162461bcd60e51b8152600401610dd590612aed565b600280553233146113ce576040516338c554f360e01b815260040160405180910390fd5b600c54610100900460ff166113f55760405162ecac0160e01b815260040160405180910390fd5b6005811115611417576040516328f0161960e01b815260040160405180910390fd5b601b546114248183611db0565b60005b8281101561144d5761143d336111848385612b24565b61144681612b37565b9050611427565b5050600160025550565b610c8b338383611eab565b61146a61184a565b6015610c8b8282612988565b61147e61184a565b6112f560008055565b6040516bffffffffffffffffffffffff19606084901b16602082015260009081906034016040516020818303038152906040528051906020012090506114d08360105483611f79565b949350505050565b6114e061184a565b6019610c8b8282612988565b6114f63383611a2b565b6115125760405162461bcd60e51b8152600401610dd590612a48565b61151e84848484611f8f565b50505050565b61152c61184a565b6018610c8b8282612988565b6000600b54600a54610ea39190612b24565b60148054610bf890612900565b6000818152600560205260409020546060906001600160a01b03166115925760405163174ae5a960e21b815260048101839052602401610dd5565b61159a611fc2565b6115a383611fd1565b6040516020016115b4929190612b50565b6040516020818303038152906040529050919050565b60158054610bf890612900565b60138054610bf890612900565b6115ec61184a565b6013610c8b8282612988565b61160061184a565b6001600160a01b0381166116655760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dd5565b61133f81611d5e565b600061167a8383611487565b156116aa576001600160a01b0383166000908152600d60205260409020546116a3906001612b7f565b9050610be5565b506000610be5565b60028054036116d35760405162461bcd60e51b8152600401610dd590612aed565b600280553233146116f7576040516338c554f360e01b815260040160405180910390fd5b600c5460ff1661171a5760405163261a1a1d60e11b815260040160405180910390fd5b6117243382611487565b611741576040516360cea48b60e01b815260040160405180910390fd5b336000908152600d602052604090205461175c816001612b7f565b83111561177c576040516307bbfa3d60e41b815260040160405180910390fd5b601b546117898185611db0565b6117938483612b24565b336000908152600d60205260408120919091555b848110156117cd576117bd336111848385612b24565b6117c681612b37565b90506117a7565b50506001600255505050565b60006001600160e01b031982166380ac58cd60e01b148061180a57506001600160e01b03198216635b5e139f60e01b145b80610be55750610be5825b60006001600160e01b0319821663152a902d60e11b1480610be557506301ffc9a760e01b6001600160e01b0319831614610be5565b6009546001600160a01b031633146112f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610dd5565b6127106001600160601b03821611156118cf5760405162461bcd60e51b8152600401610dd590612b92565b6001600160a01b0382166119255760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610dd5565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b6000818152600560205260409020546001600160a01b031661133f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610dd5565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906119f2826111a4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611a37836111a4565b9050806001600160a01b0316846001600160a01b03161480611a7e57506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b806114d05750836001600160a01b0316611a9784610d21565b6001600160a01b031614949350505050565b826001600160a01b0316611abc826111a4565b6001600160a01b031614611b205760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610dd5565b6001600160a01b038216611b825760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610dd5565b611b8d6000826119bd565b6001600160a01b0383166000908152600660205260408120805460019290611bb6908490612b7f565b90915550506001600160a01b0382166000908152600660205260408120805460019290611be4908490612b24565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6127106001600160601b0382161115611c705760405162461bcd60e51b8152600401610dd590612b92565b6001600160a01b038216611cc65760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d657465727300000000006044820152606401610dd5565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b6000816014446013604051602001611d2b9493929190612c4f565b60408051601f1981840301815291815281516020928301206000858152600f90935291208190559050610e7683836120d2565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610226611dbd8284612b24565b1115611ddc57604051638f0c6ebf60e01b815260040160405180910390fd5b600b54600a5434908390611df1908490612b24565b611dfb9190612aac565b1115611e1a57604051632f80d5d760e21b815260040160405180910390fd5b611e248284612b24565b601b55600073e262ac7c87a23ac9a08d14a5effc6bcb7a6b4781611e488484612aac565b604051600081818185875af1925050503d8060008114611e84576040519150601f19603f3d011682016040523d82523d6000602084013e611e89565b606091505b505090508061151e57604051634033e4e360e01b815260040160405180910390fd5b816001600160a01b0316836001600160a01b031603611f0c5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610dd5565b6001600160a01b03838116600081815260086020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600082611f8685846120ec565b14949350505050565b611f9a848484611aa9565b611fa684848484612139565b61151e5760405162461bcd60e51b8152600401610dd590612c71565b6060601a8054610c9e90612900565b606081600003611ff85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612022578061200c81612b37565b915061201b9050600a83612ad9565b9150611ffc565b60008167ffffffffffffffff81111561203d5761203d612520565b6040519080825280601f01601f191660200182016040528015612067576020820181803683370190505b5090505b84156114d05761207c600183612b7f565b9150612089600a86612cc3565b612094906030612b24565b60f81b8183815181106120a9576120a9612cd7565b60200101906001600160f81b031916908160001a9053506120cb600a86612ad9565b945061206b565b610c8b82826040518060200160405280600081525061223a565b600081815b84518110156121315761211d8286838151811061211057612110612cd7565b602002602001015161226d565b91508061212981612b37565b9150506120f1565b509392505050565b60006001600160a01b0384163b1561222f57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061217d903390899088908890600401612ced565b6020604051808303816000875af19250505080156121b8575060408051601f3d908101601f191682019092526121b591810190612d2a565b60015b612215573d8080156121e6576040519150601f19603f3d011682016040523d82523d6000602084013e6121eb565b606091505b50805160000361220d5760405162461bcd60e51b8152600401610dd590612c71565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506114d0565b506001949350505050565b612244838361229f565b6122516000848484612139565b610e765760405162461bcd60e51b8152600401610dd590612c71565b6000818310612289576000828152602084905260409020612298565b60008381526020839052604090205b9392505050565b6001600160a01b0382166122f55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610dd5565b6000818152600560205260409020546001600160a01b03161561235a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610dd5565b6001600160a01b0382166000908152600660205260408120805460019290612383908490612b24565b909155505060008181526005602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461133f57600080fd5b60006020828403121561240957600080fd5b8135612298816123e1565b60005b8381101561242f578181015183820152602001612417565b50506000910152565b60008151808452612450816020860160208601612414565b601f01601f19169290920160200192915050565b6020815260006122986020830184612438565b80356001600160a01b038116811461248e57600080fd5b919050565b80356001600160601b038116811461248e57600080fd5b600080604083850312156124bd57600080fd5b6124c683612477565b91506124d460208401612493565b90509250929050565b6000602082840312156124ef57600080fd5b5035919050565b6000806040838503121561250957600080fd5b61251283612477565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561255f5761255f612520565b604052919050565b600067ffffffffffffffff83111561258157612581612520565b612594601f8401601f1916602001612536565b90508281528383830111156125a857600080fd5b828260208301376000602084830101529392505050565b600082601f8301126125d057600080fd5b61229883833560208501612567565b6000602082840312156125f157600080fd5b813567ffffffffffffffff81111561260857600080fd5b6114d0848285016125bf565b60008060006060848603121561262957600080fd5b61263284612477565b925061264060208501612477565b9150604084013590509250925092565b6000806040838503121561266357600080fd5b50508035926020909101359150565b8035801515811461248e57600080fd5b60006020828403121561269457600080fd5b61229882612672565b6000806000606084860312156126b257600080fd5b833592506126c260208501612477565b91506126d060408501612493565b90509250925092565b6000602082840312156126eb57600080fd5b61229882612477565b6000806040838503121561270757600080fd5b82359150602083013567ffffffffffffffff81111561272557600080fd5b612731858286016125bf565b9150509250929050565b6000806040838503121561274e57600080fd5b61275783612477565b91506124d460208401612672565b600082601f83011261277657600080fd5b8135602067ffffffffffffffff82111561279257612792612520565b8160051b6127a1828201612536565b92835284810182019282810190878511156127bb57600080fd5b83870192505b848310156127da578235825291830191908301906127c1565b979650505050505050565b600080604083850312156127f857600080fd5b61280183612477565b9150602083013567ffffffffffffffff81111561281d57600080fd5b61273185828601612765565b6000806000806080858703121561283f57600080fd5b61284885612477565b935061285660208601612477565b925060408501359150606085013567ffffffffffffffff81111561287957600080fd5b8501601f8101871361288a57600080fd5b61289987823560208401612567565b91505092959194509250565b600080604083850312156128b857600080fd5b6128c183612477565b91506124d460208401612477565b600080604083850312156128e257600080fd5b82359150602083013567ffffffffffffffff81111561281d57600080fd5b600181811c9082168061291457607f821691505b60208210810361293457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115610e7657600081815260208120601f850160051c810160208610156129615750805b601f850160051c820191505b818110156129805782815560010161296d565b505050505050565b815167ffffffffffffffff8111156129a2576129a2612520565b6129b6816129b08454612900565b8461293a565b602080601f8311600181146129eb57600084156129d35750858301515b600019600386901b1c1916600185901b178555612980565b600085815260208120601f198616915b82811015612a1a578886015182559484019460019091019084016129fb565b5085821015612a385787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610be557610be5612a96565b634e487b7160e01b600052601260045260246000fd5b600082612ae857612ae8612ac3565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b80820180821115610be557610be5612a96565b600060018201612b4957612b49612a96565b5060010190565b60008351612b62818460208801612414565b835190830190612b76818360208801612414565b01949350505050565b81810381811115610be557610be5612a96565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60008154612be981612900565b60018281168015612c015760018114612c1657612c45565b60ff1984168752821515830287019450612c45565b8560005260208060002060005b85811015612c3c5781548a820152908401908201612c23565b50505082870194505b5050505092915050565b8481526000612c616020830186612bdc565b8481526127da6020820185612bdc565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082612cd257612cd2612ac3565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612d2090830184612438565b9695505050505050565b600060208284031215612d3c57600080fd5b8151612298816123e156fea2646970667358221220c49157e94e9afeecc9c8741a697c894856f0366c9cb5a11eafc6baebd74c296064736f6c63430008130033
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.