ERC-721
Overview
Max Total Supply
286 VMC
Holders
284
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 VMCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Venice
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED // lccclkN........WOlccclOW....W0occccccclOW......WKoldON......NkccccxXWNkccccccccccxN.......N0dlcccccckN....W0occcccccc // dccccdX........NxccccoKW....W0occccccclOW......WKocclkN.....NkccccxX.NkccccccccccxN......NOlcccccccckN....W0occcccccc // klccco0W.......KdccccxN..WNX0OkkkkkkkkkKW.WX000Okoccco0W....NkccccxXWWKkxolodxkkk0WWX00000OkkkkkkkkkKW.WNX0Okkkkkkkkk // 0occcckN......WOlccclOW.N0dllxN...........NklcccodlcccxX....NkccccxXW..WNxlld0NW...WOlcccdKW..........N0xllxXW....... // XxccccdK......NkccccoKWWOlccckN...........Nkccccdkocccl0W...NklcccxX....NxccclOW...WOlcccdX..........W0occcxN........ // WOlcccl0W.....KdccccxXWNxcccckN...........NkccccdKklcccxX...NkccccxX....NxccccxN...WOlcccdX..........NkccccxN........ // WKocccckN....WOlccclOW.N0xxxxk0KKKKKKKKN..NkccccxXKdccclOWWWNkccccxX....NxccccxN...WOlcccdX..........W0xxxdk0KKKKKKKK // .XxccccdK....NxccccoKW..WWWWW0ollllllloOW.NkccccxXNOlcccdKWWNkccccxX....NxccccxN...WOlcccdK...........WWWWW0ollllllll // .WOlccclOW...KdccccxN.......W0occccccclOW.NkccccxXWXdccclONNNkccccxX....NxccccxN...WOlcccdX...............W0occcccccc // .WKoccccxN..WOlccclOW..WX0000OkxxxxxxxkKW.NkccccxX.WOlcccdkKNkccccxX....NxccccxN...WOlcccdX..........WX0000Okxxxxxxxx // ..NxccccdKW.NkccccoK...NxccclxNWWWWWW.....NkccccxX.WXxcccllkKklcccxX....NxccccxN...WOlcccdX..........NklcccxXWWWWWWWW // ..WOlccclOWWKdccccxX...NkccccxN...........NkccccxX..W0lccccoOxlcccxX....NklcccxN...WOlcccdX..........WklcccxX........ // ...KdccccxNWOlccclON...WKxlccxN...........NkccccxX...XxcccclddlcccxX....WXxlccxN...WOlcccdX...........XxlccxN........ // ...NxccccoKXxccccoKW....WN0kxkKXXXXXXXXN..NkccccxX...W0occccldddddON.WNXXK0xold0XNWW0xdddk0KXXXXXXXXNWWN0kxkKXXXXXXXX // ...WOlccclk0dccccxX........WW0olllllllo0W.NkccccxX....NkcccclONWWWW..NOllllllccllkN.WWWWWXxlllllllllOW...WW0dllllllll // ...WKdccccdxoccclOW.........W0occccccclOW.NkccccxX....WXxlcclOW......NkccccccccccxN......WKdlccccccckN....W0occcccccc // ....Nxcccclolccco0W.........W0occccccclOW.NkccccxX.....WXkdooOW......NkccccccccccxN.......WXkolccccckN....W0occcccccc // ███╗ ███╗ █████╗ ██████╗ ███████╗ ██╗ ██╗██╗████████╗██╗ ██╗ ███╗ ███╗ █████╗ ███████╗ ██████╗ ███╗ ██╗ // ████╗ ████║██╔══██╗██╔══██╗██╔════╝ ██║ ██║██║╚══██╔══╝██║ ██║ ████╗ ████║██╔══██╗██╔════╝██╔═══██╗████╗ ██║ // ██╔████╔██║███████║██║ ██║█████╗ ██║ █╗ ██║██║ ██║ ███████║ ██╔████╔██║███████║███████╗██║ ██║██╔██╗ ██║ // ██║╚██╔╝██║██╔══██║██║ ██║██╔══╝ ██║███╗██║██║ ██║ ██╔══██║ ██║╚██╔╝██║██╔══██║╚════██║██║ ██║██║╚██╗██║ // ██║ ╚═╝ ██║██║ ██║██████╔╝███████╗ ╚███╔███╔╝██║ ██║ ██║ ██║ ██║ ╚═╝ ██║██║ ██║███████║╚██████╔╝██║ ╚████║ // ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═══╝ pragma solidity ^0.8.13; error ExceedsMaxPerWallet(); error InsufficientPayment(); error TokensAlreadyClaimed(); error TransferRestricted(); error TransferAddressNotSet(); import "./mason/utils/AccessControl.sol"; import "./mason/utils/Claimable.sol"; import "./mason/utils/EIP712Common.sol"; import "./mason/utils/Toggleable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/finance/PaymentSplitter.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "erc721a/contracts/ERC721A.sol"; import "erc721a/contracts/extensions/ERC721AQueryable.sol"; import { Base64 } from "./Base64.sol"; import { Utils } from "./Utils.sol"; contract Venice is ERC721A, ERC721AQueryable, Ownable, AccessControl, Toggleable, EIP712Common, Claimable { uint256 public PRICE; uint256 public WHITELIST_PRICE; uint256 public MAX_PER_WALLET; PaymentSplitter private _splitter; constructor ( string memory _tokenName, string memory _tokenSymbol, string memory _assetUri, address[] memory _payees, uint256[] memory _shares, uint256 _tokenPrice) ERC721A(_tokenName, _tokenSymbol) { PRICE = _tokenPrice; WHITELIST_PRICE = _tokenPrice; MAX_PER_WALLET = 1; _splitter = new PaymentSplitter(_payees, _shares); } /** MINTING **/ function mint(uint256 _count) external payable noContracts requireActiveSale { if(msg.value < PRICE * _count) revert InsufficientPayment(); if(_numberMinted(msg.sender) + _count > MAX_PER_WALLET) revert ExceedsMaxPerWallet(); _mint(msg.sender, _count); payable(_splitter).transfer(msg.value); } function whitelistMint(uint256 _count, bytes calldata _signature) external payable requiresWhitelist(_signature) noContracts requireActiveWhitelist { if(msg.value < WHITELIST_PRICE * _count) revert InsufficientPayment(); if(_numberMinted(msg.sender) + _count > MAX_PER_WALLET) revert ExceedsMaxPerWallet(); _mint(msg.sender, _count); payable(_splitter).transfer(msg.value); } function ownerMint(uint256 _count, address _recipient) external onlyOwner() { _mint(_recipient, _count); } /** ADMIN **/ function setPrice(uint256 _tokenPrice) external onlyOwner { PRICE = _tokenPrice; } function setWhitelistPrice(uint256 _tokenPrice) external onlyOwner { WHITELIST_PRICE = _tokenPrice; } function setMaxPerWallet(uint256 _maxPerWallet) external onlyOwner { MAX_PER_WALLET = _maxPerWallet; } // Burn function to be used by admins if tokenholder breaches terms of use function burn(uint256 _tokenId) external onlyOwner { _burn(_tokenId, false); } /** MINTING LIMITS **/ function allowedMintCount(address _minter) public view returns (uint256) { return MAX_PER_WALLET - _numberMinted(_minter); } /** Whitelist **/ function checkWhitelist(bytes calldata _signature) public view requiresWhitelist(_signature) returns (bool) { return true; } /** Claiming **/ function claimTokens(uint256 _count, bytes calldata _signature) external payable requireActiveClaiming requiresClaim(_signature, _count) noContracts { if (hasUnclaimedTokens(msg.sender)) { updateClaimCount(msg.sender, _count); } else { revert TokensAlreadyClaimed(); } _mint(msg.sender, _count); } /** URI HANDLING **/ string private animationURI = "ipfs://QmSs1noMFV7ARSNeby5iUuNQVNgDbbSQsPPbFPMe1yih4a"; string private imageURI = "ipfs://QmdZfb55suPbujN89i43a6kUeWi4A5dagQrqwfdK7x35oA"; string private tokenName = "Genesis Pass"; string private tokenDescription = ""; function getImageURI() public view returns (string memory) { return imageURI; } function getAnimationURI() public view returns (string memory) { return animationURI; } function getTokenName() public view returns (string memory) { return tokenName; } function getTokenDescription() public view returns (string memory) { return tokenDescription; } function setTokenName(string memory _tokenName) external onlyOwner { tokenName = _tokenName; } function setTokenDescription(string memory _tokenDescription) external onlyOwner { tokenDescription = _tokenDescription; } function setImageURI(string memory _imageURI) external onlyOwner { imageURI = _imageURI; } function setAnimationURI(string memory _animationURI) external onlyOwner { animationURI = _animationURI; } function _baseURI() internal view virtual override returns (string memory) { return imageURI; } function _startTokenId() internal view virtual override returns (uint256) { return 1; } function tokenURI(uint256 tokenId) public view virtual override(ERC721A, IERC721Metadata) returns (string memory) { return string( abi.encodePacked( "data:application/json;base64,", Base64.encode( bytes( abi.encodePacked( '{"name": "', tokenName, '", "description": "', tokenDescription, '", "image":"', imageURI, '", "animation_url":"', animationURI, '", "attributes": [ { "trait_type": "Expiration Date", "display_type": "date", "value": "', Utils.uintToString(_ownershipOf(tokenId).startTimestamp + 365 days), '"}]}' ) ) ) ) ); } /** TRANSFERS **/ address private transferAddress; bool public transfersActive = false; function flipTransferState() external onlyOwner { transfersActive = !transfersActive; } function setTransferAddress(address _transferAddress) public onlyOwner { transferAddress = _transferAddress; } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override(ERC721A, IERC721) { if(!transfersActive && transferAddress == address(0)) revert TransferAddressNotSet(); if(!transfersActive && (msg.sender != transferAddress)) revert TransferRestricted(); super.safeTransferFrom(from, to, tokenId, _data); } function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override(ERC721A, IERC721) { if(!transfersActive && transferAddress == address(0)) revert TransferAddressNotSet(); if(!transfersActive && (msg.sender != transferAddress)) revert TransferRestricted(); super.safeTransferFrom(from, to, tokenId); } function transferFrom(address from, address to, uint256 tokenId) public virtual override(ERC721A, IERC721) { if(!transfersActive && transferAddress == address(0)) revert TransferAddressNotSet(); if(!transfersActive && (msg.sender != transferAddress)) revert TransferRestricted(); super.transferFrom(from, to, tokenId); } /** PAYOUT **/ function release(address payable _account) public virtual onlyOwner { _splitter.release(_account); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; library Utils { function uintToString(uint v) internal pure returns (string memory) { uint maxlength = 100; bytes memory reversed = new bytes(maxlength); uint i = 0; while (v != 0) { uint remainder = v % 10; v = v / 10; reversed[i++] = bytes1(uint8(48 + remainder)); } bytes memory s = new bytes(i); // i + 1 is inefficient for (uint j = 0; j < i; j++) { s[j] = reversed[i - j - 1]; // to avoid the off-by-one error } string memory str = string(s); // memory isn't implicitly convertible to storage return str; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; /// [MIT License] /// @title Base64 /// @notice Provides a function for encoding some bytes in base64 /// @author Brecht Devos <[email protected]> library Base64 { bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; /// @notice Encodes some bytes to the base64 representation function encode(bytes memory data) internal pure returns (string memory) { uint256 len = data.length; if (len == 0) return ""; // multiply by 4/3 rounded up uint256 encodedLen = 4 * ((len + 2) / 3); // Add some extra buffer at the end bytes memory result = new bytes(encodedLen + 32); bytes memory table = TABLE; assembly { let tablePtr := add(table, 1) let resultPtr := add(result, 32) for { let i := 0 } lt(i, len) { } { i := add(i, 3) let input := and(mload(add(data, i)), 0xffffff) let out := mload(add(tablePtr, and(shr(18, input), 0x3F))) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF) ) out := shl(8, out) out := add( out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF) ) out := shl(224, out) mstore(resultPtr, out) resultPtr := add(resultPtr, 4) } switch mod(len, 3) case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) } case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) } mstore(result, encodedLen) } return string(result); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721AQueryable.sol'; import '../ERC721A.sol'; /** * @title ERC721A Queryable * @dev ERC721A subclass with convenience query functions. */ abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable { /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) { TokenOwnership memory ownership; if (tokenId < _startTokenId() || tokenId >= _currentIndex) { return ownership; } ownership = _ownerships[tokenId]; if (ownership.burned) { return ownership; } return _ownershipOf(tokenId); } /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) { unchecked { uint256 tokenIdsLength = tokenIds.length; TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength); for (uint256 i; i != tokenIdsLength; ++i) { ownerships[i] = explicitOwnershipOf(tokenIds[i]); } return ownerships; } } /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view override returns (uint256[] memory) { unchecked { if (start >= stop) revert InvalidQueryRange(); uint256 tokenIdsIdx; uint256 stopLimit = _currentIndex; // Set `start = max(start, _startTokenId())`. if (start < _startTokenId()) { start = _startTokenId(); } // Set `stop = min(stop, _currentIndex)`. if (stop > stopLimit) { stop = stopLimit; } uint256 tokenIdsMaxLength = balanceOf(owner); // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`, // to cater for cases where `balanceOf(owner)` is too big. if (start < stop) { uint256 rangeLength = stop - start; if (rangeLength < tokenIdsMaxLength) { tokenIdsMaxLength = rangeLength; } } else { tokenIdsMaxLength = 0; } uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength); if (tokenIdsMaxLength == 0) { return tokenIds; } // We need to call `explicitOwnershipOf(start)`, // because the slot at `start` may not be initialized. TokenOwnership memory ownership = explicitOwnershipOf(start); address currOwnershipAddr; // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`. // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range. if (!ownership.burned) { currOwnershipAddr = ownership.addr; } for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } // Downsize the array to fit. assembly { mstore(tokenIds, tokenIdsIdx) } return tokenIds; } } /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view override returns (uint256[] memory) { unchecked { uint256 tokenIdsIdx; address currOwnershipAddr; uint256 tokenIdsLength = balanceOf(owner); uint256[] memory tokenIds = new uint256[](tokenIdsLength); TokenOwnership memory ownership; for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) { ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { tokenIds[tokenIdsIdx++] = i; } } return tokenIds; } } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // 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; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @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) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _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 { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @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`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * 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, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be 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 owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _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: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || 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 a {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 a {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 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 { 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 v4.4.1 (finance/PaymentSplitter.sol) pragma solidity ^0.8.0; import "../token/ERC20/utils/SafeERC20.sol"; import "../utils/Address.sol"; import "../utils/Context.sol"; /** * @title PaymentSplitter * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware * that the Ether will be split in this way, since it is handled transparently by the contract. * * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim * an amount proportional to the percentage of total shares they were assigned. * * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release} * function. * * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you * to run tests before sending real value to this contract. */ contract PaymentSplitter is Context { event PayeeAdded(address account, uint256 shares); event PaymentReleased(address to, uint256 amount); event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount); event PaymentReceived(address from, uint256 amount); uint256 private _totalShares; uint256 private _totalReleased; mapping(address => uint256) private _shares; mapping(address => uint256) private _released; address[] private _payees; mapping(IERC20 => uint256) private _erc20TotalReleased; mapping(IERC20 => mapping(address => uint256)) private _erc20Released; /** * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at * the matching position in the `shares` array. * * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no * duplicates in `payees`. */ constructor(address[] memory payees, uint256[] memory shares_) payable { require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch"); require(payees.length > 0, "PaymentSplitter: no payees"); for (uint256 i = 0; i < payees.length; i++) { _addPayee(payees[i], shares_[i]); } } /** * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the * reliability of the events, and not the actual splitting of Ether. * * To learn more about this see the Solidity documentation for * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback * functions]. */ receive() external payable virtual { emit PaymentReceived(_msgSender(), msg.value); } /** * @dev Getter for the total shares held by payees. */ function totalShares() public view returns (uint256) { return _totalShares; } /** * @dev Getter for the total amount of Ether already released. */ function totalReleased() public view returns (uint256) { return _totalReleased; } /** * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20 * contract. */ function totalReleased(IERC20 token) public view returns (uint256) { return _erc20TotalReleased[token]; } /** * @dev Getter for the amount of shares held by an account. */ function shares(address account) public view returns (uint256) { return _shares[account]; } /** * @dev Getter for the amount of Ether already released to a payee. */ function released(address account) public view returns (uint256) { return _released[account]; } /** * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an * IERC20 contract. */ function released(IERC20 token, address account) public view returns (uint256) { return _erc20Released[token][account]; } /** * @dev Getter for the address of the payee number `index`. */ function payee(uint256 index) public view returns (address) { return _payees[index]; } /** * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the * total shares and their previous withdrawals. */ function release(address payable account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = address(this).balance + totalReleased(); uint256 payment = _pendingPayment(account, totalReceived, released(account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _released[account] += payment; _totalReleased += payment; Address.sendValue(account, payment); emit PaymentReleased(account, payment); } /** * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20 * contract. */ function release(IERC20 token, address account) public virtual { require(_shares[account] > 0, "PaymentSplitter: account has no shares"); uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token); uint256 payment = _pendingPayment(account, totalReceived, released(token, account)); require(payment != 0, "PaymentSplitter: account is not due payment"); _erc20Released[token][account] += payment; _erc20TotalReleased[token] += payment; SafeERC20.safeTransfer(token, account, payment); emit ERC20PaymentReleased(token, account, payment); } /** * @dev internal logic for computing the pending payment of an `account` given the token historical balances and * already released amounts. */ function _pendingPayment( address account, uint256 totalReceived, uint256 alreadyReleased ) private view returns (uint256) { return (totalReceived * _shares[account]) / _totalShares - alreadyReleased; } /** * @dev Add a new payee to the contract. * @param account The address of the payee to add. * @param shares_ The number of shares owned by the payee. */ function _addPayee(address account, uint256 shares_) private { require(account != address(0), "PaymentSplitter: account is the zero address"); require(shares_ > 0, "PaymentSplitter: shares are 0"); require(_shares[account] == 0, "PaymentSplitter: account already has shares"); _payees.push(account); _shares[account] = shares_; _totalShares = _totalShares + shares_; emit PayeeAdded(account, shares_); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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: Unlicense pragma solidity ^0.8.13; import "@openzeppelin/contracts/access/Ownable.sol"; error SaleNotActive(); error WhitelistNotActive(); abstract contract Toggleable is Ownable { bool public saleIsActive = false; bool public whitelistIsActive = false; function flipWhitelistState() external onlyOwner { whitelistIsActive = !whitelistIsActive; } function flipSaleState() external onlyOwner { saleIsActive = !saleIsActive; } modifier requireActiveSale { if(!saleIsActive) revert SaleNotActive(); _; } modifier requireActiveWhitelist { if(!whitelistIsActive) revert WhitelistNotActive(); _; } }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.0; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; error InvalidSignature(); error NoSigningKey(); contract EIP712Common is Ownable { using ECDSA for bytes32; // The key used to sign whitelist signatures. address signingKey = address(0); // Domain Separator is the EIP-712 defined structure that defines what contract // and chain these signatures can be used for. This ensures people can't take // a signature used to mint on one contract and use it for another, or a signature // from testnet to replay on mainnet. // It has to be created in the constructor so we can dynamically grab the chainId. // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#definition-of-domainseparator bytes32 public CLAIM_DOMAIN_SEPARATOR; bytes32 public WHITELIST_DOMAIN_SEPARATOR; bytes32 public DISCOUNT_DOMAIN_SEPARATOR; // The typehash for the data type specified in the structured data // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#rationale-for-typehash // This should match whats in the client side whitelist signing code // https://github.com/msfeldstein/EIP712-whitelisting/blob/main/test/signWhitelist.ts#L22 bytes32 public constant CLAIM_TYPEHASH = keccak256("Minter(address wallet,uint256 count)"); bytes32 public constant WHITELIST_TYPEHASH = keccak256("Minter(address wallet)"); bytes32 public constant DISCOUNT_TYPEHASH = keccak256("Minter(address wallet, uint256 count)"); constructor() { CLAIM_DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), keccak256(bytes("ClaimToken")), keccak256(bytes("1")), block.chainid, address(this) ) ); WHITELIST_DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), keccak256(bytes("WhitelistToken")), keccak256(bytes("1")), block.chainid, address(this) ) ); DISCOUNT_DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ), keccak256(bytes("DiscountToken")), keccak256(bytes("1")), block.chainid, address(this) ) ); } function setSigningAddress(address newSigningKey) public onlyOwner { signingKey = newSigningKey; } modifier requiresClaim(bytes calldata signature, uint256 count) { if(signingKey == address(0)) revert NoSigningKey(); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", CLAIM_DOMAIN_SEPARATOR, keccak256(abi.encode( CLAIM_TYPEHASH, msg.sender, count)) ) ); address recoveredAddress = digest.recover(signature); if(recoveredAddress != signingKey) revert InvalidSignature(); _; } modifier requiresDiscount(bytes calldata signature, uint256 value) { if(signingKey == address(0)) revert NoSigningKey(); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", DISCOUNT_DOMAIN_SEPARATOR, keccak256(abi.encode( CLAIM_TYPEHASH, msg.sender, value)) ) ); address recoveredAddress = digest.recover(signature); if(recoveredAddress != signingKey) revert InvalidSignature(); _; } modifier requiresWhitelist(bytes calldata signature) { if(signingKey == address(0)) revert NoSigningKey(); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", WHITELIST_DOMAIN_SEPARATOR, keccak256(abi.encode(WHITELIST_TYPEHASH, msg.sender)) ) ); address recoveredAddress = digest.recover(signature); if(recoveredAddress != signingKey) revert InvalidSignature(); _; } }
pragma solidity ^0.8.13; import "./EIP712Common.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; error ClaimingNotActive(); abstract contract Claimable is Ownable, EIP712Common{ mapping(address => uint256) private claimCounts; bool public claimingIsActive = false; function flipClaimState() external onlyOwner { claimingIsActive = !claimingIsActive; } function tokensClaimed(address minter) public view returns (uint256) { return claimCounts[minter]; } function checkClaimlist(uint256 count, bytes calldata signature) public view requiresClaim(signature, count) returns (bool) { return true; } function hasUnclaimedTokens(address minter) public view returns (bool) { return claimCounts[minter] == 0; } function updateClaimCount(address minter, uint256 count) internal { claimCounts[minter] += count; } modifier requireActiveClaiming { if(!claimingIsActive) revert ClaimingNotActive(); _; } }
// SPDX-License-Identifier: Unlicense pragma solidity ^0.8.13; error ContractsCannotMint(); abstract contract AccessControl { modifier noContracts { if(msg.sender != tx.origin) revert ContractsCannotMint(); _; } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '../IERC721A.sol'; /** * @dev Interface of an ERC721AQueryable compliant contract. */ interface IERC721AQueryable is IERC721A { /** * Invalid query range (`start` >= `stop`). */ error InvalidQueryRange(); /** * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting. * * If the `tokenId` is out of bounds: * - `addr` = `address(0)` * - `startTimestamp` = `0` * - `burned` = `false` * * If the `tokenId` is burned: * - `addr` = `<Address of owner before token was burned>` * - `startTimestamp` = `<Timestamp when token was burned>` * - `burned = `true` * * Otherwise: * - `addr` = `<Address of owner>` * - `startTimestamp` = `<Timestamp of start of ownership>` * - `burned = `false` */ function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory); /** * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order. * See {ERC721AQueryable-explicitOwnershipOf} */ function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory); /** * @dev Returns an array of token IDs owned by `owner`, * in the range [`start`, `stop`) * (i.e. `start <= tokenId < stop`). * * This function allows for tokens to be queried if the collection * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}. * * Requirements: * * - `start` < `stop` */ function tokensOfOwnerIn( address owner, uint256 start, uint256 stop ) external view returns (uint256[] memory); /** * @dev Returns an array of token IDs owned by `owner`. * * This function scans the ownership mapping and is O(totalSupply) in complexity. * It is meant to be called off-chain. * * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into * multiple smaller scans if the collection is large enough to cause * an out-of-gas error (10K pfp collections should be fine). */ function tokensOfOwner(address owner) external view returns (uint256[] memory); }
// 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/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/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.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 // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); uint8 v = uint8((uint256(vs) >> 255) + 27); return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// 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.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"string","name":"_assetUri","type":"string"},{"internalType":"address[]","name":"_payees","type":"address[]"},{"internalType":"uint256[]","name":"_shares","type":"uint256[]"},{"internalType":"uint256","name":"_tokenPrice","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"ClaimingNotActive","type":"error"},{"inputs":[],"name":"ContractsCannotMint","type":"error"},{"inputs":[],"name":"ExceedsMaxPerWallet","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NoSigningKey","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"SaleNotActive","type":"error"},{"inputs":[],"name":"TokensAlreadyClaimed","type":"error"},{"inputs":[],"name":"TransferAddressNotSet","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferRestricted","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"WhitelistNotActive","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":"CLAIM_DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CLAIM_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DISCOUNT_DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DISCOUNT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"allowedMintCount","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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"checkClaimlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"checkWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"claimTokens","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimingIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipClaimState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipTransferState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipWhitelistState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAnimationURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getImageURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenDescription","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"hasUnclaimedTokens","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":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_account","type":"address"}],"name":"release","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_animationURI","type":"string"}],"name":"setAnimationURI","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":"_imageURI","type":"string"}],"name":"setImageURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerWallet","type":"uint256"}],"name":"setMaxPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigningKey","type":"address"}],"name":"setSigningAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenDescription","type":"string"}],"name":"setTokenDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"}],"name":"setTokenName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_transferAddress","type":"address"}],"name":"setTransferAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenPrice","type":"uint256"}],"name":"setWhitelistPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"tokensClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":"transfersActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistIsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"whitelistMint","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
6008805461ffff60a01b19169055600980546001600160a01b0319169055600e805460ff1916905560e0604052603560808181529062005c5460a039805162000051916013916020909101906200043c565b5060405180606001604052806035815260200162005c8960359139805162000082916014916020909101906200043c565b5060408051808201909152600c8082526b47656e65736973205061737360a01b6020909201918252620000b8916015916200043c565b50604080516020810191829052600090819052620000d9916016916200043c565b506017805460ff60a01b19169055348015620000f457600080fd5b5060405162005cde38038062005cde8339810160408190526200011791620006e0565b855186908690620001309060029060208501906200043c565b508051620001469060039060208401906200043c565b50506001600055506200015933620003ea565b604080518082018252600a81526921b630b4b6aa37b5b2b760b11b6020918201528151808301835260018152603160f81b90820152815160008051602062005cbe833981519152918101919091527f1a5ffc51a62587b65b913137cec30fb0c9d9d6a475b2e58ca97b8b470cb941729181019190915260008051602062005c3483398151915260608201524660808201523060a082015260c00160408051808303601f190181528282528051602091820120600a558282018252600e83526d2bb434ba32b634b9ba2a37b5b2b760911b928101929092528051808201825260018152603160f81b90830152805160008051602062005cbe833981519152928101929092527fb31abde365a4931cba9a0ea66b4737a15e8eb9a0649f549f4857db08880a90499082015260008051602062005c3483398151915260608201524660808201523060a082015260c00160408051808303601f190181528282528051602091820120600b558282018252600d83526c2234b9b1b7bab73a2a37b5b2b760991b928101929092528051808201825260018152603160f81b90830152805160008051602062005cbe833981519152928101929092527f61fc6457b41a933c12cc7fbb026b428372d84fecb547defb6b1cf69e53e6c85d9082015260008051602062005c3483398151915260608201524660808201523060a082015260c00160408051601f19818403018152908290528051602090910120600c55600f82905560108290556001601155839083906200039290620004cb565b6200039f929190620007c9565b604051809103906000f080158015620003bc573d6000803e3d6000fd5b50601280546001600160a01b0319166001600160a01b0392909216919091179055506200088d945050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200044a9062000851565b90600052602060002090601f0160209004810192826200046e5760008555620004b9565b82601f106200048957805160ff1916838001178555620004b9565b82800160010185558215620004b9579182015b82811115620004b95782518255916020019190600101906200049c565b50620004c7929150620004d9565b5090565b61123b80620049f983390190565b5b80821115620004c75760008155600101620004da565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620005315762000531620004f0565b604052919050565b600082601f8301126200054b57600080fd5b81516001600160401b03811115620005675762000567620004f0565b60206200057d601f8301601f1916820162000506565b82815285828487010111156200059257600080fd5b60005b83811015620005b257858101830151828201840152820162000595565b83811115620005c45760008385840101525b5095945050505050565b60006001600160401b03821115620005ea57620005ea620004f0565b5060051b60200190565b600082601f8301126200060657600080fd5b815160206200061f6200061983620005ce565b62000506565b82815260059290921b840181019181810190868411156200063f57600080fd5b8286015b84811015620006735780516001600160a01b0381168114620006655760008081fd5b835291830191830162000643565b509695505050505050565b600082601f8301126200069057600080fd5b81516020620006a36200061983620005ce565b82815260059290921b84018101918181019086841115620006c357600080fd5b8286015b84811015620006735780518352918301918301620006c7565b60008060008060008060c08789031215620006fa57600080fd5b86516001600160401b03808211156200071257600080fd5b620007208a838b0162000539565b975060208901519150808211156200073757600080fd5b620007458a838b0162000539565b965060408901519150808211156200075c57600080fd5b6200076a8a838b0162000539565b955060608901519150808211156200078157600080fd5b6200078f8a838b01620005f4565b94506080890151915080821115620007a657600080fd5b50620007b589828a016200067e565b92505060a087015190509295509295509295565b604080825283519082018190526000906020906060840190828701845b828110156200080d5781516001600160a01b031684529284019290840190600101620007e6565b5050508381038285015284518082528583019183019060005b81811015620008445783518352928401929184019160010162000826565b5090979650505050505050565b600181811c908216806200086657607f821691505b6020821081036200088757634e487b7160e01b600052602260045260246000fd5b50919050565b61415c806200089d6000396000f3fe6080604052600436106103ac5760003560e01c80638462151c116101e7578063bd25b4bc1161010d578063ded7222b116100a0578063eb8d24441161006f578063eb8d244414610b19578063f29e448614610b3a578063f2fde38b14610b5b578063f6fa26ab14610b7b57600080fd5b8063ded7222b14610a7b578063e0ad790c14610a90578063e268e4d314610ab0578063e985e9c514610ad057600080fd5b8063c87b56dd116100dc578063c87b56dd14610a10578063d3fcbb1414610a30578063d52c57e014610a45578063db1354d214610a6557600080fd5b8063bd25b4bc1461098e578063bece913b146109a3578063c23dc68f146109c3578063c5ac58e1146109f057600080fd5b80639c79e52711610185578063a4f29aad11610154578063a4f29aad146108f7578063b3feb36d14610917578063b88d4fde1461094e578063bb660c0a1461096e57600080fd5b80639c79e5271461089b5780639e852f75146108b1578063a0712d68146108c4578063a22cb465146108d757600080fd5b80638da5cb5b116101c15780638da5cb5b1461082857806391b7f5ed1461084657806395d89b411461086657806399a2557a1461087b57600080fd5b80638462151c146107d0578063862b092b146107fd5780638d859f3e1461081257600080fd5b806323b872dd116102d75780636301dccf1161026a5780636d60e6c1116102395780636d60e6c11461076657806370a082311461077b578063715018a61461079b578063717d57d3146107b057600080fd5b80636301dccf146106c85780636352211e146106fc5780636b0509b11461071c5780636d4a450a1461075057600080fd5b806342842e0e116102a657806342842e0e1461062557806342966c68146106455780635bbb217714610665578063624601b61461069257600080fd5b806323b872dd146105bb57806331beb605146105db57806334918dfd146105fb57806338abc4bc1461061057600080fd5b80630f2cdd6c1161034f578063185a56711161031e578063185a56711461052657806319165587146105465780631fe70d6f14610566578063212e9a0f1461058757600080fd5b80630f2cdd6c146104bc57806314d8bbf1146104e057806317e7f295146104f357806318160ddd1461050957600080fd5b806306fdde031161038b57806306fdde031461042857806307cf3a771461044a578063081812fc14610464578063095ea7b31461049c57600080fd5b8062d5da02146103b157806301ffc9a7146103d357806304787ca214610408575b600080fd5b3480156103bd57600080fd5b506103d16103cc36600461378b565b610b90565b005b3480156103df57600080fd5b506103f36103ee3660046137ea565b610bf4565b60405190151581526020015b60405180910390f35b34801561041457600080fd5b506103d161042336600461378b565b610c91565b34801561043457600080fd5b5061043d610cec565b6040516103ff919061385f565b34801561045657600080fd5b50600e546103f39060ff1681565b34801561047057600080fd5b5061048461047f366004613872565b610d7e565b6040516001600160a01b0390911681526020016103ff565b3480156104a857600080fd5b506103d16104b73660046138a0565b610ddb565b3480156104c857600080fd5b506104d260115481565b6040519081526020016103ff565b6103d16104ee36600461390e565b610eb0565b3480156104ff57600080fd5b506104d260105481565b34801561051557600080fd5b5060015460005403600019016104d2565b34801561053257600080fd5b506103d161054136600461395a565b6110b1565b34801561055257600080fd5b506103d161056136600461395a565b611128565b34801561057257600080fd5b506008546103f390600160a81b900460ff1681565b34801561059357600080fd5b506104d27f2744a6917094ca2ea2ac15d34cf9febe9c2a504b2370fa0f60e99090ad07d83e81565b3480156105c757600080fd5b506103d16105d6366004613977565b6111eb565b3480156105e757600080fd5b506103d16105f636600461395a565b61127a565b34801561060757600080fd5b506103d16112f1565b34801561061c57600080fd5b5061043d61135a565b34801561063157600080fd5b506103d1610640366004613977565b611369565b34801561065157600080fd5b506103d1610660366004613872565b6113f8565b34801561067157600080fd5b506106856106803660046139b8565b61144e565b6040516103ff9190613a5e565b34801561069e57600080fd5b506104d26106ad36600461395a565b6001600160a01b03166000908152600d602052604090205490565b3480156106d457600080fd5b506104d27f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b34801561070857600080fd5b50610484610717366004613872565b611515565b34801561072857600080fd5b506104d27f77eb6d3bbe7602208cc36937114029465cec3988228851754080f2c59c06cdca81565b34801561075c57600080fd5b506104d2600a5481565b34801561077257600080fd5b506103d1611527565b34801561078757600080fd5b506104d261079636600461395a565b611583565b3480156107a757600080fd5b506103d16115eb565b3480156107bc57600080fd5b506103d16107cb366004613872565b61163f565b3480156107dc57600080fd5b506107f06107eb36600461395a565b61168c565b6040516103ff9190613ac9565b34801561080957600080fd5b5061043d6117ce565b34801561081e57600080fd5b506104d2600f5481565b34801561083457600080fd5b506008546001600160a01b0316610484565b34801561085257600080fd5b506103d1610861366004613872565b6117dd565b34801561087257600080fd5b5061043d61182a565b34801561088757600080fd5b506107f0610896366004613b01565b611839565b3480156108a757600080fd5b506104d2600c5481565b6103d16108bf36600461390e565b611a15565b6103d16108d2366004613872565b611c70565b3480156108e357600080fd5b506103d16108f2366004613b36565b611d98565b34801561090357600080fd5b506103d161091236600461378b565b611e46565b34801561092357600080fd5b506103f361093236600461395a565b6001600160a01b03166000908152600d60205260409020541590565b34801561095a57600080fd5b506103d1610969366004613b74565b611ea1565b34801561097a57600080fd5b506104d261098936600461395a565b611f37565b34801561099a57600080fd5b5061043d611f73565b3480156109af57600080fd5b506103f36109be36600461390e565b611f82565b3480156109cf57600080fd5b506109e36109de366004613872565b6120d0565b6040516103ff9190613bf4565b3480156109fc57600080fd5b506103d1610a0b36600461378b565b61218b565b348015610a1c57600080fd5b5061043d610a2b366004613872565b6121e6565b348015610a3c57600080fd5b506103d161226e565b348015610a5157600080fd5b506103d1610a60366004613c2a565b6122d7565b348015610a7157600080fd5b506104d2600b5481565b348015610a8757600080fd5b5061043d612329565b348015610a9c57600080fd5b506103f3610aab366004613c4f565b612338565b348015610abc57600080fd5b506103d1610acb366004613872565b61247b565b348015610adc57600080fd5b506103f3610aeb366004613c91565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b2557600080fd5b506008546103f390600160a01b900460ff1681565b348015610b4657600080fd5b506017546103f390600160a01b900460ff1681565b348015610b6757600080fd5b506103d1610b7636600461395a565b6124c8565b348015610b8757600080fd5b506103d1612595565b6008546001600160a01b03163314610bdd5760405162461bcd60e51b8152602060048201819052602482015260008051602061410783398151915260448201526064015b60405180910390fd5b8051610bf0906016906020840190613653565b5050565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610c5757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c8b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6008546001600160a01b03163314610cd95760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b8051610bf0906014906020840190613653565b606060028054610cfb90613cbf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2790613cbf565b8015610d745780601f10610d4957610100808354040283529160200191610d74565b820191906000526020600020905b815481529060010190602001808311610d5757829003601f168201915b5050505050905090565b6000610d8982612619565b610dbf576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610de682611515565b9050806001600160a01b0316836001600160a01b031603610e33576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610ea0576001600160a01b038116600090815260076020908152604080832033845290915290205460ff16610ea0576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610eab838383612652565b505050565b600e5460ff16610eec576040517f43e287e600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009548290829085906001600160a01b0316610f1b57604051637560f33160e11b815260040160405180910390fd5b600a54604080517f77eb6d3bbe7602208cc36937114029465cec3988228851754080f2c59c06cdca60208201523391810191909152606081018390526000919060800160405160208183030381529060405280519060200120604051602001610f9b92919061190160f01b81526002810192909252602282015260420190565b6040516020818303038152906040528051906020012090506000610ff785858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506126bb9050565b6009549091506001600160a01b0380831691161461102857604051638baa579f60e01b815260040160405180910390fd5b3332146110485760405163d9d552c960e01b815260040160405180910390fd5b336000908152600d602052604090205461106b5761106633896126d7565b61109d565b6040517fa4f8192900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110a73389612708565b5050505050505050565b6008546001600160a01b031633146110f95760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6017805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b031633146111705760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6012546040517f191655870000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b1580156111d057600080fd5b505af11580156111e4573d6000803e3d6000fd5b5050505050565b601754600160a01b900460ff1615801561120e57506017546001600160a01b0316155b1561122c5760405163eb185adb60e01b815260040160405180910390fd5b601754600160a01b900460ff1615801561125157506017546001600160a01b03163314155b1561126f57604051637413882f60e11b815260040160405180910390fd5b610eab83838361287d565b6008546001600160a01b031633146112c25760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b031633146113395760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6008805460ff60a01b198116600160a01b9182900460ff1615909102179055565b606060168054610cfb90613cbf565b601754600160a01b900460ff1615801561138c57506017546001600160a01b0316155b156113aa5760405163eb185adb60e01b815260040160405180910390fd5b601754600160a01b900460ff161580156113cf57506017546001600160a01b03163314155b156113ed57604051637413882f60e11b815260040160405180910390fd5b610eab838383612888565b6008546001600160a01b031633146114405760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b61144b8160006128a3565b50565b805160609060008167ffffffffffffffff81111561146e5761146e6136ec565b6040519080825280602002602001820160405280156114b957816020015b604080516060810182526000808252602080830182905292820152825260001990920191018161148c5790505b50905060005b82811461150d576114e88582815181106114db576114db613cf9565b60200260200101516120d0565b8282815181106114fa576114fa613cf9565b60209081029190910101526001016114bf565b509392505050565b600061152082612ab7565b5192915050565b6008546001600160a01b0316331461156f5760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b600e805460ff19811660ff90911615179055565b60006001600160a01b0382166115c5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146116335760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b61163d6000612bf4565b565b6008546001600160a01b031633146116875760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b601055565b6060600080600061169c85611583565b905060008167ffffffffffffffff8111156116b9576116b96136ec565b6040519080825280602002602001820160405280156116e2578160200160208202803683370190505b50604080516060810182526000808252602082018190529181019190915290915060015b8386146117c257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905292506117ba5781516001600160a01b03161561177b57815194505b876001600160a01b0316856001600160a01b0316036117ba57808387806001019850815181106117ad576117ad613cf9565b6020026020010181815250505b600101611706565b50909695505050505050565b606060158054610cfb90613cbf565b6008546001600160a01b031633146118255760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b600f55565b606060038054610cfb90613cbf565b6060818310611874576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054600185101561188657600194505b80841115611892578093505b600061189d87611583565b9050848610156118bc57858503818110156118b6578091505b506118c0565b5060005b60008167ffffffffffffffff8111156118db576118db6136ec565b604051908082528060200260200182016040528015611904578160200160208202803683370190505b5090508160000361191a579350611a0e92505050565b6000611925886120d0565b905060008160400151611936575080515b885b8881141580156119485750848714155b15611a0257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905293506119fa5782516001600160a01b0316156119bb57825191505b8a6001600160a01b0316826001600160a01b0316036119fa57808488806001019950815181106119ed576119ed613cf9565b6020026020010181815250505b600101611938565b50505092835250909150505b9392505050565b600954829082906001600160a01b0316611a4257604051637560f33160e11b815260040160405180910390fd5b600b54604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c9602082015233918101919091526000919060600160405160208183030381529060405280519060200120604051602001611abb92919061190160f01b81526002810192909252602282015260420190565b6040516020818303038152906040528051906020012090506000611b1784848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506126bb9050565b6009549091506001600160a01b03808316911614611b4857604051638baa579f60e01b815260040160405180910390fd5b333214611b685760405163d9d552c960e01b815260040160405180910390fd5b600854600160a81b900460ff16611bab576040517f04cc9ce200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86601054611bb99190613d25565b341015611bd95760405163cd1c886760e01b815260040160405180910390fd5b60115433600090815260056020526040902054889068010000000000000000900467ffffffffffffffff16611c0e9190613d44565b1115611c2d5760405163c0e54d7360e01b815260040160405180910390fd5b611c373388612708565b6012546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156110a7573d6000803e3d6000fd5b333214611c905760405163d9d552c960e01b815260040160405180910390fd5b600854600160a01b900460ff16611cd3576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600f54611ce19190613d25565b341015611d015760405163cd1c886760e01b815260040160405180910390fd5b60115433600090815260056020526040902054829068010000000000000000900467ffffffffffffffff16611d369190613d44565b1115611d555760405163c0e54d7360e01b815260040160405180910390fd5b611d5f3382612708565b6012546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610bf0573d6000803e3d6000fd5b336001600160a01b03831603611dda576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314611e8e5760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b8051610bf0906015906020840190613653565b601754600160a01b900460ff16158015611ec457506017546001600160a01b0316155b15611ee25760405163eb185adb60e01b815260040160405180910390fd5b601754600160a01b900460ff16158015611f0757506017546001600160a01b03163314155b15611f2557604051637413882f60e11b815260040160405180910390fd5b611f3184848484612c53565b50505050565b6001600160a01b03811660009081526005602052604081205468010000000000000000900467ffffffffffffffff16601154610c8b9190613d5c565b606060138054610cfb90613cbf565b6009546000908390839086906001600160a01b0316611fb457604051637560f33160e11b815260040160405180910390fd5b600a54604080517f77eb6d3bbe7602208cc36937114029465cec3988228851754080f2c59c06cdca6020820152339181019190915260608101839052600091906080016040516020818303038152906040528051906020012060405160200161203492919061190160f01b81526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050600061209085858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506126bb9050565b6009549091506001600160a01b038083169116146120c157604051638baa579f60e01b815260040160405180910390fd5b50600198975050505050505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061211657506000548310155b156121215792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615801592820192909252906121825792915050565b611a0e83612ab7565b6008546001600160a01b031633146121d35760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b8051610bf0906013906020840190613653565b606061224860156016601460136122206121ff88612ab7565b60200151612211906301e13380613d73565b67ffffffffffffffff16612c97565b604051602001612234959493929190613e38565b604051602081830303815290604052612e25565b6040516020016122589190613fbb565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146122b65760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6017805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6008546001600160a01b0316331461231f5760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b610bf08183612708565b606060148054610cfb90613cbf565b600954600090839083906001600160a01b031661236857604051637560f33160e11b815260040160405180910390fd5b600b54604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c96020820152339181019190915260009190606001604051602081830303815290604052805190602001206040516020016123e192919061190160f01b81526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050600061243d84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506126bb9050565b6009549091506001600160a01b0380831691161461246e57604051638baa579f60e01b815260040160405180910390fd5b5060019695505050505050565b6008546001600160a01b031633146124c35760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b601155565b6008546001600160a01b031633146125105760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6001600160a01b03811661258c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bd4565b61144b81612bf4565b6008546001600160a01b031633146125dd5760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b600880547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff8116600160a81b9182900460ff1615909102179055565b60008160011115801561262d575060005482105b8015610c8b575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008060006126ca8585612fc6565b9150915061150d81613034565b6001600160a01b0382166000908152600d6020526040812080548392906126ff908490613d44565b90915550505050565b6000546001600160a01b03831661274b576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003612785576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168a0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168a01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106128315750600055505050565b610eab8383836131ea565b610eab83838360405180602001604052806000815250611ea1565b60006128ae83612ab7565b80519091508215612932576000336001600160a01b03831614806128f557506001600160a01b038216600090815260076020908152604080832033845290915290205460ff165b8061291057503361290586610d7e565b6001600160a01b0316145b90508061293057604051632ce44b5f60e11b815260040160405180910390fd5b505b61293e60008583612652565b6001600160a01b038082166000818152600560209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff80841691909101811667ffffffffffffffff19841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600490945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff42909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116612a6d576000548214612a6d578054602087015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b60408051606081018252600080825260208201819052918101919091528180600111612bc257600054811015612bc257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612bc05780516001600160a01b031615612b56579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612bbb579392505050565b612b56565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612c5e8484846131ea565b6001600160a01b0383163b15611f3157612c7a84848484613428565b611f31576040516368d2bf6b60e11b815260040160405180910390fd5b60408051606480825260a08201909252606091906000908260208201818036833701905050905060005b8415612d43576000612cd4600a87614016565b9050612ce1600a8761402a565b9550612cee816030613d44565b60f81b8383612cfc8161403e565b945081518110612d0e57612d0e613cf9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535050612cc1565b60008167ffffffffffffffff811115612d5e57612d5e6136ec565b6040519080825280601f01601f191660200182016040528015612d88576020820181803683370190505b50905060005b82811015612e1b57836001612da38386613d5c565b612dad9190613d5c565b81518110612dbd57612dbd613cf9565b602001015160f81c60f81b828281518110612dda57612dda613cf9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080612e138161403e565b915050612d8e565b5095945050505050565b80516060906000819003612e49575050604080516020810190915260008152919050565b60006003612e58836002613d44565b612e62919061402a565b612e6d906004613d25565b90506000612e7c826020613d44565b67ffffffffffffffff811115612e9457612e946136ec565b6040519080825280601f01601f191660200182016040528015612ebe576020820181803683370190505b50905060006040518060600160405280604081526020016140c7604091399050600181016020830160005b86811015612f4a576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612ee9565b506003860660018114612f645760028114612f9057612fb8565b7f3d3d000000000000000000000000000000000000000000000000000000000000600119830152612fb8565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b505050918152949350505050565b6000808251604103612ffc5760208301516040840151606085015160001a612ff087828585613514565b9450945050505061302d565b8251604003613025576020830151604084015161301a868383613601565b93509350505061302d565b506000905060025b9250929050565b600081600481111561304857613048614057565b036130505750565b600181600481111561306457613064614057565b036130b15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bd4565b60028160048111156130c5576130c5614057565b036131125760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bd4565b600381600481111561312657613126614057565b0361317e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610bd4565b600481600481111561319257613192614057565b0361144b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610bd4565b60006131f582612ab7565b9050836001600160a01b031681600001516001600160a01b031614613246576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b038616148061328257506001600160a01b038516600090815260076020908152604080832033845290915290205460ff165b8061329d57503361329284610d7e565b6001600160a01b0316145b9050806132bd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166132fd576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61330960008487612652565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166133df5760005482146133df578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111e4565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061345d90339089908890889060040161406d565b6020604051808303816000875af1925050508015613498575060408051601f3d908101601f19168201909252613495918101906140a9565b60015b6134f6573d8080156134c6576040519150601f19603f3d011682016040523d82523d6000602084013e6134cb565b606091505b5080516000036134ee576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561354b57506000905060036135f8565b8460ff16601b1415801561356357508460ff16601c14155b1561357457506000905060046135f8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156135c8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166135f1576000600192509250506135f8565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161363760ff86901c601b613d44565b905061364587828885613514565b935093505050935093915050565b82805461365f90613cbf565b90600052602060002090601f01602090048101928261368157600085556136c7565b82601f1061369a57805160ff19168380011785556136c7565b828001600101855582156136c7579182015b828111156136c75782518255916020019190600101906136ac565b506136d39291506136d7565b5090565b5b808211156136d357600081556001016136d8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561372b5761372b6136ec565b604052919050565b600067ffffffffffffffff83111561374d5761374d6136ec565b613760601f8401601f1916602001613702565b905082815283838301111561377457600080fd5b828260208301376000602084830101529392505050565b60006020828403121561379d57600080fd5b813567ffffffffffffffff8111156137b457600080fd5b8201601f810184136137c557600080fd5b61350c84823560208401613733565b6001600160e01b03198116811461144b57600080fd5b6000602082840312156137fc57600080fd5b8135611a0e816137d4565b60005b8381101561382257818101518382015260200161380a565b83811115611f315750506000910152565b6000815180845261384b816020860160208601613807565b601f01601f19169290920160200192915050565b602081526000611a0e6020830184613833565b60006020828403121561388457600080fd5b5035919050565b6001600160a01b038116811461144b57600080fd5b600080604083850312156138b357600080fd5b82356138be8161388b565b946020939093013593505050565b60008083601f8401126138de57600080fd5b50813567ffffffffffffffff8111156138f657600080fd5b60208301915083602082850101111561302d57600080fd5b60008060006040848603121561392357600080fd5b83359250602084013567ffffffffffffffff81111561394157600080fd5b61394d868287016138cc565b9497909650939450505050565b60006020828403121561396c57600080fd5b8135611a0e8161388b565b60008060006060848603121561398c57600080fd5b83356139978161388b565b925060208401356139a78161388b565b929592945050506040919091013590565b600060208083850312156139cb57600080fd5b823567ffffffffffffffff808211156139e357600080fd5b818501915085601f8301126139f757600080fd5b813581811115613a0957613a096136ec565b8060051b9150613a1a848301613702565b8181529183018401918481019088841115613a3457600080fd5b938501935b83851015613a5257843582529385019390850190613a39565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b818110156117c257613ab683855180516001600160a01b0316825260208082015167ffffffffffffffff16908301526040908101511515910152565b9284019260609290920191600101613a7a565b6020808252825182820181905260009190848201906040850190845b818110156117c257835183529284019291840191600101613ae5565b600080600060608486031215613b1657600080fd5b8335613b218161388b565b95602085013595506040909401359392505050565b60008060408385031215613b4957600080fd5b8235613b548161388b565b915060208301358015158114613b6957600080fd5b809150509250929050565b60008060008060808587031215613b8a57600080fd5b8435613b958161388b565b93506020850135613ba58161388b565b925060408501359150606085013567ffffffffffffffff811115613bc857600080fd5b8501601f81018713613bd957600080fd5b613be887823560208401613733565b91505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608101610c8b565b60008060408385031215613c3d57600080fd5b823591506020830135613b698161388b565b60008060208385031215613c6257600080fd5b823567ffffffffffffffff811115613c7957600080fd5b613c85858286016138cc565b90969095509350505050565b60008060408385031215613ca457600080fd5b8235613caf8161388b565b91506020830135613b698161388b565b600181811c90821680613cd357607f821691505b602082108103613cf357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613d3f57613d3f613d0f565b500290565b60008219821115613d5757613d57613d0f565b500190565b600082821015613d6e57613d6e613d0f565b500390565b600067ffffffffffffffff808316818516808303821115613d9657613d96613d0f565b01949350505050565b8054600090600181811c9080831680613db957607f831692505b60208084108203613dda57634e487b7160e01b600052602260045260246000fd5b818015613dee5760018114613dff57613e2c565b60ff19861689528489019650613e2c565b60008881526020902060005b86811015613e245781548b820152908501908301613e0b565b505084890196505b50505050505092915050565b7f7b226e616d65223a20220000000000000000000000000000000000000000000081526000613e6a600a830188613d9f565b7f222c20226465736372697074696f6e223a2022000000000000000000000000008152613e9a6013820188613d9f565b90507f222c2022696d616765223a2200000000000000000000000000000000000000008152613ecc600c820187613d9f565b90507f222c2022616e696d6174696f6e5f75726c223a220000000000000000000000008152613efe6014820186613d9f565b90507f222c202261747472696275746573223a205b207b202274726169745f7479706581527f223a202245787069726174696f6e2044617465222c2022646973706c61795f7460208201527f797065223a202264617465222c202276616c7565223a2022000000000000000060408201528351613f82816058840160208801613807565b7f227d5d7d0000000000000000000000000000000000000000000000000000000060589290910191820152605c01979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613ff381601d850160208701613807565b91909101601d0192915050565b634e487b7160e01b600052601260045260246000fd5b60008261402557614025614000565b500690565b60008261403957614039614000565b500490565b60006001820161405057614050613d0f565b5060010190565b634e487b7160e01b600052602160045260246000fd5b60006001600160a01b0380871683528086166020840152508360408301526080606083015261409f6080830184613833565b9695505050505050565b6000602082840312156140bb57600080fd5b8151611a0e816137d456fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212205c538b21bae70b79863861c6f5e2c47786639ac375246feec1be38378bfb818364736f6c634300080e003360806040526040516200123b3803806200123b83398101604081905262000026916200042e565b8051825114620000985760405162461bcd60e51b815260206004820152603260248201527f5061796d656e7453706c69747465723a2070617965657320616e6420736861726044820152710cae640d8cadccee8d040dad2e6dac2e8c6d60731b60648201526084015b60405180910390fd5b6000825111620000eb5760405162461bcd60e51b815260206004820152601a60248201527f5061796d656e7453706c69747465723a206e6f2070617965657300000000000060448201526064016200008f565b60005b82518110156200015757620001428382815181106200011157620001116200050c565b60200260200101518383815181106200012e576200012e6200050c565b60200260200101516200016060201b60201c565b806200014e8162000538565b915050620000ee565b5050506200056f565b6001600160a01b038216620001cd5760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016200008f565b600081116200021f5760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016200008f565b6001600160a01b038216600090815260026020526040902054156200029b5760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016200008f565b60048054600181019091557f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319166001600160a01b0384169081179091556000908152600260205260408120829055546200030390829062000554565b600055604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200038d576200038d6200034c565b604052919050565b60006001600160401b03821115620003b157620003b16200034c565b5060051b60200190565b600082601f830112620003cd57600080fd5b81516020620003e6620003e08362000395565b62000362565b82815260059290921b840181019181810190868411156200040657600080fd5b8286015b848110156200042357805183529183019183016200040a565b509695505050505050565b600080604083850312156200044257600080fd5b82516001600160401b03808211156200045a57600080fd5b818501915085601f8301126200046f57600080fd5b8151602062000482620003e08362000395565b82815260059290921b84018101918181019089841115620004a257600080fd5b948201945b83861015620004d95785516001600160a01b0381168114620004c95760008081fd5b82529482019490820190620004a7565b91880151919650909350505080821115620004f357600080fd5b506200050285828601620003bb565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016200054d576200054d62000522565b5060010190565b600082198211156200056a576200056a62000522565b500190565b610cbc806200057f6000396000f3fe60806040526004361061009a5760003560e01c80638b83209b11610069578063ce7c2ac21161004e578063ce7c2ac214610202578063d79779b214610238578063e33b7de31461026e57600080fd5b80638b83209b146101945780639852595c146101cc57600080fd5b806319165587146100e85780633a98ef391461010a578063406072a91461012e57806348b750441461017457600080fd5b366100e3577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b3480156100f457600080fd5b50610108610103366004610ac1565b610283565b005b34801561011657600080fd5b506000545b6040519081526020015b60405180910390f35b34801561013a57600080fd5b5061011b610149366004610ade565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b34801561018057600080fd5b5061010861018f366004610ade565b61043c565b3480156101a057600080fd5b506101b46101af366004610b17565b6106b4565b6040516001600160a01b039091168152602001610125565b3480156101d857600080fd5b5061011b6101e7366004610ac1565b6001600160a01b031660009081526003602052604090205490565b34801561020e57600080fd5b5061011b61021d366004610ac1565b6001600160a01b031660009081526002602052604090205490565b34801561024457600080fd5b5061011b610253366004610ac1565b6001600160a01b031660009081526005602052604090205490565b34801561027a57600080fd5b5060015461011b565b6001600160a01b0381166000908152600260205260409020546102fc5760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084015b60405180910390fd5b600061030760015490565b6103119047610b46565b9050600061033e8383610339866001600160a01b031660009081526003602052604090205490565b6106e4565b9050806000036103a45760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016102f3565b6001600160a01b038316600090815260036020526040812080548392906103cc908490610b46565b9250508190555080600160008282546103e59190610b46565b909155506103f590508382610729565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b6001600160a01b0381166000908152600260205260409020546104b05760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016102f3565b6001600160a01b0382166000908152600560205260408120546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038516906370a0823190602401602060405180830381865afa158015610526573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054a9190610b5e565b6105549190610b46565b9050600061058d838361033987876001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b9050806000036105f35760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016102f3565b6001600160a01b0380851660009081526006602090815260408083209387168352929052908120805483929061062a908490610b46565b90915550506001600160a01b03841660009081526005602052604081208054839290610657908490610b46565b909155506106689050848483610847565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6000600482815481106106c9576106c9610b77565b6000918252602090912001546001600160a01b031692915050565b600080546001600160a01b03851682526002602052604082205483919061070b9086610b8d565b6107159190610bac565b61071f9190610bce565b90505b9392505050565b804710156107795760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016102f3565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146107c6576040519150601f19603f3d011682016040523d82523d6000602084013e6107cb565b606091505b50509050806108425760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016102f3565b505050565b604080516001600160a01b03848116602483015260448083018590528351808403909101815260649092018352602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261084292869291600091610905918516908490610995565b80519091501561084257808060200190518101906109239190610be5565b6108425760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016102f3565b606061071f8484600085856001600160a01b0385163b6109f75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102f3565b600080866001600160a01b03168587604051610a139190610c37565b60006040518083038185875af1925050503d8060008114610a50576040519150601f19603f3d011682016040523d82523d6000602084013e610a55565b606091505b5091509150610a65828286610a70565b979650505050505050565b60608315610a7f575081610722565b825115610a8f5782518084602001fd5b8160405162461bcd60e51b81526004016102f39190610c53565b6001600160a01b0381168114610abe57600080fd5b50565b600060208284031215610ad357600080fd5b813561072281610aa9565b60008060408385031215610af157600080fd5b8235610afc81610aa9565b91506020830135610b0c81610aa9565b809150509250929050565b600060208284031215610b2957600080fd5b5035919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610b5957610b59610b30565b500190565b600060208284031215610b7057600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615610ba757610ba7610b30565b500290565b600082610bc957634e487b7160e01b600052601260045260246000fd5b500490565b600082821015610be057610be0610b30565b500390565b600060208284031215610bf757600080fd5b8151801515811461072257600080fd5b60005b83811015610c22578181015183820152602001610c0a565b83811115610c31576000848401525b50505050565b60008251610c49818460208701610c07565b9190910192915050565b6020815260008251806020840152610c72816040850160208701610c07565b601f01601f1916919091016040019291505056fea264697066735822122022b8e38d59404c6592ef1c0b64a71491928cad40600ab90d08772eb770b1819564736f6c634300080e0033c89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6697066733a2f2f516d5373316e6f4d4656374152534e656279356955754e51564e6744626253517350506246504d65317969683461697066733a2f2f516d645a6662353573755062756a4e383969343361366b556557693441356461675172717766644b377833356f418b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000000000000000000000000000000000000000001756656e696365204d7573696320436f6c6c6563746976650000000000000000000000000000000000000000000000000000000000000000000000000000000003564d43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b1176efd72705836dcdfe527922d0eb611d925ac00000000000000000000000001bdbb4c350dcc4c250e56b6b0db155929ce4fd20000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000005a000000000000000000000000000000000000000000000000000000000000000a
Deployed Bytecode
0x6080604052600436106103ac5760003560e01c80638462151c116101e7578063bd25b4bc1161010d578063ded7222b116100a0578063eb8d24441161006f578063eb8d244414610b19578063f29e448614610b3a578063f2fde38b14610b5b578063f6fa26ab14610b7b57600080fd5b8063ded7222b14610a7b578063e0ad790c14610a90578063e268e4d314610ab0578063e985e9c514610ad057600080fd5b8063c87b56dd116100dc578063c87b56dd14610a10578063d3fcbb1414610a30578063d52c57e014610a45578063db1354d214610a6557600080fd5b8063bd25b4bc1461098e578063bece913b146109a3578063c23dc68f146109c3578063c5ac58e1146109f057600080fd5b80639c79e52711610185578063a4f29aad11610154578063a4f29aad146108f7578063b3feb36d14610917578063b88d4fde1461094e578063bb660c0a1461096e57600080fd5b80639c79e5271461089b5780639e852f75146108b1578063a0712d68146108c4578063a22cb465146108d757600080fd5b80638da5cb5b116101c15780638da5cb5b1461082857806391b7f5ed1461084657806395d89b411461086657806399a2557a1461087b57600080fd5b80638462151c146107d0578063862b092b146107fd5780638d859f3e1461081257600080fd5b806323b872dd116102d75780636301dccf1161026a5780636d60e6c1116102395780636d60e6c11461076657806370a082311461077b578063715018a61461079b578063717d57d3146107b057600080fd5b80636301dccf146106c85780636352211e146106fc5780636b0509b11461071c5780636d4a450a1461075057600080fd5b806342842e0e116102a657806342842e0e1461062557806342966c68146106455780635bbb217714610665578063624601b61461069257600080fd5b806323b872dd146105bb57806331beb605146105db57806334918dfd146105fb57806338abc4bc1461061057600080fd5b80630f2cdd6c1161034f578063185a56711161031e578063185a56711461052657806319165587146105465780631fe70d6f14610566578063212e9a0f1461058757600080fd5b80630f2cdd6c146104bc57806314d8bbf1146104e057806317e7f295146104f357806318160ddd1461050957600080fd5b806306fdde031161038b57806306fdde031461042857806307cf3a771461044a578063081812fc14610464578063095ea7b31461049c57600080fd5b8062d5da02146103b157806301ffc9a7146103d357806304787ca214610408575b600080fd5b3480156103bd57600080fd5b506103d16103cc36600461378b565b610b90565b005b3480156103df57600080fd5b506103f36103ee3660046137ea565b610bf4565b60405190151581526020015b60405180910390f35b34801561041457600080fd5b506103d161042336600461378b565b610c91565b34801561043457600080fd5b5061043d610cec565b6040516103ff919061385f565b34801561045657600080fd5b50600e546103f39060ff1681565b34801561047057600080fd5b5061048461047f366004613872565b610d7e565b6040516001600160a01b0390911681526020016103ff565b3480156104a857600080fd5b506103d16104b73660046138a0565b610ddb565b3480156104c857600080fd5b506104d260115481565b6040519081526020016103ff565b6103d16104ee36600461390e565b610eb0565b3480156104ff57600080fd5b506104d260105481565b34801561051557600080fd5b5060015460005403600019016104d2565b34801561053257600080fd5b506103d161054136600461395a565b6110b1565b34801561055257600080fd5b506103d161056136600461395a565b611128565b34801561057257600080fd5b506008546103f390600160a81b900460ff1681565b34801561059357600080fd5b506104d27f2744a6917094ca2ea2ac15d34cf9febe9c2a504b2370fa0f60e99090ad07d83e81565b3480156105c757600080fd5b506103d16105d6366004613977565b6111eb565b3480156105e757600080fd5b506103d16105f636600461395a565b61127a565b34801561060757600080fd5b506103d16112f1565b34801561061c57600080fd5b5061043d61135a565b34801561063157600080fd5b506103d1610640366004613977565b611369565b34801561065157600080fd5b506103d1610660366004613872565b6113f8565b34801561067157600080fd5b506106856106803660046139b8565b61144e565b6040516103ff9190613a5e565b34801561069e57600080fd5b506104d26106ad36600461395a565b6001600160a01b03166000908152600d602052604090205490565b3480156106d457600080fd5b506104d27f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c981565b34801561070857600080fd5b50610484610717366004613872565b611515565b34801561072857600080fd5b506104d27f77eb6d3bbe7602208cc36937114029465cec3988228851754080f2c59c06cdca81565b34801561075c57600080fd5b506104d2600a5481565b34801561077257600080fd5b506103d1611527565b34801561078757600080fd5b506104d261079636600461395a565b611583565b3480156107a757600080fd5b506103d16115eb565b3480156107bc57600080fd5b506103d16107cb366004613872565b61163f565b3480156107dc57600080fd5b506107f06107eb36600461395a565b61168c565b6040516103ff9190613ac9565b34801561080957600080fd5b5061043d6117ce565b34801561081e57600080fd5b506104d2600f5481565b34801561083457600080fd5b506008546001600160a01b0316610484565b34801561085257600080fd5b506103d1610861366004613872565b6117dd565b34801561087257600080fd5b5061043d61182a565b34801561088757600080fd5b506107f0610896366004613b01565b611839565b3480156108a757600080fd5b506104d2600c5481565b6103d16108bf36600461390e565b611a15565b6103d16108d2366004613872565b611c70565b3480156108e357600080fd5b506103d16108f2366004613b36565b611d98565b34801561090357600080fd5b506103d161091236600461378b565b611e46565b34801561092357600080fd5b506103f361093236600461395a565b6001600160a01b03166000908152600d60205260409020541590565b34801561095a57600080fd5b506103d1610969366004613b74565b611ea1565b34801561097a57600080fd5b506104d261098936600461395a565b611f37565b34801561099a57600080fd5b5061043d611f73565b3480156109af57600080fd5b506103f36109be36600461390e565b611f82565b3480156109cf57600080fd5b506109e36109de366004613872565b6120d0565b6040516103ff9190613bf4565b3480156109fc57600080fd5b506103d1610a0b36600461378b565b61218b565b348015610a1c57600080fd5b5061043d610a2b366004613872565b6121e6565b348015610a3c57600080fd5b506103d161226e565b348015610a5157600080fd5b506103d1610a60366004613c2a565b6122d7565b348015610a7157600080fd5b506104d2600b5481565b348015610a8757600080fd5b5061043d612329565b348015610a9c57600080fd5b506103f3610aab366004613c4f565b612338565b348015610abc57600080fd5b506103d1610acb366004613872565b61247b565b348015610adc57600080fd5b506103f3610aeb366004613c91565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b2557600080fd5b506008546103f390600160a01b900460ff1681565b348015610b4657600080fd5b506017546103f390600160a01b900460ff1681565b348015610b6757600080fd5b506103d1610b7636600461395a565b6124c8565b348015610b8757600080fd5b506103d1612595565b6008546001600160a01b03163314610bdd5760405162461bcd60e51b8152602060048201819052602482015260008051602061410783398151915260448201526064015b60405180910390fd5b8051610bf0906016906020840190613653565b5050565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610c5757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610c8b57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6008546001600160a01b03163314610cd95760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b8051610bf0906014906020840190613653565b606060028054610cfb90613cbf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d2790613cbf565b8015610d745780601f10610d4957610100808354040283529160200191610d74565b820191906000526020600020905b815481529060010190602001808311610d5757829003601f168201915b5050505050905090565b6000610d8982612619565b610dbf576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610de682611515565b9050806001600160a01b0316836001600160a01b031603610e33576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b336001600160a01b03821614610ea0576001600160a01b038116600090815260076020908152604080832033845290915290205460ff16610ea0576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610eab838383612652565b505050565b600e5460ff16610eec576040517f43e287e600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6009548290829085906001600160a01b0316610f1b57604051637560f33160e11b815260040160405180910390fd5b600a54604080517f77eb6d3bbe7602208cc36937114029465cec3988228851754080f2c59c06cdca60208201523391810191909152606081018390526000919060800160405160208183030381529060405280519060200120604051602001610f9b92919061190160f01b81526002810192909252602282015260420190565b6040516020818303038152906040528051906020012090506000610ff785858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506126bb9050565b6009549091506001600160a01b0380831691161461102857604051638baa579f60e01b815260040160405180910390fd5b3332146110485760405163d9d552c960e01b815260040160405180910390fd5b336000908152600d602052604090205461106b5761106633896126d7565b61109d565b6040517fa4f8192900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110a73389612708565b5050505050505050565b6008546001600160a01b031633146110f95760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6017805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b031633146111705760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6012546040517f191655870000000000000000000000000000000000000000000000000000000081526001600160a01b03838116600483015290911690631916558790602401600060405180830381600087803b1580156111d057600080fd5b505af11580156111e4573d6000803e3d6000fd5b5050505050565b601754600160a01b900460ff1615801561120e57506017546001600160a01b0316155b1561122c5760405163eb185adb60e01b815260040160405180910390fd5b601754600160a01b900460ff1615801561125157506017546001600160a01b03163314155b1561126f57604051637413882f60e11b815260040160405180910390fd5b610eab83838361287d565b6008546001600160a01b031633146112c25760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6009805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6008546001600160a01b031633146113395760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6008805460ff60a01b198116600160a01b9182900460ff1615909102179055565b606060168054610cfb90613cbf565b601754600160a01b900460ff1615801561138c57506017546001600160a01b0316155b156113aa5760405163eb185adb60e01b815260040160405180910390fd5b601754600160a01b900460ff161580156113cf57506017546001600160a01b03163314155b156113ed57604051637413882f60e11b815260040160405180910390fd5b610eab838383612888565b6008546001600160a01b031633146114405760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b61144b8160006128a3565b50565b805160609060008167ffffffffffffffff81111561146e5761146e6136ec565b6040519080825280602002602001820160405280156114b957816020015b604080516060810182526000808252602080830182905292820152825260001990920191018161148c5790505b50905060005b82811461150d576114e88582815181106114db576114db613cf9565b60200260200101516120d0565b8282815181106114fa576114fa613cf9565b60209081029190910101526001016114bf565b509392505050565b600061152082612ab7565b5192915050565b6008546001600160a01b0316331461156f5760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b600e805460ff19811660ff90911615179055565b60006001600160a01b0382166115c5576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146116335760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b61163d6000612bf4565b565b6008546001600160a01b031633146116875760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b601055565b6060600080600061169c85611583565b905060008167ffffffffffffffff8111156116b9576116b96136ec565b6040519080825280602002602001820160405280156116e2578160200160208202803683370190505b50604080516060810182526000808252602082018190529181019190915290915060015b8386146117c257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905292506117ba5781516001600160a01b03161561177b57815194505b876001600160a01b0316856001600160a01b0316036117ba57808387806001019850815181106117ad576117ad613cf9565b6020026020010181815250505b600101611706565b50909695505050505050565b606060158054610cfb90613cbf565b6008546001600160a01b031633146118255760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b600f55565b606060038054610cfb90613cbf565b6060818310611874576040517f32c1995a00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008054600185101561188657600194505b80841115611892578093505b600061189d87611583565b9050848610156118bc57858503818110156118b6578091505b506118c0565b5060005b60008167ffffffffffffffff8111156118db576118db6136ec565b604051908082528060200260200182016040528015611904578160200160208202803683370190505b5090508160000361191a579350611a0e92505050565b6000611925886120d0565b905060008160400151611936575080515b885b8881141580156119485750848714155b15611a0257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905293506119fa5782516001600160a01b0316156119bb57825191505b8a6001600160a01b0316826001600160a01b0316036119fa57808488806001019950815181106119ed576119ed613cf9565b6020026020010181815250505b600101611938565b50505092835250909150505b9392505050565b600954829082906001600160a01b0316611a4257604051637560f33160e11b815260040160405180910390fd5b600b54604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c9602082015233918101919091526000919060600160405160208183030381529060405280519060200120604051602001611abb92919061190160f01b81526002810192909252602282015260420190565b6040516020818303038152906040528051906020012090506000611b1784848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506126bb9050565b6009549091506001600160a01b03808316911614611b4857604051638baa579f60e01b815260040160405180910390fd5b333214611b685760405163d9d552c960e01b815260040160405180910390fd5b600854600160a81b900460ff16611bab576040517f04cc9ce200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b86601054611bb99190613d25565b341015611bd95760405163cd1c886760e01b815260040160405180910390fd5b60115433600090815260056020526040902054889068010000000000000000900467ffffffffffffffff16611c0e9190613d44565b1115611c2d5760405163c0e54d7360e01b815260040160405180910390fd5b611c373388612708565b6012546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156110a7573d6000803e3d6000fd5b333214611c905760405163d9d552c960e01b815260040160405180910390fd5b600854600160a01b900460ff16611cd3576040517fb7b2409700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600f54611ce19190613d25565b341015611d015760405163cd1c886760e01b815260040160405180910390fd5b60115433600090815260056020526040902054829068010000000000000000900467ffffffffffffffff16611d369190613d44565b1115611d555760405163c0e54d7360e01b815260040160405180910390fd5b611d5f3382612708565b6012546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610bf0573d6000803e3d6000fd5b336001600160a01b03831603611dda576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6008546001600160a01b03163314611e8e5760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b8051610bf0906015906020840190613653565b601754600160a01b900460ff16158015611ec457506017546001600160a01b0316155b15611ee25760405163eb185adb60e01b815260040160405180910390fd5b601754600160a01b900460ff16158015611f0757506017546001600160a01b03163314155b15611f2557604051637413882f60e11b815260040160405180910390fd5b611f3184848484612c53565b50505050565b6001600160a01b03811660009081526005602052604081205468010000000000000000900467ffffffffffffffff16601154610c8b9190613d5c565b606060138054610cfb90613cbf565b6009546000908390839086906001600160a01b0316611fb457604051637560f33160e11b815260040160405180910390fd5b600a54604080517f77eb6d3bbe7602208cc36937114029465cec3988228851754080f2c59c06cdca6020820152339181019190915260608101839052600091906080016040516020818303038152906040528051906020012060405160200161203492919061190160f01b81526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050600061209085858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506126bb9050565b6009549091506001600160a01b038083169116146120c157604051638baa579f60e01b815260040160405180910390fd5b50600198975050505050505050565b6040805160608082018352600080835260208084018290528385018290528451928301855281835282018190529281019290925290600183108061211657506000548310155b156121215792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff1615801592820192909252906121825792915050565b611a0e83612ab7565b6008546001600160a01b031633146121d35760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b8051610bf0906013906020840190613653565b606061224860156016601460136122206121ff88612ab7565b60200151612211906301e13380613d73565b67ffffffffffffffff16612c97565b604051602001612234959493929190613e38565b604051602081830303815290604052612e25565b6040516020016122589190613fbb565b6040516020818303038152906040529050919050565b6008546001600160a01b031633146122b65760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6017805460ff60a01b198116600160a01b9182900460ff1615909102179055565b6008546001600160a01b0316331461231f5760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b610bf08183612708565b606060148054610cfb90613cbf565b600954600090839083906001600160a01b031661236857604051637560f33160e11b815260040160405180910390fd5b600b54604080517f68e83002b91b0fd96d4df3566b5122221117e3ec6c2468fda594f6491f89b1c96020820152339181019190915260009190606001604051602081830303815290604052805190602001206040516020016123e192919061190160f01b81526002810192909252602282015260420190565b604051602081830303815290604052805190602001209050600061243d84848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525086939250506126bb9050565b6009549091506001600160a01b0380831691161461246e57604051638baa579f60e01b815260040160405180910390fd5b5060019695505050505050565b6008546001600160a01b031633146124c35760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b601155565b6008546001600160a01b031633146125105760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b6001600160a01b03811661258c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610bd4565b61144b81612bf4565b6008546001600160a01b031633146125dd5760405162461bcd60e51b815260206004820181905260248201526000805160206141078339815191526044820152606401610bd4565b600880547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff8116600160a81b9182900460ff1615909102179055565b60008160011115801561262d575060005482105b8015610c8b575050600090815260046020526040902054600160e01b900460ff161590565b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008060006126ca8585612fc6565b9150915061150d81613034565b6001600160a01b0382166000908152600d6020526040812080548392906126ff908490613d44565b90915550505050565b6000546001600160a01b03831661274b576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81600003612785576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038316600081815260056020908152604080832080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000811667ffffffffffffffff8083168a0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168a01811690920217909155858452600490925290912080546001600160e01b031916909217600160a01b4290921691909102179055808083015b6040516001830192906001600160a01b038716906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a48082106128315750600055505050565b610eab8383836131ea565b610eab83838360405180602001604052806000815250611ea1565b60006128ae83612ab7565b80519091508215612932576000336001600160a01b03831614806128f557506001600160a01b038216600090815260076020908152604080832033845290915290205460ff165b8061291057503361290586610d7e565b6001600160a01b0316145b90508061293057604051632ce44b5f60e11b815260040160405180910390fd5b505b61293e60008583612652565b6001600160a01b038082166000818152600560209081526040808320805470010000000000000000000000000000000060001967ffffffffffffffff80841691909101811667ffffffffffffffff19841681178390048216600190810183169093027fffffffffffffffff0000000000000000ffffffffffffffff0000000000000000909416179290921783558b8652600490945282852080547fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffff42909316600160a01b026001600160e01b03199091169097179690961716600160e01b178555918901808452922080549194909116612a6d576000548214612a6d578054602087015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505060018054810190555050565b60408051606081018252600080825260208201819052918101919091528180600111612bc257600054811015612bc257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff16151591810182905290612bc05780516001600160a01b031615612b56579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff1615159281019290925215612bbb579392505050565b612b56565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b612c5e8484846131ea565b6001600160a01b0383163b15611f3157612c7a84848484613428565b611f31576040516368d2bf6b60e11b815260040160405180910390fd5b60408051606480825260a08201909252606091906000908260208201818036833701905050905060005b8415612d43576000612cd4600a87614016565b9050612ce1600a8761402a565b9550612cee816030613d44565b60f81b8383612cfc8161403e565b945081518110612d0e57612d0e613cf9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535050612cc1565b60008167ffffffffffffffff811115612d5e57612d5e6136ec565b6040519080825280601f01601f191660200182016040528015612d88576020820181803683370190505b50905060005b82811015612e1b57836001612da38386613d5c565b612dad9190613d5c565b81518110612dbd57612dbd613cf9565b602001015160f81c60f81b828281518110612dda57612dda613cf9565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080612e138161403e565b915050612d8e565b5095945050505050565b80516060906000819003612e49575050604080516020810190915260008152919050565b60006003612e58836002613d44565b612e62919061402a565b612e6d906004613d25565b90506000612e7c826020613d44565b67ffffffffffffffff811115612e9457612e946136ec565b6040519080825280601f01601f191660200182016040528015612ebe576020820181803683370190505b50905060006040518060600160405280604081526020016140c7604091399050600181016020830160005b86811015612f4a576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612ee9565b506003860660018114612f645760028114612f9057612fb8565b7f3d3d000000000000000000000000000000000000000000000000000000000000600119830152612fb8565b7f3d000000000000000000000000000000000000000000000000000000000000006000198301525b505050918152949350505050565b6000808251604103612ffc5760208301516040840151606085015160001a612ff087828585613514565b9450945050505061302d565b8251604003613025576020830151604084015161301a868383613601565b93509350505061302d565b506000905060025b9250929050565b600081600481111561304857613048614057565b036130505750565b600181600481111561306457613064614057565b036130b15760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610bd4565b60028160048111156130c5576130c5614057565b036131125760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610bd4565b600381600481111561312657613126614057565b0361317e5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610bd4565b600481600481111561319257613192614057565b0361144b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610bd4565b60006131f582612ab7565b9050836001600160a01b031681600001516001600160a01b031614613246576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000336001600160a01b038616148061328257506001600160a01b038516600090815260076020908152604080832033845290915290205460ff165b8061329d57503361329284610d7e565b6001600160a01b0316145b9050806132bd57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166132fd576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61330960008487612652565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166133df5760005482146133df578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46111e4565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061345d90339089908890889060040161406d565b6020604051808303816000875af1925050508015613498575060408051601f3d908101601f19168201909252613495918101906140a9565b60015b6134f6573d8080156134c6576040519150601f19603f3d011682016040523d82523d6000602084013e6134cb565b606091505b5080516000036134ee576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561354b57506000905060036135f8565b8460ff16601b1415801561356357508460ff16601c14155b1561357457506000905060046135f8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156135c8573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166135f1576000600192509250506135f8565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161363760ff86901c601b613d44565b905061364587828885613514565b935093505050935093915050565b82805461365f90613cbf565b90600052602060002090601f01602090048101928261368157600085556136c7565b82601f1061369a57805160ff19168380011785556136c7565b828001600101855582156136c7579182015b828111156136c75782518255916020019190600101906136ac565b506136d39291506136d7565b5090565b5b808211156136d357600081556001016136d8565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561372b5761372b6136ec565b604052919050565b600067ffffffffffffffff83111561374d5761374d6136ec565b613760601f8401601f1916602001613702565b905082815283838301111561377457600080fd5b828260208301376000602084830101529392505050565b60006020828403121561379d57600080fd5b813567ffffffffffffffff8111156137b457600080fd5b8201601f810184136137c557600080fd5b61350c84823560208401613733565b6001600160e01b03198116811461144b57600080fd5b6000602082840312156137fc57600080fd5b8135611a0e816137d4565b60005b8381101561382257818101518382015260200161380a565b83811115611f315750506000910152565b6000815180845261384b816020860160208601613807565b601f01601f19169290920160200192915050565b602081526000611a0e6020830184613833565b60006020828403121561388457600080fd5b5035919050565b6001600160a01b038116811461144b57600080fd5b600080604083850312156138b357600080fd5b82356138be8161388b565b946020939093013593505050565b60008083601f8401126138de57600080fd5b50813567ffffffffffffffff8111156138f657600080fd5b60208301915083602082850101111561302d57600080fd5b60008060006040848603121561392357600080fd5b83359250602084013567ffffffffffffffff81111561394157600080fd5b61394d868287016138cc565b9497909650939450505050565b60006020828403121561396c57600080fd5b8135611a0e8161388b565b60008060006060848603121561398c57600080fd5b83356139978161388b565b925060208401356139a78161388b565b929592945050506040919091013590565b600060208083850312156139cb57600080fd5b823567ffffffffffffffff808211156139e357600080fd5b818501915085601f8301126139f757600080fd5b813581811115613a0957613a096136ec565b8060051b9150613a1a848301613702565b8181529183018401918481019088841115613a3457600080fd5b938501935b83851015613a5257843582529385019390850190613a39565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b818110156117c257613ab683855180516001600160a01b0316825260208082015167ffffffffffffffff16908301526040908101511515910152565b9284019260609290920191600101613a7a565b6020808252825182820181905260009190848201906040850190845b818110156117c257835183529284019291840191600101613ae5565b600080600060608486031215613b1657600080fd5b8335613b218161388b565b95602085013595506040909401359392505050565b60008060408385031215613b4957600080fd5b8235613b548161388b565b915060208301358015158114613b6957600080fd5b809150509250929050565b60008060008060808587031215613b8a57600080fd5b8435613b958161388b565b93506020850135613ba58161388b565b925060408501359150606085013567ffffffffffffffff811115613bc857600080fd5b8501601f81018713613bd957600080fd5b613be887823560208401613733565b91505092959194509250565b81516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260608101610c8b565b60008060408385031215613c3d57600080fd5b823591506020830135613b698161388b565b60008060208385031215613c6257600080fd5b823567ffffffffffffffff811115613c7957600080fd5b613c85858286016138cc565b90969095509350505050565b60008060408385031215613ca457600080fd5b8235613caf8161388b565b91506020830135613b698161388b565b600181811c90821680613cd357607f821691505b602082108103613cf357634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615613d3f57613d3f613d0f565b500290565b60008219821115613d5757613d57613d0f565b500190565b600082821015613d6e57613d6e613d0f565b500390565b600067ffffffffffffffff808316818516808303821115613d9657613d96613d0f565b01949350505050565b8054600090600181811c9080831680613db957607f831692505b60208084108203613dda57634e487b7160e01b600052602260045260246000fd5b818015613dee5760018114613dff57613e2c565b60ff19861689528489019650613e2c565b60008881526020902060005b86811015613e245781548b820152908501908301613e0b565b505084890196505b50505050505092915050565b7f7b226e616d65223a20220000000000000000000000000000000000000000000081526000613e6a600a830188613d9f565b7f222c20226465736372697074696f6e223a2022000000000000000000000000008152613e9a6013820188613d9f565b90507f222c2022696d616765223a2200000000000000000000000000000000000000008152613ecc600c820187613d9f565b90507f222c2022616e696d6174696f6e5f75726c223a220000000000000000000000008152613efe6014820186613d9f565b90507f222c202261747472696275746573223a205b207b202274726169745f7479706581527f223a202245787069726174696f6e2044617465222c2022646973706c61795f7460208201527f797065223a202264617465222c202276616c7565223a2022000000000000000060408201528351613f82816058840160208801613807565b7f227d5d7d0000000000000000000000000000000000000000000000000000000060589290910191820152605c01979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251613ff381601d850160208701613807565b91909101601d0192915050565b634e487b7160e01b600052601260045260246000fd5b60008261402557614025614000565b500690565b60008261403957614039614000565b500490565b60006001820161405057614050613d0f565b5060010190565b634e487b7160e01b600052602160045260246000fd5b60006001600160a01b0380871683528086166020840152508360408301526080606083015261409f6080830184613833565b9695505050505050565b6000602082840312156140bb57600080fd5b8151611a0e816137d456fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212205c538b21bae70b79863861c6f5e2c47786639ac375246feec1be38378bfb818364736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000003782dace9d90000000000000000000000000000000000000000000000000000000000000000001756656e696365204d7573696320436f6c6c6563746976650000000000000000000000000000000000000000000000000000000000000000000000000000000003564d43000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000b1176efd72705836dcdfe527922d0eb611d925ac00000000000000000000000001bdbb4c350dcc4c250e56b6b0db155929ce4fd20000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000005a000000000000000000000000000000000000000000000000000000000000000a
-----Decoded View---------------
Arg [0] : _tokenName (string): Venice Music Collective
Arg [1] : _tokenSymbol (string): VMC
Arg [2] : _assetUri (string):
Arg [3] : _payees (address[]): 0xb1176efD72705836Dcdfe527922d0eb611d925ac,0x01BDbb4c350dcC4C250E56b6b0dB155929ce4fD2
Arg [4] : _shares (uint256[]): 90,10
Arg [5] : _tokenPrice (uint256): 250000000000000000
-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001c0
Arg [5] : 00000000000000000000000000000000000000000000000003782dace9d90000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [7] : 56656e696365204d7573696320436f6c6c656374697665000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 564d430000000000000000000000000000000000000000000000000000000000
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [12] : 000000000000000000000000b1176efd72705836dcdfe527922d0eb611d925ac
Arg [13] : 00000000000000000000000001bdbb4c350dcc4c250e56b6b0db155929ce4fd2
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [15] : 000000000000000000000000000000000000000000000000000000000000005a
Arg [16] : 000000000000000000000000000000000000000000000000000000000000000a
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.