Overview
TokenID
720
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Atevada
Compiler Version
v0.8.1+commit.df193b15
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import '@openzeppelin/contracts/utils/math/SafeMath.sol'; import '@openzeppelin/contracts/utils/cryptography/MerkleProof.sol'; import '@openzeppelin/contracts/access/Ownable.sol'; import '@openzeppelin/contracts/security/ReentrancyGuard.sol'; import './ERC721A.sol'; import './AtevadaTokenAccessControl.sol'; // // .#? // BBBB // GGGGGG ~ // # GGGGGGG! ~ // BB~ & PPPPPP! ~ // &GG :GGGGGG PPPP! ~ // P&PPPPPPPPPPPP &5555 // P&PPPPP&& PPP G555555 // 5&&&&&5~ 555 P &5555! // 555 5 &YYYY!! // Y&YYYYYYYY P YYYYY~ Y // YYYYYYY YY &YYY Y // YYYY ~ Y YYYY!Y // Y YYYY Y Y YYYYYYY ~ // YYYYYY Y YYYY! ~ // Y&YYYYY ~ Y!Y // ^ ~ // Atevada Team interface IATVD { function balanceOR(address _user) external view returns(uint256); } contract AtevadaToken is ERC20, AtevadaTokenAccessControl{ using SafeMath for uint256; uint256 constant public BASE_RATE = 1 ether; uint256 constant public INITIAL_ISSUANCE = 10 ether; // Saturday March 13 2032 6:00:00 GMT+0000 uint256 constant public END = 1962770400; mapping(address => uint256) public rewards; mapping(address => uint256) public lastUpdate; IATVD public atevadaContract; event RewardPaid(address indexed user, uint256 reward); constructor(address _atevada ) ERC20('Relics', 'RLX'){ atevadaContract = IATVD(_atevada); _mint(msg.sender, 100 ether); } // For events function devMint(address _to, uint256 amount) requireContractOwner external { _mint(_to, amount); } function authMint(address _to, uint256 amount) requireIsCallerAuthorized external { _mint(_to, amount); } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } // called when minting many NFTs function updateRewardOnMint(address _user, uint256 _amount) requireIsOperational requireIsCallerAuthorized external { // require(msg.sender == address(atevadaContract), "Can't call this"); uint256 time = min(block.timestamp, END); uint256 timerUser = lastUpdate[_user]; if (timerUser > 0) rewards[_user] = rewards[_user].add(atevadaContract.balanceOR(_user).mul(BASE_RATE.mul((time.sub(timerUser)))).div(86400) .add(_amount.mul(INITIAL_ISSUANCE))); else rewards[_user] = rewards[_user].add(_amount.mul(INITIAL_ISSUANCE)); lastUpdate[_user] = time; } // called on transfers function updateReward(address _from, address _to) requireIsOperational requireIsCallerAuthorized external { uint256 time = min(block.timestamp, END); uint256 timerFrom = lastUpdate[_from]; if (timerFrom > 0) rewards[_from] += atevadaContract.balanceOR(_from).mul(BASE_RATE.mul((time.sub(timerFrom)))).div(86400); if (timerFrom != END) lastUpdate[_from] = time; if (_to != address(0)) { uint256 timerTo = lastUpdate[_to]; if (timerTo > 0) rewards[_to] += atevadaContract.balanceOR(_to).mul(BASE_RATE.mul((time.sub(timerTo)))).div(86400); if (timerTo != END) lastUpdate[_to] = time; } } function getReward(address _to) requireIsOperational requireIsCallerAuthorized external { uint256 reward = rewards[_to]; if (reward > 0) { rewards[_to] = 0; _mint(_to, reward); emit RewardPaid(_to, reward); } } function burn(address _from, uint256 _amount) requireIsOperational requireIsCallerAuthorized external { _burn(_from, _amount); } function getTotalClaimable(address _user) external view returns(uint256) { uint256 time = min(block.timestamp, END); uint256 pending = atevadaContract.balanceOR(_user).mul(BASE_RATE.mul((time.sub(lastUpdate[_user])))).div(86400); return rewards[_user] + pending; } function setAtevadaContract(address _atevada) requireContractOwner external { atevadaContract = IATVD(_atevada); } } contract Atevada is ERC721A, ReentrancyGuard, Ownable { mapping(address => uint256) public balanceOR; AtevadaToken public atevadaToken; string public ATEVADA_PROVENANCE = ""; uint256 public startingIndexBlock; uint256 public startingIndex; uint256 public immutable maxPerAddressDuringMint; uint256 public constant AMOUNT_FOR_DEVS = 15; // 5 for the team and 10 for events and marketing uint256 public constant FREE_MINT_SUPPLY = 56; // For DawnBreakers uint256 public constant TOTAL_RESERVED = AMOUNT_FOR_DEVS + FREE_MINT_SUPPLY; uint256 public freeMintCount; mapping(address => uint256) public whitelistedClaim; mapping(address => bool ) public freeMintClaimed; bytes32 public WhiteListRoot = 0x71885696576cd9a50c7835cfff10873ee62b2ab8421795dde31ce0a9efe525b7; bytes32 public FreeMintRoot = 0x905372df4a5ca5ee678ab422a5873ca3049f484e040d7b34fa1c2d2af0bdac07; bytes32 public DiscountRoot = 0x076bf24fc8f002f11bc0cfe61c07c6c4e3c985b2da8b665214816caeb7d25174; bool public isPause = false; bool public isPublicSale = false; bool public isWhiteListSale = true; bool public isDevMint = false; constructor( uint256 maxBatchSize_, uint256 collectionSize_ ) ERC721A("AtevadaRelicOfLoka", "ATVDRoL", maxBatchSize_, collectionSize_) { maxPerAddressDuringMint = maxBatchSize_; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } modifier requireIsOperational() { require(!isPause, "Contract is currently not operational"); _; } modifier requireIsPublicSale() { require(isPublicSale, "Public Sale is not operational"); _; } modifier requireIsWhiteListSale() { require(isWhiteListSale, "WhiteList Sale is not operational"); _; } function setPauseStatus(bool _status) external onlyOwner { isPause = _status; } function setPublicSale(bool _status) external onlyOwner { isPublicSale = _status; } function setWhiteListSale(bool _status) external onlyOwner { isWhiteListSale = _status; } // MerkleProof Fail-safe function setWhiteListRoot(bytes32 _newRoot) external onlyOwner { WhiteListRoot = _newRoot; } function setFreeMintRoot(bytes32 _newRoot) external onlyOwner { FreeMintRoot = _newRoot; } function setDiscountRoot(bytes32 _newRoot) external onlyOwner { DiscountRoot = _newRoot; } function whitelistSaleMint(uint256 _quantity, bytes32[] calldata _merkleProof, bytes32[] calldata _discountMerkleProof) callerIsUser requireIsWhiteListSale requireIsOperational external payable { require(whitelistedClaim[msg.sender] == 0, "Error: user has minted"); require(_quantity > 0, "Minimum mint amount is 1"); require(_quantity == 1 || _quantity == 3 || _quantity == 5, "Can only mint using the provided options"); require(totalSupply() + _quantity <= collectionSize - TOTAL_RESERVED, "Purchase would reached max supply"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, WhiteListRoot, leaf), "Invalid proof."); uint256 price; if(MerkleProof.verify(_discountMerkleProof, DiscountRoot, leaf)){ if(_quantity == 1){ price = 0.027 ether; }else if(_quantity == 3){ price = 0.065 ether; }else if(_quantity == 5){ price = 0.1 ether; } require(msg.value >= price, "insufficient funds"); _safeMint(msg.sender, _quantity); refundIfOver(price); }else { if(_quantity == 1){ price = 0.03 ether; }else if(_quantity == 3){ price = 0.08 ether; }else if(_quantity == 5){ price = 0.12 ether; } require(msg.value >= price, "insufficient funds"); _safeMint(msg.sender, _quantity); refundIfOver(price); } whitelistedClaim[msg.sender] = 1; balanceOR[msg.sender] = balanceOR[msg.sender] + _quantity; atevadaToken.updateRewardOnMint(msg.sender, _quantity); // If we haven't set the starting index and this is either 1) the last saleable token or 2) the first token to be sold after // the end of pre-sale, set the starting index block if (startingIndexBlock == 0 && (totalSupply() == collectionSize)) { startingIndexBlock = block.number; } } function publicSaleMint(uint256 _quantity, bytes32[] calldata _discountMerkleProof) callerIsUser requireIsPublicSale requireIsOperational external payable { require(_quantity > 0, "Minimum mint amount is 1"); require(_quantity == 1 || _quantity == 3 || _quantity == 5, "Can only mint using the provided options"); require(totalSupply() + _quantity <= collectionSize - TOTAL_RESERVED, "Purchase would reached max supply"); uint256 price; bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); if(MerkleProof.verify(_discountMerkleProof, DiscountRoot, leaf)){ if(_quantity == 1){ price = 0.037 ether; }else if(_quantity == 3){ price = 0.075 ether; }else if(_quantity == 5){ price = 0.11 ether; } require(msg.value >= price, "insufficient funds"); _safeMint(msg.sender, _quantity); refundIfOver(price); }else { if(_quantity == 1){ price = 0.04 ether; }else if(_quantity == 3){ price = 0.09 ether; }else if(_quantity == 5){ price = 0.13 ether; } require(msg.value >= price, "insufficient funds"); _safeMint(msg.sender, _quantity); refundIfOver(price); } balanceOR[msg.sender] = balanceOR[msg.sender] + _quantity; atevadaToken.updateRewardOnMint(msg.sender, _quantity); // If we haven't set the starting index and this is either 1) the last saleable token or 2) the first token to be sold after // the end of pre-sale, set the starting index block if (startingIndexBlock == 0 && (totalSupply() == collectionSize)) { startingIndexBlock = block.number; } } // For Dawn Breakers function freeMint(bytes32[] calldata _merkleProof) callerIsUser requireIsOperational external { require(!freeMintClaimed[msg.sender], "Address has already claimed."); require(totalSupply() + 1 <= collectionSize, "Purchase would reached max supply"); require(freeMintCount + 1 <= FREE_MINT_SUPPLY, "Purchase exceed allocated Free mint supply"); bytes32 leaf = keccak256(abi.encodePacked(msg.sender)); require(MerkleProof.verify(_merkleProof, FreeMintRoot, leaf), "Invalid proof."); freeMintClaimed[msg.sender] = true; freeMintCount++; _safeMint(msg.sender, 1); balanceOR[msg.sender] = balanceOR[msg.sender] + 1; atevadaToken.updateRewardOnMint(msg.sender, 1); // If we haven't set the starting index and this is either 1) the last saleable token or 2) the first token to be sold after // the end of pre-sale, set the starting index block if (startingIndexBlock == 0 && (totalSupply() == collectionSize)) { startingIndexBlock = block.number; } } // For Devs, Events & Marketing function devMint() external onlyOwner { require(isDevMint == false, "Dev Has already minted!"); require(totalSupply() + AMOUNT_FOR_DEVS <= collectionSize, "Dev Mint would reached max supply"); isDevMint = true; _safeMint(msg.sender, AMOUNT_FOR_DEVS); balanceOR[msg.sender] = balanceOR[msg.sender] + AMOUNT_FOR_DEVS; atevadaToken.updateRewardOnMint(msg.sender, AMOUNT_FOR_DEVS); // If we haven't set the starting index and this is either 1) the last saleable token or 2) the first token to be sold after // the end of pre-sale, set the starting index block if (startingIndexBlock == 0 && (totalSupply() == collectionSize)) { startingIndexBlock = block.number; } } function refundIfOver(uint256 price) private { require(msg.value >= price, "Need to send more ETH."); if (msg.value > price) { payable(msg.sender).transfer(msg.value - price); } } function setYieldToken(address _atevadaYield) external onlyOwner { atevadaToken = AtevadaToken(_atevadaYield); } function getReward() external { atevadaToken.updateReward(msg.sender, address(0)); atevadaToken.getReward(msg.sender); } function transferFrom(address from, address to, uint256 tokenId) public override { atevadaToken.updateReward(from, to); balanceOR[from]--; balanceOR[to]++; ERC721A.transferFrom(from, to, tokenId); } function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory _data) public override { atevadaToken.updateReward(from, to); balanceOR[from]--; balanceOR[to]++; ERC721A.safeTransferFrom(from, to, tokenId, _data); } // ProvenanceHash functions and startingIndex function setProvenanceHash(string memory provenanceHash) external onlyOwner { ATEVADA_PROVENANCE = provenanceHash; } function setStartingIndex() public { require(startingIndex == 0, "Starting index is already set"); require(startingIndexBlock != 0, "Starting index block must be set"); startingIndex = uint(blockhash(startingIndexBlock)) % collectionSize; // Just a sanity case in the worst case if this function is called late (EVM only stores last 256 block hashes) if (block.number - startingIndexBlock > 255) { startingIndex = uint(blockhash(block.number - 1)) % collectionSize; } // Prevent default sequence if (startingIndex == 0) { startingIndex += 1; } } function emergencySetStartingIndexBlock() public onlyOwner { require(startingIndex == 0, "Starting index is already set"); startingIndexBlock = block.number; } // metadata URI string private _baseTokenURI; function _baseURI() internal view virtual override returns (string memory) { return _baseTokenURI; } function setBaseURI(string calldata baseURI) external onlyOwner { _baseTokenURI = baseURI; } function withdraw() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } function setOwnersExplicit(uint256 quantity) external onlyOwner nonReentrant { _setOwnersExplicit(quantity); } function numberMinted(address owner) public view returns (uint256) { return _numberMinted(owner); } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev 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 the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // 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) private _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; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). 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) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @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) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @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) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be 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); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _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 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); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, 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)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @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); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @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("ERC721A: transfer to non ERC721Receiver implementer"); } 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. * * 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`. */ 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. * * 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` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract AtevadaTokenAccessControl { mapping(address => uint256) private authorizedContracts; bool private operational = true; address public contractOwner; constructor(){ contractOwner = msg.sender; } modifier requireIsOperational() { require(operational, "Contract is currently not operational"); _; } modifier requireContractOwner() { require(msg.sender == contractOwner, "Caller is not contract owner"); _; } modifier requireIsCallerAuthorized() { require(authorizedContracts[msg.sender] == 1, "Caller is not an authorized contract"); _; } function setContractOwner(address _newContractOwner) public requireContractOwner { require(_newContractOwner != address(0)); contractOwner = _newContractOwner; } function isOperational() public view returns(bool) { return operational; } function setOperatingStatus (bool mode) external requireContractOwner { operational = mode; } function authorizeCaller( address contractAddress) external requireContractOwner { authorizedContracts[contractAddress] = 1; } function isAuthorized(address contractAddress) external view returns(bool) { return(authorizedContracts[contractAddress] == 1); } function deauthorizeCaller( address contractAddress) external requireContractOwner { delete authorizedContracts[contractAddress]; } }
// 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 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, _allowances[owner][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = _allowances[owner][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Spend `amount` form the allowance of `owner` toward `spender`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} }
// 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": 200 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"maxBatchSize_","type":"uint256"},{"internalType":"uint256","name":"collectionSize_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AMOUNT_FOR_DEVS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ATEVADA_PROVENANCE","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DiscountRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FREE_MINT_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FreeMintRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_RESERVED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WhiteListRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"atevadaToken","outputs":[{"internalType":"contract AtevadaToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencySetStartingIndexBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"freeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMintClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"freeMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReward","outputs":[],"stateMutability":"nonpayable","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":"isDevMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhiteListSale","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerAddressDuringMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_discountMerkleProof","type":"bytes32[]"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"setDiscountRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"setFreeMintRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setPauseStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"provenanceHash","type":"string"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStartingIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"setWhiteListRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setWhiteListSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_atevadaYield","type":"address"}],"name":"setYieldToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndexBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"bytes32[]","name":"_discountMerkleProof","type":"bytes32[]"}],"name":"whitelistSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60008080556007819055610100604081905260e08290526200002591600c919062000228565b507f71885696576cd9a50c7835cfff10873ee62b2ab8421795dde31ce0a9efe525b76012557f905372df4a5ca5ee678ab422a5873ca3049f484e040d7b34fa1c2d2af0bdac076013557f076bf24fc8f002f11bc0cfe61c07c6c4e3c985b2da8b665214816caeb7d251746014556015805463ff0000001962ffffff199091166201000017169055348015620000b957600080fd5b506040516200491638038062004916833981016040819052620000dc91620002ce565b604051806040016040528060128152602001714174657661646152656c69634f664c6f6b6160701b8152506040518060400160405280600781526020016610551591149bd360ca1b815250838360008111620001555760405162461bcd60e51b81526004016200014c9062000339565b60405180910390fd5b60008211620001785760405162461bcd60e51b81526004016200014c90620002f2565b83516200018d90600190602087019062000228565b508251620001a390600290602086019062000228565b5060a09190915260805250506001600855620001c8620001c2620001d2565b620001d6565b5060c052620003c4565b3390565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002369062000387565b90600052602060002090601f0160209004810192826200025a5760008555620002a5565b82601f106200027557805160ff1916838001178555620002a5565b82800160010185558215620002a5579182015b82811115620002a557825182559160200191906001019062000288565b50620002b3929150620002b7565b5090565b5b80821115620002b35760008155600101620002b8565b60008060408385031215620002e1578182fd5b505080516020909101519092909150565b60208082526027908201527f455243373231413a206d61782062617463682073697a65206d757374206265206040820152666e6f6e7a65726f60c81b606082015260800190565b6020808252602e908201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060408201526d6e6f6e7a65726f20737570706c7960901b606082015260800190565b6002810460018216806200039c57607f821691505b60208210811415620003be57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c0516144c76200044f6000396000611f75015260008181612796015281816127c00152612e5e01526000818161102a01528181611288015281816115c60152818161188901528181611b2c01528181611c3d01528181611d5c01528181611f3c01528181612348015281816123890152818161258e01526125c001526144c76000f3fe60806040526004361061038c5760003560e01c8063715018a6116101dc578063c87b56dd11610102578063e55f58bb116100a0578063f10fa3d81161006f578063f10fa3d814610985578063f2fde38b146109a5578063f338a4a1146109c5578063ff0938a7146109e55761038c565b8063e55f58bb14610926578063e985e9c51461093b578063e98665501461095b578063e9f9baf7146109705761038c565b8063d7224ba0116100dc578063d7224ba0146108bc578063dc33e681146108d1578063e0ec7c36146108f1578063e36d6498146109115761038c565b8063c87b56dd14610872578063cb774d4714610892578063cf2526d9146108a75761038c565b80638da5cb5b1161017a578063a5a865dc11610149578063a5a865dc146107fd578063abc45af814610812578063b88d4fde14610832578063c38bb537146108525761038c565b80638da5cb5b146107865780639231ab2a1461079b57806395d89b41146107c8578063a22cb465146107dd5761038c565b80637d17fcbe116101b65780637d17fcbe1461071c578063860f36e61461073157806388d15d50146107515780638bc35c2f146107715761038c565b8063715018a6146106dd57806378f5c9e9146106f25780637c69e207146107075761038c565b80633d18b912116102c157806355f804b31161025f57806363eb8bb61161022e57806363eb8bb6146106735780636d3ebe661461068857806370a082311461069d57806370c42575146106bd5761038c565b806355f804b3146105fe57806359d2be671461061e5780635aca1bb6146106335780636352211e146106535761038c565b80634d0db5fb1161029b5780634d0db5fb146105a15780634d4fadc9146105b45780634f6ccce7146105c957806351ef1e4d146105e95761038c565b80633d18b9121461054c57806342842e0e1461056157806345149bb3146105815761038c565b806323ffce851161032e5780632d20fb60116103085780632d20fb60146104e45780632f745c591461050457806336728c0f146105245780633ccfd60b146105375761038c565b806323ffce851461049a57806328b768a2146104ba5780632bf0f128146104cf5761038c565b8063095ea7b31161036a578063095ea7b314610416578063109695231461043857806318160ddd1461045857806323b872dd1461047a5761038c565b806301ffc9a71461039157806306fdde03146103c7578063081812fc146103e9575b600080fd5b34801561039d57600080fd5b506103b16103ac36600461357e565b6109fa565b6040516103be9190613825565b60405180910390f35b3480156103d357600080fd5b506103dc610a5d565b6040516103be9190613839565b3480156103f557600080fd5b50610409610404366004613566565b610aef565b6040516103be91906137a1565b34801561042257600080fd5b506104366104313660046134e4565b610b3b565b005b34801561044457600080fd5b50610436610453366004613622565b610bd4565b34801561046457600080fd5b5061046d610c2a565b6040516103be9190613830565b34801561048657600080fd5b50610436610495366004613408565b610c30565b3480156104a657600080fd5b506104366104b53660046133bc565b610cf1565b3480156104c657600080fd5b5061046d610d52565b3480156104db57600080fd5b506103dc610d58565b3480156104f057600080fd5b506104366104ff366004613566565b610de6565b34801561051057600080fd5b5061046d61051f3660046134e4565b610e5e565b610436610532366004613667565b610f59565b34801561054357600080fd5b506104366112c2565b34801561055857600080fd5b5061043661139f565b34801561056d57600080fd5b5061043661057c366004613408565b611468565b34801561058d57600080fd5b5061043661059c366004613566565b611483565b6104366105af3660046136b0565b6114c7565b3480156105c057600080fd5b5061046d6118c5565b3480156105d557600080fd5b5061046d6105e4366004613566565b6118ca565b3480156105f557600080fd5b5061046d6118f6565b34801561060a57600080fd5b506104366106193660046135b6565b6118fc565b34801561062a57600080fd5b506103b1611947565b34801561063f57600080fd5b5061043661064e36600461354c565b611956565b34801561065f57600080fd5b5061040961066e366004613566565b6119af565b34801561067f57600080fd5b5061046d6119c1565b34801561069457600080fd5b506103b16119c6565b3480156106a957600080fd5b5061046d6106b83660046133bc565b6119d6565b3480156106c957600080fd5b506104366106d8366004613566565b611a23565b3480156106e957600080fd5b50610436611a67565b3480156106fe57600080fd5b5061046d611ab2565b34801561071357600080fd5b50610436611ac1565b34801561072857600080fd5b50610436611c71565b34801561073d57600080fd5b5061046d61074c3660046133bc565b611cd6565b34801561075d57600080fd5b5061043661076c36600461350d565b611ce8565b34801561077d57600080fd5b5061046d611f73565b34801561079257600080fd5b50610409611f97565b3480156107a757600080fd5b506107bb6107b6366004613566565b611fa6565b6040516103be91906142d6565b3480156107d457600080fd5b506103dc611fb7565b3480156107e957600080fd5b506104366107f83660046134bb565b611fc6565b34801561080957600080fd5b506103b1612094565b34801561081e57600080fd5b5061043661082d36600461354c565b6120a2565b34801561083e57600080fd5b5061043661084d366004613443565b6120fd565b34801561085e57600080fd5b5061043661086d36600461354c565b6121bf565b34801561087e57600080fd5b506103dc61088d366004613566565b612211565b34801561089e57600080fd5b5061046d612294565b3480156108b357600080fd5b5061046d61229a565b3480156108c857600080fd5b5061046d6122a0565b3480156108dd57600080fd5b5061046d6108ec3660046133bc565b6122a6565b3480156108fd57600080fd5b506103b161090c3660046133bc565b6122b1565b34801561091d57600080fd5b5061046d6122c6565b34801561093257600080fd5b5061046d6122cc565b34801561094757600080fd5b506103b16109563660046133d6565b6122d2565b34801561096757600080fd5b50610436612300565b34801561097c57600080fd5b506104096123e3565b34801561099157600080fd5b506104366109a0366004613566565b6123f2565b3480156109b157600080fd5b506104366109c03660046133bc565b612436565b3480156109d157600080fd5b5061046d6109e03660046133bc565b6124a7565b3480156109f157600080fd5b506103b16124b9565b60006001600160e01b031982166380ac58cd60e01b1480610a2b57506001600160e01b03198216635b5e139f60e01b145b80610a4657506001600160e01b0319821663780e9d6360e01b145b80610a555750610a55826124c2565b90505b919050565b606060018054610a6c906143cf565b80601f0160208091040260200160405190810160405280929190818152602001828054610a98906143cf565b8015610ae55780601f10610aba57610100808354040283529160200191610ae5565b820191906000526020600020905b815481529060010190602001808311610ac857829003601f168201915b5050505050905090565b6000610afa826124db565b610b1f5760405162461bcd60e51b8152600401610b16906141ff565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b46826119af565b9050806001600160a01b0316836001600160a01b03161415610b7a5760405162461bcd60e51b8152600401610b1690613eb4565b806001600160a01b0316610b8c6124e2565b6001600160a01b03161480610ba85750610ba8816109566124e2565b610bc45760405162461bcd60e51b8152600401610b1690613b8e565b610bcf8383836124e6565b505050565b610bdc6124e2565b6001600160a01b0316610bed611f97565b6001600160a01b031614610c135760405162461bcd60e51b8152600401610b1690613d62565b8051610c2690600c9060208401906131b8565b5050565b60005490565b600b54604051636918579d60e11b81526001600160a01b039091169063d230af3a90610c6290869086906004016137b5565b600060405180830381600087803b158015610c7c57600080fd5b505af1158015610c90573d6000803e3d6000fd5b505050506001600160a01b0383166000908152600a60205260408120805491610cb8836143b8565b90915550506001600160a01b0382166000908152600a60205260408120805491610ce18361440a565b9190505550610bcf838383612542565b610cf96124e2565b6001600160a01b0316610d0a611f97565b6001600160a01b031614610d305760405162461bcd60e51b8152600401610b1690613d62565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60145481565b600c8054610d65906143cf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d91906143cf565b8015610dde5780601f10610db357610100808354040283529160200191610dde565b820191906000526020600020905b815481529060010190602001808311610dc157829003601f168201915b505050505081565b610dee6124e2565b6001600160a01b0316610dff611f97565b6001600160a01b031614610e255760405162461bcd60e51b8152600401610b1690613d62565b60026008541415610e485760405162461bcd60e51b8152600401610b1690614179565b6002600855610e568161254d565b506001600855565b6000610e69836119d6565b8210610e875760405162461bcd60e51b8152600401610b169061384c565b6000610e91610c2a565b905060008060005b83811015610f3a576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610eeb57805192505b876001600160a01b0316836001600160a01b03161415610f275786841415610f1957509350610f5392505050565b83610f238161440a565b9450505b5080610f328161440a565b915050610e99565b5060405162461bcd60e51b8152600401610b16906140e5565b92915050565b323314610f785760405162461bcd60e51b8152600401610b1690613ad6565b601554610100900460ff16610f9f5760405162461bcd60e51b8152600401610b1690613d2b565b60155460ff1615610fc25760405162461bcd60e51b8152600401610b1690613e6f565b60008311610fe25760405162461bcd60e51b8152600401610b169061393b565b8260011480610ff15750826003145b80610ffc5750826005145b6110185760405162461bcd60e51b8152600401610b169061428e565b6110246038600f614321565b61104e907f0000000000000000000000000000000000000000000000000000000000000000614375565b83611057610c2a565b6110619190614321565b111561107f5760405162461bcd60e51b8152600401610b1690613a95565b600080336040516020016110939190613752565b6040516020818303038152906040528051906020012090506110ec8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060145491508490506126d7565b1561116f578460011415611109576683734dd0b080009150611137565b84600314156111225767010a741a462780009150611137565b846005141561113757670186cc6acd4b000091505b813410156111575760405162461bcd60e51b8152600401610b1690613f2b565b61116133866126ed565b61116a82612707565b6111e8565b846001141561118757668e1bc9bf04000091506111b5565b84600314156111a05767013fbe85edc9000091506111b5565b84600514156111b5576701cdda4faccd000091505b813410156111d55760405162461bcd60e51b8152600401610b1690613f2b565b6111df33866126ed565b6111e882612707565b336000908152600a6020526040902054611203908690614321565b336000818152600a60205260409081902092909255600b54915163cc240c0160e01b81526001600160a01b039092169163cc240c019161124791899060040161380c565b600060405180830381600087803b15801561126157600080fd5b505af1158015611275573d6000803e3d6000fd5b50505050600d5460001480156112b157507f00000000000000000000000000000000000000000000000000000000000000006112af610c2a565b145b156112bb5743600d555b5050505050565b6112ca6124e2565b6001600160a01b03166112db611f97565b6001600160a01b0316146113015760405162461bcd60e51b8152600401610b1690613d62565b600260085414156113245760405162461bcd60e51b8152600401610b1690614179565b60026008556040516000903390479061133c9061379e565b60006040518083038185875af1925050503d8060008114611379576040519150601f19603f3d011682016040523d82523d6000602084013e61137e565b606091505b5050905080610e565760405162461bcd60e51b8152600401610b1690613f57565b600b54604051636918579d60e11b81526001600160a01b039091169063d230af3a906113d29033906000906004016137b5565b600060405180830381600087803b1580156113ec57600080fd5b505af1158015611400573d6000803e3d6000fd5b5050600b54604051630c00007b60e41b81526001600160a01b03909116925063c00007b091506114349033906004016137a1565b600060405180830381600087803b15801561144e57600080fd5b505af1158015611462573d6000803e3d6000fd5b50505050565b610bcf838383604051806020016040528060008152506120fd565b61148b6124e2565b6001600160a01b031661149c611f97565b6001600160a01b0316146114c25760405162461bcd60e51b8152600401610b1690613d62565b601255565b3233146114e65760405162461bcd60e51b8152600401610b1690613ad6565b60155462010000900460ff1661150e5760405162461bcd60e51b8152600401610b16906140a4565b60155460ff16156115315760405162461bcd60e51b8152600401610b1690613e6f565b336000908152601060205260409020541561155e5760405162461bcd60e51b8152600401610b169061390b565b6000851161157e5760405162461bcd60e51b8152600401610b169061393b565b846001148061158d5750846003145b806115985750846005145b6115b45760405162461bcd60e51b8152600401610b169061428e565b6115c06038600f614321565b6115ea907f0000000000000000000000000000000000000000000000000000000000000000614375565b856115f3610c2a565b6115fd9190614321565b111561161b5760405162461bcd60e51b8152600401610b1690613a95565b60003360405160200161162e9190613752565b6040516020818303038152906040528051906020012090506116878585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060125491508490506126d7565b6116a35760405162461bcd60e51b8152600401610b169061407c565b60006116e68484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060145491508590506126d7565b156117655786600114156117025750665fec5b60ef800061172d565b8660031415611719575066e6ed27d666800061172d565b866005141561172d575067016345785d8a00005b8034101561174d5760405162461bcd60e51b8152600401610b1690613f2b565b61175733886126ed565b61176081612707565b6117db565b866001141561177c5750666a94d74f4300006117a8565b8660031415611794575067011c37937e0800006117a8565b86600514156117a857506701aa535d3d0c00005b803410156117c85760405162461bcd60e51b8152600401610b1690613f2b565b6117d233886126ed565b6117db81612707565b33600090815260106020908152604080832060019055600a909152902054611804908890614321565b336000818152600a60205260409081902092909255600b54915163cc240c0160e01b81526001600160a01b039092169163cc240c0191611848918b9060040161380c565b600060405180830381600087803b15801561186257600080fd5b505af1158015611876573d6000803e3d6000fd5b50505050600d5460001480156118b257507f00000000000000000000000000000000000000000000000000000000000000006118b0610c2a565b145b156118bc5743600d555b50505050505050565b600f81565b60006118d4610c2a565b82106118f25760405162461bcd60e51b8152600401610b16906139bc565b5090565b60125481565b6119046124e2565b6001600160a01b0316611915611f97565b6001600160a01b03161461193b5760405162461bcd60e51b8152600401610b1690613d62565b610bcf60168383613238565b60155462010000900460ff1681565b61195e6124e2565b6001600160a01b031661196f611f97565b6001600160a01b0316146119955760405162461bcd60e51b8152600401610b1690613d62565b601580549115156101000261ff0019909216919091179055565b60006119ba82612765565b5192915050565b603881565b6015546301000000900460ff1681565b60006001600160a01b0382166119fe5760405162461bcd60e51b8152600401610b1690613c63565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b611a2b6124e2565b6001600160a01b0316611a3c611f97565b6001600160a01b031614611a625760405162461bcd60e51b8152600401610b1690613d62565b601355565b611a6f6124e2565b6001600160a01b0316611a80611f97565b6001600160a01b031614611aa65760405162461bcd60e51b8152600401610b1690613d62565b611ab06000612877565b565b611abe6038600f614321565b81565b611ac96124e2565b6001600160a01b0316611ada611f97565b6001600160a01b031614611b005760405162461bcd60e51b8152600401610b1690613d62565b6015546301000000900460ff1615611b2a5760405162461bcd60e51b8152600401610b1690613cae565b7f0000000000000000000000000000000000000000000000000000000000000000600f611b55610c2a565b611b5f9190614321565b1115611b7d5760405162461bcd60e51b8152600401610b1690613c22565b6015805463ff00000019166301000000179055611b9b33600f6126ed565b336000908152600a6020526040902054611bb790600f90614321565b336000818152600a60205260409081902092909255600b54915163cc240c0160e01b81526001600160a01b039092169163cc240c0191611bfc91600f9060040161380c565b600060405180830381600087803b158015611c1657600080fd5b505af1158015611c2a573d6000803e3d6000fd5b50505050600d546000148015611c6657507f0000000000000000000000000000000000000000000000000000000000000000611c64610c2a565b145b15611ab05743600d55565b611c796124e2565b6001600160a01b0316611c8a611f97565b6001600160a01b031614611cb05760405162461bcd60e51b8152600401610b1690613d62565b600e5415611cd05760405162461bcd60e51b8152600401610b1690613b0d565b43600d55565b60106020526000908152604090205481565b323314611d075760405162461bcd60e51b8152600401610b1690613ad6565b60155460ff1615611d2a5760405162461bcd60e51b8152600401610b1690613e6f565b3360009081526011602052604090205460ff1615611d5a5760405162461bcd60e51b8152600401610b169061388e565b7f0000000000000000000000000000000000000000000000000000000000000000611d83610c2a565b611d8e906001614321565b1115611dac5760405162461bcd60e51b8152600401610b1690613a95565b6038600f546001611dbd9190614321565b1115611ddb5760405162461bcd60e51b8152600401610b1690613b44565b600033604051602001611dee9190613752565b604051602081830303815290604052805190602001209050611e478383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060135491508490506126d7565b611e635760405162461bcd60e51b8152600401610b169061407c565b336000908152601160205260408120805460ff19166001179055600f805491611e8b8361440a565b9190505550611e9b3360016126ed565b336000908152600a6020526040902054611eb6906001614321565b336000818152600a60205260409081902092909255600b54915163cc240c0160e01b81526001600160a01b039092169163cc240c0191611efb9160019060040161380c565b600060405180830381600087803b158015611f1557600080fd5b505af1158015611f29573d6000803e3d6000fd5b50505050600d546000148015611f6557507f0000000000000000000000000000000000000000000000000000000000000000611f63610c2a565b145b15610bcf5743600d55505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6009546001600160a01b031690565b611fae6132ac565b610a5582612765565b606060028054610a6c906143cf565b611fce6124e2565b6001600160a01b0316826001600160a01b03161415611fff5760405162461bcd60e51b8152600401610b1690613de6565b806006600061200c6124e2565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556120506124e2565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120889190613825565b60405180910390a35050565b601554610100900460ff1681565b6120aa6124e2565b6001600160a01b03166120bb611f97565b6001600160a01b0316146120e15760405162461bcd60e51b8152600401610b1690613d62565b60158054911515620100000262ff000019909216919091179055565b600b54604051636918579d60e11b81526001600160a01b039091169063d230af3a9061212f90879087906004016137b5565b600060405180830381600087803b15801561214957600080fd5b505af115801561215d573d6000803e3d6000fd5b505050506001600160a01b0384166000908152600a60205260408120805491612185836143b8565b90915550506001600160a01b0383166000908152600a602052604081208054916121ae8361440a565b9190505550611462848484846128c9565b6121c76124e2565b6001600160a01b03166121d8611f97565b6001600160a01b0316146121fe5760405162461bcd60e51b8152600401610b1690613d62565b6015805460ff1916911515919091179055565b606061221c826124db565b6122385760405162461bcd60e51b8152600401610b1690613d97565b60006122426128fc565b90506000815111612262576040518060200160405280600081525061228d565b8061226c8461290b565b60405160200161227d92919061376f565b6040516020818303038152906040525b9392505050565b600e5481565b60135481565b60075481565b6000610a5582612a2d565b60116020526000908152604090205460ff1681565b600d5481565b600f5481565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b600e54156123205760405162461bcd60e51b8152600401610b1690613b0d565b600d5461233f5760405162461bcd60e51b8152600401610b1690613ef6565b600d5461236e907f00000000000000000000000000000000000000000000000000000000000000009040614425565b600e55600d5460ff906123819043614375565b11156123c2577f00000000000000000000000000000000000000000000000000000000000000006123b3600143614375565b6123be919040614425565b600e555b600e54611ab0576001600e60008282546123dc9190614321565b9091555050565b600b546001600160a01b031681565b6123fa6124e2565b6001600160a01b031661240b611f97565b6001600160a01b0316146124315760405162461bcd60e51b8152600401610b1690613d62565b601455565b61243e6124e2565b6001600160a01b031661244f611f97565b6001600160a01b0316146124755760405162461bcd60e51b8152600401610b1690613d62565b6001600160a01b03811661249b5760405162461bcd60e51b8152600401610b16906138c5565b6124a481612877565b50565b600a6020526000908152604090205481565b60155460ff1681565b6001600160e01b031981166301ffc9a760e01b14919050565b6000541190565b3390565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610bcf838383612a81565b6007548161256d5760405162461bcd60e51b8152600401610b1690613beb565b6000600161257b8484614321565b6125859190614375565b90506125b260017f0000000000000000000000000000000000000000000000000000000000000000614375565b8111156125e7576125e460017f0000000000000000000000000000000000000000000000000000000000000000614375565b90505b6125f0816124db565b61260c5760405162461bcd60e51b8152600401610b1690614133565b815b8181116126c3576000818152600360205260409020546001600160a01b03166126b157600061263c82612765565b60408051808201825282516001600160a01b0390811682526020938401516001600160401b0390811685840190815260008881526003909652939094209151825493516001600160a01b031990941691161767ffffffffffffffff60a01b1916600160a01b9290931691909102919091179055505b806126bb8161440a565b91505061260e565b506126cf816001614321565b600755505050565b6000826126e48584612d93565b14949350505050565b610c26828260405180602001604052806000815250612e0d565b803410156127275760405162461bcd60e51b8152600401610b1690613fd4565b803411156124a457336108fc61273d8334614375565b6040518115909202916000818181858888f19350505050158015610c26573d6000803e3d6000fd5b61276d6132ac565b612776826124db565b6127925760405162461bcd60e51b8152600401610b1690613972565b60007f000000000000000000000000000000000000000000000000000000000000000083106127f3576127e57f000000000000000000000000000000000000000000000000000000000000000084614375565b6127f0906001614321565b90505b825b81811061285e576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561284b579250610a58915050565b5080612856816143b8565b9150506127f5565b5060405162461bcd60e51b8152600401610b16906141b0565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6128d4848484612a81565b6128e08484848461307f565b6114625760405162461bcd60e51b8152600401610b1690613f81565b606060168054610a6c906143cf565b60608161293057506040805180820190915260018152600360fc1b6020820152610a58565b8160005b811561295a57806129448161440a565b91506129539050600a83614339565b9150612934565b6000816001600160401b0381111561298257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156129ac576020820181803683370190505b5090505b8415612a25576129c1600183614375565b91506129ce600a86614425565b6129d9906030614321565b60f81b8183815181106129fc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612a1e600a86614339565b94506129b0565b949350505050565b60006001600160a01b038216612a555760405162461bcd60e51b8152600401610b1690613a44565b506001600160a01b0316600090815260046020526040902054600160801b90046001600160801b031690565b6000612a8c82612765565b9050600081600001516001600160a01b0316612aa66124e2565b6001600160a01b03161480612adb5750612abe6124e2565b6001600160a01b0316612ad084610aef565b6001600160a01b0316145b80612aef57508151612aef906109566124e2565b905080612b0e5760405162461bcd60e51b8152600401610b1690613e1d565b846001600160a01b031682600001516001600160a01b031614612b435760405162461bcd60e51b8152600401610b1690613ce5565b6001600160a01b038416612b695760405162461bcd60e51b8152600401610b16906139ff565b612b768585856001611462565b612b8660008484600001516124e6565b6001600160a01b0385166000908152600460205260408120805460019290612bb89084906001600160801b031661434d565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612c04918591166142ff565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b0267ffffffffffffffff60a01b19929093166001600160a01b03199091161716179055612c99846001614321565b6000818152600360205260409020549091506001600160a01b0316612d3d57612cc1816124db565b15612d3d5760408051808201825284516001600160a01b0390811682526020808701516001600160401b0390811682850190815260008781526003909352949091209251835494516001600160a01b031990951692169190911767ffffffffffffffff60a01b1916600160a01b93909116929092029190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d8b8686866001611462565b505050505050565b600081815b8451811015612e05576000858281518110612dc357634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311612de557612dde838261319a565b9250612df2565b612def818461319a565b92505b5080612dfd8161440a565b915050612d98565b509392505050565b6000546001600160a01b038416612e365760405162461bcd60e51b8152600401610b169061403b565b612e3f816124db565b15612e5c5760405162461bcd60e51b8152600401610b1690614004565b7f0000000000000000000000000000000000000000000000000000000000000000831115612e9c5760405162461bcd60e51b8152600401610b169061424c565b612ea96000858386611462565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612f059087906142ff565b6001600160801b03168152602001858360200151612f2391906142ff565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087518154988401518816600160801b029088166fffffffffffffffffffffffffffffffff199099169890981790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b0267ffffffffffffffff60a01b19959093166001600160a01b031990941693909317939093161790915582905b8581101561306d5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613031600088848861307f565b61304d5760405162461bcd60e51b8152600401610b1690613f81565b816130578161440a565b92505080806130659061440a565b915050612fe4565b506000818155612d8b90878588611462565b6000613093846001600160a01b03166131a9565b1561318f57836001600160a01b031663150b7a026130af6124e2565b8786866040518563ffffffff1660e01b81526004016130d194939291906137cf565b602060405180830381600087803b1580156130eb57600080fd5b505af192505050801561311b575060408051601f3d908101601f191682019092526131189181019061359a565b60015b613175573d808015613149576040519150601f19603f3d011682016040523d82523d6000602084013e61314e565b606091505b50805161316d5760405162461bcd60e51b8152600401610b1690613f81565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a25565b506001949350505050565b60009182526020526040902090565b6001600160a01b03163b151590565b8280546131c4906143cf565b90600052602060002090601f0160209004810192826131e6576000855561322c565b82601f106131ff57805160ff191683800117855561322c565b8280016001018555821561322c579182015b8281111561322c578251825591602001919060010190613211565b506118f29291506132c3565b828054613244906143cf565b90600052602060002090601f016020900481019282613266576000855561322c565b82601f1061327f5782800160ff1982351617855561322c565b8280016001018555821561322c579182015b8281111561322c578235825591602001919060010190613291565b604080518082019091526000808252602082015290565b5b808211156118f257600081556001016132c4565b60006001600160401b03808411156132f2576132f2614465565b604051601f8501601f19908116603f0116810190828211818310171561331a5761331a614465565b8160405280935085815286868601111561333357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114610a5857600080fd5b60008083601f840112613375578081fd5b5081356001600160401b0381111561338b578182fd5b60208301915083602080830285010111156133a557600080fd5b9250929050565b80358015158114610a5857600080fd5b6000602082840312156133cd578081fd5b61228d8261334d565b600080604083850312156133e8578081fd5b6133f18361334d565b91506133ff6020840161334d565b90509250929050565b60008060006060848603121561341c578081fd5b6134258461334d565b92506134336020850161334d565b9150604084013590509250925092565b60008060008060808587031215613458578081fd5b6134618561334d565b935061346f6020860161334d565b92506040850135915060608501356001600160401b03811115613490578182fd5b8501601f810187136134a0578182fd5b6134af878235602084016132d8565b91505092959194509250565b600080604083850312156134cd578182fd5b6134d68361334d565b91506133ff602084016133ac565b600080604083850312156134f6578182fd5b6134ff8361334d565b946020939093013593505050565b6000806020838503121561351f578182fd5b82356001600160401b03811115613534578283fd5b61354085828601613364565b90969095509350505050565b60006020828403121561355d578081fd5b61228d826133ac565b600060208284031215613577578081fd5b5035919050565b60006020828403121561358f578081fd5b813561228d8161447b565b6000602082840312156135ab578081fd5b815161228d8161447b565b600080602083850312156135c8578182fd5b82356001600160401b03808211156135de578384fd5b818501915085601f8301126135f1578384fd5b8135818111156135ff578485fd5b866020828501011115613610578485fd5b60209290920196919550909350505050565b600060208284031215613633578081fd5b81356001600160401b03811115613648578182fd5b8201601f81018413613658578182fd5b612a25848235602084016132d8565b60008060006040848603121561367b578081fd5b8335925060208401356001600160401b03811115613697578182fd5b6136a386828701613364565b9497909650939450505050565b6000806000806000606086880312156136c7578283fd5b8535945060208601356001600160401b03808211156136e4578485fd5b6136f089838a01613364565b90965094506040880135915080821115613708578283fd5b5061371588828901613364565b969995985093965092949392505050565b6000815180845261373e81602086016020860161438c565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b6000835161378181846020880161438c565b83519083019061379581836020880161438c565b01949350505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061380290830184613726565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b60006020825261228d6020830184613726565b60208082526022908201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252601c908201527f416464726573732068617320616c726561647920636c61696d65642e00000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b602080825260169082015275115c9c9bdc8e881d5cd95c881a185cc81b5a5b9d195960521b604082015260600190565b60208082526018908201527f4d696e696d756d206d696e7420616d6f756e7420697320310000000000000000604082015260600190565b6020808252602a908201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736040820152693a32b73a103a37b5b2b760b11b606082015260800190565b60208082526023908201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756040820152626e647360e81b606082015260800190565b60208082526025908201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526031908201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260408201527020746865207a65726f206164647265737360781b606082015260800190565b60208082526021908201527f507572636861736520776f756c642072656163686564206d617820737570706c6040820152607960f81b606082015260800190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b6020808252601d908201527f5374617274696e6720696e64657820697320616c726561647920736574000000604082015260600190565b6020808252602a908201527f50757263686173652065786365656420616c6c6f63617465642046726565206d604082015269696e7420737570706c7960b01b606082015260800190565b60208082526039908201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606082015260800190565b60208082526018908201527f7175616e74697479206d757374206265206e6f6e7a65726f0000000000000000604082015260600190565b60208082526021908201527f446576204d696e7420776f756c642072656163686564206d617820737570706c6040820152607960f81b606082015260800190565b6020808252602b908201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60408201526a65726f206164647265737360a81b606082015260800190565b60208082526017908201527f4465762048617320616c7265616479206d696e74656421000000000000000000604082015260600190565b60208082526026908201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746040820152651037bbb732b960d11b606082015260800190565b6020808252601e908201527f5075626c69632053616c65206973206e6f74206f7065726174696f6e616c0000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252601a908201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604082015260600190565b60208082526032908201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206040820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606082015260800190565b60208082526025908201527f436f6e74726163742069732063757272656e746c79206e6f74206f70657261746040820152641a5bdb985b60da1b606082015260800190565b60208082526022908201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60408201526132b960f11b606082015260800190565b6020808252818101527f5374617274696e6720696e64657820626c6f636b206d75737420626520736574604082015260600190565b602080825260129082015271696e73756666696369656e742066756e647360701b604082015260600190565b60208082526010908201526f2a3930b739b332b9103330b4b632b21760811b604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601690820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b604082015260600190565b6020808252601d908201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604082015260600190565b60208082526021908201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252600e908201526d24b73b30b634b210383937b7b31760911b604082015260600190565b60208082526021908201527f57686974654c6973742053616c65206973206e6f74206f7065726174696f6e616040820152601b60fa1b606082015260800190565b6020808252602e908201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060408201526d0deeedccae440c4f240d2dcc8caf60931b606082015260800190565b60208082526026908201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360408201526506c65616e75760d41b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252602f908201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560408201526e1037bbb732b91037b3103a37b5b2b760891b606082015260800190565b6020808252602d908201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560408201526c3c34b9ba32b73a103a37b5b2b760991b606082015260800190565b60208082526022908201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696040820152610ced60f31b606082015260800190565b60208082526028908201527f43616e206f6e6c79206d696e74207573696e67207468652070726f7669646564604082015267206f7074696f6e7360c01b606082015260800190565b81516001600160a01b031681526020918201516001600160401b03169181019190915260400190565b60006001600160801b0380831681851680830382111561379557613795614439565b6000821982111561433457614334614439565b500190565b6000826143485761434861444f565b500490565b60006001600160801b038381169083168181101561436d5761436d614439565b039392505050565b60008282101561438757614387614439565b500390565b60005b838110156143a757818101518382015260200161438f565b838111156114625750506000910152565b6000816143c7576143c7614439565b506000190190565b6002810460018216806143e357607f821691505b6020821081141561440457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561441e5761441e614439565b5060010190565b6000826144345761443461444f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146124a457600080fdfea26469706673582212203ccc2c342d7f02f260b6dbb8c0fe4f3371d3a1cecc228e471d5df9fe35a04bd564736f6c63430008010033000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000457
Deployed Bytecode
0x60806040526004361061038c5760003560e01c8063715018a6116101dc578063c87b56dd11610102578063e55f58bb116100a0578063f10fa3d81161006f578063f10fa3d814610985578063f2fde38b146109a5578063f338a4a1146109c5578063ff0938a7146109e55761038c565b8063e55f58bb14610926578063e985e9c51461093b578063e98665501461095b578063e9f9baf7146109705761038c565b8063d7224ba0116100dc578063d7224ba0146108bc578063dc33e681146108d1578063e0ec7c36146108f1578063e36d6498146109115761038c565b8063c87b56dd14610872578063cb774d4714610892578063cf2526d9146108a75761038c565b80638da5cb5b1161017a578063a5a865dc11610149578063a5a865dc146107fd578063abc45af814610812578063b88d4fde14610832578063c38bb537146108525761038c565b80638da5cb5b146107865780639231ab2a1461079b57806395d89b41146107c8578063a22cb465146107dd5761038c565b80637d17fcbe116101b65780637d17fcbe1461071c578063860f36e61461073157806388d15d50146107515780638bc35c2f146107715761038c565b8063715018a6146106dd57806378f5c9e9146106f25780637c69e207146107075761038c565b80633d18b912116102c157806355f804b31161025f57806363eb8bb61161022e57806363eb8bb6146106735780636d3ebe661461068857806370a082311461069d57806370c42575146106bd5761038c565b806355f804b3146105fe57806359d2be671461061e5780635aca1bb6146106335780636352211e146106535761038c565b80634d0db5fb1161029b5780634d0db5fb146105a15780634d4fadc9146105b45780634f6ccce7146105c957806351ef1e4d146105e95761038c565b80633d18b9121461054c57806342842e0e1461056157806345149bb3146105815761038c565b806323ffce851161032e5780632d20fb60116103085780632d20fb60146104e45780632f745c591461050457806336728c0f146105245780633ccfd60b146105375761038c565b806323ffce851461049a57806328b768a2146104ba5780632bf0f128146104cf5761038c565b8063095ea7b31161036a578063095ea7b314610416578063109695231461043857806318160ddd1461045857806323b872dd1461047a5761038c565b806301ffc9a71461039157806306fdde03146103c7578063081812fc146103e9575b600080fd5b34801561039d57600080fd5b506103b16103ac36600461357e565b6109fa565b6040516103be9190613825565b60405180910390f35b3480156103d357600080fd5b506103dc610a5d565b6040516103be9190613839565b3480156103f557600080fd5b50610409610404366004613566565b610aef565b6040516103be91906137a1565b34801561042257600080fd5b506104366104313660046134e4565b610b3b565b005b34801561044457600080fd5b50610436610453366004613622565b610bd4565b34801561046457600080fd5b5061046d610c2a565b6040516103be9190613830565b34801561048657600080fd5b50610436610495366004613408565b610c30565b3480156104a657600080fd5b506104366104b53660046133bc565b610cf1565b3480156104c657600080fd5b5061046d610d52565b3480156104db57600080fd5b506103dc610d58565b3480156104f057600080fd5b506104366104ff366004613566565b610de6565b34801561051057600080fd5b5061046d61051f3660046134e4565b610e5e565b610436610532366004613667565b610f59565b34801561054357600080fd5b506104366112c2565b34801561055857600080fd5b5061043661139f565b34801561056d57600080fd5b5061043661057c366004613408565b611468565b34801561058d57600080fd5b5061043661059c366004613566565b611483565b6104366105af3660046136b0565b6114c7565b3480156105c057600080fd5b5061046d6118c5565b3480156105d557600080fd5b5061046d6105e4366004613566565b6118ca565b3480156105f557600080fd5b5061046d6118f6565b34801561060a57600080fd5b506104366106193660046135b6565b6118fc565b34801561062a57600080fd5b506103b1611947565b34801561063f57600080fd5b5061043661064e36600461354c565b611956565b34801561065f57600080fd5b5061040961066e366004613566565b6119af565b34801561067f57600080fd5b5061046d6119c1565b34801561069457600080fd5b506103b16119c6565b3480156106a957600080fd5b5061046d6106b83660046133bc565b6119d6565b3480156106c957600080fd5b506104366106d8366004613566565b611a23565b3480156106e957600080fd5b50610436611a67565b3480156106fe57600080fd5b5061046d611ab2565b34801561071357600080fd5b50610436611ac1565b34801561072857600080fd5b50610436611c71565b34801561073d57600080fd5b5061046d61074c3660046133bc565b611cd6565b34801561075d57600080fd5b5061043661076c36600461350d565b611ce8565b34801561077d57600080fd5b5061046d611f73565b34801561079257600080fd5b50610409611f97565b3480156107a757600080fd5b506107bb6107b6366004613566565b611fa6565b6040516103be91906142d6565b3480156107d457600080fd5b506103dc611fb7565b3480156107e957600080fd5b506104366107f83660046134bb565b611fc6565b34801561080957600080fd5b506103b1612094565b34801561081e57600080fd5b5061043661082d36600461354c565b6120a2565b34801561083e57600080fd5b5061043661084d366004613443565b6120fd565b34801561085e57600080fd5b5061043661086d36600461354c565b6121bf565b34801561087e57600080fd5b506103dc61088d366004613566565b612211565b34801561089e57600080fd5b5061046d612294565b3480156108b357600080fd5b5061046d61229a565b3480156108c857600080fd5b5061046d6122a0565b3480156108dd57600080fd5b5061046d6108ec3660046133bc565b6122a6565b3480156108fd57600080fd5b506103b161090c3660046133bc565b6122b1565b34801561091d57600080fd5b5061046d6122c6565b34801561093257600080fd5b5061046d6122cc565b34801561094757600080fd5b506103b16109563660046133d6565b6122d2565b34801561096757600080fd5b50610436612300565b34801561097c57600080fd5b506104096123e3565b34801561099157600080fd5b506104366109a0366004613566565b6123f2565b3480156109b157600080fd5b506104366109c03660046133bc565b612436565b3480156109d157600080fd5b5061046d6109e03660046133bc565b6124a7565b3480156109f157600080fd5b506103b16124b9565b60006001600160e01b031982166380ac58cd60e01b1480610a2b57506001600160e01b03198216635b5e139f60e01b145b80610a4657506001600160e01b0319821663780e9d6360e01b145b80610a555750610a55826124c2565b90505b919050565b606060018054610a6c906143cf565b80601f0160208091040260200160405190810160405280929190818152602001828054610a98906143cf565b8015610ae55780601f10610aba57610100808354040283529160200191610ae5565b820191906000526020600020905b815481529060010190602001808311610ac857829003601f168201915b5050505050905090565b6000610afa826124db565b610b1f5760405162461bcd60e51b8152600401610b16906141ff565b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610b46826119af565b9050806001600160a01b0316836001600160a01b03161415610b7a5760405162461bcd60e51b8152600401610b1690613eb4565b806001600160a01b0316610b8c6124e2565b6001600160a01b03161480610ba85750610ba8816109566124e2565b610bc45760405162461bcd60e51b8152600401610b1690613b8e565b610bcf8383836124e6565b505050565b610bdc6124e2565b6001600160a01b0316610bed611f97565b6001600160a01b031614610c135760405162461bcd60e51b8152600401610b1690613d62565b8051610c2690600c9060208401906131b8565b5050565b60005490565b600b54604051636918579d60e11b81526001600160a01b039091169063d230af3a90610c6290869086906004016137b5565b600060405180830381600087803b158015610c7c57600080fd5b505af1158015610c90573d6000803e3d6000fd5b505050506001600160a01b0383166000908152600a60205260408120805491610cb8836143b8565b90915550506001600160a01b0382166000908152600a60205260408120805491610ce18361440a565b9190505550610bcf838383612542565b610cf96124e2565b6001600160a01b0316610d0a611f97565b6001600160a01b031614610d305760405162461bcd60e51b8152600401610b1690613d62565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b60145481565b600c8054610d65906143cf565b80601f0160208091040260200160405190810160405280929190818152602001828054610d91906143cf565b8015610dde5780601f10610db357610100808354040283529160200191610dde565b820191906000526020600020905b815481529060010190602001808311610dc157829003601f168201915b505050505081565b610dee6124e2565b6001600160a01b0316610dff611f97565b6001600160a01b031614610e255760405162461bcd60e51b8152600401610b1690613d62565b60026008541415610e485760405162461bcd60e51b8152600401610b1690614179565b6002600855610e568161254d565b506001600855565b6000610e69836119d6565b8210610e875760405162461bcd60e51b8152600401610b169061384c565b6000610e91610c2a565b905060008060005b83811015610f3a576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215610eeb57805192505b876001600160a01b0316836001600160a01b03161415610f275786841415610f1957509350610f5392505050565b83610f238161440a565b9450505b5080610f328161440a565b915050610e99565b5060405162461bcd60e51b8152600401610b16906140e5565b92915050565b323314610f785760405162461bcd60e51b8152600401610b1690613ad6565b601554610100900460ff16610f9f5760405162461bcd60e51b8152600401610b1690613d2b565b60155460ff1615610fc25760405162461bcd60e51b8152600401610b1690613e6f565b60008311610fe25760405162461bcd60e51b8152600401610b169061393b565b8260011480610ff15750826003145b80610ffc5750826005145b6110185760405162461bcd60e51b8152600401610b169061428e565b6110246038600f614321565b61104e907f0000000000000000000000000000000000000000000000000000000000000457614375565b83611057610c2a565b6110619190614321565b111561107f5760405162461bcd60e51b8152600401610b1690613a95565b600080336040516020016110939190613752565b6040516020818303038152906040528051906020012090506110ec8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060145491508490506126d7565b1561116f578460011415611109576683734dd0b080009150611137565b84600314156111225767010a741a462780009150611137565b846005141561113757670186cc6acd4b000091505b813410156111575760405162461bcd60e51b8152600401610b1690613f2b565b61116133866126ed565b61116a82612707565b6111e8565b846001141561118757668e1bc9bf04000091506111b5565b84600314156111a05767013fbe85edc9000091506111b5565b84600514156111b5576701cdda4faccd000091505b813410156111d55760405162461bcd60e51b8152600401610b1690613f2b565b6111df33866126ed565b6111e882612707565b336000908152600a6020526040902054611203908690614321565b336000818152600a60205260409081902092909255600b54915163cc240c0160e01b81526001600160a01b039092169163cc240c019161124791899060040161380c565b600060405180830381600087803b15801561126157600080fd5b505af1158015611275573d6000803e3d6000fd5b50505050600d5460001480156112b157507f00000000000000000000000000000000000000000000000000000000000004576112af610c2a565b145b156112bb5743600d555b5050505050565b6112ca6124e2565b6001600160a01b03166112db611f97565b6001600160a01b0316146113015760405162461bcd60e51b8152600401610b1690613d62565b600260085414156113245760405162461bcd60e51b8152600401610b1690614179565b60026008556040516000903390479061133c9061379e565b60006040518083038185875af1925050503d8060008114611379576040519150601f19603f3d011682016040523d82523d6000602084013e61137e565b606091505b5050905080610e565760405162461bcd60e51b8152600401610b1690613f57565b600b54604051636918579d60e11b81526001600160a01b039091169063d230af3a906113d29033906000906004016137b5565b600060405180830381600087803b1580156113ec57600080fd5b505af1158015611400573d6000803e3d6000fd5b5050600b54604051630c00007b60e41b81526001600160a01b03909116925063c00007b091506114349033906004016137a1565b600060405180830381600087803b15801561144e57600080fd5b505af1158015611462573d6000803e3d6000fd5b50505050565b610bcf838383604051806020016040528060008152506120fd565b61148b6124e2565b6001600160a01b031661149c611f97565b6001600160a01b0316146114c25760405162461bcd60e51b8152600401610b1690613d62565b601255565b3233146114e65760405162461bcd60e51b8152600401610b1690613ad6565b60155462010000900460ff1661150e5760405162461bcd60e51b8152600401610b16906140a4565b60155460ff16156115315760405162461bcd60e51b8152600401610b1690613e6f565b336000908152601060205260409020541561155e5760405162461bcd60e51b8152600401610b169061390b565b6000851161157e5760405162461bcd60e51b8152600401610b169061393b565b846001148061158d5750846003145b806115985750846005145b6115b45760405162461bcd60e51b8152600401610b169061428e565b6115c06038600f614321565b6115ea907f0000000000000000000000000000000000000000000000000000000000000457614375565b856115f3610c2a565b6115fd9190614321565b111561161b5760405162461bcd60e51b8152600401610b1690613a95565b60003360405160200161162e9190613752565b6040516020818303038152906040528051906020012090506116878585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060125491508490506126d7565b6116a35760405162461bcd60e51b8152600401610b169061407c565b60006116e68484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060145491508590506126d7565b156117655786600114156117025750665fec5b60ef800061172d565b8660031415611719575066e6ed27d666800061172d565b866005141561172d575067016345785d8a00005b8034101561174d5760405162461bcd60e51b8152600401610b1690613f2b565b61175733886126ed565b61176081612707565b6117db565b866001141561177c5750666a94d74f4300006117a8565b8660031415611794575067011c37937e0800006117a8565b86600514156117a857506701aa535d3d0c00005b803410156117c85760405162461bcd60e51b8152600401610b1690613f2b565b6117d233886126ed565b6117db81612707565b33600090815260106020908152604080832060019055600a909152902054611804908890614321565b336000818152600a60205260409081902092909255600b54915163cc240c0160e01b81526001600160a01b039092169163cc240c0191611848918b9060040161380c565b600060405180830381600087803b15801561186257600080fd5b505af1158015611876573d6000803e3d6000fd5b50505050600d5460001480156118b257507f00000000000000000000000000000000000000000000000000000000000004576118b0610c2a565b145b156118bc5743600d555b50505050505050565b600f81565b60006118d4610c2a565b82106118f25760405162461bcd60e51b8152600401610b16906139bc565b5090565b60125481565b6119046124e2565b6001600160a01b0316611915611f97565b6001600160a01b03161461193b5760405162461bcd60e51b8152600401610b1690613d62565b610bcf60168383613238565b60155462010000900460ff1681565b61195e6124e2565b6001600160a01b031661196f611f97565b6001600160a01b0316146119955760405162461bcd60e51b8152600401610b1690613d62565b601580549115156101000261ff0019909216919091179055565b60006119ba82612765565b5192915050565b603881565b6015546301000000900460ff1681565b60006001600160a01b0382166119fe5760405162461bcd60e51b8152600401610b1690613c63565b506001600160a01b03166000908152600460205260409020546001600160801b031690565b611a2b6124e2565b6001600160a01b0316611a3c611f97565b6001600160a01b031614611a625760405162461bcd60e51b8152600401610b1690613d62565b601355565b611a6f6124e2565b6001600160a01b0316611a80611f97565b6001600160a01b031614611aa65760405162461bcd60e51b8152600401610b1690613d62565b611ab06000612877565b565b611abe6038600f614321565b81565b611ac96124e2565b6001600160a01b0316611ada611f97565b6001600160a01b031614611b005760405162461bcd60e51b8152600401610b1690613d62565b6015546301000000900460ff1615611b2a5760405162461bcd60e51b8152600401610b1690613cae565b7f0000000000000000000000000000000000000000000000000000000000000457600f611b55610c2a565b611b5f9190614321565b1115611b7d5760405162461bcd60e51b8152600401610b1690613c22565b6015805463ff00000019166301000000179055611b9b33600f6126ed565b336000908152600a6020526040902054611bb790600f90614321565b336000818152600a60205260409081902092909255600b54915163cc240c0160e01b81526001600160a01b039092169163cc240c0191611bfc91600f9060040161380c565b600060405180830381600087803b158015611c1657600080fd5b505af1158015611c2a573d6000803e3d6000fd5b50505050600d546000148015611c6657507f0000000000000000000000000000000000000000000000000000000000000457611c64610c2a565b145b15611ab05743600d55565b611c796124e2565b6001600160a01b0316611c8a611f97565b6001600160a01b031614611cb05760405162461bcd60e51b8152600401610b1690613d62565b600e5415611cd05760405162461bcd60e51b8152600401610b1690613b0d565b43600d55565b60106020526000908152604090205481565b323314611d075760405162461bcd60e51b8152600401610b1690613ad6565b60155460ff1615611d2a5760405162461bcd60e51b8152600401610b1690613e6f565b3360009081526011602052604090205460ff1615611d5a5760405162461bcd60e51b8152600401610b169061388e565b7f0000000000000000000000000000000000000000000000000000000000000457611d83610c2a565b611d8e906001614321565b1115611dac5760405162461bcd60e51b8152600401610b1690613a95565b6038600f546001611dbd9190614321565b1115611ddb5760405162461bcd60e51b8152600401610b1690613b44565b600033604051602001611dee9190613752565b604051602081830303815290604052805190602001209050611e478383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060135491508490506126d7565b611e635760405162461bcd60e51b8152600401610b169061407c565b336000908152601160205260408120805460ff19166001179055600f805491611e8b8361440a565b9190505550611e9b3360016126ed565b336000908152600a6020526040902054611eb6906001614321565b336000818152600a60205260409081902092909255600b54915163cc240c0160e01b81526001600160a01b039092169163cc240c0191611efb9160019060040161380c565b600060405180830381600087803b158015611f1557600080fd5b505af1158015611f29573d6000803e3d6000fd5b50505050600d546000148015611f6557507f0000000000000000000000000000000000000000000000000000000000000457611f63610c2a565b145b15610bcf5743600d55505050565b7f000000000000000000000000000000000000000000000000000000000000000f81565b6009546001600160a01b031690565b611fae6132ac565b610a5582612765565b606060028054610a6c906143cf565b611fce6124e2565b6001600160a01b0316826001600160a01b03161415611fff5760405162461bcd60e51b8152600401610b1690613de6565b806006600061200c6124e2565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff1916921515929092179091556120506124e2565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120889190613825565b60405180910390a35050565b601554610100900460ff1681565b6120aa6124e2565b6001600160a01b03166120bb611f97565b6001600160a01b0316146120e15760405162461bcd60e51b8152600401610b1690613d62565b60158054911515620100000262ff000019909216919091179055565b600b54604051636918579d60e11b81526001600160a01b039091169063d230af3a9061212f90879087906004016137b5565b600060405180830381600087803b15801561214957600080fd5b505af115801561215d573d6000803e3d6000fd5b505050506001600160a01b0384166000908152600a60205260408120805491612185836143b8565b90915550506001600160a01b0383166000908152600a602052604081208054916121ae8361440a565b9190505550611462848484846128c9565b6121c76124e2565b6001600160a01b03166121d8611f97565b6001600160a01b0316146121fe5760405162461bcd60e51b8152600401610b1690613d62565b6015805460ff1916911515919091179055565b606061221c826124db565b6122385760405162461bcd60e51b8152600401610b1690613d97565b60006122426128fc565b90506000815111612262576040518060200160405280600081525061228d565b8061226c8461290b565b60405160200161227d92919061376f565b6040516020818303038152906040525b9392505050565b600e5481565b60135481565b60075481565b6000610a5582612a2d565b60116020526000908152604090205460ff1681565b600d5481565b600f5481565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b600e54156123205760405162461bcd60e51b8152600401610b1690613b0d565b600d5461233f5760405162461bcd60e51b8152600401610b1690613ef6565b600d5461236e907f00000000000000000000000000000000000000000000000000000000000004579040614425565b600e55600d5460ff906123819043614375565b11156123c2577f00000000000000000000000000000000000000000000000000000000000004576123b3600143614375565b6123be919040614425565b600e555b600e54611ab0576001600e60008282546123dc9190614321565b9091555050565b600b546001600160a01b031681565b6123fa6124e2565b6001600160a01b031661240b611f97565b6001600160a01b0316146124315760405162461bcd60e51b8152600401610b1690613d62565b601455565b61243e6124e2565b6001600160a01b031661244f611f97565b6001600160a01b0316146124755760405162461bcd60e51b8152600401610b1690613d62565b6001600160a01b03811661249b5760405162461bcd60e51b8152600401610b16906138c5565b6124a481612877565b50565b600a6020526000908152604090205481565b60155460ff1681565b6001600160e01b031981166301ffc9a760e01b14919050565b6000541190565b3390565b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610bcf838383612a81565b6007548161256d5760405162461bcd60e51b8152600401610b1690613beb565b6000600161257b8484614321565b6125859190614375565b90506125b260017f0000000000000000000000000000000000000000000000000000000000000457614375565b8111156125e7576125e460017f0000000000000000000000000000000000000000000000000000000000000457614375565b90505b6125f0816124db565b61260c5760405162461bcd60e51b8152600401610b1690614133565b815b8181116126c3576000818152600360205260409020546001600160a01b03166126b157600061263c82612765565b60408051808201825282516001600160a01b0390811682526020938401516001600160401b0390811685840190815260008881526003909652939094209151825493516001600160a01b031990941691161767ffffffffffffffff60a01b1916600160a01b9290931691909102919091179055505b806126bb8161440a565b91505061260e565b506126cf816001614321565b600755505050565b6000826126e48584612d93565b14949350505050565b610c26828260405180602001604052806000815250612e0d565b803410156127275760405162461bcd60e51b8152600401610b1690613fd4565b803411156124a457336108fc61273d8334614375565b6040518115909202916000818181858888f19350505050158015610c26573d6000803e3d6000fd5b61276d6132ac565b612776826124db565b6127925760405162461bcd60e51b8152600401610b1690613972565b60007f000000000000000000000000000000000000000000000000000000000000000f83106127f3576127e57f000000000000000000000000000000000000000000000000000000000000000f84614375565b6127f0906001614321565b90505b825b81811061285e576000818152600360209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b0316918301919091521561284b579250610a58915050565b5080612856816143b8565b9150506127f5565b5060405162461bcd60e51b8152600401610b16906141b0565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6128d4848484612a81565b6128e08484848461307f565b6114625760405162461bcd60e51b8152600401610b1690613f81565b606060168054610a6c906143cf565b60608161293057506040805180820190915260018152600360fc1b6020820152610a58565b8160005b811561295a57806129448161440a565b91506129539050600a83614339565b9150612934565b6000816001600160401b0381111561298257634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156129ac576020820181803683370190505b5090505b8415612a25576129c1600183614375565b91506129ce600a86614425565b6129d9906030614321565b60f81b8183815181106129fc57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612a1e600a86614339565b94506129b0565b949350505050565b60006001600160a01b038216612a555760405162461bcd60e51b8152600401610b1690613a44565b506001600160a01b0316600090815260046020526040902054600160801b90046001600160801b031690565b6000612a8c82612765565b9050600081600001516001600160a01b0316612aa66124e2565b6001600160a01b03161480612adb5750612abe6124e2565b6001600160a01b0316612ad084610aef565b6001600160a01b0316145b80612aef57508151612aef906109566124e2565b905080612b0e5760405162461bcd60e51b8152600401610b1690613e1d565b846001600160a01b031682600001516001600160a01b031614612b435760405162461bcd60e51b8152600401610b1690613ce5565b6001600160a01b038416612b695760405162461bcd60e51b8152600401610b16906139ff565b612b768585856001611462565b612b8660008484600001516124e6565b6001600160a01b0385166000908152600460205260408120805460019290612bb89084906001600160801b031661434d565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612c04918591166142ff565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526003909152948520935184549151909216600160a01b0267ffffffffffffffff60a01b19929093166001600160a01b03199091161716179055612c99846001614321565b6000818152600360205260409020549091506001600160a01b0316612d3d57612cc1816124db565b15612d3d5760408051808201825284516001600160a01b0390811682526020808701516001600160401b0390811682850190815260008781526003909352949091209251835494516001600160a01b031990951692169190911767ffffffffffffffff60a01b1916600160a01b93909116929092029190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612d8b8686866001611462565b505050505050565b600081815b8451811015612e05576000858281518110612dc357634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311612de557612dde838261319a565b9250612df2565b612def818461319a565b92505b5080612dfd8161440a565b915050612d98565b509392505050565b6000546001600160a01b038416612e365760405162461bcd60e51b8152600401610b169061403b565b612e3f816124db565b15612e5c5760405162461bcd60e51b8152600401610b1690614004565b7f000000000000000000000000000000000000000000000000000000000000000f831115612e9c5760405162461bcd60e51b8152600401610b169061424c565b612ea96000858386611462565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546001600160801b038082168352600160801b9091041691810191909152815180830190925280519091908190612f059087906142ff565b6001600160801b03168152602001858360200151612f2391906142ff565b6001600160801b039081169091526001600160a01b03808816600081815260046020908152604080832087518154988401518816600160801b029088166fffffffffffffffffffffffffffffffff199099169890981790961696909617909455845180860186529182526001600160401b034281168386019081528883526003909552948120915182549451909516600160a01b0267ffffffffffffffff60a01b19959093166001600160a01b031990941693909317939093161790915582905b8581101561306d5760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613031600088848861307f565b61304d5760405162461bcd60e51b8152600401610b1690613f81565b816130578161440a565b92505080806130659061440a565b915050612fe4565b506000818155612d8b90878588611462565b6000613093846001600160a01b03166131a9565b1561318f57836001600160a01b031663150b7a026130af6124e2565b8786866040518563ffffffff1660e01b81526004016130d194939291906137cf565b602060405180830381600087803b1580156130eb57600080fd5b505af192505050801561311b575060408051601f3d908101601f191682019092526131189181019061359a565b60015b613175573d808015613149576040519150601f19603f3d011682016040523d82523d6000602084013e61314e565b606091505b50805161316d5760405162461bcd60e51b8152600401610b1690613f81565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612a25565b506001949350505050565b60009182526020526040902090565b6001600160a01b03163b151590565b8280546131c4906143cf565b90600052602060002090601f0160209004810192826131e6576000855561322c565b82601f106131ff57805160ff191683800117855561322c565b8280016001018555821561322c579182015b8281111561322c578251825591602001919060010190613211565b506118f29291506132c3565b828054613244906143cf565b90600052602060002090601f016020900481019282613266576000855561322c565b82601f1061327f5782800160ff1982351617855561322c565b8280016001018555821561322c579182015b8281111561322c578235825591602001919060010190613291565b604080518082019091526000808252602082015290565b5b808211156118f257600081556001016132c4565b60006001600160401b03808411156132f2576132f2614465565b604051601f8501601f19908116603f0116810190828211818310171561331a5761331a614465565b8160405280935085815286868601111561333357600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114610a5857600080fd5b60008083601f840112613375578081fd5b5081356001600160401b0381111561338b578182fd5b60208301915083602080830285010111156133a557600080fd5b9250929050565b80358015158114610a5857600080fd5b6000602082840312156133cd578081fd5b61228d8261334d565b600080604083850312156133e8578081fd5b6133f18361334d565b91506133ff6020840161334d565b90509250929050565b60008060006060848603121561341c578081fd5b6134258461334d565b92506134336020850161334d565b9150604084013590509250925092565b60008060008060808587031215613458578081fd5b6134618561334d565b935061346f6020860161334d565b92506040850135915060608501356001600160401b03811115613490578182fd5b8501601f810187136134a0578182fd5b6134af878235602084016132d8565b91505092959194509250565b600080604083850312156134cd578182fd5b6134d68361334d565b91506133ff602084016133ac565b600080604083850312156134f6578182fd5b6134ff8361334d565b946020939093013593505050565b6000806020838503121561351f578182fd5b82356001600160401b03811115613534578283fd5b61354085828601613364565b90969095509350505050565b60006020828403121561355d578081fd5b61228d826133ac565b600060208284031215613577578081fd5b5035919050565b60006020828403121561358f578081fd5b813561228d8161447b565b6000602082840312156135ab578081fd5b815161228d8161447b565b600080602083850312156135c8578182fd5b82356001600160401b03808211156135de578384fd5b818501915085601f8301126135f1578384fd5b8135818111156135ff578485fd5b866020828501011115613610578485fd5b60209290920196919550909350505050565b600060208284031215613633578081fd5b81356001600160401b03811115613648578182fd5b8201601f81018413613658578182fd5b612a25848235602084016132d8565b60008060006040848603121561367b578081fd5b8335925060208401356001600160401b03811115613697578182fd5b6136a386828701613364565b9497909650939450505050565b6000806000806000606086880312156136c7578283fd5b8535945060208601356001600160401b03808211156136e4578485fd5b6136f089838a01613364565b90965094506040880135915080821115613708578283fd5b5061371588828901613364565b969995985093965092949392505050565b6000815180845261373e81602086016020860161438c565b601f01601f19169290920160200192915050565b60609190911b6bffffffffffffffffffffffff1916815260140190565b6000835161378181846020880161438c565b83519083019061379581836020880161438c565b01949350505050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061380290830184613726565b9695505050505050565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b90815260200190565b60006020825261228d6020830184613726565b60208082526022908201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252601c908201527f416464726573732068617320616c726561647920636c61696d65642e00000000604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b602080825260169082015275115c9c9bdc8e881d5cd95c881a185cc81b5a5b9d195960521b604082015260600190565b60208082526018908201527f4d696e696d756d206d696e7420616d6f756e7420697320310000000000000000604082015260600190565b6020808252602a908201527f455243373231413a206f776e657220717565727920666f72206e6f6e657869736040820152693a32b73a103a37b5b2b760b11b606082015260800190565b60208082526023908201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f756040820152626e647360e81b606082015260800190565b60208082526025908201527f455243373231413a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526031908201527f455243373231413a206e756d626572206d696e74656420717565727920666f7260408201527020746865207a65726f206164647265737360781b606082015260800190565b60208082526021908201527f507572636861736520776f756c642072656163686564206d617820737570706c6040820152607960f81b606082015260800190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b6020808252601d908201527f5374617274696e6720696e64657820697320616c726561647920736574000000604082015260600190565b6020808252602a908201527f50757263686173652065786365656420616c6c6f63617465642046726565206d604082015269696e7420737570706c7960b01b606082015260800190565b60208082526039908201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000606082015260800190565b60208082526018908201527f7175616e74697479206d757374206265206e6f6e7a65726f0000000000000000604082015260600190565b60208082526021908201527f446576204d696e7420776f756c642072656163686564206d617820737570706c6040820152607960f81b606082015260800190565b6020808252602b908201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60408201526a65726f206164647265737360a81b606082015260800190565b60208082526017908201527f4465762048617320616c7265616479206d696e74656421000000000000000000604082015260600190565b60208082526026908201527f455243373231413a207472616e736665722066726f6d20696e636f72726563746040820152651037bbb732b960d11b606082015260800190565b6020808252601e908201527f5075626c69632053616c65206973206e6f74206f7065726174696f6e616c0000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b6020808252601a908201527f455243373231413a20617070726f766520746f2063616c6c6572000000000000604082015260600190565b60208082526032908201527f455243373231413a207472616e736665722063616c6c6572206973206e6f74206040820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606082015260800190565b60208082526025908201527f436f6e74726163742069732063757272656e746c79206e6f74206f70657261746040820152641a5bdb985b60da1b606082015260800190565b60208082526022908201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60408201526132b960f11b606082015260800190565b6020808252818101527f5374617274696e6720696e64657820626c6f636b206d75737420626520736574604082015260600190565b602080825260129082015271696e73756666696369656e742066756e647360701b604082015260600190565b60208082526010908201526f2a3930b739b332b9103330b4b632b21760811b604082015260600190565b60208082526033908201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b6020808252601690820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b604082015260600190565b6020808252601d908201527f455243373231413a20746f6b656e20616c7265616479206d696e746564000000604082015260600190565b60208082526021908201527f455243373231413a206d696e7420746f20746865207a65726f206164647265736040820152607360f81b606082015260800190565b6020808252600e908201526d24b73b30b634b210383937b7b31760911b604082015260600190565b60208082526021908201527f57686974654c6973742053616c65206973206e6f74206f7065726174696f6e616040820152601b60fa1b606082015260800190565b6020808252602e908201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060408201526d0deeedccae440c4f240d2dcc8caf60931b606082015260800190565b60208082526026908201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360408201526506c65616e75760d41b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252602f908201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560408201526e1037bbb732b91037b3103a37b5b2b760891b606082015260800190565b6020808252602d908201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560408201526c3c34b9ba32b73a103a37b5b2b760991b606082015260800190565b60208082526022908201527f455243373231413a207175616e7469747920746f206d696e7420746f6f2068696040820152610ced60f31b606082015260800190565b60208082526028908201527f43616e206f6e6c79206d696e74207573696e67207468652070726f7669646564604082015267206f7074696f6e7360c01b606082015260800190565b81516001600160a01b031681526020918201516001600160401b03169181019190915260400190565b60006001600160801b0380831681851680830382111561379557613795614439565b6000821982111561433457614334614439565b500190565b6000826143485761434861444f565b500490565b60006001600160801b038381169083168181101561436d5761436d614439565b039392505050565b60008282101561438757614387614439565b500390565b60005b838110156143a757818101518382015260200161438f565b838111156114625750506000910152565b6000816143c7576143c7614439565b506000190190565b6002810460018216806143e357607f821691505b6020821081141561440457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561441e5761441e614439565b5060010190565b6000826144345761443461444f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146124a457600080fdfea26469706673582212203ccc2c342d7f02f260b6dbb8c0fe4f3371d3a1cecc228e471d5df9fe35a04bd564736f6c63430008010033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000000f0000000000000000000000000000000000000000000000000000000000000457
-----Decoded View---------------
Arg [0] : maxBatchSize_ (uint256): 15
Arg [1] : collectionSize_ (uint256): 1111
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000457
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.