Overview
TokenID
10344
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SneakyVampiressSyndicate
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "./ERC721SVS.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract SneakyVampiressSyndicate is ERC721SVS, Ownable { enum SaleState { CLOSED, PRESALE, OPEN } uint256 constant public SVS_MAX = 12345; // 8888 Gen1 + 1900 WL + 200 Team + 1357 Public uint256 constant public SVS_HOLDERS_MAX = 8888; uint256 constant public SVS_WHITELIST_MAX = 1900; uint256 constant public SVS_TEAM_MAX = 200; uint256 constant public SVS_PUBLIC_MAX_PER_TX = 3; uint256 constant public SVS_PRICE = 0.16 ether; uint256 constant public SVS_PRICE_TIER1 = 0.12 ether; uint256 constant public SVS_PRICE_TIER2 = 0.08 ether; string public baseURI = "https://svs.gg/api/v2/metadata/"; address public signer = 0x6d821F67BBD6961f42a5dde6fd99360e1Ab12345; uint16 public holdersCounter; uint16 public whitelistCounter; uint16 public teamCounter; SaleState public saleState; bool public locked; mapping(bytes32 => bool) usedNonces; uint256[35] claimedGen1Tokens; // 8888 / 256 = 35 bitmaps. constructor() ERC721SVS("Sneaky Vampiress Syndicate", "SVS2") {} function mintTeamTokens(address[] calldata to, uint256[] calldata amounts) external onlyOwner { uint256 combinedAmount; for (uint256 i; i < amounts.length; i++) { combinedAmount += amounts[i]; } teamCounter += uint16(combinedAmount); require(teamCounter <= SVS_TEAM_MAX, "Team tokens sold out."); for (uint256 i; i < to.length; i++) { _mint(to[i], amounts[i]); } } function purchasePresale(uint256[] calldata tokens, bytes calldata signature) external payable { require(saleState == SaleState.PRESALE, "Sale is not live."); require(_totalSupply + tokens.length - teamCounter <= SVS_MAX - SVS_TEAM_MAX, "Sold out."); require(ECDSA.recover(keccak256(abi.encodePacked(msg.sender, tokens)), signature) == signer, "Invalid signature."); require(tokens.length * SVS_PRICE <= msg.value, "Insufficient funds."); OwnerData storage ownerData = _ownerData[msg.sender]; if (tokens[0] == 0) { // Whitelisted require(!ownerData.usedWhitelist, "Whitelist already claimed"); ownerData.usedWhitelist = true; require(whitelistCounter++ < SVS_WHITELIST_MAX, "Sold out."); if (tokens.length > 1) { holdersCounter += uint16(tokens.length - 1); require(holdersCounter <= SVS_HOLDERS_MAX, "Sold out."); } } else { holdersCounter += uint16(tokens.length); require(holdersCounter <= SVS_HOLDERS_MAX, "Sold out."); } _setUsedTokens(tokens); _mint(msg.sender, tokens.length); } function purchasePresaleWithDiscount(uint256 amount, uint16 tier1, uint16 tier2, uint16 tier1Max, uint16 tier2Max, uint256[] calldata tokens, bytes calldata signature) external payable { require(saleState == SaleState.PRESALE, "Sale is not live."); require(_totalSupply + tokens.length - teamCounter <= SVS_MAX - SVS_TEAM_MAX, "Sold out."); require(ECDSA.recover(keccak256(abi.encodePacked(msg.sender, amount, tier1, tier2, tier1Max, tier2Max, tokens)), signature) == signer, "Invalid signature."); require((amount * SVS_PRICE + tier1 * SVS_PRICE_TIER1 + tier2 * SVS_PRICE_TIER2) <= msg.value, "Insufficient funds."); OwnerData storage ownerData = _ownerData[msg.sender]; if (tokens[0] == 0) { // Whitelisted require(!ownerData.usedWhitelist, "Whitelist already claimed"); ownerData.usedWhitelist = true; require(whitelistCounter++ < SVS_WHITELIST_MAX, "Sold out."); if (tokens.length > 1) { holdersCounter += uint16(tokens.length - 1); require(holdersCounter <= SVS_HOLDERS_MAX, "Sold out."); } } else { holdersCounter += uint16(tokens.length); require(holdersCounter <= SVS_HOLDERS_MAX, "Sold out."); } _setUsedTokens(tokens); uint16 newUsedTier1 = ownerData.usedTier1 + tier1; uint16 newUsedTier2 = ownerData.usedTier2 + tier2; require(newUsedTier1 <= tier1Max && newUsedTier2 <= tier2Max, "Discounts exceeded."); ownerData.usedTier1 = newUsedTier1; ownerData.usedTier2 = newUsedTier2; _mint(msg.sender, tokens.length); } function purchasePublic(uint256 amount, bytes32 nonce, bytes calldata signature) external payable { require(saleState == SaleState.OPEN, "Sale is not live."); require(_totalSupply + amount - holdersCounter - whitelistCounter - teamCounter <= SVS_MAX - SVS_HOLDERS_MAX - SVS_WHITELIST_MAX - SVS_TEAM_MAX, "Sold out."); require(amount <= SVS_PUBLIC_MAX_PER_TX, "Too many tokens."); require(!usedNonces[nonce], "Nonce already used."); usedNonces[nonce] = true; require(ECDSA.recover(keccak256(abi.encodePacked(msg.sender, amount, nonce)), signature) == signer, "Invalid signature."); require(amount * SVS_PRICE <= msg.value, "Insufficient funds."); _mint(msg.sender, amount); } function purchasePublicWithDiscount(uint256 amount, uint16 tier1, uint16 tier2, uint16 tier1Max, uint16 tier2Max, bytes32 nonce, bytes calldata signature) external payable { require(saleState == SaleState.OPEN, "Sale is not live."); uint256 totalAmount = amount + tier1 + tier2; require(totalSupply() + totalAmount - holdersCounter - whitelistCounter - teamCounter <= SVS_MAX - SVS_HOLDERS_MAX - SVS_WHITELIST_MAX - SVS_TEAM_MAX, "Sold out."); require(totalAmount <= SVS_PUBLIC_MAX_PER_TX, "Too many tokens."); require(!usedNonces[nonce], "Nonce already used."); usedNonces[nonce] = true; require(ECDSA.recover(keccak256(abi.encodePacked(msg.sender, amount, tier1, tier2, tier1Max, tier2Max, nonce)), signature) == signer, "Invalid signature."); require((amount * SVS_PRICE + tier1 * SVS_PRICE_TIER1 + tier2 * SVS_PRICE_TIER2) <= msg.value, "Insufficient funds."); OwnerData storage ownerData = _ownerData[msg.sender]; uint16 newUsedTier1 = ownerData.usedTier1 + tier1; uint16 newUsedTier2 = ownerData.usedTier2 + tier2; require(newUsedTier1 <= tier1Max && newUsedTier2 <= tier2Max, "Discounts exceeded."); ownerData.usedTier1 = newUsedTier1; ownerData.usedTier2 = newUsedTier2; _mint(msg.sender, totalAmount); } // Admin functions function setSaleState(SaleState newState) external onlyOwner { saleState = newState; } function setBaseURI(string calldata uri) external onlyOwner { require(!locked, "Contract is locked."); baseURI = uri; } function setSignerAddress(address newSigner) external onlyOwner { signer = newSigner; } function lock() external onlyOwner { locked = true; } function withdraw() external onlyOwner { payable(0x2c65908D37bF90EaA95506b42758613F6C1b9299).transfer((address(this).balance * 15) / 100); uint256 split = address(this).balance / 6; payable(0xea68212b0450A929B14726b90550933bC12fF813).transfer(split); payable(0x2772A2B7B37108FC80AFB864084b7897E8f232ef).transfer(split); payable(0x5BB440e7948d80Dec00A88Fd80e374546BB2D42C).transfer(split); payable(0x6ff547F546Bd8f4c8C4E7Fb30E32B10af818Ac82).transfer(split); payable(0xC43CB0EBb90f41f0E640ee18A0E2C6A4BB497a2A).transfer(split); payable(0x94D58bcA73953f1CEC41327a24D3DD0fc388d2f7).transfer(address(this).balance); } // Internals function addressState(address account) view external returns (OwnerData memory ownerData) { ownerData = _ownerData[account]; } function unclaimedTokens(uint256[] calldata tokens) view external returns (uint256[] memory) { uint256[] memory unclaimed = new uint256[](tokens.length); for (uint256 i; i < tokens.length; i++) { uint256 token = tokens[i]; if (claimedGen1Tokens[token >> 8] >> (token & 0xff) & 1 == 0) { unclaimed[i] = token; } } return unclaimed; } function _setUsedTokens(uint256[] calldata tokens) internal { uint256 currentBitMap; uint256 currentBitMapIndex = type(uint256).max; unchecked { for (uint256 i; i < tokens.length; i++) { uint256 token = tokens[i]; if (token == 0) continue; // This is indication of whitelist. uint256 index = token >> 8; if (currentBitMapIndex != index) { if (currentBitMapIndex < type(uint256).max) { claimedGen1Tokens[currentBitMapIndex] = currentBitMap; } currentBitMapIndex = index; currentBitMap = claimedGen1Tokens[index]; } uint256 newBitmap = currentBitMap | (1 << (token & 0xff)); require(newBitmap != currentBitMap, "Some tokens were already claimed."); currentBitMap = newBitmap; } } if (currentBitMapIndex < type(uint256).max) { claimedGen1Tokens[currentBitMapIndex] = currentBitMap; } } function _baseURI() internal view override returns (string memory) { return baseURI; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 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 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 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // Adapted from OpenZeppelin Contracts v4.5.0 (token/ERC721/ERC721.sol) pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.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 Optimized implementation for SVS of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension * * WARNING: This contract is optimized specifically for the SVS use case, do not use as a template without adjustments * */ contract ERC721SVS is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; struct OwnerData { uint64 balance; uint16 usedTier1; uint16 usedTier2; bool usedWhitelist; } // Token name string private _name; // Token symbol string private _symbol; // Counter for the number of minted tokens uint256 internal _totalSupply; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => OwnerData) internal _ownerData; // 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 {IERC721Enumerable-totalSupply}. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @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 _ownerData[owner].balance; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; if (owner == address(0)) { require(_exists(tokenId), "ERC721: owner query for nonexistent token"); unchecked { do { owner = _owners[--tokenId]; } while (owner == address(0)); } } 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 = ERC721SVS.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, owner); } /** * @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 { _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 { _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 tokenId >= 1 && tokenId <= _totalSupply; } /** * @dev Mints `quantity` of tokens with consecutive IDs and transfers them to `to`. * * Requirements: * * - `quantity` must not be zero. * - `to` cannot be the zero address. * * Emits multiple {Transfer} events. ERC-2309 could be used instead */ function _mint(address to, uint256 quantity) internal virtual { require(quantity > 0, "ERC721: mint zero quantity"); unchecked { uint256 tokenId = _totalSupply; _totalSupply += quantity; _ownerData[to].balance += uint64(quantity); for (uint256 i; i < quantity; i++) { tokenId++; if ((i & 15) == 0) { _owners[tokenId] = to; } emit Transfer(address(0), to, tokenId); } } } /** * @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 ) internal virtual { require(ERC721SVS.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); //solhint-disable-next-line max-line-length require((_msgSender() == from || getApproved(tokenId) == _msgSender() || isApprovedForAll(from, _msgSender())), "ERC721: transfer caller is not owner nor approved"); // Clear approvals from the previous owner _approve(address(0), tokenId, from); unchecked { uint64 balance = _ownerData[from].balance - 1; _ownerData[from].balance = balance; _ownerData[to].balance += 1; _owners[tokenId] = to; if (balance > 0) { uint256 nextTokenId = tokenId + 1; if (_owners[nextTokenId] == address(0) && nextTokenId <= _totalSupply) { _owners[nextTokenId] = from; } } } emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId, address owner) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(owner, 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; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev 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 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (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 pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../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`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"SVS_HOLDERS_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SVS_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SVS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SVS_PRICE_TIER1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SVS_PRICE_TIER2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SVS_PUBLIC_MAX_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SVS_TEAM_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SVS_WHITELIST_MAX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addressState","outputs":[{"components":[{"internalType":"uint64","name":"balance","type":"uint64"},{"internalType":"uint16","name":"usedTier1","type":"uint16"},{"internalType":"uint16","name":"usedTier2","type":"uint16"},{"internalType":"bool","name":"usedWhitelist","type":"bool"}],"internalType":"struct ERC721SVS.OwnerData","name":"ownerData","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","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":"holdersCounter","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"to","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mintTeamTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"purchasePresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint16","name":"tier1","type":"uint16"},{"internalType":"uint16","name":"tier2","type":"uint16"},{"internalType":"uint16","name":"tier1Max","type":"uint16"},{"internalType":"uint16","name":"tier2Max","type":"uint16"},{"internalType":"uint256[]","name":"tokens","type":"uint256[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"purchasePresaleWithDiscount","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"purchasePublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint16","name":"tier1","type":"uint16"},{"internalType":"uint16","name":"tier2","type":"uint16"},{"internalType":"uint16","name":"tier1Max","type":"uint16"},{"internalType":"uint16","name":"tier2Max","type":"uint16"},{"internalType":"bytes32","name":"nonce","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"purchasePublicWithDiscount","outputs":[],"stateMutability":"payable","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":"saleState","outputs":[{"internalType":"enum SneakyVampiressSyndicate.SaleState","name":"","type":"uint8"}],"stateMutability":"view","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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum SneakyVampiressSyndicate.SaleState","name":"newState","type":"uint8"}],"name":"setSaleState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigner","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamCounter","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"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":[{"internalType":"uint256[]","name":"tokens","type":"uint256[]"}],"name":"unclaimedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistCounter","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052601f60808190527f68747470733a2f2f7376732e67672f6170692f76322f6d657461646174612f0060a090815262000040916008919062000165565b50600980546001600160a01b031916736d821f67bbd6961f42a5dde6fd99360e1ab123451790553480156200007457600080fd5b50604080518082018252601a81527f536e65616b792056616d7069726573732053796e64696361746500000000000060208083019182528351808501909452600484526329ab299960e11b908401528151919291620000d69160009162000165565b508051620000ec90600190602084019062000165565b50505062000109620001036200010f60201b60201c565b62000113565b62000248565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000173906200020b565b90600052602060002090601f016020900481019282620001975760008555620001e2565b82601f10620001b257805160ff1916838001178555620001e2565b82800160010185558215620001e2579182015b82811115620001e2578251825591602001919060010190620001c5565b50620001f0929150620001f4565b5090565b5b80821115620001f05760008155600101620001f5565b600181811c908216806200022057607f821691505b602082108114156200024257634e487b7160e01b600052602260045260246000fd5b50919050565b613b0280620002586000396000f3fe6080604052600436106102675760003560e01c80636352211e11610144578063b14d0f85116100b6578063e985e9c51161007a578063e985e9c5146107db578063eb3d2cd614610824578063eb5f40cf14610837578063ebd2facc14610857578063f2fde38b1461086d578063f83d08ba1461088d57600080fd5b8063b14d0f851461074f578063b88d4fde14610764578063c87b56dd14610784578063cf309012146107a4578063dbf314cc146107c557600080fd5b8063715018a611610108578063715018a6146106c15780638da5cb5b146106d657806395d89b41146106f45780639f9053ef14610709578063a22cb4651461071c578063b04eef471461073c57600080fd5b80636352211e1461062e5780636a952ade1461064e5780636c0360eb1461066a5780636fbe56171461067f57806370a08231146106a157600080fd5b806326f27e6d116101dd5780634f7818fc116101a15780634f7818fc1461056b57806355216e7e1461059857806355f804b3146105ab5780635a67de07146105cb5780635d505a04146105eb578063603f4d521461060057600080fd5b806326f27e6d146104c9578063300abab3146104fe57806335eb2be2146105145780633ccfd60b1461053657806342842e0e1461054b57600080fd5b8063095ea7b31161022f578063095ea7b31461034757806313d9f0051461036757806318160ddd146103835780631ac8ff0114610398578063238ac9331461048957806323b872dd146104a957600080fd5b806301ffc9a71461026c578063046dc166146102a157806306fdde03146102c3578063081812fc146102e5578063083335981461031d575b600080fd5b34801561027857600080fd5b5061028c6102873660046133fd565b6108a2565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b506102c16102bc36600461313c565b6108f4565b005b3480156102cf57600080fd5b506102d8610949565b60405161029891906137fc565b3480156102f157600080fd5b50610305610300366004613487565b6109db565b6040516001600160a01b039091168152602001610298565b34801561032957600080fd5b506103396702386f26fc10000081565b604051908152602001610298565b34801561035357600080fd5b506102c16103623660046132d1565b610a63565b34801561037357600080fd5b506103396701aa535d3d0c000081565b34801561038f57600080fd5b50600254610339565b3480156103a457600080fd5b506104426103b336600461313c565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b0316600090815260046020908152604091829020825160808101845290546001600160401b038116825261ffff600160401b8204811693830193909352600160501b81049092169281019290925260ff600160601b909104161515606082015290565b6040805182516001600160401b0316815260208084015161ffff90811691830191909152838301511691810191909152606091820151151591810191909152608001610298565b34801561049557600080fd5b50600954610305906001600160a01b031681565b3480156104b557600080fd5b506102c16104c4366004613188565b610b7a565b3480156104d557600080fd5b506009546104eb90600160b01b900461ffff1681565b60405161ffff9091168152602001610298565b34801561050a57600080fd5b506103396122b881565b34801561052057600080fd5b506009546104eb90600160c01b900461ffff1681565b34801561054257600080fd5b506102c1610b85565b34801561055757600080fd5b506102c1610566366004613188565b610da5565b34801561057757600080fd5b5061058b610586366004613362565b610dc0565b6040516102989190613790565b6102c16105a63660046133a1565b610ec9565b3480156105b757600080fd5b506102c16105c6366004613454565b61124a565b3480156105d757600080fd5b506102c16105e6366004613435565b6112d0565b3480156105f757600080fd5b5061033960c881565b34801561060c57600080fd5b5060095461062190600160d01b900460ff1681565b60405161029891906137d4565b34801561063a57600080fd5b50610305610649366004613487565b611335565b34801561065a57600080fd5b5061033967011c37937e08000081565b34801561067657600080fd5b506102d86113e8565b34801561068b57600080fd5b506009546104eb90600160a01b900461ffff1681565b3480156106ad57600080fd5b506103396106bc36600461313c565b611476565b3480156106cd57600080fd5b506102c1611506565b3480156106e257600080fd5b506007546001600160a01b0316610305565b34801561070057600080fd5b506102d861153c565b6102c161071736600461359d565b61154b565b34801561072857600080fd5b506102c1610737366004613297565b61195f565b6102c161074a36600461349f565b61196a565b34801561075b57600080fd5b50610339600381565b34801561077057600080fd5b506102c161077f3660046131c3565b611bae565b34801561079057600080fd5b506102d861079f366004613487565b611bba565b3480156107b057600080fd5b5060095461028c90600160d81b900460ff1681565b3480156107d157600080fd5b5061033961303981565b3480156107e757600080fd5b5061028c6107f6366004613156565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6102c16108323660046134e3565b611c85565b34801561084357600080fd5b506102c16108523660046132fa565b6120c9565b34801561086357600080fd5b5061033961076c81565b34801561087957600080fd5b506102c161088836600461313c565b612265565b34801561089957600080fd5b506102c1612300565b60006001600160e01b031982166380ac58cd60e01b14806108d357506001600160e01b03198216635b5e139f60e01b145b806108ee57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6007546001600160a01b031633146109275760405162461bcd60e51b815260040161091e9061388c565b60405180910390fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610958906139e8565b80601f0160208091040260200160405190810160405280929190818152602001828054610984906139e8565b80156109d15780601f106109a6576101008083540402835291602001916109d1565b820191906000526020600020905b8154815290600101906020018083116109b457829003601f168201915b5050505050905090565b60006109e68261233f565b610a475760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161091e565b506000908152600560205260409020546001600160a01b031690565b6000610a6e82611335565b9050806001600160a01b0316836001600160a01b03161415610adc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161091e565b336001600160a01b0382161480610af85750610af881336107f6565b610b6a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161091e565b610b75838383612356565b505050565b610b758383836123b2565b6007546001600160a01b03163314610baf5760405162461bcd60e51b815260040161091e9061388c565b732c65908d37bf90eaa95506b42758613f6c1b92996108fc6064610bd447600f613986565b610bde9190613972565b6040518115909202916000818181858888f19350505050158015610c06573d6000803e3d6000fd5b506000610c14600647613972565b60405190915073ea68212b0450a929b14726b90550933bc12ff8139082156108fc029083906000818181858888f19350505050158015610c58573d6000803e3d6000fd5b50604051732772a2b7b37108fc80afb864084b7897e8f232ef9082156108fc029083906000818181858888f19350505050158015610c9a573d6000803e3d6000fd5b50604051735bb440e7948d80dec00a88fd80e374546bb2d42c9082156108fc029083906000818181858888f19350505050158015610cdc573d6000803e3d6000fd5b50604051736ff547f546bd8f4c8c4e7fb30e32b10af818ac829082156108fc029083906000818181858888f19350505050158015610d1e573d6000803e3d6000fd5b5060405173c43cb0ebb90f41f0e640ee18a0e2c6a4bb497a2a9082156108fc029083906000818181858888f19350505050158015610d60573d6000803e3d6000fd5b506040517394d58bca73953f1cec41327a24d3dd0fc388d2f7904780156108fc02916000818181858888f19350505050158015610da1573d6000803e3d6000fd5b5050565b610b7583838360405180602001604052806000815250611bae565b60606000826001600160401b03811115610dea57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610e13578160200160208202803683370190505b50905060005b83811015610ec1576000858583818110610e4357634e487b7160e01b600052603260045260246000fd5b9050602002013590508060ff16600b600883901c60238110610e7557634e487b7160e01b600052603260045260246000fd5b01546001911c16610eae5780838381518110610ea157634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b5080610eb981613a45565b915050610e19565b509392505050565b6001600954600160d01b900460ff166002811115610ef757634e487b7160e01b600052602160045260246000fd5b14610f145760405162461bcd60e51b815260040161091e9061380f565b610f2160c86130396139a5565b600954600254600160c01b90910461ffff1690610f3f90869061395a565b610f4991906139a5565b1115610f675760405162461bcd60e51b815260040161091e906138c1565b6009546040516001600160a01b0390911690610fe190610f8f9033908890889060200161368a565b6040516020818303038152906040528051906020012084848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061265792505050565b6001600160a01b0316146110075760405162461bcd60e51b815260040161091e906138e4565b3461101a6702386f26fc10000085613986565b11156110385760405162461bcd60e51b815260040161091e90613910565b33600090815260046020526040812090859085908161106757634e487b7160e01b600052603260045260246000fd5b90506020020135600014156111bf578054600160601b900460ff16156110cb5760405162461bcd60e51b815260206004820152601960248201527815da1a5d195b1a5cdd08185b1c9958591e4818db185a5b5959603a1b604482015260640161091e565b8054600160601b60ff60601b199091161781556009805461076c91600160b01b90910461ffff169060166110fe83613a23565b91906101000a81548161ffff021916908361ffff16021790555061ffff16106111395760405162461bcd60e51b815260040161091e906138c1565b60018411156111ba5761114d6001856139a5565b6009805460149061116a908490600160a01b900461ffff1661393d565b92506101000a81548161ffff021916908361ffff1602179055506122b8600960149054906101000a900461ffff1661ffff1611156111ba5760405162461bcd60e51b815260040161091e906138c1565b61122f565b600980548591906014906111df908490600160a01b900461ffff1661393d565b92506101000a81548161ffff021916908361ffff1602179055506122b8600960149054906101000a900461ffff1661ffff16111561122f5760405162461bcd60e51b815260040161091e906138c1565b6112398585612673565b61124333856127c5565b5050505050565b6007546001600160a01b031633146112745760405162461bcd60e51b815260040161091e9061388c565b600954600160d81b900460ff16156112c45760405162461bcd60e51b815260206004820152601360248201527221b7b73a3930b1ba1034b9903637b1b5b2b21760691b604482015260640161091e565b610b7560088383612ff4565b6007546001600160a01b031633146112fa5760405162461bcd60e51b815260040161091e9061388c565b6009805482919060ff60d01b1916600160d01b83600281111561132d57634e487b7160e01b600052602160045260246000fd5b021790555050565b6000818152600360205260408120546001600160a01b0316806108ee5761135b8361233f565b6113b95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161091e565b5b506000199091016000818152600360205260409020549091906001600160a01b031680156113ba5792915050565b600880546113f5906139e8565b80601f0160208091040260200160405190810160405280929190818152602001828054611421906139e8565b801561146e5780601f106114435761010080835404028352916020019161146e565b820191906000526020600020905b81548152906001019060200180831161145157829003601f168201915b505050505081565b60006001600160a01b0382166114e15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161091e565b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b031633146115305760405162461bcd60e51b815260040161091e9061388c565b61153a60006128d6565b565b606060018054610958906139e8565b6002600954600160d01b900460ff16600281111561157957634e487b7160e01b600052602160045260246000fd5b146115965760405162461bcd60e51b815260040161091e9061380f565b60008661ffff168861ffff168a6115ad919061395a565b6115b7919061395a565b905060c861076c6115cc6122b86130396139a5565b6115d691906139a5565b6115e091906139a5565b60095461ffff600160c01b8204811691600160b01b8104821691600160a01b909104168461160d60025490565b611617919061395a565b61162191906139a5565b61162b91906139a5565b61163591906139a5565b11156116535760405162461bcd60e51b815260040161091e906138c1565b60038111156116975760405162461bcd60e51b815260206004820152601060248201526f2a37b79036b0b73c903a37b5b2b7399760811b604482015260640161091e565b6000848152600a602052604090205460ff16156116ec5760405162461bcd60e51b81526020600482015260136024820152722737b731b29030b63932b0b23c903ab9b2b21760691b604482015260640161091e565b6000848152600a60209081526040918290208054600160ff1990911617905560095491516bffffffffffffffffffffffff193360601b1691810191909152603481018b90526001600160f01b031960f08b811b821660548401528a811b8216605684015289811b8216605884015288901b16605a820152605c81018690526001600160a01b03909116906117cf90607c016040516020818303038152906040528051906020012085858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061265792505050565b6001600160a01b0316146117f55760405162461bcd60e51b815260040161091e906138e4565b3461180c67011c37937e08000061ffff8a16613986565b6118226701aa535d3d0c000061ffff8c16613986565b6118346702386f26fc1000008d613986565b61183e919061395a565b611848919061395a565b11156118665760405162461bcd60e51b815260040161091e90613910565b3360009081526004602052604081208054909190611890908b90600160401b900461ffff1661393d565b82549091506000906118ae908b90600160501b900461ffff1661393d565b90508861ffff168261ffff16111580156118d057508761ffff168161ffff1611155b6119125760405162461bcd60e51b81526020600482015260136024820152722234b9b1b7bab73a399032bc31b2b2b232b21760691b604482015260640161091e565b825461ffff828116600160501b0261ffff60501b19918516600160401b029190911663ffffffff60401b199092169190911717835561195133856127c5565b505050505050505050505050565b610da1338383612928565b6002600954600160d01b900460ff16600281111561199857634e487b7160e01b600052602160045260246000fd5b146119b55760405162461bcd60e51b815260040161091e9061380f565b60c861076c6119c86122b86130396139a5565b6119d291906139a5565b6119dc91906139a5565b60095460025461ffff600160c01b8304811692600160b01b8104821692600160a01b90910490911690611a1090899061395a565b611a1a91906139a5565b611a2491906139a5565b611a2e91906139a5565b1115611a4c5760405162461bcd60e51b815260040161091e906138c1565b6003841115611a905760405162461bcd60e51b815260206004820152601060248201526f2a37b79036b0b73c903a37b5b2b7399760811b604482015260640161091e565b6000838152600a602052604090205460ff1615611ae55760405162461bcd60e51b81526020600482015260136024820152722737b731b29030b63932b0b23c903ab9b2b21760691b604482015260640161091e565b6000838152600a6020908152604091829020805460ff1916600117905560095491513360601b6bffffffffffffffffffffffff19169181019190915260348101869052605481018590526001600160a01b0390911690611b4790607401610f8f565b6001600160a01b031614611b6d5760405162461bcd60e51b815260040161091e906138e4565b34611b806702386f26fc10000086613986565b1115611b9e5760405162461bcd60e51b815260040161091e90613910565b611ba833856127c5565b50505050565b611ba8848484846129f7565b6060611bc58261233f565b611c295760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161091e565b6000611c33612a2a565b90506000815111611c535760405180602001604052806000815250611c7e565b80611c5d84612a39565b604051602001611c6e929190613724565b6040516020818303038152906040525b9392505050565b6001600954600160d01b900460ff166002811115611cb357634e487b7160e01b600052602160045260246000fd5b14611cd05760405162461bcd60e51b815260040161091e9061380f565b611cdd60c86130396139a5565b600954600254600160c01b90910461ffff1690611cfb90869061395a565b611d0591906139a5565b1115611d235760405162461bcd60e51b815260040161091e906138c1565b6009546040516001600160a01b0390911690611d5590610f8f9033908d908d908d908d908d908d908d906020016136b8565b6001600160a01b031614611d7b5760405162461bcd60e51b815260040161091e906138e4565b34611d9267011c37937e08000061ffff8a16613986565b611da86701aa535d3d0c000061ffff8c16613986565b611dba6702386f26fc1000008d613986565b611dc4919061395a565b611dce919061395a565b1115611dec5760405162461bcd60e51b815260040161091e90613910565b336000908152600460205260408120908590859081611e1b57634e487b7160e01b600052603260045260246000fd5b9050602002013560001415611f73578054600160601b900460ff1615611e7f5760405162461bcd60e51b815260206004820152601960248201527815da1a5d195b1a5cdd08185b1c9958591e4818db185a5b5959603a1b604482015260640161091e565b8054600160601b60ff60601b199091161781556009805461076c91600160b01b90910461ffff16906016611eb283613a23565b91906101000a81548161ffff021916908361ffff16021790555061ffff1610611eed5760405162461bcd60e51b815260040161091e906138c1565b6001841115611f6e57611f016001856139a5565b60098054601490611f1e908490600160a01b900461ffff1661393d565b92506101000a81548161ffff021916908361ffff1602179055506122b8600960149054906101000a900461ffff1661ffff161115611f6e5760405162461bcd60e51b815260040161091e906138c1565b611fe3565b60098054859190601490611f93908490600160a01b900461ffff1661393d565b92506101000a81548161ffff021916908361ffff1602179055506122b8600960149054906101000a900461ffff1661ffff161115611fe35760405162461bcd60e51b815260040161091e906138c1565b611fed8585612673565b8054600090612008908b90600160401b900461ffff1661393d565b8254909150600090612026908b90600160501b900461ffff1661393d565b90508861ffff168261ffff161115801561204857508761ffff168161ffff1611155b61208a5760405162461bcd60e51b81526020600482015260136024820152722234b9b1b7bab73a399032bc31b2b2b232b21760691b604482015260640161091e565b825461ffff828116600160501b0261ffff60501b19918516600160401b029190911663ffffffff60401b199092169190911717835561195133876127c5565b6007546001600160a01b031633146120f35760405162461bcd60e51b815260040161091e9061388c565b6000805b828110156121455783838281811061211f57634e487b7160e01b600052603260045260246000fd5b9050602002013582612131919061395a565b91508061213d81613a45565b9150506120f7565b5080600960188282829054906101000a900461ffff16612165919061393d565b92506101000a81548161ffff021916908361ffff16021790555060c8600960189054906101000a900461ffff1661ffff1611156121dc5760405162461bcd60e51b81526020600482015260156024820152742a32b0b6903a37b5b2b7399039b7b6321037baba1760591b604482015260640161091e565b60005b8481101561225d5761224b86868381811061220a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061221f919061313c565b85858481811061223f57634e487b7160e01b600052603260045260246000fd5b905060200201356127c5565b8061225581613a45565b9150506121df565b505050505050565b6007546001600160a01b0316331461228f5760405162461bcd60e51b815260040161091e9061388c565b6001600160a01b0381166122f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161091e565b6122fd816128d6565b50565b6007546001600160a01b0316331461232a5760405162461bcd60e51b815260040161091e9061388c565b6009805460ff60d81b1916600160d81b179055565b6000600182101580156108ee575050600254101590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b826001600160a01b03166123c582611335565b6001600160a01b0316146124295760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161091e565b6001600160a01b03821661248b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161091e565b336001600160a01b03841614806124b25750336124a7826109db565b6001600160a01b0316145b806124c257506124c283336107f6565b6125285760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606482015260840161091e565b61253460008285612356565b6001600160a01b038381166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b03928316600019018084169182179094559689168087528487208054928316928416600101909316919091179091558685526003909352922080546001600160a01b0319169091179055901561261057600182016000818152600360205260409020546001600160a01b03161580156125e157506002548111155b1561260e57600081815260036020526040902080546001600160a01b0319166001600160a01b0387161790555b505b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008060006126668585612b5a565b91509150610ec181612bca565b6000600019815b838110156127905760008585838181106126a457634e487b7160e01b600052603260045260246000fd5b90506020020135905080600014156126bc5750612788565b600881901c838114612720576000198410156126f75784600b85602381106126f457634e487b7160e01b600052603260045260246000fd5b01555b809350600b816023811061271b57634e487b7160e01b600052603260045260246000fd5b015494505b600160ff83161b8517808614156127835760405162461bcd60e51b815260206004820152602160248201527f536f6d6520746f6b656e73207765726520616c726561647920636c61696d65646044820152601760f91b606482015260840161091e565b945050505b60010161267a565b50600019811015611ba85781600b82602381106127bd57634e487b7160e01b600052603260045260246000fd5b015550505050565b600081116128155760405162461bcd60e51b815260206004820152601a60248201527f4552433732313a206d696e74207a65726f207175616e74697479000000000000604482015260640161091e565b600280548281019091556001600160a01b038316600090815260046020526040812080546001600160401b0380821686011667ffffffffffffffff199091161790555b82811015611ba857600190910190600f811661289657600082815260036020526040902080546001600160a01b0319166001600160a01b0386161790555b60405182906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101612858565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561298a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161091e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612a028484846123b2565b612a0e84848484612dcb565b611ba85760405162461bcd60e51b815260040161091e9061383a565b606060088054610958906139e8565b606081612a5d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a875780612a7181613a45565b9150612a809050600a83613972565b9150612a61565b6000816001600160401b03811115612aaf57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ad9576020820181803683370190505b5090505b8415612b5257612aee6001836139a5565b9150612afb600a86613a60565b612b0690603061395a565b60f81b818381518110612b2957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b4b600a86613972565b9450612add565b949350505050565b600080825160411415612b915760208301516040840151606085015160001a612b8587828585612ed8565b94509450505050612bc3565b825160401415612bbb5760208301516040840151612bb0868383612fc5565b935093505050612bc3565b506000905060025b9250929050565b6000816004811115612bec57634e487b7160e01b600052602160045260246000fd5b1415612bf55750565b6001816004811115612c1757634e487b7160e01b600052602160045260246000fd5b1415612c655760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161091e565b6002816004811115612c8757634e487b7160e01b600052602160045260246000fd5b1415612cd55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161091e565b6003816004811115612cf757634e487b7160e01b600052602160045260246000fd5b1415612d505760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161091e565b6004816004811115612d7257634e487b7160e01b600052602160045260246000fd5b14156122fd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161091e565b60006001600160a01b0384163b15612ecd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e0f903390899088908890600401613753565b602060405180830381600087803b158015612e2957600080fd5b505af1925050508015612e59575060408051601f3d908101601f19168201909252612e5691810190613419565b60015b612eb3573d808015612e87576040519150601f19603f3d011682016040523d82523d6000602084013e612e8c565b606091505b508051612eab5760405162461bcd60e51b815260040161091e9061383a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612b52565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612f0f5750600090506003612fbc565b8460ff16601b14158015612f2757508460ff16601c14155b15612f385750600090506004612fbc565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612f8c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612fb557600060019250925050612fbc565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612fe687828885612ed8565b935093505050935093915050565b828054613000906139e8565b90600052602060002090601f0160209004810192826130225760008555613068565b82601f1061303b5782800160ff19823516178555613068565b82800160010185558215613068579182015b8281111561306857823582559160200191906001019061304d565b50613074929150613078565b5090565b5b808211156130745760008155600101613079565b80356001600160a01b03811681146130a457600080fd5b919050565b60008083601f8401126130ba578081fd5b5081356001600160401b038111156130d0578182fd5b6020830191508360208260051b8501011115612bc357600080fd5b60008083601f8401126130fc578182fd5b5081356001600160401b03811115613112578182fd5b602083019150836020828501011115612bc357600080fd5b803561ffff811681146130a457600080fd5b60006020828403121561314d578081fd5b611c7e8261308d565b60008060408385031215613168578081fd5b6131718361308d565b915061317f6020840161308d565b90509250929050565b60008060006060848603121561319c578081fd5b6131a58461308d565b92506131b36020850161308d565b9150604084013590509250925092565b600080600080608085870312156131d8578081fd5b6131e18561308d565b93506131ef6020860161308d565b92506040850135915060608501356001600160401b0380821115613211578283fd5b818701915087601f830112613224578283fd5b81358181111561323657613236613aa0565b604051601f8201601f19908116603f0116810190838211818310171561325e5761325e613aa0565b816040528281528a6020848701011115613276578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156132a9578182fd5b6132b28361308d565b9150602083013580151581146132c6578182fd5b809150509250929050565b600080604083850312156132e3578182fd5b6132ec8361308d565b946020939093013593505050565b6000806000806040858703121561330f578384fd5b84356001600160401b0380821115613325578586fd5b613331888389016130a9565b90965094506020870135915080821115613349578384fd5b50613356878288016130a9565b95989497509550505050565b60008060208385031215613374578182fd5b82356001600160401b03811115613389578283fd5b613395858286016130a9565b90969095509350505050565b600080600080604085870312156133b6578384fd5b84356001600160401b03808211156133cc578586fd5b6133d8888389016130a9565b909650945060208701359150808211156133f0578384fd5b50613356878288016130eb565b60006020828403121561340e578081fd5b8135611c7e81613ab6565b60006020828403121561342a578081fd5b8151611c7e81613ab6565b600060208284031215613446578081fd5b813560038110611c7e578182fd5b60008060208385031215613466578182fd5b82356001600160401b0381111561347b578283fd5b613395858286016130eb565b600060208284031215613498578081fd5b5035919050565b600080600080606085870312156134b4578182fd5b843593506020850135925060408501356001600160401b038111156134d7578283fd5b613356878288016130eb565b600080600080600080600080600060e08a8c031215613500578687fd5b8935985061351060208b0161312a565b975061351e60408b0161312a565b965061352c60608b0161312a565b955061353a60808b0161312a565b945060a08a01356001600160401b0380821115613555578586fd5b6135618d838e016130a9565b909650945060c08c0135915080821115613579578384fd5b506135868c828d016130eb565b915080935050809150509295985092959850929598565b60008060008060008060008060e0898b0312156135b8578182fd5b883597506135c860208a0161312a565b96506135d660408a0161312a565b95506135e460608a0161312a565b94506135f260808a0161312a565b935060a0890135925060c08901356001600160401b03811115613613578283fd5b61361f8b828c016130eb565b999c989b5096995094979396929594505050565b60006001600160fb1b03831115613648578081fd5b8260051b80838637939093019283525090919050565b600081518084526136768160208601602086016139bc565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff198460601b16815260006136af601483018486613633565b95945050505050565b6bffffffffffffffffffffffff198960601b168152876014820152600061ffff60f01b808960f01b166034840152808860f01b166036840152808760f01b166038840152808660f01b16603a84015250613716603c83018486613633565b9a9950505050505050505050565b600083516137368184602088016139bc565b83519083019061374a8183602088016139bc565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906137869083018461365e565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156137c8578351835292840192918401916001016137ac565b50909695505050505050565b60208101600383106137f657634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000611c7e602083018461365e565b60208082526011908201527029b0b6329034b9903737ba103634bb329760791b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526009908201526829b7b6321037baba1760b91b604082015260600190565b60208082526012908201527124b73b30b634b21039b4b3b730ba3ab9329760711b604082015260600190565b60208082526013908201527224b739bab33334b1b4b2b73a10333ab732399760691b604082015260600190565b600061ffff80831681851680830382111561374a5761374a613a74565b6000821982111561396d5761396d613a74565b500190565b60008261398157613981613a8a565b500490565b60008160001904831182151516156139a0576139a0613a74565b500290565b6000828210156139b7576139b7613a74565b500390565b60005b838110156139d75781810151838201526020016139bf565b83811115611ba85750506000910152565b600181811c908216806139fc57607f821691505b60208210811415613a1d57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613a3b57613a3b613a74565b6001019392505050565b6000600019821415613a5957613a59613a74565b5060010190565b600082613a6f57613a6f613a8a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146122fd57600080fdfea264697066735822122028e6a097010a5d7101cc5c8060246c282f05d38d8b1258da6a5e5c4e569897d964736f6c63430008040033
Deployed Bytecode
0x6080604052600436106102675760003560e01c80636352211e11610144578063b14d0f85116100b6578063e985e9c51161007a578063e985e9c5146107db578063eb3d2cd614610824578063eb5f40cf14610837578063ebd2facc14610857578063f2fde38b1461086d578063f83d08ba1461088d57600080fd5b8063b14d0f851461074f578063b88d4fde14610764578063c87b56dd14610784578063cf309012146107a4578063dbf314cc146107c557600080fd5b8063715018a611610108578063715018a6146106c15780638da5cb5b146106d657806395d89b41146106f45780639f9053ef14610709578063a22cb4651461071c578063b04eef471461073c57600080fd5b80636352211e1461062e5780636a952ade1461064e5780636c0360eb1461066a5780636fbe56171461067f57806370a08231146106a157600080fd5b806326f27e6d116101dd5780634f7818fc116101a15780634f7818fc1461056b57806355216e7e1461059857806355f804b3146105ab5780635a67de07146105cb5780635d505a04146105eb578063603f4d521461060057600080fd5b806326f27e6d146104c9578063300abab3146104fe57806335eb2be2146105145780633ccfd60b1461053657806342842e0e1461054b57600080fd5b8063095ea7b31161022f578063095ea7b31461034757806313d9f0051461036757806318160ddd146103835780631ac8ff0114610398578063238ac9331461048957806323b872dd146104a957600080fd5b806301ffc9a71461026c578063046dc166146102a157806306fdde03146102c3578063081812fc146102e5578063083335981461031d575b600080fd5b34801561027857600080fd5b5061028c6102873660046133fd565b6108a2565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b506102c16102bc36600461313c565b6108f4565b005b3480156102cf57600080fd5b506102d8610949565b60405161029891906137fc565b3480156102f157600080fd5b50610305610300366004613487565b6109db565b6040516001600160a01b039091168152602001610298565b34801561032957600080fd5b506103396702386f26fc10000081565b604051908152602001610298565b34801561035357600080fd5b506102c16103623660046132d1565b610a63565b34801561037357600080fd5b506103396701aa535d3d0c000081565b34801561038f57600080fd5b50600254610339565b3480156103a457600080fd5b506104426103b336600461313c565b604080516080810182526000808252602082018190529181018290526060810191909152506001600160a01b0316600090815260046020908152604091829020825160808101845290546001600160401b038116825261ffff600160401b8204811693830193909352600160501b81049092169281019290925260ff600160601b909104161515606082015290565b6040805182516001600160401b0316815260208084015161ffff90811691830191909152838301511691810191909152606091820151151591810191909152608001610298565b34801561049557600080fd5b50600954610305906001600160a01b031681565b3480156104b557600080fd5b506102c16104c4366004613188565b610b7a565b3480156104d557600080fd5b506009546104eb90600160b01b900461ffff1681565b60405161ffff9091168152602001610298565b34801561050a57600080fd5b506103396122b881565b34801561052057600080fd5b506009546104eb90600160c01b900461ffff1681565b34801561054257600080fd5b506102c1610b85565b34801561055757600080fd5b506102c1610566366004613188565b610da5565b34801561057757600080fd5b5061058b610586366004613362565b610dc0565b6040516102989190613790565b6102c16105a63660046133a1565b610ec9565b3480156105b757600080fd5b506102c16105c6366004613454565b61124a565b3480156105d757600080fd5b506102c16105e6366004613435565b6112d0565b3480156105f757600080fd5b5061033960c881565b34801561060c57600080fd5b5060095461062190600160d01b900460ff1681565b60405161029891906137d4565b34801561063a57600080fd5b50610305610649366004613487565b611335565b34801561065a57600080fd5b5061033967011c37937e08000081565b34801561067657600080fd5b506102d86113e8565b34801561068b57600080fd5b506009546104eb90600160a01b900461ffff1681565b3480156106ad57600080fd5b506103396106bc36600461313c565b611476565b3480156106cd57600080fd5b506102c1611506565b3480156106e257600080fd5b506007546001600160a01b0316610305565b34801561070057600080fd5b506102d861153c565b6102c161071736600461359d565b61154b565b34801561072857600080fd5b506102c1610737366004613297565b61195f565b6102c161074a36600461349f565b61196a565b34801561075b57600080fd5b50610339600381565b34801561077057600080fd5b506102c161077f3660046131c3565b611bae565b34801561079057600080fd5b506102d861079f366004613487565b611bba565b3480156107b057600080fd5b5060095461028c90600160d81b900460ff1681565b3480156107d157600080fd5b5061033961303981565b3480156107e757600080fd5b5061028c6107f6366004613156565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6102c16108323660046134e3565b611c85565b34801561084357600080fd5b506102c16108523660046132fa565b6120c9565b34801561086357600080fd5b5061033961076c81565b34801561087957600080fd5b506102c161088836600461313c565b612265565b34801561089957600080fd5b506102c1612300565b60006001600160e01b031982166380ac58cd60e01b14806108d357506001600160e01b03198216635b5e139f60e01b145b806108ee57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6007546001600160a01b031633146109275760405162461bcd60e51b815260040161091e9061388c565b60405180910390fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b606060008054610958906139e8565b80601f0160208091040260200160405190810160405280929190818152602001828054610984906139e8565b80156109d15780601f106109a6576101008083540402835291602001916109d1565b820191906000526020600020905b8154815290600101906020018083116109b457829003601f168201915b5050505050905090565b60006109e68261233f565b610a475760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161091e565b506000908152600560205260409020546001600160a01b031690565b6000610a6e82611335565b9050806001600160a01b0316836001600160a01b03161415610adc5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161091e565b336001600160a01b0382161480610af85750610af881336107f6565b610b6a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161091e565b610b75838383612356565b505050565b610b758383836123b2565b6007546001600160a01b03163314610baf5760405162461bcd60e51b815260040161091e9061388c565b732c65908d37bf90eaa95506b42758613f6c1b92996108fc6064610bd447600f613986565b610bde9190613972565b6040518115909202916000818181858888f19350505050158015610c06573d6000803e3d6000fd5b506000610c14600647613972565b60405190915073ea68212b0450a929b14726b90550933bc12ff8139082156108fc029083906000818181858888f19350505050158015610c58573d6000803e3d6000fd5b50604051732772a2b7b37108fc80afb864084b7897e8f232ef9082156108fc029083906000818181858888f19350505050158015610c9a573d6000803e3d6000fd5b50604051735bb440e7948d80dec00a88fd80e374546bb2d42c9082156108fc029083906000818181858888f19350505050158015610cdc573d6000803e3d6000fd5b50604051736ff547f546bd8f4c8c4e7fb30e32b10af818ac829082156108fc029083906000818181858888f19350505050158015610d1e573d6000803e3d6000fd5b5060405173c43cb0ebb90f41f0e640ee18a0e2c6a4bb497a2a9082156108fc029083906000818181858888f19350505050158015610d60573d6000803e3d6000fd5b506040517394d58bca73953f1cec41327a24d3dd0fc388d2f7904780156108fc02916000818181858888f19350505050158015610da1573d6000803e3d6000fd5b5050565b610b7583838360405180602001604052806000815250611bae565b60606000826001600160401b03811115610dea57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610e13578160200160208202803683370190505b50905060005b83811015610ec1576000858583818110610e4357634e487b7160e01b600052603260045260246000fd5b9050602002013590508060ff16600b600883901c60238110610e7557634e487b7160e01b600052603260045260246000fd5b01546001911c16610eae5780838381518110610ea157634e487b7160e01b600052603260045260246000fd5b6020026020010181815250505b5080610eb981613a45565b915050610e19565b509392505050565b6001600954600160d01b900460ff166002811115610ef757634e487b7160e01b600052602160045260246000fd5b14610f145760405162461bcd60e51b815260040161091e9061380f565b610f2160c86130396139a5565b600954600254600160c01b90910461ffff1690610f3f90869061395a565b610f4991906139a5565b1115610f675760405162461bcd60e51b815260040161091e906138c1565b6009546040516001600160a01b0390911690610fe190610f8f9033908890889060200161368a565b6040516020818303038152906040528051906020012084848080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061265792505050565b6001600160a01b0316146110075760405162461bcd60e51b815260040161091e906138e4565b3461101a6702386f26fc10000085613986565b11156110385760405162461bcd60e51b815260040161091e90613910565b33600090815260046020526040812090859085908161106757634e487b7160e01b600052603260045260246000fd5b90506020020135600014156111bf578054600160601b900460ff16156110cb5760405162461bcd60e51b815260206004820152601960248201527815da1a5d195b1a5cdd08185b1c9958591e4818db185a5b5959603a1b604482015260640161091e565b8054600160601b60ff60601b199091161781556009805461076c91600160b01b90910461ffff169060166110fe83613a23565b91906101000a81548161ffff021916908361ffff16021790555061ffff16106111395760405162461bcd60e51b815260040161091e906138c1565b60018411156111ba5761114d6001856139a5565b6009805460149061116a908490600160a01b900461ffff1661393d565b92506101000a81548161ffff021916908361ffff1602179055506122b8600960149054906101000a900461ffff1661ffff1611156111ba5760405162461bcd60e51b815260040161091e906138c1565b61122f565b600980548591906014906111df908490600160a01b900461ffff1661393d565b92506101000a81548161ffff021916908361ffff1602179055506122b8600960149054906101000a900461ffff1661ffff16111561122f5760405162461bcd60e51b815260040161091e906138c1565b6112398585612673565b61124333856127c5565b5050505050565b6007546001600160a01b031633146112745760405162461bcd60e51b815260040161091e9061388c565b600954600160d81b900460ff16156112c45760405162461bcd60e51b815260206004820152601360248201527221b7b73a3930b1ba1034b9903637b1b5b2b21760691b604482015260640161091e565b610b7560088383612ff4565b6007546001600160a01b031633146112fa5760405162461bcd60e51b815260040161091e9061388c565b6009805482919060ff60d01b1916600160d01b83600281111561132d57634e487b7160e01b600052602160045260246000fd5b021790555050565b6000818152600360205260408120546001600160a01b0316806108ee5761135b8361233f565b6113b95760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161091e565b5b506000199091016000818152600360205260409020549091906001600160a01b031680156113ba5792915050565b600880546113f5906139e8565b80601f0160208091040260200160405190810160405280929190818152602001828054611421906139e8565b801561146e5780601f106114435761010080835404028352916020019161146e565b820191906000526020600020905b81548152906001019060200180831161145157829003601f168201915b505050505081565b60006001600160a01b0382166114e15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161091e565b506001600160a01b03166000908152600460205260409020546001600160401b031690565b6007546001600160a01b031633146115305760405162461bcd60e51b815260040161091e9061388c565b61153a60006128d6565b565b606060018054610958906139e8565b6002600954600160d01b900460ff16600281111561157957634e487b7160e01b600052602160045260246000fd5b146115965760405162461bcd60e51b815260040161091e9061380f565b60008661ffff168861ffff168a6115ad919061395a565b6115b7919061395a565b905060c861076c6115cc6122b86130396139a5565b6115d691906139a5565b6115e091906139a5565b60095461ffff600160c01b8204811691600160b01b8104821691600160a01b909104168461160d60025490565b611617919061395a565b61162191906139a5565b61162b91906139a5565b61163591906139a5565b11156116535760405162461bcd60e51b815260040161091e906138c1565b60038111156116975760405162461bcd60e51b815260206004820152601060248201526f2a37b79036b0b73c903a37b5b2b7399760811b604482015260640161091e565b6000848152600a602052604090205460ff16156116ec5760405162461bcd60e51b81526020600482015260136024820152722737b731b29030b63932b0b23c903ab9b2b21760691b604482015260640161091e565b6000848152600a60209081526040918290208054600160ff1990911617905560095491516bffffffffffffffffffffffff193360601b1691810191909152603481018b90526001600160f01b031960f08b811b821660548401528a811b8216605684015289811b8216605884015288901b16605a820152605c81018690526001600160a01b03909116906117cf90607c016040516020818303038152906040528051906020012085858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061265792505050565b6001600160a01b0316146117f55760405162461bcd60e51b815260040161091e906138e4565b3461180c67011c37937e08000061ffff8a16613986565b6118226701aa535d3d0c000061ffff8c16613986565b6118346702386f26fc1000008d613986565b61183e919061395a565b611848919061395a565b11156118665760405162461bcd60e51b815260040161091e90613910565b3360009081526004602052604081208054909190611890908b90600160401b900461ffff1661393d565b82549091506000906118ae908b90600160501b900461ffff1661393d565b90508861ffff168261ffff16111580156118d057508761ffff168161ffff1611155b6119125760405162461bcd60e51b81526020600482015260136024820152722234b9b1b7bab73a399032bc31b2b2b232b21760691b604482015260640161091e565b825461ffff828116600160501b0261ffff60501b19918516600160401b029190911663ffffffff60401b199092169190911717835561195133856127c5565b505050505050505050505050565b610da1338383612928565b6002600954600160d01b900460ff16600281111561199857634e487b7160e01b600052602160045260246000fd5b146119b55760405162461bcd60e51b815260040161091e9061380f565b60c861076c6119c86122b86130396139a5565b6119d291906139a5565b6119dc91906139a5565b60095460025461ffff600160c01b8304811692600160b01b8104821692600160a01b90910490911690611a1090899061395a565b611a1a91906139a5565b611a2491906139a5565b611a2e91906139a5565b1115611a4c5760405162461bcd60e51b815260040161091e906138c1565b6003841115611a905760405162461bcd60e51b815260206004820152601060248201526f2a37b79036b0b73c903a37b5b2b7399760811b604482015260640161091e565b6000838152600a602052604090205460ff1615611ae55760405162461bcd60e51b81526020600482015260136024820152722737b731b29030b63932b0b23c903ab9b2b21760691b604482015260640161091e565b6000838152600a6020908152604091829020805460ff1916600117905560095491513360601b6bffffffffffffffffffffffff19169181019190915260348101869052605481018590526001600160a01b0390911690611b4790607401610f8f565b6001600160a01b031614611b6d5760405162461bcd60e51b815260040161091e906138e4565b34611b806702386f26fc10000086613986565b1115611b9e5760405162461bcd60e51b815260040161091e90613910565b611ba833856127c5565b50505050565b611ba8848484846129f7565b6060611bc58261233f565b611c295760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161091e565b6000611c33612a2a565b90506000815111611c535760405180602001604052806000815250611c7e565b80611c5d84612a39565b604051602001611c6e929190613724565b6040516020818303038152906040525b9392505050565b6001600954600160d01b900460ff166002811115611cb357634e487b7160e01b600052602160045260246000fd5b14611cd05760405162461bcd60e51b815260040161091e9061380f565b611cdd60c86130396139a5565b600954600254600160c01b90910461ffff1690611cfb90869061395a565b611d0591906139a5565b1115611d235760405162461bcd60e51b815260040161091e906138c1565b6009546040516001600160a01b0390911690611d5590610f8f9033908d908d908d908d908d908d908d906020016136b8565b6001600160a01b031614611d7b5760405162461bcd60e51b815260040161091e906138e4565b34611d9267011c37937e08000061ffff8a16613986565b611da86701aa535d3d0c000061ffff8c16613986565b611dba6702386f26fc1000008d613986565b611dc4919061395a565b611dce919061395a565b1115611dec5760405162461bcd60e51b815260040161091e90613910565b336000908152600460205260408120908590859081611e1b57634e487b7160e01b600052603260045260246000fd5b9050602002013560001415611f73578054600160601b900460ff1615611e7f5760405162461bcd60e51b815260206004820152601960248201527815da1a5d195b1a5cdd08185b1c9958591e4818db185a5b5959603a1b604482015260640161091e565b8054600160601b60ff60601b199091161781556009805461076c91600160b01b90910461ffff16906016611eb283613a23565b91906101000a81548161ffff021916908361ffff16021790555061ffff1610611eed5760405162461bcd60e51b815260040161091e906138c1565b6001841115611f6e57611f016001856139a5565b60098054601490611f1e908490600160a01b900461ffff1661393d565b92506101000a81548161ffff021916908361ffff1602179055506122b8600960149054906101000a900461ffff1661ffff161115611f6e5760405162461bcd60e51b815260040161091e906138c1565b611fe3565b60098054859190601490611f93908490600160a01b900461ffff1661393d565b92506101000a81548161ffff021916908361ffff1602179055506122b8600960149054906101000a900461ffff1661ffff161115611fe35760405162461bcd60e51b815260040161091e906138c1565b611fed8585612673565b8054600090612008908b90600160401b900461ffff1661393d565b8254909150600090612026908b90600160501b900461ffff1661393d565b90508861ffff168261ffff161115801561204857508761ffff168161ffff1611155b61208a5760405162461bcd60e51b81526020600482015260136024820152722234b9b1b7bab73a399032bc31b2b2b232b21760691b604482015260640161091e565b825461ffff828116600160501b0261ffff60501b19918516600160401b029190911663ffffffff60401b199092169190911717835561195133876127c5565b6007546001600160a01b031633146120f35760405162461bcd60e51b815260040161091e9061388c565b6000805b828110156121455783838281811061211f57634e487b7160e01b600052603260045260246000fd5b9050602002013582612131919061395a565b91508061213d81613a45565b9150506120f7565b5080600960188282829054906101000a900461ffff16612165919061393d565b92506101000a81548161ffff021916908361ffff16021790555060c8600960189054906101000a900461ffff1661ffff1611156121dc5760405162461bcd60e51b81526020600482015260156024820152742a32b0b6903a37b5b2b7399039b7b6321037baba1760591b604482015260640161091e565b60005b8481101561225d5761224b86868381811061220a57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061221f919061313c565b85858481811061223f57634e487b7160e01b600052603260045260246000fd5b905060200201356127c5565b8061225581613a45565b9150506121df565b505050505050565b6007546001600160a01b0316331461228f5760405162461bcd60e51b815260040161091e9061388c565b6001600160a01b0381166122f45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161091e565b6122fd816128d6565b50565b6007546001600160a01b0316331461232a5760405162461bcd60e51b815260040161091e9061388c565b6009805460ff60d81b1916600160d81b179055565b6000600182101580156108ee575050600254101590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b826001600160a01b03166123c582611335565b6001600160a01b0316146124295760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161091e565b6001600160a01b03821661248b5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161091e565b336001600160a01b03841614806124b25750336124a7826109db565b6001600160a01b0316145b806124c257506124c283336107f6565b6125285760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6044820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606482015260840161091e565b61253460008285612356565b6001600160a01b038381166000908152600460209081526040808320805467ffffffffffffffff198082166001600160401b03928316600019018084169182179094559689168087528487208054928316928416600101909316919091179091558685526003909352922080546001600160a01b0319169091179055901561261057600182016000818152600360205260409020546001600160a01b03161580156125e157506002548111155b1561260e57600081815260036020526040902080546001600160a01b0319166001600160a01b0387161790555b505b5080826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008060006126668585612b5a565b91509150610ec181612bca565b6000600019815b838110156127905760008585838181106126a457634e487b7160e01b600052603260045260246000fd5b90506020020135905080600014156126bc5750612788565b600881901c838114612720576000198410156126f75784600b85602381106126f457634e487b7160e01b600052603260045260246000fd5b01555b809350600b816023811061271b57634e487b7160e01b600052603260045260246000fd5b015494505b600160ff83161b8517808614156127835760405162461bcd60e51b815260206004820152602160248201527f536f6d6520746f6b656e73207765726520616c726561647920636c61696d65646044820152601760f91b606482015260840161091e565b945050505b60010161267a565b50600019811015611ba85781600b82602381106127bd57634e487b7160e01b600052603260045260246000fd5b015550505050565b600081116128155760405162461bcd60e51b815260206004820152601a60248201527f4552433732313a206d696e74207a65726f207175616e74697479000000000000604482015260640161091e565b600280548281019091556001600160a01b038316600090815260046020526040812080546001600160401b0380821686011667ffffffffffffffff199091161790555b82811015611ba857600190910190600f811661289657600082815260036020526040902080546001600160a01b0319166001600160a01b0386161790555b60405182906001600160a01b038616906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4600101612858565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b0316141561298a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161091e565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612a028484846123b2565b612a0e84848484612dcb565b611ba85760405162461bcd60e51b815260040161091e9061383a565b606060088054610958906139e8565b606081612a5d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612a875780612a7181613a45565b9150612a809050600a83613972565b9150612a61565b6000816001600160401b03811115612aaf57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ad9576020820181803683370190505b5090505b8415612b5257612aee6001836139a5565b9150612afb600a86613a60565b612b0690603061395a565b60f81b818381518110612b2957634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612b4b600a86613972565b9450612add565b949350505050565b600080825160411415612b915760208301516040840151606085015160001a612b8587828585612ed8565b94509450505050612bc3565b825160401415612bbb5760208301516040840151612bb0868383612fc5565b935093505050612bc3565b506000905060025b9250929050565b6000816004811115612bec57634e487b7160e01b600052602160045260246000fd5b1415612bf55750565b6001816004811115612c1757634e487b7160e01b600052602160045260246000fd5b1415612c655760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015260640161091e565b6002816004811115612c8757634e487b7160e01b600052602160045260246000fd5b1415612cd55760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015260640161091e565b6003816004811115612cf757634e487b7160e01b600052602160045260246000fd5b1415612d505760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b606482015260840161091e565b6004816004811115612d7257634e487b7160e01b600052602160045260246000fd5b14156122fd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b606482015260840161091e565b60006001600160a01b0384163b15612ecd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612e0f903390899088908890600401613753565b602060405180830381600087803b158015612e2957600080fd5b505af1925050508015612e59575060408051601f3d908101601f19168201909252612e5691810190613419565b60015b612eb3573d808015612e87576040519150601f19603f3d011682016040523d82523d6000602084013e612e8c565b606091505b508051612eab5760405162461bcd60e51b815260040161091e9061383a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612b52565b506001949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612f0f5750600090506003612fbc565b8460ff16601b14158015612f2757508460ff16601c14155b15612f385750600090506004612fbc565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612f8c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612fb557600060019250925050612fbc565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01612fe687828885612ed8565b935093505050935093915050565b828054613000906139e8565b90600052602060002090601f0160209004810192826130225760008555613068565b82601f1061303b5782800160ff19823516178555613068565b82800160010185558215613068579182015b8281111561306857823582559160200191906001019061304d565b50613074929150613078565b5090565b5b808211156130745760008155600101613079565b80356001600160a01b03811681146130a457600080fd5b919050565b60008083601f8401126130ba578081fd5b5081356001600160401b038111156130d0578182fd5b6020830191508360208260051b8501011115612bc357600080fd5b60008083601f8401126130fc578182fd5b5081356001600160401b03811115613112578182fd5b602083019150836020828501011115612bc357600080fd5b803561ffff811681146130a457600080fd5b60006020828403121561314d578081fd5b611c7e8261308d565b60008060408385031215613168578081fd5b6131718361308d565b915061317f6020840161308d565b90509250929050565b60008060006060848603121561319c578081fd5b6131a58461308d565b92506131b36020850161308d565b9150604084013590509250925092565b600080600080608085870312156131d8578081fd5b6131e18561308d565b93506131ef6020860161308d565b92506040850135915060608501356001600160401b0380821115613211578283fd5b818701915087601f830112613224578283fd5b81358181111561323657613236613aa0565b604051601f8201601f19908116603f0116810190838211818310171561325e5761325e613aa0565b816040528281528a6020848701011115613276578586fd5b82602086016020830137918201602001949094529598949750929550505050565b600080604083850312156132a9578182fd5b6132b28361308d565b9150602083013580151581146132c6578182fd5b809150509250929050565b600080604083850312156132e3578182fd5b6132ec8361308d565b946020939093013593505050565b6000806000806040858703121561330f578384fd5b84356001600160401b0380821115613325578586fd5b613331888389016130a9565b90965094506020870135915080821115613349578384fd5b50613356878288016130a9565b95989497509550505050565b60008060208385031215613374578182fd5b82356001600160401b03811115613389578283fd5b613395858286016130a9565b90969095509350505050565b600080600080604085870312156133b6578384fd5b84356001600160401b03808211156133cc578586fd5b6133d8888389016130a9565b909650945060208701359150808211156133f0578384fd5b50613356878288016130eb565b60006020828403121561340e578081fd5b8135611c7e81613ab6565b60006020828403121561342a578081fd5b8151611c7e81613ab6565b600060208284031215613446578081fd5b813560038110611c7e578182fd5b60008060208385031215613466578182fd5b82356001600160401b0381111561347b578283fd5b613395858286016130eb565b600060208284031215613498578081fd5b5035919050565b600080600080606085870312156134b4578182fd5b843593506020850135925060408501356001600160401b038111156134d7578283fd5b613356878288016130eb565b600080600080600080600080600060e08a8c031215613500578687fd5b8935985061351060208b0161312a565b975061351e60408b0161312a565b965061352c60608b0161312a565b955061353a60808b0161312a565b945060a08a01356001600160401b0380821115613555578586fd5b6135618d838e016130a9565b909650945060c08c0135915080821115613579578384fd5b506135868c828d016130eb565b915080935050809150509295985092959850929598565b60008060008060008060008060e0898b0312156135b8578182fd5b883597506135c860208a0161312a565b96506135d660408a0161312a565b95506135e460608a0161312a565b94506135f260808a0161312a565b935060a0890135925060c08901356001600160401b03811115613613578283fd5b61361f8b828c016130eb565b999c989b5096995094979396929594505050565b60006001600160fb1b03831115613648578081fd5b8260051b80838637939093019283525090919050565b600081518084526136768160208601602086016139bc565b601f01601f19169290920160200192915050565b6bffffffffffffffffffffffff198460601b16815260006136af601483018486613633565b95945050505050565b6bffffffffffffffffffffffff198960601b168152876014820152600061ffff60f01b808960f01b166034840152808860f01b166036840152808760f01b166038840152808660f01b16603a84015250613716603c83018486613633565b9a9950505050505050505050565b600083516137368184602088016139bc565b83519083019061374a8183602088016139bc565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906137869083018461365e565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156137c8578351835292840192918401916001016137ac565b50909695505050505050565b60208101600383106137f657634e487b7160e01b600052602160045260246000fd5b91905290565b602081526000611c7e602083018461365e565b60208082526011908201527029b0b6329034b9903737ba103634bb329760791b604082015260600190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526009908201526829b7b6321037baba1760b91b604082015260600190565b60208082526012908201527124b73b30b634b21039b4b3b730ba3ab9329760711b604082015260600190565b60208082526013908201527224b739bab33334b1b4b2b73a10333ab732399760691b604082015260600190565b600061ffff80831681851680830382111561374a5761374a613a74565b6000821982111561396d5761396d613a74565b500190565b60008261398157613981613a8a565b500490565b60008160001904831182151516156139a0576139a0613a74565b500290565b6000828210156139b7576139b7613a74565b500390565b60005b838110156139d75781810151838201526020016139bf565b83811115611ba85750506000910152565b600181811c908216806139fc57607f821691505b60208210811415613a1d57634e487b7160e01b600052602260045260246000fd5b50919050565b600061ffff80831681811415613a3b57613a3b613a74565b6001019392505050565b6000600019821415613a5957613a59613a74565b5060010190565b600082613a6f57613a6f613a8a565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146122fd57600080fdfea264697066735822122028e6a097010a5d7101cc5c8060246c282f05d38d8b1258da6a5e5c4e569897d964736f6c63430008040033
Loading...
Loading
Loading...
Loading
[ 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.