ERC-721
Overview
Max Total Supply
2,000 SBC
Holders
533
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 SBCLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
SuperBearClub
Compiler Version
v0.8.13+commit.abaa5c0e
Optimization Enabled:
Yes with 20 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.13; import "erc721a/contracts/ERC721A.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; } interface ISuperBearScores { function getBearScore(uint256 tokenId) external view returns (uint256 score); function getBearBoost(uint256[] calldata tokenIds) external view returns (uint256 score); } contract SuperBearClub is ERC721A, Ownable, ReentrancyGuard { using Strings for uint256; enum Stage { NotOpen, PreSale, PublicSale } uint256 public maxBears; bytes32 public whitelistRoot; bytes32 public banagerRoot; bytes32 public ogRoot; bytes32 public teamRoot; mapping(address => bool) private preSaleMinted; uint64 public whitelistMintCounts; uint64 public banagerMintCounts; uint64 public ogMintCounts; uint64 public teamMintCounts; uint64 public giftedMintCounts; uint256 constant WHITELIST_INDEX = 0; uint256 constant BANAGER_INDEX = 1; uint256 constant OG_INDEX = 2; uint256 constant TEAM_INDEX = 3; uint256 public constant WL_MINT_MAX_PER_WALLET = 2; uint256 public constant BANAGER_MINT_MAX_PER_WALLET = 3; uint256 public constant OG_MINT_MAX_PER_WALLET = 5; uint256 public constant TE_MINT_MAX_PER_WALLET = 10; uint256 public constant PUBLIC_SALE_PRICE = 0.03 ether; bool public isWlActive; bool public isBanagerActive; bool public isOGActive; bool public isTeamActive; bool public isPublicSaleActive; string private baseTokenURI = "ipfs://QmaVqj5sX15acwcjiT32SjLToMUeYKKpoAvheBHeQt84YE/"; address public scoresContractAddress; address public stakeAddress; address public vaultAddress; bool private isOpenSeaProxyActive = true; address proxyRegistryAddress; event BearMinted(address account, uint256 startTokenId,uint256 amount); event BearBurned(address account, uint256 tokenId); // ============ ACCESS CONTROL/SANITY MODIFIERS ============ modifier isNotContract() { require(tx.origin == msg.sender,"contract is not allowed to operate"); _; } modifier preSaleActive(){ require(!isPublicSaleActive && (isWlActive || isBanagerActive || isOGActive || isTeamActive),"Presale is not open"); _; } modifier publicSaleActive() { require(isPublicSaleActive, "Public sale is not open"); _; } modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) { require( MerkleProof.verify( merkleProof, root, keccak256(abi.encodePacked(msg.sender)) ), "Address does not exist in list" ); _; } modifier canMintBearsGlobal(uint256 numberOfTokens) { require(numberOfTokens > 0,"Mint count must be greater than 0"); require( _currentIndex + numberOfTokens <= maxBears, "Not enough bears remaining to mint" ); _; } modifier isCorrectPayment(uint256 price, uint256 numberOfTokens) { require( price * numberOfTokens == msg.value, "Incorrect ETH value sent" ); _; } constructor( string memory name, string memory symbol, address _openSeaProxyRegistryAddress, uint256 _maxBears ) ERC721A(name, symbol) { proxyRegistryAddress = _openSeaProxyRegistryAddress; maxBears = _maxBears; vaultAddress = owner(); isTeamActive = true; } // ============ OWNER-ONLY ADMIN FUNCTIONS ============ function setWhiteListMerkleRoot(bytes32 merkleRoot) external onlyOwner { whitelistRoot = merkleRoot; } function setBanagerMerkleRoot(bytes32 merkleRoot) external onlyOwner { banagerRoot = merkleRoot; } function setOGMerkleRoot(bytes32 merkleRoot) external onlyOwner { ogRoot = merkleRoot; } function setTeamMerkleRoot(bytes32 merkleRoot) external onlyOwner { teamRoot = merkleRoot; } function setAllMerkleRoot(bytes32[4] calldata merkleRoots) external onlyOwner { whitelistRoot = merkleRoots[WHITELIST_INDEX]; banagerRoot = merkleRoots[BANAGER_INDEX]; ogRoot = merkleRoots[OG_INDEX]; teamRoot = merkleRoots[TEAM_INDEX]; } function setWhiteListSaleActive(bool isActive) external onlyOwner{ require(whitelistRoot != 0,"whitelist root not assigned"); isWlActive = isActive; } function setBanagerSaleActive(bool isActive) external onlyOwner{ require(banagerRoot != 0,"banager root not assigned"); isBanagerActive = isActive; } function setOGSaleActive(bool isActive) external onlyOwner{ require(ogRoot != 0,"OG root not assigned"); isOGActive = isActive; } function setTeamSaleActive(bool isActive) external onlyOwner{ require(teamRoot != 0,"team root not assigned"); isTeamActive = isActive; } function setPublicSaleActive(bool isActive) external onlyOwner{ isPublicSaleActive = isActive; } function setScoresContractAddress(address _scoresAddress) external onlyOwner { scoresContractAddress = _scoresAddress; } function setStakeAddress(address _stakeAddress) external onlyOwner { stakeAddress = _stakeAddress; } function setVaultAddress(address _vaultAddress) external onlyOwner { vaultAddress = _vaultAddress; } // function to disable gasless listings for security in case // opensea ever shuts down or is compromised function setIsOpenSeaProxyActive(bool _isOpenSeaProxyActive) external onlyOwner { isOpenSeaProxyActive = _isOpenSeaProxyActive; } function setProxyRegistryAddress(address _proxyRegistryAddress) external onlyOwner { proxyRegistryAddress = _proxyRegistryAddress; } function setBaseURI(string memory baseURI) external onlyOwner { baseTokenURI = baseURI; } function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function getBearScore(uint256 tokenId) public view returns (uint256 score) { if (scoresContractAddress == address(0x0)) { return 0; } require(_exists(tokenId), "ERC721: owner query for nonexistent token"); return ISuperBearScores(scoresContractAddress).getBearScore(tokenId); } function getBearBoost(uint256[] calldata tokenIds) public view returns (uint256 score) { if (scoresContractAddress == address(0x0)) { return 10000; } return ISuperBearScores(scoresContractAddress).getBearBoost(tokenIds); } // ============ PUBLIC FUNCTIONS FOR MINTING ============ function getCurrentStage() public view returns (Stage){ Stage curStage; if(isPublicSaleActive){ curStage = Stage.PublicSale; }else if(isWlActive || isBanagerActive || isOGActive || isTeamActive){ curStage = Stage.PreSale; }else{ curStage = Stage.NotOpen; } return curStage; } function getLeftBearCount() public view returns(uint256){ uint256 numMintedSoFar = _currentIndex; return maxBears - numMintedSoFar; } function getCanFreeMintCount(bytes32[][4] calldata merkleProofs) public view returns (uint256 ) { require(merkleProofs.length == 4, "Not right length"); uint256[] memory counts = new uint256[](4); int256 power = -1; if(merkleProofs[WHITELIST_INDEX].length != 0){ require(whitelistRoot != 0,"whitelist root not assigned"); require(MerkleProof.verify(merkleProofs[WHITELIST_INDEX],whitelistRoot,keccak256(abi.encodePacked(msg.sender))),"MerkleProof: Invalid whitelist proof."); power = int256(WHITELIST_INDEX); if(isWlActive && !preSaleMinted[msg.sender]){ counts[WHITELIST_INDEX] = WL_MINT_MAX_PER_WALLET; } } if(merkleProofs[BANAGER_INDEX].length != 0){ require(banagerRoot != 0,"banager root not assigned"); require(MerkleProof.verify(merkleProofs[BANAGER_INDEX],banagerRoot,keccak256(abi.encodePacked(msg.sender))),"MerkleProof: Invalid banager proof."); power = int256(BANAGER_INDEX); if(isBanagerActive && !preSaleMinted[msg.sender]){ counts[BANAGER_INDEX] = BANAGER_MINT_MAX_PER_WALLET; } } if(merkleProofs[OG_INDEX].length != 0){ require(ogRoot != 0,"og root not assigned"); require(MerkleProof.verify(merkleProofs[OG_INDEX],ogRoot,keccak256(abi.encodePacked(msg.sender))),"MerkleProof: Invalid og proof."); power = int256(OG_INDEX); if(isOGActive && !preSaleMinted[msg.sender]){ counts[OG_INDEX] = OG_MINT_MAX_PER_WALLET; } } if(merkleProofs[TEAM_INDEX].length != 0){ require(teamRoot != 0,"team root not assigned"); require(MerkleProof.verify(merkleProofs[TEAM_INDEX],teamRoot,keccak256(abi.encodePacked(msg.sender))),"MerkleProof: Invalid team proof."); power = int256(TEAM_INDEX); if(isTeamActive && !preSaleMinted[msg.sender]){ counts[TEAM_INDEX] = TE_MINT_MAX_PER_WALLET; } } uint256 count = 0; if(power != -1){ count = counts[uint256(power)]; } return count; } function mintNFTPresale(uint256 amount,bytes32[][4] calldata merkleProofs) external nonReentrant isNotContract preSaleActive { require(merkleProofs.length == 4, "Not right merkleProofs length"); uint256 count = getCanFreeMintCount(merkleProofs); require(amount == count,"Invalid amount"); require(amount > 0,"Mint count must be greater than 0"); require(_currentIndex + count <= maxBears,"Not enough bears remaining to mint"); if(count == WL_MINT_MAX_PER_WALLET){ preSaleMinted[msg.sender] = true; whitelistMintCounts += uint64(count); }else if(count == BANAGER_MINT_MAX_PER_WALLET){ preSaleMinted[msg.sender] = true; banagerMintCounts += uint64(count); }else if(count == OG_MINT_MAX_PER_WALLET){ preSaleMinted[msg.sender] = true; ogMintCounts += uint64(count); }else if(count == TE_MINT_MAX_PER_WALLET){ preSaleMinted[msg.sender] = true; teamMintCounts += uint64(count); } _mintNFT(msg.sender,count); } function mintNFTPublicSale(uint256 amount) external payable nonReentrant isNotContract publicSaleActive canMintBearsGlobal(amount) isCorrectPayment(PUBLIC_SALE_PRICE, amount) { _mintNFT(msg.sender,amount); } function mintNFTGifted(address to, uint256 amount) external nonReentrant onlyOwner canMintBearsGlobal(amount) { giftedMintCounts += uint64(amount); _mintNFT(to, amount); } function _mintNFT(address to, uint256 amount) internal { _safeMint(to, amount); emit BearMinted(msg.sender, _currentIndex, amount); } function burnNFT(uint256 tokenId) external { require(_exists(tokenId), "ERC721: owner query for nonexistent token"); require(ownerOf(tokenId) == msg.sender, "not your token"); _burn(tokenId); } function withdraw() external onlyOwner { require(vaultAddress != address(0x0), "vault address is not set"); payable(vaultAddress).transfer(address(this).balance); } function isApprovedForAll(address owner, address operator) public view override returns (bool) { // whitelist OpenSea proxy contract for easy trading. if (proxyRegistryAddress != address(0x0)) { ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress); if (isOpenSeaProxyActive && address(proxyRegistry.proxies(owner)) == operator) { return true; } } if (operator == stakeAddress) { return true; } return super.isApprovedForAll(owner, operator); } // should never be used inside of transaction because of gas fee function tokensOfOwner(address owner) external view returns (uint256[] memory ownerTokens) { uint256 tokenCount = balanceOf(owner); if (tokenCount == 0) { return new uint256[](0); } else { uint256[] memory result = new uint256[](tokenCount); uint256 resultIndex = 0; uint256 i = 0; uint256 numMintedSoFar = _currentIndex; while(i < numMintedSoFar){ TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned || ownership.addr != owner) { i++; }else{ TokenOwnership memory interShip = _ownerships[i]; while(!interShip.burned && (interShip.addr == owner || interShip.addr == address(0)) && resultIndex < tokenCount){ result[resultIndex] = i; resultIndex++; i++; interShip = _ownerships[i]; } } } return result; } } }
// SPDX-License-Identifier: MIT // Creator: Chiru Labs 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'; error ApprovalCallerNotOwnerNorApproved(); error ApprovalQueryForNonexistentToken(); error ApproveToCaller(); error ApprovalToCurrentOwner(); error BalanceQueryForZeroAddress(); error MintedQueryForZeroAddress(); error BurnedQueryForZeroAddress(); error MintToZeroAddress(); error MintZeroQuantity(); error OwnerIndexOutOfBounds(); error OwnerQueryForNonexistentToken(); error TokenIndexOutOfBounds(); error TransferCallerNotOwnerNorApproved(); error TransferFromIncorrectOwner(); error TransferToNonERC721ReceiverImplementer(); error TransferToZeroAddress(); error URIQueryForNonexistentToken(); /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**128 - 1 (max value of uint128). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; } // Compiler will pack the following // _currentIndex and _burnCounter into a single 256bit word. // The tokenId of the next token to be minted. uint128 internal _currentIndex; // The number of tokens burned. uint128 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex times unchecked { return _currentIndex - _burnCounter; } } /** * @dev See {IERC721Enumerable-tokenByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenByIndex(uint256 index) public view override returns (uint256) { uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (!ownership.burned) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } revert TokenIndexOutOfBounds(); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { if (index >= balanceOf(owner)) revert OwnerIndexOutOfBounds(); uint256 numMintedSoFar = _currentIndex; uint256 tokenIdsIdx; address currOwnershipAddr; // Counter overflow is impossible as the loop breaks when // uint256 i is equal to another uint256 numMintedSoFar. unchecked { for (uint256 i; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.burned) { continue; } if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } } // Execution should never reach this point. revert(); } /** * @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 || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { if (owner == address(0)) revert MintedQueryForZeroAddress(); return uint256(_addressData[owner].numberMinted); } function _numberBurned(address owner) internal view returns (uint256) { if (owner == address(0)) revert BurnedQueryForZeroAddress(); return uint256(_addressData[owner].numberBurned); } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (!_checkOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < _currentIndex && !_ownerships[tokenId].burned; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { _mint(to, quantity, _data, true); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint( address to, uint256 quantity, bytes memory _data, bool safe ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1 // updatedIndex overflows if _currentIndex + quantity > 3.4e38 (2**128) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; for (uint256 i; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) { revert TransferToNonERC721ReceiverImplementer(); } updatedIndex++; } _currentIndex = uint128(updatedIndex); } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || isApprovedForAll(prevOwnership.addr, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId].addr = to; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**128. unchecked { _addressData[prevOwnership.addr].balance -= 1; _addressData[prevOwnership.addr].numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. _ownerships[tokenId].addr = prevOwnership.addr; _ownerships[tokenId].startTimestamp = uint64(block.timestamp); _ownerships[tokenId].burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId < _currentIndex) { _ownerships[nextTokenId].addr = prevOwnership.addr; _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(prevOwnership.addr, address(0), tokenId); _afterTokenTransfers(prevOwnership.addr, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) 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); /** * @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 // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, 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 // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 20 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_openSeaProxyRegistryAddress","type":"address"},{"internalType":"uint256","name":"_maxBears","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerIndexOutOfBounds","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TokenIndexOutOfBounds","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"BearBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BearMinted","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":"BANAGER_MINT_MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OG_MINT_MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PUBLIC_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TE_MINT_MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WL_MINT_MAX_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"banagerMintCounts","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"banagerRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burnNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"getBearBoost","outputs":[{"internalType":"uint256","name":"score","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getBearScore","outputs":[{"internalType":"uint256","name":"score","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[][4]","name":"merkleProofs","type":"bytes32[][4]"}],"name":"getCanFreeMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentStage","outputs":[{"internalType":"enum SuperBearClub.Stage","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLeftBearCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giftedMintCounts","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"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":"isBanagerActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOGActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isTeamActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWlActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBears","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintNFTGifted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[][4]","name":"merkleProofs","type":"bytes32[][4]"}],"name":"mintNFTPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintNFTPublicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogMintCounts","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ogRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"scoresContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[4]","name":"merkleRoots","type":"bytes32[4]"}],"name":"setAllMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setBanagerMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setBanagerSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isOpenSeaProxyActive","type":"bool"}],"name":"setIsOpenSeaProxyActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setOGMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setOGSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"}],"name":"setProxyRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setPublicSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_scoresAddress","type":"address"}],"name":"setScoresContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_stakeAddress","type":"address"}],"name":"setStakeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setTeamMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setTeamSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_vaultAddress","type":"address"}],"name":"setVaultAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setWhiteListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"isActive","type":"bool"}],"name":"setWhiteListSaleActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakeAddress","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":"teamMintCounts","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"ownerTokens","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistMintCounts","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"whitelistRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60e06040526036608081815290620040f460a039805162000029916011916020909101906200018f565b506014805460ff60a01b1916600160a01b1790553480156200004a57600080fd5b506040516200412a3803806200412a8339810160408190526200006d9162000302565b835184908490620000869060019060208501906200018f565b5080516200009c9060029060208401906200018f565b505050620000b9620000b36200013960201b60201c565b6200013d565b6001600855601580546001600160a01b0319166001600160a01b0384161790556009819055620000f16007546001600160a01b031690565b601480546001600160a01b03929092166001600160a01b031990921691909117905550506010805460ff60581b19166b01000000000000000000000017905550620003d19050565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200019d9062000395565b90600052602060002090601f016020900481019282620001c157600085556200020c565b82601f10620001dc57805160ff19168380011785556200020c565b828001600101855582156200020c579182015b828111156200020c578251825591602001919060010190620001ef565b506200021a9291506200021e565b5090565b5b808211156200021a57600081556001016200021f565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200025d57600080fd5b81516001600160401b03808211156200027a576200027a62000235565b604051601f8301601f19908116603f01168101908282118183101715620002a557620002a562000235565b81604052838152602092508683858801011115620002c257600080fd5b600091505b83821015620002e65785820183015181830184015290820190620002c7565b83821115620002f85760008385830101525b9695505050505050565b600080600080608085870312156200031957600080fd5b84516001600160401b03808211156200033157600080fd5b6200033f888389016200024b565b955060208701519150808211156200035657600080fd5b5062000365878288016200024b565b604087015190945090506001600160a01b03811681146200038557600080fd5b6060959095015193969295505050565b600181811c90821680620003aa57607f821691505b602082108103620003cb57634e487b7160e01b600052602260045260246000fd5b50919050565b613d1380620003e16000396000f3fe60806040526004361061033a5760003560e01c80637c0ff64b116101b3578063b88d4fde116100f3578063b88d4fde1461098f578063c40d30e5146109af578063c5a1711e146109c4578063c5d8c661146109e4578063c87b56dd14610a04578063d26ea6c014610a24578063d622821114610a44578063dc47dced14610a64578063de044f5214610a84578063e08e65ea14610a99578063e2e06fa314610ab9578063e3a6446414610ad9578063e43082f714610af9578063e985e9c514610b19578063eedbe31d14610b39578063f2fde38b14610b5b578063f6e4192514610b7b578063ff62e2d114610b9b57600080fd5b80637c0ff64b1461079b578063837871f9146107c25780638462151c146107e2578063851073671461080f57806385535cc51461082f5780638da5cb5b1461084f578063903afdc01461086457806395d89b411461087a57806397bfd7cc1461088f5780639a8ecbde146108af5780639b550347146108d0578063a22cb465146108f0578063a2b3f33014610910578063a645d36114610926578063ac8f660914610947578063b1e6d2c714610967578063b512261b1461097c57600080fd5b8063386bfc981161027e578063386bfc98146105a8578063389dd964146105be5780633ccfd60b146105de5780633dbad960146105f357806342842e0e1461061457806342bf845f14610634578063430bf08a146106545780634bedaa9d146106745780634f6ccce71461069b57806355f804b3146106bb5780636352211e146106db578063646502ef146106fb578063699278d81461071b57806370a082311461073b578063710c63cd1461075b578063715018a61461077057806374a931c11461078557600080fd5b806301ffc9a71461033f57806306fdde0314610374578063073a801c1461039657806307e89ec0146103b9578063081812fc146103d4578063095ea7b3146104015780630aabfa2d146104235780630f4681ad1461044357806318160ddd146104825780631e84c413146104b157806323471d18146104d257806323b872dd146104f257806325c2c02014610512578063283cd6be146105325780632890e0d7146105525780632f745c591461057257806331940cc014610592575b600080fd5b34801561034b57600080fd5b5061035f61035a36600461335b565b610bbc565b60405190151581526020015b60405180910390f35b34801561038057600080fd5b50610389610c29565b60405161036b91906133d0565b3480156103a257600080fd5b506103ab600381565b60405190815260200161036b565b3480156103c557600080fd5b506103ab666a94d74f43000081565b3480156103e057600080fd5b506103f46103ef3660046133e3565b610cbb565b60405161036b91906133fc565b34801561040d57600080fd5b5061042161041c366004613425565b610cff565b005b34801561042f57600080fd5b5061042161043e366004613461565b610d8c565b34801561044f57600080fd5b50600f5461046a90600160401b90046001600160401b031681565b6040516001600160401b03909116815260200161036b565b34801561048e57600080fd5b506103ab6000546001600160801b03600160801b82048116918116919091031690565b3480156104bd57600080fd5b5060105461035f90600160601b900460ff1681565b3480156104de57600080fd5b506104216104ed36600461347c565b610e04565b3480156104fe57600080fd5b5061042161050d366004613499565b610e55565b34801561051e57600080fd5b5061042161052d3660046133e3565b610e60565b34801561053e57600080fd5b5061042161054d366004613461565b610e94565b34801561055e57600080fd5b5061042161056d3660046133e3565b610f03565b34801561057e57600080fd5b506103ab61058d366004613425565b610f85565b34801561059e57600080fd5b506103ab600d5481565b3480156105b457600080fd5b506103ab600a5481565b3480156105ca57600080fd5b50600f5461046a906001600160401b031681565b3480156105ea57600080fd5b5061042161107f565b3480156105ff57600080fd5b5060105461035f90600160581b900460ff1681565b34801561062057600080fd5b5061042161062f366004613499565b61113a565b34801561064057600080fd5b5061042161064f366004613461565b611155565b34801561066057600080fd5b506014546103f4906001600160a01b031681565b34801561068057600080fd5b50600f5461046a90600160801b90046001600160401b031681565b3480156106a757600080fd5b506103ab6106b63660046133e3565b6111c4565b3480156106c757600080fd5b506104216106d6366004613565565b61126d565b3480156106e757600080fd5b506103f46106f63660046133e3565b6112b3565b34801561070757600080fd5b50610421610716366004613425565b6112c5565b34801561072757600080fd5b506104216107363660046135be565b6113ca565b34801561074757600080fd5b506103ab61075636600461347c565b6116c2565b34801561076757600080fd5b506103ab600281565b34801561077c57600080fd5b50610421611710565b34801561079157600080fd5b506103ab600b5481565b3480156107a757600080fd5b50600f5461046a90600160c01b90046001600160401b031681565b3480156107ce57600080fd5b506012546103f4906001600160a01b031681565b3480156107ee57600080fd5b506108026107fd36600461347c565b61174b565b60405161036b9190613604565b34801561081b57600080fd5b506013546103f4906001600160a01b031681565b34801561083b57600080fd5b5061042161084a36600461347c565b6119b2565b34801561085b57600080fd5b506103f4611a03565b34801561087057600080fd5b506103ab600c5481565b34801561088657600080fd5b50610389611a12565b34801561089b57600080fd5b506103ab6108aa366004613648565b611a21565b3480156108bb57600080fd5b5060105461035f90600160501b900460ff1681565b3480156108dc57600080fd5b506104216108eb36600461347c565b611ab7565b3480156108fc57600080fd5b5061042161090b3660046136bc565b611b08565b34801561091c57600080fd5b506103ab60095481565b34801561093257600080fd5b5060105461035f90600160401b900460ff1681565b34801561095357600080fd5b50610421610962366004613461565b611b9d565b34801561097357600080fd5b506103ab600581565b61042161098a3660046133e3565b611c33565b34801561099b57600080fd5b506104216109aa3660046136f1565b611d96565b3480156109bb57600080fd5b506103ab600a81565b3480156109d057600080fd5b506104216109df3660046133e3565b611dd0565b3480156109f057600080fd5b506104216109ff366004613770565b611e04565b348015610a1057600080fd5b50610389610a1f3660046133e3565b611e51565b348015610a3057600080fd5b50610421610a3f36600461347c565b611ed4565b348015610a5057600080fd5b506103ab610a5f36600461378c565b611f25565b348015610a7057600080fd5b50610421610a7f3660046133e3565b612488565b348015610a9057600080fd5b506103ab6124bc565b348015610aa557600080fd5b50610421610ab43660046133e3565b6124e0565b348015610ac557600080fd5b50610421610ad4366004613461565b612514565b348015610ae557600080fd5b506103ab610af43660046133e3565b612561565b348015610b0557600080fd5b50610421610b14366004613461565b61260e565b348015610b2557600080fd5b5061035f610b343660046137c0565b61265b565b348015610b4557600080fd5b50610b4e612771565b60405161036b91906137f9565b348015610b6757600080fd5b50610421610b7636600461347c565b6127ef565b348015610b8757600080fd5b5060105461046a906001600160401b031681565b348015610ba757600080fd5b5060105461035f90600160481b900460ff1681565b60006001600160e01b031982166380ac58cd60e01b1480610bed57506001600160e01b03198216635b5e139f60e01b145b80610c0857506001600160e01b0319821663780e9d6360e01b145b80610c2357506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610c3890613821565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6490613821565b8015610cb15780601f10610c8657610100808354040283529160200191610cb1565b820191906000526020600020905b815481529060010190602001808311610c9457829003601f168201915b5050505050905090565b6000610cc68261288c565b610ce3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610d0a826112b3565b9050806001600160a01b0316836001600160a01b031603610d3e5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610d5e5750610d5c813361265b565b155b15610d7c576040516367d9dca160e11b815260040160405180910390fd5b610d878383836128c0565b505050565b33610d95611a03565b6001600160a01b031614610dc45760405162461bcd60e51b8152600401610dbb90613855565b60405180910390fd5b600d54600003610de65760405162461bcd60e51b8152600401610dbb9061388a565b60108054911515600160581b0260ff60581b19909216919091179055565b33610e0d611a03565b6001600160a01b031614610e335760405162461bcd60e51b8152600401610dbb90613855565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b610d8783838361291c565b33610e69611a03565b6001600160a01b031614610e8f5760405162461bcd60e51b8152600401610dbb90613855565b600c55565b33610e9d611a03565b6001600160a01b031614610ec35760405162461bcd60e51b8152600401610dbb90613855565b600a54600003610ee55760405162461bcd60e51b8152600401610dbb906138ba565b60108054911515600160401b0260ff60401b19909216919091179055565b610f0c8161288c565b610f285760405162461bcd60e51b8152600401610dbb906138ef565b33610f32826112b3565b6001600160a01b031614610f795760405162461bcd60e51b815260206004820152600e60248201526d3737ba103cb7bab9103a37b5b2b760911b6044820152606401610dbb565b610f8281612b26565b50565b6000610f90836116c2565b8210610faf576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b8381101561107957600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906110275750611071565b80516001600160a01b03161561103c57805192505b876001600160a01b0316836001600160a01b03160361106f5786840361106857509350610c2392505050565b6001909301925b505b600101610fc0565b50600080fd5b33611088611a03565b6001600160a01b0316146110ae5760405162461bcd60e51b8152600401610dbb90613855565b6014546001600160a01b03166111015760405162461bcd60e51b81526020600482015260186024820152771d985d5b1d081859191c995cdcc81a5cc81b9bdd081cd95d60421b6044820152606401610dbb565b6014546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610f82573d6000803e3d6000fd5b610d8783838360405180602001604052806000815250611d96565b3361115e611a03565b6001600160a01b0316146111845760405162461bcd60e51b8152600401610dbb90613855565b600b546000036111a65760405162461bcd60e51b8152600401610dbb90613938565b60108054911515600160481b0260ff60481b19909216919091179055565b600080546001600160801b031681805b8281101561125357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061124a578583036112435750949350505050565b6001909201915b506001016111d4565b506040516329c8c00760e21b815260040160405180910390fd5b33611276611a03565b6001600160a01b03161461129c5760405162461bcd60e51b8152600401610dbb90613855565b80516112af9060119060208401906132ac565b5050565b60006112be82612cb6565b5192915050565b6002600854036112e75760405162461bcd60e51b8152600401610dbb9061396b565b6002600855336112f5611a03565b6001600160a01b03161461131b5760405162461bcd60e51b8152600401610dbb90613855565b806000811161133c5760405162461bcd60e51b8152600401610dbb906139a2565b6009546000546113569083906001600160801b03166139f9565b11156113745760405162461bcd60e51b8152600401610dbb90613a11565b601080548391906000906113929084906001600160401b0316613a53565b92506101000a8154816001600160401b0302191690836001600160401b031602179055506113c08383612dd8565b5050600160085550565b6002600854036113ec5760405162461bcd60e51b8152600401610dbb9061396b565b60026008553233146114105760405162461bcd60e51b8152600401610dbb90613a7e565b601054600160601b900460ff1615801561146e5750601054600160401b900460ff16806114465750601054600160481b900460ff165b8061145a5750601054600160501b900460ff165b8061146e5750601054600160581b900460ff165b6114b05760405162461bcd60e51b8152602060048201526013602482015272283932b9b0b6329034b9903737ba1037b832b760691b6044820152606401610dbb565b60006114bb82611f25565b90508083146114fd5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610dbb565b6000831161151d5760405162461bcd60e51b8152600401610dbb906139a2565b6009546000546115379083906001600160801b03166139f9565b11156115555760405162461bcd60e51b8152600401610dbb90613a11565b600281036115bb57336000908152600e60205260408120805460ff19166001179055600f80548392906115929084906001600160401b0316613a53565b92506101000a8154816001600160401b0302191690836001600160401b031602179055506116b8565b6003810361160357336000908152600e60205260409020805460ff19166001179055600f80548291906008906115929084906001600160401b03600160401b90910416613a53565b6005810361164b57336000908152600e60205260409020805460ff19166001179055600f80548291906010906115929084906001600160401b03600160801b90910416613a53565b600a81036116b857336000908152600e60205260409020805460ff19166001179055600f80548291906018906116939084906001600160401b03600160c01b90910416613a53565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505b6113c03382612dd8565b60006001600160a01b0382166116eb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b33611719611a03565b6001600160a01b03161461173f5760405162461bcd60e51b8152600401610dbb90613855565b6117496000612e32565b565b60606000611758836116c2565b90508060000361177c5760408051600080825260208201909252905b509392505050565b6000816001600160401b03811115611796576117966134da565b6040519080825280602002602001820160405280156117bf578160200160208202803683370190505b50600080549192509081906001600160801b03165b808210156119a157600082815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290806118505750876001600160a01b031681600001516001600160a01b031614155b15611867578261185f81613ac0565b93505061199b565b600083815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101919091525b80604001511580156118f45750886001600160a01b031681600001516001600160a01b031614806118f4575080516001600160a01b0316155b80156118ff57508685105b15611999578386868151811061191757611917613ad9565b60209081029190910101528461192c81613ac0565b955050838061193a90613ac0565b600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181019190915290955091506118bb9050565b505b506117d4565b509195945050505050565b50919050565b336119bb611a03565b6001600160a01b0316146119e15760405162461bcd60e51b8152600401610dbb90613855565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031690565b606060028054610c3890613821565b6012546000906001600160a01b0316611a3d5750612710610c23565b6012546040516325eff5f360e21b81526001600160a01b03909116906397bfd7cc90611a6f9086908690600401613aef565b602060405180830381865afa158015611a8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab09190613b2b565b9392505050565b33611ac0611a03565b6001600160a01b031614611ae65760405162461bcd60e51b8152600401610dbb90613855565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b336001600160a01b03831603611b315760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b33611ba6611a03565b6001600160a01b031614611bcc5760405162461bcd60e51b8152600401610dbb90613855565b600c54600003611c155760405162461bcd60e51b815260206004820152601460248201527313d1c81c9bdbdd081b9bdd08185cdcda59db995960621b6044820152606401610dbb565b60108054911515600160501b0260ff60501b19909216919091179055565b600260085403611c555760405162461bcd60e51b8152600401610dbb9061396b565b6002600855323314611c795760405162461bcd60e51b8152600401610dbb90613a7e565b601054600160601b900460ff16611ccc5760405162461bcd60e51b8152602060048201526017602482015276283ab13634b19039b0b6329034b9903737ba1037b832b760491b6044820152606401610dbb565b8060008111611ced5760405162461bcd60e51b8152600401610dbb906139a2565b600954600054611d079083906001600160801b03166139f9565b1115611d255760405162461bcd60e51b8152600401610dbb90613a11565b666a94d74f4300008234611d398284613b44565b14611d815760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b6044820152606401610dbb565b611d8b3385612dd8565b505060016008555050565b611da184848461291c565b611dad84848484612e84565b611dca576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b33611dd9611a03565b6001600160a01b031614611dff5760405162461bcd60e51b8152600401610dbb90613855565b600b55565b33611e0d611a03565b6001600160a01b031614611e335760405162461bcd60e51b8152600401610dbb90613855565b8035600a556020810135600b556040810135600c5560600135600d55565b6060611e5c8261288c565b611e7957604051630a14c4b560e41b815260040160405180910390fd5b6000611e83612f86565b90508051600003611ea35760405180602001604052806000815250611ab0565b80611ead84612f95565b604051602001611ebe929190613b63565b6040516020818303038152906040529392505050565b33611edd611a03565b6001600160a01b031614611f035760405162461bcd60e51b8152600401610dbb90613855565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b60408051600480825260a0820190925260009182919060208201608080368337019050509050600019611f588480613b89565b15905061209e57600a54600003611f815760405162461bcd60e51b8152600401610dbb906138ba565b611ff0611f8e8580613b89565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a54604051909250611fd591503390602001613bd9565b60405160208183030381529060405280519060200120613095565b61204a5760405162461bcd60e51b815260206004820152602560248201527f4d65726b6c6550726f6f663a20496e76616c69642077686974656c69737420706044820152643937b7b31760d91b6064820152608401610dbb565b50601054600090600160401b900460ff1680156120775750336000908152600e602052604090205460ff16155b1561209e5760028260008151811061209157612091613ad9565b6020026020010181815250505b6120ab6020850185613b89565b1590506121d757600b546000036120d45760405162461bcd60e51b8152600401610dbb90613938565b61212b6120e46020860186613b89565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b54604051909250611fd591503390602001613bd9565b6121835760405162461bcd60e51b815260206004820152602360248201527f4d65726b6c6550726f6f663a20496e76616c69642062616e616765722070726f60448201526237b31760e91b6064820152608401610dbb565b50601054600190600160481b900460ff1680156121b05750336000908152600e602052604090205460ff16155b156121d7576003826001815181106121ca576121ca613ad9565b6020026020010181815250505b6121e46040850185613b89565b15905061232b57600c546000036122345760405162461bcd60e51b81526020600482015260146024820152731bd9c81c9bdbdd081b9bdd08185cdcda59db995960621b6044820152606401610dbb565b61228b6122446040860186613b89565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c54604051909250611fd591503390602001613bd9565b6122d75760405162461bcd60e51b815260206004820152601e60248201527f4d65726b6c6550726f6f663a20496e76616c6964206f672070726f6f662e00006044820152606401610dbb565b50601054600290600160501b900460ff1680156123045750336000908152600e602052604090205460ff16155b1561232b5760058260028151811061231e5761231e613ad9565b6020026020010181815250505b6123386060850185613b89565b15905061245857600d546000036123615760405162461bcd60e51b8152600401610dbb9061388a565b6123b86123716060860186613b89565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d54604051909250611fd591503390602001613bd9565b6124045760405162461bcd60e51b815260206004820181905260248201527f4d65726b6c6550726f6f663a20496e76616c6964207465616d2070726f6f662e6044820152606401610dbb565b50601054600390600160581b900460ff1680156124315750336000908152600e602052604090205460ff16155b1561245857600a8260038151811061244b5761244b613ad9565b6020026020010181815250505b600081600019146124805782828151811061247557612475613ad9565b602002602001015190505b949350505050565b33612491611a03565b6001600160a01b0316146124b75760405162461bcd60e51b8152600401610dbb90613855565b600d55565b600080546009546001600160801b03909116906124da908290613bf1565b91505090565b336124e9611a03565b6001600160a01b03161461250f5760405162461bcd60e51b8152600401610dbb90613855565b600a55565b3361251d611a03565b6001600160a01b0316146125435760405162461bcd60e51b8152600401610dbb90613855565b60108054911515600160601b0260ff60601b19909216919091179055565b6012546000906001600160a01b031661257c57506000919050565b6125858261288c565b6125a15760405162461bcd60e51b8152600401610dbb906138ef565b6012546040516338e9911960e21b8152600481018490526001600160a01b039091169063e3a6446490602401602060405180830381865afa1580156125ea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c239190613b2b565b33612617611a03565b6001600160a01b03161461263d5760405162461bcd60e51b8152600401610dbb90613855565b60148054911515600160a01b0260ff60a01b19909216919091179055565b6015546000906001600160a01b031615612725576015546014546001600160a01b0390911690600160a01b900460ff1680156127145750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b81526004016126c891906133fc565b602060405180830381865afa1580156126e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127099190613c08565b6001600160a01b0316145b15612723576001915050610c23565b505b6013546001600160a01b039081169083160361274357506001610c23565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff16611ab0565b6010546000908190600160601b900460ff161561279057506002919050565b601054600160401b900460ff16806127b15750601054600160481b900460ff165b806127c55750601054600160501b900460ff165b806127d95750601054600160581b900460ff165b156127e657506001919050565b5060005b919050565b336127f8611a03565b6001600160a01b03161461281e5760405162461bcd60e51b8152600401610dbb90613855565b6001600160a01b0381166128835760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dbb565b610f8281612e32565b600080546001600160801b031682108015610c23575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061292782612cb6565b80519091506000906001600160a01b0316336001600160a01b0316148061295557508151612955903361265b565b8061297057503361296584610cbb565b6001600160a01b0316145b90508061299057604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146129c55760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166129ec57604051633a954ecd60e21b815260040160405180910390fd5b6129fc60008484600001516128c0565b6001600160a01b03858116600090815260046020908152604080832080546001600160401b03198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612aee576000546001600160801b0316811015612aee57825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b0316600080516020613cbe83398151915260405160405180910390a45b5050505050565b6000612b3182612cb6565b9050612b4360008383600001516128c0565b80516001600160a01b03908116600090815260046020908152604080832080546001600160401b031981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260039094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b1916939093179055908501808352912054909116612c62576000546001600160801b0316811015612c6257815160008281526003602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b0390911690600080516020613cbe833981519152908390a450506000805460016001600160801b03600160801b80840482169290920181169091029116179055565b60408051606081018252600080825260208201819052918101829052905482906001600160801b0316811015612dbf57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612dbd5780516001600160a01b031615612d54579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612db8579392505050565b612d54565b505b604051636f96cda160e11b815260040160405180910390fd5b612de282826130ab565b600054604080513381526001600160801b03909216602083015281018290527f632c10eae0d60cdbb9833174e3c8d2e7c94d79affd5cc24929a18d00677089819060600160405180910390a15050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b15612f7b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ec8903390899088908890600401613c25565b6020604051808303816000875af1925050508015612f03575060408051601f3d908101601f19168201909252612f0091810190613c62565b60015b612f61573d808015612f31576040519150601f19603f3d011682016040523d82523d6000602084013e612f36565b606091505b508051600003612f59576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612480565b506001949350505050565b606060118054610c3890613821565b606081600003612fbc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fe65780612fd081613ac0565b9150612fdf9050600a83613c95565b9150612fc0565b6000816001600160401b03811115613000576130006134da565b6040519080825280601f01601f19166020018201604052801561302a576020820181803683370190505b5090505b84156124805761303f600183613bf1565b915061304c600a86613ca9565b6130579060306139f9565b60f81b81838151811061306c5761306c613ad9565b60200101906001600160f81b031916908160001a90535061308e600a86613c95565b945061302e565b6000826130a285846130c5565b14949350505050565b6112af828260405180602001604052806000815250613131565b600081815b84518110156117745760008582815181106130e7576130e7613ad9565b6020026020010151905080831161310d576000838152602082905260409020925061311e565b600081815260208490526040902092505b508061312981613ac0565b9150506130ca565b610d8783838360016000546001600160801b03166001600160a01b03851661316b57604051622e076360e81b815260040160405180910390fd5b8360000361318c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c018116918217600160401b6001600160401b031990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156132865760405182906001600160a01b03891690600090600080516020613cbe833981519152908290a483801561325c575061325a6000888488612e84565b155b1561327a576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101613217565b50600080546001600160801b0319166001600160801b0392909216919091179055612b1f565b8280546132b890613821565b90600052602060002090601f0160209004810192826132da5760008555613320565b82601f106132f357805160ff1916838001178555613320565b82800160010185558215613320579182015b82811115613320578251825591602001919060010190613305565b5061332c929150613330565b5090565b5b8082111561332c5760008155600101613331565b6001600160e01b031981168114610f8257600080fd5b60006020828403121561336d57600080fd5b8135611ab081613345565b60005b8381101561339357818101518382015260200161337b565b83811115611dca5750506000910152565b600081518084526133bc816020860160208601613378565b601f01601f19169290920160200192915050565b602081526000611ab060208301846133a4565b6000602082840312156133f557600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b0381168114610f8257600080fd5b6000806040838503121561343857600080fd5b823561344381613410565b946020939093013593505050565b803580151581146127ea57600080fd5b60006020828403121561347357600080fd5b611ab082613451565b60006020828403121561348e57600080fd5b8135611ab081613410565b6000806000606084860312156134ae57600080fd5b83356134b981613410565b925060208401356134c981613410565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561350a5761350a6134da565b604051601f8501601f19908116603f01168101908282118183101715613532576135326134da565b8160405280935085815286868601111561354b57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561357757600080fd5b81356001600160401b0381111561358d57600080fd5b8201601f8101841361359e57600080fd5b612480848235602084016134f0565b8060808101831015610c2357600080fd5b600080604083850312156135d157600080fd5b8235915060208301356001600160401b038111156135ee57600080fd5b6135fa858286016135ad565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561363c57835183529284019291840191600101613620565b50909695505050505050565b6000806020838503121561365b57600080fd5b82356001600160401b038082111561367257600080fd5b818501915085601f83011261368657600080fd5b81358181111561369557600080fd5b8660208260051b85010111156136aa57600080fd5b60209290920196919550909350505050565b600080604083850312156136cf57600080fd5b82356136da81613410565b91506136e860208401613451565b90509250929050565b6000806000806080858703121561370757600080fd5b843561371281613410565b9350602085013561372281613410565b92506040850135915060608501356001600160401b0381111561374457600080fd5b8501601f8101871361375557600080fd5b613764878235602084016134f0565b91505092959194509250565b60006080828403121561378257600080fd5b611ab083836135ad565b60006020828403121561379e57600080fd5b81356001600160401b038111156137b457600080fd5b612480848285016135ad565b600080604083850312156137d357600080fd5b82356137de81613410565b915060208301356137ee81613410565b809150509250929050565b602081016003831061381b57634e487b7160e01b600052602160045260246000fd5b91905290565b600181811c9082168061383557607f821691505b6020821081036119ac57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601690820152751d19585b481c9bdbdd081b9bdd08185cdcda59db995960521b604082015260600190565b6020808252601b908201527a1dda1a5d195b1a5cdd081c9bdbdd081b9bdd08185cdcda59db9959602a1b604082015260600190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526019908201527818985b9859d95c881c9bdbdd081b9bdd08185cdcda59db9959603a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526021908201527f4d696e7420636f756e74206d7573742062652067726561746572207468616e206040820152600360fc1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613a0c57613a0c6139e3565b500190565b60208082526022908201527f4e6f7420656e6f7567682062656172732072656d61696e696e6720746f206d696040820152611b9d60f21b606082015260800190565b60006001600160401b03808316818516808303821115613a7557613a756139e3565b01949350505050565b60208082526022908201527f636f6e7472616374206973206e6f7420616c6c6f77656420746f206f70657261604082015261746560f01b606082015260800190565b600060018201613ad257613ad26139e3565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6020808252810182905260006001600160fb1b03831115613b0f57600080fd5b8260051b80856040850137600092016040019182525092915050565b600060208284031215613b3d57600080fd5b5051919050565b6000816000190483118215151615613b5e57613b5e6139e3565b500290565b60008351613b75818460208801613378565b835190830190613a75818360208801613378565b6000808335601e19843603018112613ba057600080fd5b8301803591506001600160401b03821115613bba57600080fd5b6020019150600581901b3603821315613bd257600080fd5b9250929050565b60609190911b6001600160601b031916815260140190565b600082821015613c0357613c036139e3565b500390565b600060208284031215613c1a57600080fd5b8151611ab081613410565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c58908301846133a4565b9695505050505050565b600060208284031215613c7457600080fd5b8151611ab081613345565b634e487b7160e01b600052601260045260246000fd5b600082613ca457613ca4613c7f565b500490565b600082613cb857613cb8613c7f565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220b6f321debe97b0e924552ac16025f6edebabd8179436d08b4be479ce4d5b549364736f6c634300080d0033697066733a2f2f516d6156716a3573583135616377636a69543332536a4c546f4d5565594b4b706f417668654248655174383459452f000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000000d537570657242656172436c75620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035342430000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061033a5760003560e01c80637c0ff64b116101b3578063b88d4fde116100f3578063b88d4fde1461098f578063c40d30e5146109af578063c5a1711e146109c4578063c5d8c661146109e4578063c87b56dd14610a04578063d26ea6c014610a24578063d622821114610a44578063dc47dced14610a64578063de044f5214610a84578063e08e65ea14610a99578063e2e06fa314610ab9578063e3a6446414610ad9578063e43082f714610af9578063e985e9c514610b19578063eedbe31d14610b39578063f2fde38b14610b5b578063f6e4192514610b7b578063ff62e2d114610b9b57600080fd5b80637c0ff64b1461079b578063837871f9146107c25780638462151c146107e2578063851073671461080f57806385535cc51461082f5780638da5cb5b1461084f578063903afdc01461086457806395d89b411461087a57806397bfd7cc1461088f5780639a8ecbde146108af5780639b550347146108d0578063a22cb465146108f0578063a2b3f33014610910578063a645d36114610926578063ac8f660914610947578063b1e6d2c714610967578063b512261b1461097c57600080fd5b8063386bfc981161027e578063386bfc98146105a8578063389dd964146105be5780633ccfd60b146105de5780633dbad960146105f357806342842e0e1461061457806342bf845f14610634578063430bf08a146106545780634bedaa9d146106745780634f6ccce71461069b57806355f804b3146106bb5780636352211e146106db578063646502ef146106fb578063699278d81461071b57806370a082311461073b578063710c63cd1461075b578063715018a61461077057806374a931c11461078557600080fd5b806301ffc9a71461033f57806306fdde0314610374578063073a801c1461039657806307e89ec0146103b9578063081812fc146103d4578063095ea7b3146104015780630aabfa2d146104235780630f4681ad1461044357806318160ddd146104825780631e84c413146104b157806323471d18146104d257806323b872dd146104f257806325c2c02014610512578063283cd6be146105325780632890e0d7146105525780632f745c591461057257806331940cc014610592575b600080fd5b34801561034b57600080fd5b5061035f61035a36600461335b565b610bbc565b60405190151581526020015b60405180910390f35b34801561038057600080fd5b50610389610c29565b60405161036b91906133d0565b3480156103a257600080fd5b506103ab600381565b60405190815260200161036b565b3480156103c557600080fd5b506103ab666a94d74f43000081565b3480156103e057600080fd5b506103f46103ef3660046133e3565b610cbb565b60405161036b91906133fc565b34801561040d57600080fd5b5061042161041c366004613425565b610cff565b005b34801561042f57600080fd5b5061042161043e366004613461565b610d8c565b34801561044f57600080fd5b50600f5461046a90600160401b90046001600160401b031681565b6040516001600160401b03909116815260200161036b565b34801561048e57600080fd5b506103ab6000546001600160801b03600160801b82048116918116919091031690565b3480156104bd57600080fd5b5060105461035f90600160601b900460ff1681565b3480156104de57600080fd5b506104216104ed36600461347c565b610e04565b3480156104fe57600080fd5b5061042161050d366004613499565b610e55565b34801561051e57600080fd5b5061042161052d3660046133e3565b610e60565b34801561053e57600080fd5b5061042161054d366004613461565b610e94565b34801561055e57600080fd5b5061042161056d3660046133e3565b610f03565b34801561057e57600080fd5b506103ab61058d366004613425565b610f85565b34801561059e57600080fd5b506103ab600d5481565b3480156105b457600080fd5b506103ab600a5481565b3480156105ca57600080fd5b50600f5461046a906001600160401b031681565b3480156105ea57600080fd5b5061042161107f565b3480156105ff57600080fd5b5060105461035f90600160581b900460ff1681565b34801561062057600080fd5b5061042161062f366004613499565b61113a565b34801561064057600080fd5b5061042161064f366004613461565b611155565b34801561066057600080fd5b506014546103f4906001600160a01b031681565b34801561068057600080fd5b50600f5461046a90600160801b90046001600160401b031681565b3480156106a757600080fd5b506103ab6106b63660046133e3565b6111c4565b3480156106c757600080fd5b506104216106d6366004613565565b61126d565b3480156106e757600080fd5b506103f46106f63660046133e3565b6112b3565b34801561070757600080fd5b50610421610716366004613425565b6112c5565b34801561072757600080fd5b506104216107363660046135be565b6113ca565b34801561074757600080fd5b506103ab61075636600461347c565b6116c2565b34801561076757600080fd5b506103ab600281565b34801561077c57600080fd5b50610421611710565b34801561079157600080fd5b506103ab600b5481565b3480156107a757600080fd5b50600f5461046a90600160c01b90046001600160401b031681565b3480156107ce57600080fd5b506012546103f4906001600160a01b031681565b3480156107ee57600080fd5b506108026107fd36600461347c565b61174b565b60405161036b9190613604565b34801561081b57600080fd5b506013546103f4906001600160a01b031681565b34801561083b57600080fd5b5061042161084a36600461347c565b6119b2565b34801561085b57600080fd5b506103f4611a03565b34801561087057600080fd5b506103ab600c5481565b34801561088657600080fd5b50610389611a12565b34801561089b57600080fd5b506103ab6108aa366004613648565b611a21565b3480156108bb57600080fd5b5060105461035f90600160501b900460ff1681565b3480156108dc57600080fd5b506104216108eb36600461347c565b611ab7565b3480156108fc57600080fd5b5061042161090b3660046136bc565b611b08565b34801561091c57600080fd5b506103ab60095481565b34801561093257600080fd5b5060105461035f90600160401b900460ff1681565b34801561095357600080fd5b50610421610962366004613461565b611b9d565b34801561097357600080fd5b506103ab600581565b61042161098a3660046133e3565b611c33565b34801561099b57600080fd5b506104216109aa3660046136f1565b611d96565b3480156109bb57600080fd5b506103ab600a81565b3480156109d057600080fd5b506104216109df3660046133e3565b611dd0565b3480156109f057600080fd5b506104216109ff366004613770565b611e04565b348015610a1057600080fd5b50610389610a1f3660046133e3565b611e51565b348015610a3057600080fd5b50610421610a3f36600461347c565b611ed4565b348015610a5057600080fd5b506103ab610a5f36600461378c565b611f25565b348015610a7057600080fd5b50610421610a7f3660046133e3565b612488565b348015610a9057600080fd5b506103ab6124bc565b348015610aa557600080fd5b50610421610ab43660046133e3565b6124e0565b348015610ac557600080fd5b50610421610ad4366004613461565b612514565b348015610ae557600080fd5b506103ab610af43660046133e3565b612561565b348015610b0557600080fd5b50610421610b14366004613461565b61260e565b348015610b2557600080fd5b5061035f610b343660046137c0565b61265b565b348015610b4557600080fd5b50610b4e612771565b60405161036b91906137f9565b348015610b6757600080fd5b50610421610b7636600461347c565b6127ef565b348015610b8757600080fd5b5060105461046a906001600160401b031681565b348015610ba757600080fd5b5060105461035f90600160481b900460ff1681565b60006001600160e01b031982166380ac58cd60e01b1480610bed57506001600160e01b03198216635b5e139f60e01b145b80610c0857506001600160e01b0319821663780e9d6360e01b145b80610c2357506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060018054610c3890613821565b80601f0160208091040260200160405190810160405280929190818152602001828054610c6490613821565b8015610cb15780601f10610c8657610100808354040283529160200191610cb1565b820191906000526020600020905b815481529060010190602001808311610c9457829003601f168201915b5050505050905090565b6000610cc68261288c565b610ce3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610d0a826112b3565b9050806001600160a01b0316836001600160a01b031603610d3e5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610d5e5750610d5c813361265b565b155b15610d7c576040516367d9dca160e11b815260040160405180910390fd5b610d878383836128c0565b505050565b33610d95611a03565b6001600160a01b031614610dc45760405162461bcd60e51b8152600401610dbb90613855565b60405180910390fd5b600d54600003610de65760405162461bcd60e51b8152600401610dbb9061388a565b60108054911515600160581b0260ff60581b19909216919091179055565b33610e0d611a03565b6001600160a01b031614610e335760405162461bcd60e51b8152600401610dbb90613855565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b610d8783838361291c565b33610e69611a03565b6001600160a01b031614610e8f5760405162461bcd60e51b8152600401610dbb90613855565b600c55565b33610e9d611a03565b6001600160a01b031614610ec35760405162461bcd60e51b8152600401610dbb90613855565b600a54600003610ee55760405162461bcd60e51b8152600401610dbb906138ba565b60108054911515600160401b0260ff60401b19909216919091179055565b610f0c8161288c565b610f285760405162461bcd60e51b8152600401610dbb906138ef565b33610f32826112b3565b6001600160a01b031614610f795760405162461bcd60e51b815260206004820152600e60248201526d3737ba103cb7bab9103a37b5b2b760911b6044820152606401610dbb565b610f8281612b26565b50565b6000610f90836116c2565b8210610faf576040516306ed618760e11b815260040160405180910390fd5b600080546001600160801b03169080805b8381101561107957600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906110275750611071565b80516001600160a01b03161561103c57805192505b876001600160a01b0316836001600160a01b03160361106f5786840361106857509350610c2392505050565b6001909301925b505b600101610fc0565b50600080fd5b33611088611a03565b6001600160a01b0316146110ae5760405162461bcd60e51b8152600401610dbb90613855565b6014546001600160a01b03166111015760405162461bcd60e51b81526020600482015260186024820152771d985d5b1d081859191c995cdcc81a5cc81b9bdd081cd95d60421b6044820152606401610dbb565b6014546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610f82573d6000803e3d6000fd5b610d8783838360405180602001604052806000815250611d96565b3361115e611a03565b6001600160a01b0316146111845760405162461bcd60e51b8152600401610dbb90613855565b600b546000036111a65760405162461bcd60e51b8152600401610dbb90613938565b60108054911515600160481b0260ff60481b19909216919091179055565b600080546001600160801b031681805b8281101561125357600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061124a578583036112435750949350505050565b6001909201915b506001016111d4565b506040516329c8c00760e21b815260040160405180910390fd5b33611276611a03565b6001600160a01b03161461129c5760405162461bcd60e51b8152600401610dbb90613855565b80516112af9060119060208401906132ac565b5050565b60006112be82612cb6565b5192915050565b6002600854036112e75760405162461bcd60e51b8152600401610dbb9061396b565b6002600855336112f5611a03565b6001600160a01b03161461131b5760405162461bcd60e51b8152600401610dbb90613855565b806000811161133c5760405162461bcd60e51b8152600401610dbb906139a2565b6009546000546113569083906001600160801b03166139f9565b11156113745760405162461bcd60e51b8152600401610dbb90613a11565b601080548391906000906113929084906001600160401b0316613a53565b92506101000a8154816001600160401b0302191690836001600160401b031602179055506113c08383612dd8565b5050600160085550565b6002600854036113ec5760405162461bcd60e51b8152600401610dbb9061396b565b60026008553233146114105760405162461bcd60e51b8152600401610dbb90613a7e565b601054600160601b900460ff1615801561146e5750601054600160401b900460ff16806114465750601054600160481b900460ff165b8061145a5750601054600160501b900460ff165b8061146e5750601054600160581b900460ff165b6114b05760405162461bcd60e51b8152602060048201526013602482015272283932b9b0b6329034b9903737ba1037b832b760691b6044820152606401610dbb565b60006114bb82611f25565b90508083146114fd5760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610dbb565b6000831161151d5760405162461bcd60e51b8152600401610dbb906139a2565b6009546000546115379083906001600160801b03166139f9565b11156115555760405162461bcd60e51b8152600401610dbb90613a11565b600281036115bb57336000908152600e60205260408120805460ff19166001179055600f80548392906115929084906001600160401b0316613a53565b92506101000a8154816001600160401b0302191690836001600160401b031602179055506116b8565b6003810361160357336000908152600e60205260409020805460ff19166001179055600f80548291906008906115929084906001600160401b03600160401b90910416613a53565b6005810361164b57336000908152600e60205260409020805460ff19166001179055600f80548291906010906115929084906001600160401b03600160801b90910416613a53565b600a81036116b857336000908152600e60205260409020805460ff19166001179055600f80548291906018906116939084906001600160401b03600160c01b90910416613a53565b92506101000a8154816001600160401b0302191690836001600160401b031602179055505b6113c03382612dd8565b60006001600160a01b0382166116eb576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600460205260409020546001600160401b031690565b33611719611a03565b6001600160a01b03161461173f5760405162461bcd60e51b8152600401610dbb90613855565b6117496000612e32565b565b60606000611758836116c2565b90508060000361177c5760408051600080825260208201909252905b509392505050565b6000816001600160401b03811115611796576117966134da565b6040519080825280602002602001820160405280156117bf578160200160208202803683370190505b50600080549192509081906001600160801b03165b808210156119a157600082815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290806118505750876001600160a01b031681600001516001600160a01b031614155b15611867578261185f81613ac0565b93505061199b565b600083815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101919091525b80604001511580156118f45750886001600160a01b031681600001516001600160a01b031614806118f4575080516001600160a01b0316155b80156118ff57508685105b15611999578386868151811061191757611917613ad9565b60209081029190910101528461192c81613ac0565b955050838061193a90613ac0565b600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181019190915290955091506118bb9050565b505b506117d4565b509195945050505050565b50919050565b336119bb611a03565b6001600160a01b0316146119e15760405162461bcd60e51b8152600401610dbb90613855565b601480546001600160a01b0319166001600160a01b0392909216919091179055565b6007546001600160a01b031690565b606060028054610c3890613821565b6012546000906001600160a01b0316611a3d5750612710610c23565b6012546040516325eff5f360e21b81526001600160a01b03909116906397bfd7cc90611a6f9086908690600401613aef565b602060405180830381865afa158015611a8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab09190613b2b565b9392505050565b33611ac0611a03565b6001600160a01b031614611ae65760405162461bcd60e51b8152600401610dbb90613855565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b336001600160a01b03831603611b315760405163b06307db60e01b815260040160405180910390fd5b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b33611ba6611a03565b6001600160a01b031614611bcc5760405162461bcd60e51b8152600401610dbb90613855565b600c54600003611c155760405162461bcd60e51b815260206004820152601460248201527313d1c81c9bdbdd081b9bdd08185cdcda59db995960621b6044820152606401610dbb565b60108054911515600160501b0260ff60501b19909216919091179055565b600260085403611c555760405162461bcd60e51b8152600401610dbb9061396b565b6002600855323314611c795760405162461bcd60e51b8152600401610dbb90613a7e565b601054600160601b900460ff16611ccc5760405162461bcd60e51b8152602060048201526017602482015276283ab13634b19039b0b6329034b9903737ba1037b832b760491b6044820152606401610dbb565b8060008111611ced5760405162461bcd60e51b8152600401610dbb906139a2565b600954600054611d079083906001600160801b03166139f9565b1115611d255760405162461bcd60e51b8152600401610dbb90613a11565b666a94d74f4300008234611d398284613b44565b14611d815760405162461bcd60e51b8152602060048201526018602482015277125b98dbdc9c9958dd08115512081d985b1d59481cd95b9d60421b6044820152606401610dbb565b611d8b3385612dd8565b505060016008555050565b611da184848461291c565b611dad84848484612e84565b611dca576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b33611dd9611a03565b6001600160a01b031614611dff5760405162461bcd60e51b8152600401610dbb90613855565b600b55565b33611e0d611a03565b6001600160a01b031614611e335760405162461bcd60e51b8152600401610dbb90613855565b8035600a556020810135600b556040810135600c5560600135600d55565b6060611e5c8261288c565b611e7957604051630a14c4b560e41b815260040160405180910390fd5b6000611e83612f86565b90508051600003611ea35760405180602001604052806000815250611ab0565b80611ead84612f95565b604051602001611ebe929190613b63565b6040516020818303038152906040529392505050565b33611edd611a03565b6001600160a01b031614611f035760405162461bcd60e51b8152600401610dbb90613855565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b60408051600480825260a0820190925260009182919060208201608080368337019050509050600019611f588480613b89565b15905061209e57600a54600003611f815760405162461bcd60e51b8152600401610dbb906138ba565b611ff0611f8e8580613b89565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a54604051909250611fd591503390602001613bd9565b60405160208183030381529060405280519060200120613095565b61204a5760405162461bcd60e51b815260206004820152602560248201527f4d65726b6c6550726f6f663a20496e76616c69642077686974656c69737420706044820152643937b7b31760d91b6064820152608401610dbb565b50601054600090600160401b900460ff1680156120775750336000908152600e602052604090205460ff16155b1561209e5760028260008151811061209157612091613ad9565b6020026020010181815250505b6120ab6020850185613b89565b1590506121d757600b546000036120d45760405162461bcd60e51b8152600401610dbb90613938565b61212b6120e46020860186613b89565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b54604051909250611fd591503390602001613bd9565b6121835760405162461bcd60e51b815260206004820152602360248201527f4d65726b6c6550726f6f663a20496e76616c69642062616e616765722070726f60448201526237b31760e91b6064820152608401610dbb565b50601054600190600160481b900460ff1680156121b05750336000908152600e602052604090205460ff16155b156121d7576003826001815181106121ca576121ca613ad9565b6020026020010181815250505b6121e46040850185613b89565b15905061232b57600c546000036122345760405162461bcd60e51b81526020600482015260146024820152731bd9c81c9bdbdd081b9bdd08185cdcda59db995960621b6044820152606401610dbb565b61228b6122446040860186613b89565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c54604051909250611fd591503390602001613bd9565b6122d75760405162461bcd60e51b815260206004820152601e60248201527f4d65726b6c6550726f6f663a20496e76616c6964206f672070726f6f662e00006044820152606401610dbb565b50601054600290600160501b900460ff1680156123045750336000908152600e602052604090205460ff16155b1561232b5760058260028151811061231e5761231e613ad9565b6020026020010181815250505b6123386060850185613b89565b15905061245857600d546000036123615760405162461bcd60e51b8152600401610dbb9061388a565b6123b86123716060860186613b89565b8080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d54604051909250611fd591503390602001613bd9565b6124045760405162461bcd60e51b815260206004820181905260248201527f4d65726b6c6550726f6f663a20496e76616c6964207465616d2070726f6f662e6044820152606401610dbb565b50601054600390600160581b900460ff1680156124315750336000908152600e602052604090205460ff16155b1561245857600a8260038151811061244b5761244b613ad9565b6020026020010181815250505b600081600019146124805782828151811061247557612475613ad9565b602002602001015190505b949350505050565b33612491611a03565b6001600160a01b0316146124b75760405162461bcd60e51b8152600401610dbb90613855565b600d55565b600080546009546001600160801b03909116906124da908290613bf1565b91505090565b336124e9611a03565b6001600160a01b03161461250f5760405162461bcd60e51b8152600401610dbb90613855565b600a55565b3361251d611a03565b6001600160a01b0316146125435760405162461bcd60e51b8152600401610dbb90613855565b60108054911515600160601b0260ff60601b19909216919091179055565b6012546000906001600160a01b031661257c57506000919050565b6125858261288c565b6125a15760405162461bcd60e51b8152600401610dbb906138ef565b6012546040516338e9911960e21b8152600481018490526001600160a01b039091169063e3a6446490602401602060405180830381865afa1580156125ea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c239190613b2b565b33612617611a03565b6001600160a01b03161461263d5760405162461bcd60e51b8152600401610dbb90613855565b60148054911515600160a01b0260ff60a01b19909216919091179055565b6015546000906001600160a01b031615612725576015546014546001600160a01b0390911690600160a01b900460ff1680156127145750826001600160a01b0316816001600160a01b031663c4552791866040518263ffffffff1660e01b81526004016126c891906133fc565b602060405180830381865afa1580156126e5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127099190613c08565b6001600160a01b0316145b15612723576001915050610c23565b505b6013546001600160a01b039081169083160361274357506001610c23565b6001600160a01b0380841660009081526006602090815260408083209386168352929052205460ff16611ab0565b6010546000908190600160601b900460ff161561279057506002919050565b601054600160401b900460ff16806127b15750601054600160481b900460ff165b806127c55750601054600160501b900460ff165b806127d95750601054600160581b900460ff165b156127e657506001919050565b5060005b919050565b336127f8611a03565b6001600160a01b03161461281e5760405162461bcd60e51b8152600401610dbb90613855565b6001600160a01b0381166128835760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dbb565b610f8281612e32565b600080546001600160801b031682108015610c23575050600090815260036020526040902054600160e01b900460ff161590565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061292782612cb6565b80519091506000906001600160a01b0316336001600160a01b0316148061295557508151612955903361265b565b8061297057503361296584610cbb565b6001600160a01b0316145b90508061299057604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b0316146129c55760405162a1148160e81b815260040160405180910390fd5b6001600160a01b0384166129ec57604051633a954ecd60e21b815260040160405180910390fd5b6129fc60008484600001516128c0565b6001600160a01b03858116600090815260046020908152604080832080546001600160401b03198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600390945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612aee576000546001600160801b0316811015612aee57825160008281526003602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b0316600080516020613cbe83398151915260405160405180910390a45b5050505050565b6000612b3182612cb6565b9050612b4360008383600001516128c0565b80516001600160a01b03908116600090815260046020908152604080832080546001600160401b031981166001600160401b0391821660001901821617909155855185168452818420805467ffffffffffffffff60801b198116600160801b9182900484166001908101851690920217909155865188865260039094528285208054600160e01b9588166001600160e01b031990911617600160a01b42909416939093029290921760ff60e01b1916939093179055908501808352912054909116612c62576000546001600160801b0316811015612c6257815160008281526003602090815260409091208054918501516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b50805160405183916000916001600160a01b0390911690600080516020613cbe833981519152908390a450506000805460016001600160801b03600160801b80840482169290920181169091029116179055565b60408051606081018252600080825260208201819052918101829052905482906001600160801b0316811015612dbf57600081815260036020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612dbd5780516001600160a01b031615612d54579392505050565b5060001901600081815260036020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612db8579392505050565b612d54565b505b604051636f96cda160e11b815260040160405180910390fd5b612de282826130ab565b600054604080513381526001600160801b03909216602083015281018290527f632c10eae0d60cdbb9833174e3c8d2e7c94d79affd5cc24929a18d00677089819060600160405180910390a15050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b15612f7b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ec8903390899088908890600401613c25565b6020604051808303816000875af1925050508015612f03575060408051601f3d908101601f19168201909252612f0091810190613c62565b60015b612f61573d808015612f31576040519150601f19603f3d011682016040523d82523d6000602084013e612f36565b606091505b508051600003612f59576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612480565b506001949350505050565b606060118054610c3890613821565b606081600003612fbc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612fe65780612fd081613ac0565b9150612fdf9050600a83613c95565b9150612fc0565b6000816001600160401b03811115613000576130006134da565b6040519080825280601f01601f19166020018201604052801561302a576020820181803683370190505b5090505b84156124805761303f600183613bf1565b915061304c600a86613ca9565b6130579060306139f9565b60f81b81838151811061306c5761306c613ad9565b60200101906001600160f81b031916908160001a90535061308e600a86613c95565b945061302e565b6000826130a285846130c5565b14949350505050565b6112af828260405180602001604052806000815250613131565b600081815b84518110156117745760008582815181106130e7576130e7613ad9565b6020026020010151905080831161310d576000838152602082905260409020925061311e565b600081815260208490526040902092505b508061312981613ac0565b9150506130ca565b610d8783838360016000546001600160801b03166001600160a01b03851661316b57604051622e076360e81b815260040160405180910390fd5b8360000361318c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260046020908152604080832080546001600160801b031981166001600160401b038083168c018116918217600160401b6001600160401b031990941690921783900481168c018116909202179091558584526003909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156132865760405182906001600160a01b03891690600090600080516020613cbe833981519152908290a483801561325c575061325a6000888488612e84565b155b1561327a576040516368d2bf6b60e11b815260040160405180910390fd5b60019182019101613217565b50600080546001600160801b0319166001600160801b0392909216919091179055612b1f565b8280546132b890613821565b90600052602060002090601f0160209004810192826132da5760008555613320565b82601f106132f357805160ff1916838001178555613320565b82800160010185558215613320579182015b82811115613320578251825591602001919060010190613305565b5061332c929150613330565b5090565b5b8082111561332c5760008155600101613331565b6001600160e01b031981168114610f8257600080fd5b60006020828403121561336d57600080fd5b8135611ab081613345565b60005b8381101561339357818101518382015260200161337b565b83811115611dca5750506000910152565b600081518084526133bc816020860160208601613378565b601f01601f19169290920160200192915050565b602081526000611ab060208301846133a4565b6000602082840312156133f557600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6001600160a01b0381168114610f8257600080fd5b6000806040838503121561343857600080fd5b823561344381613410565b946020939093013593505050565b803580151581146127ea57600080fd5b60006020828403121561347357600080fd5b611ab082613451565b60006020828403121561348e57600080fd5b8135611ab081613410565b6000806000606084860312156134ae57600080fd5b83356134b981613410565b925060208401356134c981613410565b929592945050506040919091013590565b634e487b7160e01b600052604160045260246000fd5b60006001600160401b038084111561350a5761350a6134da565b604051601f8501601f19908116603f01168101908282118183101715613532576135326134da565b8160405280935085815286868601111561354b57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561357757600080fd5b81356001600160401b0381111561358d57600080fd5b8201601f8101841361359e57600080fd5b612480848235602084016134f0565b8060808101831015610c2357600080fd5b600080604083850312156135d157600080fd5b8235915060208301356001600160401b038111156135ee57600080fd5b6135fa858286016135ad565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561363c57835183529284019291840191600101613620565b50909695505050505050565b6000806020838503121561365b57600080fd5b82356001600160401b038082111561367257600080fd5b818501915085601f83011261368657600080fd5b81358181111561369557600080fd5b8660208260051b85010111156136aa57600080fd5b60209290920196919550909350505050565b600080604083850312156136cf57600080fd5b82356136da81613410565b91506136e860208401613451565b90509250929050565b6000806000806080858703121561370757600080fd5b843561371281613410565b9350602085013561372281613410565b92506040850135915060608501356001600160401b0381111561374457600080fd5b8501601f8101871361375557600080fd5b613764878235602084016134f0565b91505092959194509250565b60006080828403121561378257600080fd5b611ab083836135ad565b60006020828403121561379e57600080fd5b81356001600160401b038111156137b457600080fd5b612480848285016135ad565b600080604083850312156137d357600080fd5b82356137de81613410565b915060208301356137ee81613410565b809150509250929050565b602081016003831061381b57634e487b7160e01b600052602160045260246000fd5b91905290565b600181811c9082168061383557607f821691505b6020821081036119ac57634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601690820152751d19585b481c9bdbdd081b9bdd08185cdcda59db995960521b604082015260600190565b6020808252601b908201527a1dda1a5d195b1a5cdd081c9bdbdd081b9bdd08185cdcda59db9959602a1b604082015260600190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b60208082526019908201527818985b9859d95c881c9bdbdd081b9bdd08185cdcda59db9959603a1b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526021908201527f4d696e7420636f756e74206d7573742062652067726561746572207468616e206040820152600360fc1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008219821115613a0c57613a0c6139e3565b500190565b60208082526022908201527f4e6f7420656e6f7567682062656172732072656d61696e696e6720746f206d696040820152611b9d60f21b606082015260800190565b60006001600160401b03808316818516808303821115613a7557613a756139e3565b01949350505050565b60208082526022908201527f636f6e7472616374206973206e6f7420616c6c6f77656420746f206f70657261604082015261746560f01b606082015260800190565b600060018201613ad257613ad26139e3565b5060010190565b634e487b7160e01b600052603260045260246000fd5b6020808252810182905260006001600160fb1b03831115613b0f57600080fd5b8260051b80856040850137600092016040019182525092915050565b600060208284031215613b3d57600080fd5b5051919050565b6000816000190483118215151615613b5e57613b5e6139e3565b500290565b60008351613b75818460208801613378565b835190830190613a75818360208801613378565b6000808335601e19843603018112613ba057600080fd5b8301803591506001600160401b03821115613bba57600080fd5b6020019150600581901b3603821315613bd257600080fd5b9250929050565b60609190911b6001600160601b031916815260140190565b600082821015613c0357613c036139e3565b500390565b600060208284031215613c1a57600080fd5b8151611ab081613410565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613c58908301846133a4565b9695505050505050565b600060208284031215613c7457600080fd5b8151611ab081613345565b634e487b7160e01b600052601260045260246000fd5b600082613ca457613ca4613c7f565b500490565b600082613cb857613cb8613c7f565b50069056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220b6f321debe97b0e924552ac16025f6edebabd8179436d08b4be479ce4d5b549364736f6c634300080d0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000000000000000000000000000000000000000007d0000000000000000000000000000000000000000000000000000000000000000d537570657242656172436c75620000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000035342430000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): SuperBearClub
Arg [1] : symbol (string): SBC
Arg [2] : _openSeaProxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [3] : _maxBears (uint256): 2000
-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [3] : 00000000000000000000000000000000000000000000000000000000000007d0
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [5] : 537570657242656172436c756200000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 5342430000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.