ERC-721
Overview
Max Total Supply
5,543 AAAEVO
Holders
1,959
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
11 AAAEVOLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AngryApeArmyEvolutionCollection
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "./ERC721ABurnable.sol"; import "./Royalty.sol"; import "./IContractURI.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract AngryApeArmyEvolutionCollection is ERC721ABurnable, Royalty { // Utils using ECDSA for bytes32; using Strings for uint256; // Sale state variables enum SaleStates { NOT_STARTED, FREE_MINT, FREE_MINT_PAUSED, PRE_SALE, PRE_SALE_PAUSED, SALE, SALE_PAUSED, ENDED } SaleStates private _saleState; // OG Ape holders IERC721 private _aaaContract; mapping(uint256 => uint256) private _aaaDataStore; // Whitelist bytes32 public merkleRoot; mapping(address => bool) public whitelistStore; // Constants uint256 public constant PRE_SALE_PRICE = 0.2 ether; uint256 public constant SALE_PRICE = 0.4 ether; uint32 public constant MAX_SUPPLY = 10000; uint32 public constant MAX_BATCH_MINT = 20; // Reserved uint32 public reserved = 400; // ERC721 Metadata string private _baseURI_ = "https://aaa-evolution-api-h5pd2zuvza-uc.a.run.app/"; // ECDSA address private _signer; mapping(string => bool) private _isNonceUsed; // Events event SetBaseURI(string _baseURI_); event FreeMintBegins(); event PreSaleBegins(); event SaleBegins(); event SaleEnds(); address public aaaWithdrawal; address public netvrkWithdrawal; constructor( address signer_, address aaaContract_, address royaltyReceiver_ ) ERC721ABurnable( "Angry Ape Army Evolution Collection", "AAAEVO", MAX_BATCH_MINT ) Royalty(royaltyReceiver_, 750) // 7.50% { _aaaContract = IERC721(aaaContract_); _signer = signer_; aaaWithdrawal = 0x6ab71C2025442B694C8585aCe2fc06D877469D30; netvrkWithdrawal = 0x901FC05c4a4bC027a8979089D716b6793052Cc16; } receive() external payable {} // Signature verfification modifier onlySignedTx( uint256 quantity_, string memory nonce_, bytes calldata signature_ ) { require(!_isNonceUsed[nonce_], "Nonce already used"); require( keccak256(abi.encodePacked(msg.sender, quantity_, nonce_)) .toEthSignedMessageHash() .recover(signature_) == _signer, "Signature does not correspond" ); _isNonceUsed[nonce_] = true; _; } function setSignerAddress(address signerAddress_) external onlyOwner { _signer = signerAddress_; } // Free Mint function freeMint( uint256[] calldata freeMintTokens_, uint256[] calldata preSaleTokens_, string memory nonce_, bytes calldata signature_ ) external payable onlySignedTx( freeMintTokens_.length + preSaleTokens_.length, nonce_, signature_ ) { uint256 quantity_ = freeMintTokens_.length + preSaleTokens_.length; require(_saleState == SaleStates.FREE_MINT, "Free mint not active"); require(quantity_ > 0, "You must mint at least 1"); require( quantity_ <= (MAX_SUPPLY - reserved - totalSupply()), "Not enough supply" ); require( msg.value >= PRE_SALE_PRICE * preSaleTokens_.length, "Insufficient eth to process the order" ); require( !usedTokenIds(freeMintTokens_, preSaleTokens_), "Token already used" ); for (uint256 i; i < freeMintTokens_.length; i++) { require( msg.sender == _aaaContract.ownerOf(freeMintTokens_[i]), "Token not owned" ); } for (uint256 i; i < preSaleTokens_.length; i++) { require( msg.sender == _aaaContract.ownerOf(preSaleTokens_[i]), "Token not owned" ); } setUsedTokenIds(freeMintTokens_, preSaleTokens_); _safeMint(msg.sender, quantity_); } // Pre Sale Mint function preSaleMint( bytes32[] calldata merkleProof_, string memory nonce_, bytes calldata signature_ ) external payable onlySignedTx(1, nonce_, signature_) { require(_saleState == SaleStates.PRE_SALE, "Pre sale not active"); require(!whitelistStore[msg.sender], "Whitelist used"); require( 1 <= (MAX_SUPPLY - reserved - totalSupply()), "Not enough supply" ); require(msg.value >= PRE_SALE_PRICE, "Insufficient eth to process the order"); require( MerkleProof.verify( merkleProof_, merkleRoot, keccak256(abi.encodePacked(msg.sender)) ), "Proof failed" ); whitelistStore[msg.sender] = true; _safeMint(msg.sender, 1); } // Sale Mint function mint( uint8 quantity_, string memory nonce_, bytes calldata signature_ ) external payable onlySignedTx(quantity_, nonce_, signature_) { require(_saleState == SaleStates.SALE, "Sale not active"); require(quantity_ > 0, "You must mint at least 1"); require( quantity_ <= (MAX_SUPPLY - reserved - totalSupply()), "Not enough supply" ); require( quantity_ <= MAX_BATCH_MINT, "Cannot mint more than MAX_BATCH_MINT per transaction" ); require( (balanceOf(msg.sender) + quantity_) <= MAX_BATCH_MINT, "Any one wallet cannot hold more than MAX_BATCH_MINT" ); require( msg.value >= SALE_PRICE * quantity_, "Insufficient eth to process the order" ); _safeMint(msg.sender, quantity_); } // Reserved function reservedMint(address to_, uint32 quantity_) public onlyOwner { require(quantity_ <= reserved, "Not enough reserved supply"); require(quantity_ > 0, "You must mint at least 1"); require( quantity_ <= MAX_BATCH_MINT, "Cannot mint more than MAX_BATCH_MINT per transaction" ); reserved -= quantity_; _safeMint(to_, quantity_); } // Burn function burn(uint256 tokenId) public virtual { _burn(tokenId); } // Sale State function saleState() public view returns (string memory) { if (_saleState == SaleStates.FREE_MINT) return "FREE_MINT"; if (_saleState == SaleStates.FREE_MINT_PAUSED) return "FREE_MINT_PAUSED"; if (_saleState == SaleStates.PRE_SALE) return "PRE_SALE"; if (_saleState == SaleStates.PRE_SALE_PAUSED) return "PRE_SALE_PAUSED"; if (_saleState == SaleStates.SALE) return "SALE"; if (_saleState == SaleStates.SALE_PAUSED) return "SALE_PAUSED"; if (_saleState == SaleStates.ENDED) return "ENDED"; return "NOT_STARTED"; } function startFreeMint() external onlyOwner { require( _saleState < SaleStates.FREE_MINT, "Free mint has already started" ); _saleState = SaleStates.FREE_MINT; emit FreeMintBegins(); } function startPreSale() external onlyOwner { require(_saleState >= SaleStates.FREE_MINT, "Free mint state required"); require( _saleState < SaleStates.PRE_SALE, "Pre-sale has already started" ); _saleState = SaleStates.PRE_SALE; emit PreSaleBegins(); } function startSale() external onlyOwner { require(_saleState >= SaleStates.PRE_SALE, "Pre-sale state required"); require(_saleState < SaleStates.SALE, "Sale has already started"); _saleState = SaleStates.SALE; emit SaleBegins(); } function endSale() external onlyOwner { require(_saleState >= SaleStates.SALE, "Sale state required"); require(_saleState < SaleStates.ENDED, "Sale has ended"); _saleState = SaleStates.ENDED; emit SaleEnds(); } // Pauseable function pause() public onlyOwner { require( !(_saleState == SaleStates.NOT_STARTED || _saleState == SaleStates.ENDED), "No active sale" ); require( !(_saleState == SaleStates.FREE_MINT_PAUSED || _saleState == SaleStates.PRE_SALE_PAUSED || _saleState == SaleStates.SALE_PAUSED), "Sale is paused" ); _saleState = SaleStates(uint8(_saleState) + 1); } function unpause() public onlyOwner { require( !(_saleState == SaleStates.NOT_STARTED || _saleState == SaleStates.ENDED), "No active sale" ); require( !(_saleState == SaleStates.FREE_MINT || _saleState == SaleStates.PRE_SALE || _saleState == SaleStates.SALE), "Sale is not paused" ); _saleState = SaleStates(uint8(_saleState) - 1); } // Contract & token metadata function setBaseURI(string memory _uri) public onlyOwner { require( bytes(_uri)[bytes(_uri).length - 1] == bytes1("/"), "Must set trailing slash" ); _baseURI_ = _uri; emit SetBaseURI(_uri); } function tokenURI(uint256 tokenId) public view override returns (string memory) { require(_exists(tokenId), "URI query for nonexistent token"); return string( abi.encodePacked( _baseURI_, "token/", tokenId.toString(), ".json" ) ); } function contractURI() public view returns (string memory) { return string(abi.encodePacked(_baseURI_, "contract.json")); } // Whitelist function setMerkleRoot(bytes32 _merkleRoot) public onlyOwner { merkleRoot = _merkleRoot; } // Withdrawal function setAaaWithdrawal(address withdrawalAddress_) public onlyOwner { require( withdrawalAddress_ != address(0), "Set a valid withdrawal address" ); aaaWithdrawal = withdrawalAddress_; } function setNetvrkWithdrawal(address withdrawalAddress_) public onlyOwner { require( withdrawalAddress_ != address(0), "Set a valid withdrawal address" ); netvrkWithdrawal = withdrawalAddress_; } function withdrawAll() public onlyOwner { uint256 totalBalance = address(this).balance; require(totalBalance > 0, "Balance is zero"); uint256 aaaAmount = (totalBalance * 7000) / 10000; // 70.00% uint256 netvrkAmount = totalBalance - aaaAmount; // 30.00% require( payable(aaaWithdrawal).send(aaaAmount), "Withdrawal Failed to AAA" ); require( payable(netvrkWithdrawal).send(netvrkAmount), "Withdrawal Failed to netvrk" ); } // Utilities function packBool( uint256 _packedBools, uint256 _boolIndex, bool _value ) public pure returns (uint256) { return _value ? _packedBools | (uint256(1) << _boolIndex) : _packedBools & ~(uint256(1) << _boolIndex); } function unPackBool(uint256 _packedBools, uint256 _boolIndex) internal pure returns (bool) { return (_packedBools >> _boolIndex) & uint256(1) == 1 ? true : false; } function setUsedTokenIds( uint256[] calldata freeMints, uint256[] calldata preSales ) public { uint256 cRow; uint256 cPackedBools = _aaaDataStore[0]; for (uint256 i; i < freeMints.length; i++) { (uint256 boolRow, uint256 boolColumn) = freeMintPosition( freeMints[i] ); if (boolRow != cRow) { _aaaDataStore[cRow] = cPackedBools; cRow = boolRow; cPackedBools = _aaaDataStore[boolRow]; } cPackedBools = packBool(cPackedBools, boolColumn, true); if (i + 1 == freeMints.length) { _aaaDataStore[cRow] = cPackedBools; } } for (uint256 i; i < preSales.length; i++) { (uint256 boolRow, uint256 boolColumn) = preSalePosition( preSales[i] ); if (boolRow != cRow) { _aaaDataStore[cRow] = cPackedBools; cRow = boolRow; cPackedBools = _aaaDataStore[boolRow]; } cPackedBools = packBool(cPackedBools, boolColumn, true); if (i + 1 == preSales.length) { _aaaDataStore[cRow] = cPackedBools; } } } function usedTokenIds( uint256[] calldata freeMints, uint256[] calldata preSales ) private view returns (bool) { uint256 cRow; uint256 cPackedBools = _aaaDataStore[0]; uint256 unpackedBools; for (uint256 i; i < freeMints.length; i++) { (uint256 boolRow, uint256 boolColumn) = freeMintPosition( freeMints[i] ); if (boolRow != cRow) { if (unpackedBools > 0) return true; cRow = boolRow; cPackedBools = _aaaDataStore[boolRow]; unpackedBools = 0; } unpackedBools = unpackedBools | (cPackedBools & (uint256(1) << boolColumn)); if (i + 1 == freeMints.length) { if (unpackedBools > 0) return true; } } for (uint256 i; i < preSales.length; i++) { (uint256 boolRow, uint256 boolColumn) = preSalePosition( preSales[i] ); if (boolRow != cRow) { if (unpackedBools > 0) return true; cRow = boolRow; cPackedBools = _aaaDataStore[boolRow]; unpackedBools = 0; } unpackedBools = unpackedBools | (cPackedBools & (uint256(1) << boolColumn)); if (i + 1 == preSales.length) { if (unpackedBools > 0) return true; } } return false; } function usedTokenId(uint256 tokenId) public view returns (bool freeMintUsed, bool preSaleUsed) { (uint256 boolRow, uint256 boolColumn) = freeMintPosition(tokenId); uint256 packedBools = _aaaDataStore[boolRow]; freeMintUsed = (packedBools & (uint256(1) << boolColumn)) > 0 ? true : false; preSaleUsed = (packedBools & (uint256(1) << (boolColumn + 1))) > 0 ? true : false; } function freeMintPosition(uint256 tokenId) internal pure returns (uint256 boolRow, uint256 boolColumn) { boolRow = (tokenId << 1) / 256; boolColumn = (tokenId << 1) % 256; } function preSalePosition(uint256 tokenId) internal pure returns (uint256 boolRow, uint256 boolColumn) { (boolRow, boolColumn) = freeMintPosition(tokenId); boolColumn++; } // Compulsory overrides function supportsInterface(bytes4 interfaceId) public view override(ERC721ABurnable, Royalty) returns (bool) { return interfaceId == type(IERC2981).interfaceId || interfaceId == type(IContractURI).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // Creators: locationtba.eth, 2pmflow.eth, skarard.eth pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev 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..). * * Supports burning to address(0x0000...dEaD). */ abstract contract ERC721ABurnable 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; } struct IndexSupply { uint128 currentIndex; uint128 totalSupply; } IndexSupply private indexSupply; uint256 internal immutable maxBatchSize; // Burn Address address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; // 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. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_ ) { require( maxBatchSize_ > 0, "ERC721ABurnable: max batch size must be nonzero" ); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return indexSupply.totalSupply; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require( index < indexSupply.currentIndex, "ERC721ABurnable: global index out of bounds" ); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require( index < balanceOf(owner), "ERC721ABurnable: 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("ERC721ABurnable: 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), "ERC721ABurnable: balance query for the zero address" ); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721ABurnable: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require( _exists(tokenId), "ERC721ABurnable: 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)) { require( ownership.addr != BURN_ADDRESS, "ERC721ABurnable: owner query for nonexistent token" ); return ownership; } } revert("ERC721ABurnable: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual 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 = ERC721ABurnable.ownerOf(tokenId); require(to != owner, "ERC721ABurnable: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721ABurnable: 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), "ERC721ABurnable: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721ABurnable: 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 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 override { _transfer(from, to, tokenId); require( _checkOnERC721Received(from, to, tokenId, _data), "ERC721ABurnable: 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 < indexSupply.currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `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 { uint128 startTokenId = indexSupply.currentIndex; require(to != address(0), "ERC721ABurnable: 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), "ERC721ABurnable: token already minted" ); require( quantity <= maxBatchSize, "ERC721ABurnable: 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)); uint128 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721ABurnable: transfer to non ERC721Receiver implementer" ); updatedIndex++; } indexSupply.currentIndex += uint128(quantity); indexSupply.totalSupply += uint128(quantity); _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory owner = ERC721ABurnable.ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == owner.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(owner.addr, _msgSender())); require( isApprovedOrOwner, "ERC721ABurnable: transfer caller is not owner nor approved" ); _beforeTokenTransfers(owner.addr, address(BURN_ADDRESS), tokenId, 1); // Clear approvals _approve(address(0), tokenId, owner.addr); _addressData[owner.addr].balance -= 1; _ownerships[tokenId] = TokenOwnership( BURN_ADDRESS, 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( owner.addr, owner.startTimestamp ); } } // Decrement from total supply indexSupply.totalSupply--; emit Transfer(owner.addr, BURN_ADDRESS, tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721ABurnable: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721ABurnable: transfer from incorrect owner" ); require( to != address(0), "ERC721ABurnable: 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 > indexSupply.currentIndex - 1) { endIndex = indexSupply.currentIndex - 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( "ERC721ABurnable: 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.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "./IERC2981.sol"; abstract contract Royalty is Ownable, ERC165, IERC2981 { address public royaltyReceiver; uint32 public royaltyBasisPoints; // A integer representing 1/100th of 1% (fixed point with 100 = 1.00%) constructor(address _receiver, uint32 _basisPoints) { royaltyReceiver = _receiver; royaltyBasisPoints = _basisPoints; } function setRoyaltyReceiver(address _receiver) external virtual onlyOwner { royaltyReceiver = _receiver; } function setRoyaltyBasisPoints(uint32 _basisPoints) external virtual onlyOwner { royaltyBasisPoints = _basisPoints; } function royaltyInfo(uint256, uint256 _salePrice) public view virtual override returns (address receiver, uint256 amount) { // All tokens return the same royalty amount to the receiver uint256 _royaltyAmount = (_salePrice * royaltyBasisPoints) / 10000; // Normalises in basis points reference. (10000 = 100.00%) return (royaltyReceiver, _royaltyAmount); } // Compulsory overrides function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /// /// @dev Interface for the proposed contractURI standard /// interface IContractURI is IERC165 { /// ERC165 bytes to add to interface array - set in parent contract /// implementing this standard /// /// bytes4(keccak256("contractURI()")) == 0xe8a3d485 /// @notice Called to return the URI pertaining to the contract metadata /// @return contractURI - the URI that pertaining to the contract metadata function contractURI() external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: 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/cryptography/ECDSA.sol) pragma solidity ^0.8.0; import "../Strings.sol"; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Message, created from `s`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 = keccak256(abi.encodePacked(computedHash, proofElement)); } else { // Hash(current element of the proof + current computed hash) computedHash = keccak256(abi.encodePacked(proofElement, computedHash)); } } return computedHash; } }
// 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/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/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 v4.4.1 (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 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // 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 v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /// /// @dev Interface for the NFT Royalty Standard /// interface IERC2981 is IERC165 { /// ERC165 bytes to add to interface array - set in parent contract /// implementing this standard /// /// bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a /// bytes4 private constant _INTERFACE_ID_ERC2981 = 0x2a55205a; /// _registerInterface(_INTERFACE_ID_ERC2981); /// @notice Called with the sale price to determine how much royalty // is owed and to whom. /// @param _tokenId - the NFT asset queried for royalty information /// @param _salePrice - the sale price of the NFT asset specified by _tokenId /// @return receiver - address of who should be sent the royalty payment /// @return royaltyAmount - the royalty payment amount for _salePrice function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"signer_","type":"address"},{"internalType":"address","name":"aaaContract_","type":"address"},{"internalType":"address","name":"royaltyReceiver_","type":"address"}],"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":[],"name":"FreeMintBegins","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":[],"name":"PreSaleBegins","type":"event"},{"anonymous":false,"inputs":[],"name":"SaleBegins","type":"event"},{"anonymous":false,"inputs":[],"name":"SaleEnds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"_baseURI_","type":"string"}],"name":"SetBaseURI","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":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BATCH_MINT","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRE_SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aaaWithdrawal","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"freeMintTokens_","type":"uint256[]"},{"internalType":"uint256[]","name":"preSaleTokens_","type":"uint256[]"},{"internalType":"string","name":"nonce_","type":"string"},{"internalType":"bytes","name":"signature_","type":"bytes"}],"name":"freeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"quantity_","type":"uint8"},{"internalType":"string","name":"nonce_","type":"string"},{"internalType":"bytes","name":"signature_","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"netvrkWithdrawal","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","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":"_packedBools","type":"uint256"},{"internalType":"uint256","name":"_boolIndex","type":"uint256"},{"internalType":"bool","name":"_value","type":"bool"}],"name":"packBool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof_","type":"bytes32[]"},{"internalType":"string","name":"nonce_","type":"string"},{"internalType":"bytes","name":"signature_","type":"bytes"}],"name":"preSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserved","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to_","type":"address"},{"internalType":"uint32","name":"quantity_","type":"uint32"}],"name":"reservedMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyBasisPoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyReceiver","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"withdrawalAddress_","type":"address"}],"name":"setAaaWithdrawal","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":"_uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"withdrawalAddress_","type":"address"}],"name":"setNetvrkWithdrawal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_basisPoints","type":"uint32"}],"name":"setRoyaltyBasisPoints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"}],"name":"setRoyaltyReceiver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signerAddress_","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"freeMints","type":"uint256[]"},{"internalType":"uint256[]","name":"preSales","type":"uint256[]"}],"name":"setUsedTokenIds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startFreeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPreSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"usedTokenId","outputs":[{"internalType":"bool","name":"freeMintUsed","type":"bool"},{"internalType":"bool","name":"preSaleUsed","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistStore","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6000600855600e805463ffffffff1916610190179055610100604052603260a0818152906200583360c03980516200004091600f9160209091019062000243565b503480156200004e57600080fd5b506040516200588838038062005888833981016040819052620000719162000306565b806102ee604051806060016040528060238152602001620058656023913960408051808201909152600681526541414145564f60d01b60208201526014620000b933620001f3565b60008111620001265760405162461bcd60e51b815260206004820152602f60248201527f455243373231414275726e61626c653a206d61782062617463682073697a652060448201526e6d757374206265206e6f6e7a65726f60881b606482015260840160405180910390fd5b82516200013b90600290602086019062000243565b5081516200015190600390602085019062000243565b5060805250506009805463ffffffff909216600160a01b026001600160c01b03199092166001600160a01b0393841617919091179055600a80549382166001600160a01b0319948516179055601080549490911693831693909317909255601280548216736ab71c2025442b694c8585ace2fc06d877469d301790556013805490911673901fc05c4a4bc027a8979089d716b6793052cc16179055506200038c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b82805462000251906200034f565b90600052602060002090601f016020900481019282620002755760008555620002c0565b82601f106200029057805160ff1916838001178555620002c0565b82800160010185558215620002c0579182015b82811115620002c0578251825591602001919060010190620002a3565b50620002ce929150620002d2565b5090565b5b80821115620002ce5760008155600101620002d3565b80516001600160a01b03811681146200030157600080fd5b919050565b6000806000606084860312156200031b578283fd5b6200032684620002e9565b92506200033660208501620002e9565b91506200034660408501620002e9565b90509250925092565b600181811c908216806200036457607f821691505b602082108114156200038657634e487b7160e01b600052602260045260246000fd5b50919050565b60805161547d620003b660003960008181613a3e01528181613a680152614220015261547d6000f3fe60806040526004361061037a5760003560e01c806369d9dd4f116101d1578063a81152f711610102578063e1477a84116100a0578063e9f012181161006f578063e9f0121814610a0f578063f2fde38b14610a2f578063fccc281314610a4f578063fe60d12c14610a6557600080fd5b8063e1477a8414610961578063e61250c514610991578063e8a3d485146109b1578063e985e9c5146109c657600080fd5b8063c0ba4c7e116100dc578063c0ba4c7e146108eb578063c87b56dd1461090b578063d7224ba01461092b578063d8ba3ff41461094157600080fd5b8063a81152f7146108a1578063b66a0e5d146108b6578063b88d4fde146108cb57600080fd5b8063853828b61161016f57806395d89b411161014957806395d89b411461082c5780639a8a7c07146108415780639fbc871314610861578063a22cb4651461088157600080fd5b8063853828b6146107d95780638da5cb5b146107ee5780638dc251e31461080c57600080fd5b80637cb64759116101ab5780637cb64759146107685780637f205a741461078857806380d65be5146107a45780638456cb59146107c457600080fd5b806369d9dd4f146106fc57806370a0823114610733578063715018a61461075357600080fd5b80632b65dc5e116102ab57806342842e0e1161024957806355dd574c1161022357806355dd574c1461069257806355f804b3146106a7578063603f4d52146106c75780636352211e146106dc57600080fd5b806342842e0e1461063257806342966c68146106525780634f6ccce71461067257600080fd5b806332cb6b0c1161028557806332cb6b0c146105b9578063380d831b146105e45780633f4ba83a146105f957806342260b5d1461060e57600080fd5b80632b65dc5e1461056e5780632eb4a7ab146105835780632f745c591461059957600080fd5b80630d86a956116103185780631cf015c6116102f25780631cf015c6146104dc5780631f22edb5146104fc57806323b872dd1461050f5780632a55205a1461052f57600080fd5b80630d86a9561461047d57806318160ddd1461049d578063193402bb146104c057600080fd5b806306fdde031161035457806306fdde03146103f0578063081812fc14610412578063089ee40b1461044a578063095ea7b31461045d57600080fd5b806301ffc9a714610386578063046dc166146103bb57806305f6e26f146103dd57600080fd5b3661038157005b600080fd5b34801561039257600080fd5b506103a66103a1366004614c02565b610a82565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103db6103d6366004614883565b610ac8565b005b6103db6103eb366004614b31565b610b1d565b3480156103fc57600080fd5b50610405611042565b6040516103b29190614f17565b34801561041e57600080fd5b5061043261042d366004614bea565b6110d4565b6040516001600160a01b0390911681526020016103b2565b6103db610458366004614cdb565b611170565b34801561046957600080fd5b506103db6104783660046149e3565b61143f565b34801561048957600080fd5b50601354610432906001600160a01b031681565b3480156104a957600080fd5b506104b2611569565b6040519081526020016103b2565b3480156104cc57600080fd5b506104b26702c68af0bb14000081565b3480156104e857600080fd5b506103db6104f7366004614cc1565b61157f565b6103db61050a366004614a39565b6115cf565b34801561051b57600080fd5b506103db61052a3660046148f3565b6118e4565b34801561053b57600080fd5b5061054f61054a366004614c6c565b6118ef565b604080516001600160a01b0390931683526020830191909152016103b2565b34801561057a57600080fd5b506103db611937565b34801561058f57600080fd5b506104b2600c5481565b3480156105a557600080fd5b506104b26105b43660046149e3565b611a1a565b3480156105c557600080fd5b506105cf61271081565b60405163ffffffff90911681526020016103b2565b3480156105f057600080fd5b506103db611ba1565b34801561060557600080fd5b506103db611ce7565b34801561061a57600080fd5b506009546105cf90600160a01b900463ffffffff1681565b34801561063e57600080fd5b506103db61064d3660046148f3565b611f23565b34801561065e57600080fd5b506103db61066d366004614bea565b611f3e565b34801561067e57600080fd5b506104b261068d366004614bea565b611f4a565b34801561069e57600080fd5b506103db611fbf565b3480156106b357600080fd5b506103db6106c2366004614c3a565b61211e565b3480156106d357600080fd5b50610405612226565b3480156106e857600080fd5b506104326106f7366004614bea565b6124bb565b34801561070857600080fd5b5061071c610717366004614bea565b6124cd565b6040805192151583529015156020830152016103b2565b34801561073f57600080fd5b506104b261074e366004614883565b612532565b34801561075f57600080fd5b506103db6125cb565b34801561077457600080fd5b506103db610783366004614bea565b612601565b34801561079457600080fd5b506104b267058d15e17628000081565b3480156107b057600080fd5b50601254610432906001600160a01b031681565b3480156107d057600080fd5b506103db612630565b3480156107e557600080fd5b506103db61280d565b3480156107fa57600080fd5b506000546001600160a01b0316610432565b34801561081857600080fd5b506103db610827366004614883565b61298b565b34801561083857600080fd5b506104056129d7565b34801561084d57600080fd5b506103db61085c366004614883565b6129e6565b34801561086d57600080fd5b50600954610432906001600160a01b031681565b34801561088d57600080fd5b506103db61089c3660046149af565b612a88565b3480156108ad57600080fd5b506105cf601481565b3480156108c257600080fd5b506103db612b58565b3480156108d757600080fd5b506103db6108e6366004614933565b612cb7565b3480156108f757600080fd5b506103db610906366004614883565b612cf0565b34801561091757600080fd5b50610405610926366004614bea565b612d92565b34801561093757600080fd5b506104b260085481565b34801561094d57600080fd5b506103db61095c366004614ac9565b612e26565b34801561096d57600080fd5b506103a661097c366004614883565b600d6020526000908152604090205460ff1681565b34801561099d57600080fd5b506104b26109ac366004614c8d565b612fb7565b3480156109bd57600080fd5b50610405612fd9565b3480156109d257600080fd5b506103a66109e13660046148bb565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a1b57600080fd5b506103db610a2a366004614a0e565b613001565b348015610a3b57600080fd5b506103db610a4a366004614883565b613121565b348015610a5b57600080fd5b5061043261dead81565b348015610a7157600080fd5b50600e546105cf9063ffffffff1681565b60006001600160e01b0319821663152a902d60e11b1480610ab357506001600160e01b0319821663e8a3d48560e01b145b80610ac25750610ac2826131b9565b92915050565b6000546001600160a01b03163314610afb5760405162461bcd60e51b8152600401610af2906150f2565b60405180910390fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610b2784876151f4565b838383601183604051610b3a9190614e4c565b9081526040519081900360200190205460ff1615610b6a5760405162461bcd60e51b8152600401610af2906150c6565b601054604080516020601f85018190048102820181019092528381526001600160a01b0390921691610c2f91859085908190840183828082843760009201919091525050604051610c299250610bc9915033908a908a90602001614e0d565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b906131de565b6001600160a01b031614610c555760405162461bcd60e51b8152600401610af290614f8c565b6001601184604051610c679190614e4c565b908152604051908190036020019020805491151560ff199092169190911790556000610c93898c6151f4565b90506001600954600160c01b900460ff166007811115610cc357634e487b7160e01b600052602160045260246000fd5b14610d075760405162461bcd60e51b815260206004820152601460248201527346726565206d696e74206e6f742061637469766560601b6044820152606401610af2565b60008111610d275760405162461bcd60e51b8152600401610af290614f2a565b610d2f611569565b600e54610d449063ffffffff166127106152a3565b63ffffffff16610d54919061528c565b811115610d735760405162461bcd60e51b8152600401610af290614f61565b610d85896702c68af0bb140000615245565b341015610da45760405162461bcd60e51b8152600401610af290615184565b610db08c8c8c8c613202565b15610df25760405162461bcd60e51b8152602060048201526012602482015271151bdad95b88185b1c9958591e481d5cd95960721b6044820152606401610af2565b60005b8b811015610f0757600a546001600160a01b0316636352211e8e8e84818110610e2e57634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b8152600401610e5391815260200190565b60206040518083038186803b158015610e6b57600080fd5b505afa158015610e7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea3919061489f565b6001600160a01b0316336001600160a01b031614610ef55760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd081bdddb9959608a1b6044820152606401610af2565b80610eff816153ab565b915050610df5565b5060005b8981101561101d57600a546001600160a01b0316636352211e8c8c84818110610f4457634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b8152600401610f6991815260200190565b60206040518083038186803b158015610f8157600080fd5b505afa158015610f95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb9919061489f565b6001600160a01b0316336001600160a01b03161461100b5760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd081bdddb9959608a1b6044820152606401610af2565b80611015816153ab565b915050610f0b565b5061102a8c8c8c8c612e26565b61103433826133aa565b505050505050505050505050565b60606002805461105190615349565b80601f016020809104026020016040519081016040528092919081815260200182805461107d90615349565b80156110ca5780601f1061109f576101008083540402835291602001916110ca565b820191906000526020600020905b8154815290600101906020018083116110ad57829003601f168201915b5050505050905090565b60006110ea826001546001600160801b03161190565b6111545760405162461bcd60e51b815260206004820152603560248201527f455243373231414275726e61626c653a20617070726f766564207175657279206044820152743337b9103737b732bc34b9ba32b73a103a37b5b2b760591b6064820152608401610af2565b506000908152600660205260409020546001600160a01b031690565b8360ff168383836011836040516111879190614e4c565b9081526040519081900360200190205460ff16156111b75760405162461bcd60e51b8152600401610af2906150c6565b601054604080516020601f85018190048102820181019092528381526001600160a01b039092169161121691859085908190840183828082843760009201919091525050604051610c299250610bc9915033908a908a90602001614e0d565b6001600160a01b03161461123c5760405162461bcd60e51b8152600401610af290614f8c565b600160118460405161124e9190614e4c565b908152604051908190036020019020805491151560ff199092169190911790556005600954600160c01b900460ff16600781111561129c57634e487b7160e01b600052602160045260246000fd5b146112db5760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610af2565b60008860ff16116112fe5760405162461bcd60e51b8152600401610af290614f2a565b611306611569565b600e5461131b9063ffffffff166127106152a3565b63ffffffff1661132b919061528c565b8860ff16111561134d5760405162461bcd60e51b8152600401610af290614f61565b601460ff891611156113715760405162461bcd60e51b8152600401610af290614fc3565b601460ff891661138033612532565b61138a91906151f4565b11156113f45760405162461bcd60e51b815260206004820152603360248201527f416e79206f6e652077616c6c65742063616e6e6f7420686f6c64206d6f7265206044820152721d1a185b8813505617d0905510d217d3525395606a1b6064820152608401610af2565b61140960ff891667058d15e176280000615245565b3410156114285760405162461bcd60e51b8152600401610af290615184565b611435338960ff166133aa565b5050505050505050565b600061144a826124bb565b9050806001600160a01b0316836001600160a01b031614156114c15760405162461bcd60e51b815260206004820152602a60248201527f455243373231414275726e61626c653a20617070726f76616c20746f206375726044820152693932b73a1037bbb732b960b11b6064820152608401610af2565b336001600160a01b03821614806114dd57506114dd81336109e1565b6115595760405162461bcd60e51b815260206004820152604160248201527f455243373231414275726e61626c653a20617070726f76652063616c6c65722060448201527f6973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6064820152601b60fa1b608482015260a401610af2565b6115648383836133c4565b505050565b600154600160801b90046001600160801b031690565b6000546001600160a01b031633146115a95760405162461bcd60e51b8152600401610af2906150f2565b6009805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b60018383836011836040516115e49190614e4c565b9081526040519081900360200190205460ff16156116145760405162461bcd60e51b8152600401610af2906150c6565b601054604080516020601f85018190048102820181019092528381526001600160a01b039092169161167391859085908190840183828082843760009201919091525050604051610c299250610bc9915033908a908a90602001614e0d565b6001600160a01b0316146116995760405162461bcd60e51b8152600401610af290614f8c565b60016011846040516116ab9190614e4c565b908152604051908190036020019020805491151560ff199092169190911790556003600954600160c01b900460ff1660078111156116f957634e487b7160e01b600052602160045260246000fd5b1461173c5760405162461bcd60e51b81526020600482015260136024820152725072652073616c65206e6f742061637469766560681b6044820152606401610af2565b336000908152600d602052604090205460ff161561178d5760405162461bcd60e51b815260206004820152600e60248201526d15da1a5d195b1a5cdd081d5cd95960921b6044820152606401610af2565b611795611569565b600e546117aa9063ffffffff166127106152a3565b63ffffffff166117ba919061528c565b600111156117da5760405162461bcd60e51b8152600401610af290614f61565b6702c68af0bb1400003410156118025760405162461bcd60e51b8152600401610af290615184565b61187789898080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c546040516bffffffffffffffffffffffff193360601b166020820152909250603401905060405160208183030381529060405280519060200120613420565b6118b25760405162461bcd60e51b815260206004820152600c60248201526b141c9bdbd98819985a5b195960a21b6044820152606401610af2565b336000818152600d60205260409020805460ff191660019081179091556118d991906133aa565b505050505050505050565b611564838383613436565b600954600090819081906127109061191490600160a01b900463ffffffff1686615245565b61191e9190615231565b6009546001600160a01b031693509150505b9250929050565b6000546001600160a01b031633146119615760405162461bcd60e51b8152600401610af2906150f2565b6001600954600160c01b900460ff16600781111561198f57634e487b7160e01b600052602160045260246000fd5b106119dc5760405162461bcd60e51b815260206004820152601d60248201527f46726565206d696e742068617320616c726561647920737461727465640000006044820152606401610af2565b6009805460ff60c01b1916600160c01b1790556040517f4c7c6bcac28d2096bee45bc16326df921bdd0460668fe96c6c6d360e16c2ec9290600090a1565b6000611a2583612532565b8210611a865760405162461bcd60e51b815260206004820152602a60248201527f455243373231414275726e61626c653a206f776e657220696e646578206f7574604482015269206f6620626f756e647360b01b6064820152608401610af2565b6000611a90611569565b905060008060005b83811015611b39576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215611aea57805192505b876001600160a01b0316836001600160a01b03161415611b265786841415611b1857509350610ac292505050565b83611b22816153ab565b9450505b5080611b31816153ab565b915050611a98565b5060405162461bcd60e51b815260206004820152603660248201527f455243373231414275726e61626c653a20756e61626c6520746f2067657420746044820152750ded6cadc40decc40deeedccae440c4f240d2dcc8caf60531b6064820152608401610af2565b6000546001600160a01b03163314611bcb5760405162461bcd60e51b8152600401610af2906150f2565b6005600954600160c01b900460ff166007811115611bf957634e487b7160e01b600052602160045260246000fd5b1015611c3d5760405162461bcd60e51b815260206004820152601360248201527214d85b19481cdd185d19481c995c5d5a5c9959606a1b6044820152606401610af2565b6007600954600160c01b900460ff166007811115611c6b57634e487b7160e01b600052602160045260246000fd5b10611ca95760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a185cc8195b99195960921b6044820152606401610af2565b6009805460ff60c01b1916600760c01b1790556040517fdcec425145dddcc9da423c0875cf787d092cc8b58dc6e649ff5c063503f6e8d590600090a1565b6000546001600160a01b03163314611d115760405162461bcd60e51b8152600401610af2906150f2565b6000600954600160c01b900460ff166007811115611d3f57634e487b7160e01b600052602160045260246000fd5b1480611d7657506007600954600160c01b900460ff166007811115611d7457634e487b7160e01b600052602160045260246000fd5b145b15611db45760405162461bcd60e51b815260206004820152600e60248201526d4e6f206163746976652073616c6560901b6044820152606401610af2565b6001600954600160c01b900460ff166007811115611de257634e487b7160e01b600052602160045260246000fd5b1480611e1957506003600954600160c01b900460ff166007811115611e1757634e487b7160e01b600052602160045260246000fd5b145b80611e4f57506005600954600160c01b900460ff166007811115611e4d57634e487b7160e01b600052602160045260246000fd5b145b15611e915760405162461bcd60e51b815260206004820152601260248201527114d85b19481a5cc81b9bdd081c185d5cd95960721b6044820152606401610af2565b600954600190600160c01b900460ff166007811115611ec057634e487b7160e01b600052602160045260246000fd5b611eca91906152c0565b60ff166007811115611eec57634e487b7160e01b600052602160045260246000fd5b6009805460ff60c01b1916600160c01b836007811115611f1c57634e487b7160e01b600052602160045260246000fd5b0217905550565b61156483838360405180602001604052806000815250612cb7565b611f478161378a565b50565b6001546000906001600160801b03168210611fbb5760405162461bcd60e51b815260206004820152602b60248201527f455243373231414275726e61626c653a20676c6f62616c20696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610af2565b5090565b6000546001600160a01b03163314611fe95760405162461bcd60e51b8152600401610af2906150f2565b6001600954600160c01b900460ff16600781111561201757634e487b7160e01b600052602160045260246000fd5b10156120655760405162461bcd60e51b815260206004820152601860248201527f46726565206d696e7420737461746520726571756972656400000000000000006044820152606401610af2565b6003600954600160c01b900460ff16600781111561209357634e487b7160e01b600052602160045260246000fd5b106120e05760405162461bcd60e51b815260206004820152601c60248201527f5072652d73616c652068617320616c72656164792073746172746564000000006044820152606401610af2565b6009805460ff60c01b1916600360c01b1790556040517f46c4761178801e1692fd377ae8cf590a11326fe7c3cde751bf4d939615cb641d90600090a1565b6000546001600160a01b031633146121485760405162461bcd60e51b8152600401610af2906150f2565b8051602f60f81b90829061215e9060019061528c565b8151811061217c57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916146121d85760405162461bcd60e51b815260206004820152601760248201527f4d7573742073657420747261696c696e6720736c6173680000000000000000006044820152606401610af2565b80516121eb90600f9060208401906146ae565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa8160405161221b9190614f17565b60405180910390a150565b60606001600954600160c01b900460ff16600781111561225657634e487b7160e01b600052602160045260246000fd5b141561228057506040805180820190915260098152681194915157d352539560ba1b602082015290565b6002600954600160c01b900460ff1660078111156122ae57634e487b7160e01b600052602160045260246000fd5b14156122df575060408051808201909152601081526f1194915157d352539517d4105554d15160821b602082015290565b6003600954600160c01b900460ff16600781111561230d57634e487b7160e01b600052602160045260246000fd5b141561233657506040805180820190915260088152675052455f53414c4560c01b602082015290565b6004600954600160c01b900460ff16600781111561236457634e487b7160e01b600052602160045260246000fd5b1415612394575060408051808201909152600f81526e14149157d4d0531157d4105554d151608a1b602082015290565b6005600954600160c01b900460ff1660078111156123c257634e487b7160e01b600052602160045260246000fd5b14156123e7575060408051808201909152600481526353414c4560e01b602082015290565b6006600954600160c01b900460ff16600781111561241557634e487b7160e01b600052602160045260246000fd5b1415612441575060408051808201909152600b81526a14d0531157d4105554d15160aa1b602082015290565b6007600954600160c01b900460ff16600781111561246f57634e487b7160e01b600052602160045260246000fd5b14156124955750604080518082019091526005815264115391115160da1b602082015290565b5060408051808201909152600b81526a1393d517d4d5105495115160aa1b602082015290565b60006124c6826139f6565b5192915050565b6000806000806124dc85613b97565b6000828152600b602052604090205491935091506001821b8116612501576000612504565b60015b945060006125138360016151f4565b6001901b821611612525576000612528565b60015b9350505050915091565b60006001600160a01b0382166125a65760405162461bcd60e51b815260206004820152603360248201527f455243373231414275726e61626c653a2062616c616e636520717565727920666044820152726f7220746865207a65726f206164647265737360681b6064820152608401610af2565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6000546001600160a01b031633146125f55760405162461bcd60e51b8152600401610af2906150f2565b6125ff6000613bc3565b565b6000546001600160a01b0316331461262b5760405162461bcd60e51b8152600401610af2906150f2565b600c55565b6000546001600160a01b0316331461265a5760405162461bcd60e51b8152600401610af2906150f2565b6000600954600160c01b900460ff16600781111561268857634e487b7160e01b600052602160045260246000fd5b14806126bf57506007600954600160c01b900460ff1660078111156126bd57634e487b7160e01b600052602160045260246000fd5b145b156126fd5760405162461bcd60e51b815260206004820152600e60248201526d4e6f206163746976652073616c6560901b6044820152606401610af2565b6002600954600160c01b900460ff16600781111561272b57634e487b7160e01b600052602160045260246000fd5b148061276257506004600954600160c01b900460ff16600781111561276057634e487b7160e01b600052602160045260246000fd5b145b8061279857506006600954600160c01b900460ff16600781111561279657634e487b7160e01b600052602160045260246000fd5b145b156127d65760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b6044820152606401610af2565b600954600160c01b900460ff16600781111561280257634e487b7160e01b600052602160045260246000fd5b611eca90600161520c565b6000546001600160a01b031633146128375760405162461bcd60e51b8152600401610af2906150f2565b47806128775760405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b6044820152606401610af2565b600061271061288883611b58615245565b6128929190615231565b905060006128a0828461528c565b6012546040519192506001600160a01b03169083156108fc029084906000818181858888f193505050506129165760405162461bcd60e51b815260206004820152601860248201527f5769746864726177616c204661696c656420746f2041414100000000000000006044820152606401610af2565b6013546040516001600160a01b039091169082156108fc029083906000818181858888f193505050506115645760405162461bcd60e51b815260206004820152601b60248201527f5769746864726177616c204661696c656420746f206e657476726b00000000006044820152606401610af2565b6000546001600160a01b031633146129b55760405162461bcd60e51b8152600401610af2906150f2565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60606003805461105190615349565b6000546001600160a01b03163314612a105760405162461bcd60e51b8152600401610af2906150f2565b6001600160a01b038116612a665760405162461bcd60e51b815260206004820152601e60248201527f53657420612076616c6964207769746864726177616c206164647265737300006044820152606401610af2565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216331415612aec5760405162461bcd60e51b815260206004820152602260248201527f455243373231414275726e61626c653a20617070726f766520746f2063616c6c60448201526132b960f11b6064820152608401610af2565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314612b825760405162461bcd60e51b8152600401610af2906150f2565b6003600954600160c01b900460ff166007811115612bb057634e487b7160e01b600052602160045260246000fd5b1015612bfe5760405162461bcd60e51b815260206004820152601760248201527f5072652d73616c652073746174652072657175697265640000000000000000006044820152606401610af2565b6005600954600160c01b900460ff166007811115612c2c57634e487b7160e01b600052602160045260246000fd5b10612c795760405162461bcd60e51b815260206004820152601860248201527f53616c652068617320616c7265616479207374617274656400000000000000006044820152606401610af2565b6009805460ff60c01b1916600560c01b1790556040517f771cfe172460b7d64cc46cca57a1e1f40f52b47cf1d16fe30c78a2935b3dd58090600090a1565b612cc2848484613436565b612cce84848484613c13565b612cea5760405162461bcd60e51b8152600401610af290615127565b50505050565b6000546001600160a01b03163314612d1a5760405162461bcd60e51b8152600401610af2906150f2565b6001600160a01b038116612d705760405162461bcd60e51b815260206004820152601e60248201527f53657420612076616c6964207769746864726177616c206164647265737300006044820152606401610af2565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6060612da8826001546001600160801b03161190565b612df45760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610af2565b600f612dff83613d1d565b604051602001612e10929190614e91565b6040516020818303038152906040529050919050565b6000808052600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7654815b85811015612eff57600080612e8e898985818110612e8257634e487b7160e01b600052603260045260246000fd5b90506020020135613b97565b91509150848214612eb8576000948552600b60205260408086209490945581855292909320549183905b612ec484826001612fb7565b935087612ed28460016151f4565b1415612eea576000858152600b602052604090208490555b50508080612ef7906153ab565b915050612e54565b5060005b83811015612fae57600080612f3d878785818110612f3157634e487b7160e01b600052603260045260246000fd5b90506020020135613e36565b91509150848214612f67576000948552600b60205260408086209490945581855292909320549183905b612f7384826001612fb7565b935085612f818460016151f4565b1415612f99576000858152600b602052604090208490555b50508080612fa6906153ab565b915050612f03565b50505050505050565b600081612fca576001831b198416612fd1565b6001831b84175b949350505050565b6060600f604051602001612fed9190614e68565b604051602081830303815290604052905090565b6000546001600160a01b0316331461302b5760405162461bcd60e51b8152600401610af2906150f2565b600e5463ffffffff90811690821611156130875760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f75676820726573657276656420737570706c790000000000006044820152606401610af2565b60008163ffffffff16116130ad5760405162461bcd60e51b8152600401610af290614f2a565b601463ffffffff821611156130d45760405162461bcd60e51b8152600401610af290614fc3565b600e80548291906000906130ef90849063ffffffff166152a3565b92506101000a81548163ffffffff021916908363ffffffff16021790555061311d828263ffffffff166133aa565b5050565b6000546001600160a01b0316331461314b5760405162461bcd60e51b8152600401610af2906150f2565b6001600160a01b0381166131b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610af2565b611f4781613bc3565b60006001600160e01b0319821663152a902d60e11b1480610ac25750610ac282613e59565b60008060006131ed8585613ec4565b915091506131fa81613f31565b509392505050565b6000808052600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7654819081805b878110156132e5576000806132618b8b85818110612e8257634e487b7160e01b600052603260045260246000fd5b9150915085821461329c5783156132815760019650505050505050612fd1565b6000828152600b602052604081205492965091945090925084905b600180821b861694909417938a906132b59085906151f4565b14156132d05783156132d05760019650505050505050612fd1565b505080806132dd906153ab565b915050613233565b5060005b8581101561339b57600080613317898985818110612f3157634e487b7160e01b600052603260045260246000fd5b915091508582146133525783156133375760019650505050505050612fd1565b6000828152600b602052604081205492965091945090925084905b600180821b86169490941793889061336b9085906151f4565b14156133865783156133865760019650505050505050612fd1565b50508080613393906153ab565b9150506132e9565b50600098975050505050505050565b61311d828260405180602001604052806000815250614132565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008261342d85846144e0565b14949350505050565b6000613441826139f6565b80519091506000906001600160a01b0316336001600160a01b0316148061347857503361346d846110d4565b6001600160a01b0316145b8061348a5750815161348a90336109e1565b9050806134a95760405162461bcd60e51b8152600401610af290615017565b846001600160a01b031682600001516001600160a01b0316146135255760405162461bcd60e51b815260206004820152602e60248201527f455243373231414275726e61626c653a207472616e736665722066726f6d206960448201526d3731b7b93932b1ba1037bbb732b960911b6064820152608401610af2565b6001600160a01b0384166135915760405162461bcd60e51b815260206004820152602d60248201527f455243373231414275726e61626c653a207472616e7366657220746f2074686560448201526c207a65726f206164647265737360981b6064820152608401610af2565b6135a160008484600001516133c4565b6001600160a01b03851660009081526005602052604081208054600192906135d39084906001600160801b0316615264565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600560205260408120805460019450909261361f918591166151c9565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526004909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556136a68460016151f4565b6000818152600460205260409020549091506001600160a01b0316613740576136d9816001546001600160801b03161190565b156137405760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000613795826139f6565b80519091506000906001600160a01b0316336001600160a01b031614806137cc5750336137c1846110d4565b6001600160a01b0316145b806137de575081516137de90336109e1565b9050806137fd5760405162461bcd60e51b8152600401610af290615017565b61380d60008484600001516133c4565b81516001600160a01b031660009081526005602052604081208054600192906138409084906001600160801b0316615264565b82546001600160801b039182166101009390930a92830291909202199091161790555060408051808201825261dead81526001600160401b03428116602080840191825260008881526004909152938420925183549151909216600160a01b026001600160e01b03199091166001600160a01b0392909216919091171790556138ca8460016151f4565b6000818152600460205260409020549091506001600160a01b0316613964576138fd816001546001600160801b03161190565b156139645760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b60018054600160801b90046001600160801b03169060106139848361530f565b91906101000a8154816001600160801b0302191690836001600160801b03160217905550508361dead6001600160a01b031684600001516001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b6040805180820190915260008082526020820152613a1e826001546001600160801b03161190565b613a3a5760405162461bcd60e51b8152600401610af290615074565b60007f00000000000000000000000000000000000000000000000000000000000000008310613a9b57613a8d7f00000000000000000000000000000000000000000000000000000000000000008461528c565b613a989060016151f4565b90505b825b818110613b28576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215613b155780516001600160a01b031661dead1415612fd15760405162461bcd60e51b8152600401610af290615074565b5080613b2081615332565b915050613a9d565b5060405162461bcd60e51b815260206004820152603760248201527f455243373231414275726e61626c653a20756e61626c6520746f20646574657260448201527f6d696e6520746865206f776e6572206f6620746f6b656e0000000000000000006064820152608401610af2565b600080613baa610100600185901b615231565b9150613bbc610100600185901b6153c6565b9050915091565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b15613d1557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613c57903390899088908890600401614eda565b602060405180830381600087803b158015613c7157600080fd5b505af1925050508015613ca1575060408051601f3d908101601f19168201909252613c9e91810190614c1e565b60015b613cfb573d808015613ccf576040519150601f19603f3d011682016040523d82523d6000602084013e613cd4565b606091505b508051613cf35760405162461bcd60e51b8152600401610af290615127565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612fd1565b506001612fd1565b606081613d415750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613d6b5780613d55816153ab565b9150613d649050600a83615231565b9150613d45565b6000816001600160401b03811115613d9357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613dbd576020820181803683370190505b5090505b8415612fd157613dd260018361528c565b9150613ddf600a866153c6565b613dea9060306151f4565b60f81b818381518110613e0d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613e2f600a86615231565b9450613dc1565b600080613e4283613b97565b909250905080613e51816153ab565b915050915091565b60006001600160e01b031982166380ac58cd60e01b1480613e8a57506001600160e01b03198216635b5e139f60e01b145b80613ea557506001600160e01b0319821663780e9d6360e01b145b80610ac257506301ffc9a760e01b6001600160e01b0319831614610ac2565b600080825160411415613efb5760208301516040840151606085015160001a613eef87828585614592565b94509450505050611930565b825160401415613f255760208301516040840151613f1a86838361467f565b935093505050611930565b50600090506002611930565b6000816004811115613f5357634e487b7160e01b600052602160045260246000fd5b1415613f5c5750565b6001816004811115613f7e57634e487b7160e01b600052602160045260246000fd5b1415613fcc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610af2565b6002816004811115613fee57634e487b7160e01b600052602160045260246000fd5b141561403c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610af2565b600381600481111561405e57634e487b7160e01b600052602160045260246000fd5b14156140b75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610af2565b60048160048111156140d957634e487b7160e01b600052602160045260246000fd5b1415611f475760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610af2565b6001546001600160801b03166001600160a01b0384166141a65760405162461bcd60e51b815260206004820152602960248201527f455243373231414275726e61626c653a206d696e7420746f20746865207a65726044820152686f206164647265737360b81b6064820152608401610af2565b6141c3816001600160801b03166001546001600160801b03161190565b1561421e5760405162461bcd60e51b815260206004820152602560248201527f455243373231414275726e61626c653a20746f6b656e20616c7265616479206d6044820152641a5b9d195960da1b6064820152608401610af2565b7f00000000000000000000000000000000000000000000000000000000000000008311156142a15760405162461bcd60e51b815260206004820152602a60248201527f455243373231414275726e61626c653a207175616e7469747920746f206d696e6044820152690e840e8dede40d0d2ced60b31b6064820152608401610af2565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906142fd9087906151c9565b6001600160801b0316815260200185836020015161431b91906151c9565b6001600160801b039081169091526001600160a01b0380881660008181526005602090815260408083208751978301518716600160801b0297871697909717909655855180870187529283526001600160401b0342811684830190815295891683526004909152948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561444d576040516001600160801b038316906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614411600088846001600160801b031688613c13565b61442d5760405162461bcd60e51b8152600401610af290615127565b8161443781615384565b9250508080614445906153ab565b9150506143b2565b506001805486919060009061446c9084906001600160801b03166151c9565b92506101000a8154816001600160801b0302191690836001600160801b0316021790555084600160000160108282829054906101000a90046001600160801b03166144b791906151c9565b92506101000a8154816001600160801b0302191690836001600160801b03160217905550613782565b600081815b84518110156131fa57600085828151811061451057634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161455257604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061457f565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061458a816153ab565b9150506144e5565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156145c95750600090506003614676565b8460ff16601b141580156145e157508460ff16601c14155b156145f25750600090506004614676565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614646573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661466f57600060019250925050614676565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016146a087828885614592565b935093505050935093915050565b8280546146ba90615349565b90600052602060002090601f0160209004810192826146dc5760008555614722565b82601f106146f557805160ff1916838001178555614722565b82800160010185558215614722579182015b82811115614722578251825591602001919060010190614707565b50611fbb9291505b80821115611fbb576000815560010161472a565b60006001600160401b038084111561475857614758615406565b604051601f8501601f19908116603f0116810190828211818310171561478057614780615406565b8160405280935085815286868601111561479957600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126147c4578182fd5b5081356001600160401b038111156147da578182fd5b6020830191508360208260051b850101111561193057600080fd5b8035801515811461480557600080fd5b919050565b60008083601f84011261481b578182fd5b5081356001600160401b03811115614831578182fd5b60208301915083602082850101111561193057600080fd5b600082601f830112614859578081fd5b6148688383356020850161473e565b9392505050565b803563ffffffff8116811461480557600080fd5b600060208284031215614894578081fd5b81356148688161541c565b6000602082840312156148b0578081fd5b81516148688161541c565b600080604083850312156148cd578081fd5b82356148d88161541c565b915060208301356148e88161541c565b809150509250929050565b600080600060608486031215614907578081fd5b83356149128161541c565b925060208401356149228161541c565b929592945050506040919091013590565b60008060008060808587031215614948578081fd5b84356149538161541c565b935060208501356149638161541c565b92506040850135915060608501356001600160401b03811115614984578182fd5b8501601f81018713614994578182fd5b6149a38782356020840161473e565b91505092959194509250565b600080604083850312156149c1578182fd5b82356149cc8161541c565b91506149da602084016147f5565b90509250929050565b600080604083850312156149f5578182fd5b8235614a008161541c565b946020939093013593505050565b60008060408385031215614a20578182fd5b8235614a2b8161541c565b91506149da6020840161486f565b600080600080600060608688031215614a50578081fd5b85356001600160401b0380821115614a66578283fd5b614a7289838a016147b3565b90975095506020880135915080821115614a8a578283fd5b614a9689838a01614849565b94506040880135915080821115614aab578283fd5b50614ab88882890161480a565b969995985093965092949392505050565b60008060008060408587031215614ade578182fd5b84356001600160401b0380821115614af4578384fd5b614b00888389016147b3565b90965094506020870135915080821115614b18578384fd5b50614b25878288016147b3565b95989497509550505050565b60008060008060008060006080888a031215614b4b578485fd5b87356001600160401b0380821115614b61578687fd5b614b6d8b838c016147b3565b909950975060208a0135915080821115614b85578687fd5b614b918b838c016147b3565b909750955060408a0135915080821115614ba9578384fd5b614bb58b838c01614849565b945060608a0135915080821115614bca578384fd5b50614bd78a828b0161480a565b989b979a50959850939692959293505050565b600060208284031215614bfb578081fd5b5035919050565b600060208284031215614c13578081fd5b813561486881615431565b600060208284031215614c2f578081fd5b815161486881615431565b600060208284031215614c4b578081fd5b81356001600160401b03811115614c60578182fd5b612fd184828501614849565b60008060408385031215614c7e578182fd5b50508035926020909101359150565b600080600060608486031215614ca1578081fd5b8335925060208401359150614cb8604085016147f5565b90509250925092565b600060208284031215614cd2578081fd5b6148688261486f565b60008060008060608587031215614cf0578182fd5b843560ff81168114614d00578283fd5b935060208501356001600160401b0380821115614d1b578384fd5b614d2788838901614849565b94506040870135915080821115614d3c578384fd5b50614b258782880161480a565b60008151808452614d618160208601602086016152e3565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680614d8f57607f831692505b6020808410821415614daf57634e487b7160e01b86526022600452602486fd5b818015614dc35760018114614dd457614e01565b60ff19861689528489019650614e01565b60008881526020902060005b86811015614df95781548b820152908501908301614de0565b505084890196505b50505050505092915050565b6bffffffffffffffffffffffff198460601b16815282601482015260008251614e3d8160348501602087016152e3565b91909101603401949350505050565b60008251614e5e8184602087016152e3565b9190910192915050565b6000614e748284614d75565b6c31b7b73a3930b1ba173539b7b760991b8152600d019392505050565b6000614e9d8285614d75565b65746f6b656e2f60d01b81528351614ebc8160068401602088016152e3565b64173539b7b760d91b60069290910191820152600b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614f0d90830184614d49565b9695505050505050565b6020815260006148686020830184614d49565b60208082526018908201527f596f75206d757374206d696e74206174206c6561737420310000000000000000604082015260600190565b6020808252601190820152704e6f7420656e6f75676820737570706c7960781b604082015260600190565b6020808252601d908201527f5369676e617475726520646f6573206e6f7420636f72726573706f6e64000000604082015260600190565b60208082526034908201527f43616e6e6f74206d696e74206d6f7265207468616e204d41585f42415443485f60408201527326a4a72a103832b9103a3930b739b0b1ba34b7b760611b606082015260800190565b6020808252603a908201527f455243373231414275726e61626c653a207472616e736665722063616c6c657260408201527f206973206e6f74206f776e6572206e6f7220617070726f766564000000000000606082015260800190565b60208082526032908201527f455243373231414275726e61626c653a206f776e657220717565727920666f72604082015271103737b732bc34b9ba32b73a103a37b5b2b760711b606082015260800190565b602080825260129082015271139bdb98d948185b1c9958591e481d5cd95960721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252603b908201527f455243373231414275726e61626c653a207472616e7366657220746f206e6f6e60408201527f20455243373231526563656976657220696d706c656d656e7465720000000000606082015260800190565b60208082526025908201527f496e73756666696369656e742065746820746f2070726f63657373207468652060408201526437b93232b960d91b606082015260800190565b60006001600160801b038083168185168083038211156151eb576151eb6153da565b01949350505050565b60008219821115615207576152076153da565b500190565b600060ff821660ff84168060ff03821115615229576152296153da565b019392505050565b600082615240576152406153f0565b500490565b600081600019048311821515161561525f5761525f6153da565b500290565b60006001600160801b0383811690831681811015615284576152846153da565b039392505050565b60008282101561529e5761529e6153da565b500390565b600063ffffffff83811690831681811015615284576152846153da565b600060ff821660ff8416808210156152da576152da6153da565b90039392505050565b60005b838110156152fe5781810151838201526020016152e6565b83811115612cea5750506000910152565b60006001600160801b03821680615328576153286153da565b6000190192915050565b600081615341576153416153da565b506000190190565b600181811c9082168061535d57607f821691505b6020821081141561537e57634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160801b03808316818114156153a1576153a16153da565b6001019392505050565b60006000198214156153bf576153bf6153da565b5060010190565b6000826153d5576153d56153f0565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611f4757600080fd5b6001600160e01b031981168114611f4757600080fdfea26469706673582212204320d5106f8c10706c72ece24a3cc50187d321a8af67ecd798b229777258801564736f6c6343000804003368747470733a2f2f6161612d65766f6c7574696f6e2d6170692d68357064327a75767a612d75632e612e72756e2e6170702f416e677279204170652041726d792045766f6c7574696f6e20436f6c6c656374696f6e0000000000000000000000001fd055565fa8a79b8197b09a4841d2e5191a414100000000000000000000000077640cf3f89a4f1b5ca3a1e5c87f3f5b12ebf87e00000000000000000000000027c95b555170a43e43ee4230a77740ce87aa2c83
Deployed Bytecode
0x60806040526004361061037a5760003560e01c806369d9dd4f116101d1578063a81152f711610102578063e1477a84116100a0578063e9f012181161006f578063e9f0121814610a0f578063f2fde38b14610a2f578063fccc281314610a4f578063fe60d12c14610a6557600080fd5b8063e1477a8414610961578063e61250c514610991578063e8a3d485146109b1578063e985e9c5146109c657600080fd5b8063c0ba4c7e116100dc578063c0ba4c7e146108eb578063c87b56dd1461090b578063d7224ba01461092b578063d8ba3ff41461094157600080fd5b8063a81152f7146108a1578063b66a0e5d146108b6578063b88d4fde146108cb57600080fd5b8063853828b61161016f57806395d89b411161014957806395d89b411461082c5780639a8a7c07146108415780639fbc871314610861578063a22cb4651461088157600080fd5b8063853828b6146107d95780638da5cb5b146107ee5780638dc251e31461080c57600080fd5b80637cb64759116101ab5780637cb64759146107685780637f205a741461078857806380d65be5146107a45780638456cb59146107c457600080fd5b806369d9dd4f146106fc57806370a0823114610733578063715018a61461075357600080fd5b80632b65dc5e116102ab57806342842e0e1161024957806355dd574c1161022357806355dd574c1461069257806355f804b3146106a7578063603f4d52146106c75780636352211e146106dc57600080fd5b806342842e0e1461063257806342966c68146106525780634f6ccce71461067257600080fd5b806332cb6b0c1161028557806332cb6b0c146105b9578063380d831b146105e45780633f4ba83a146105f957806342260b5d1461060e57600080fd5b80632b65dc5e1461056e5780632eb4a7ab146105835780632f745c591461059957600080fd5b80630d86a956116103185780631cf015c6116102f25780631cf015c6146104dc5780631f22edb5146104fc57806323b872dd1461050f5780632a55205a1461052f57600080fd5b80630d86a9561461047d57806318160ddd1461049d578063193402bb146104c057600080fd5b806306fdde031161035457806306fdde03146103f0578063081812fc14610412578063089ee40b1461044a578063095ea7b31461045d57600080fd5b806301ffc9a714610386578063046dc166146103bb57806305f6e26f146103dd57600080fd5b3661038157005b600080fd5b34801561039257600080fd5b506103a66103a1366004614c02565b610a82565b60405190151581526020015b60405180910390f35b3480156103c757600080fd5b506103db6103d6366004614883565b610ac8565b005b6103db6103eb366004614b31565b610b1d565b3480156103fc57600080fd5b50610405611042565b6040516103b29190614f17565b34801561041e57600080fd5b5061043261042d366004614bea565b6110d4565b6040516001600160a01b0390911681526020016103b2565b6103db610458366004614cdb565b611170565b34801561046957600080fd5b506103db6104783660046149e3565b61143f565b34801561048957600080fd5b50601354610432906001600160a01b031681565b3480156104a957600080fd5b506104b2611569565b6040519081526020016103b2565b3480156104cc57600080fd5b506104b26702c68af0bb14000081565b3480156104e857600080fd5b506103db6104f7366004614cc1565b61157f565b6103db61050a366004614a39565b6115cf565b34801561051b57600080fd5b506103db61052a3660046148f3565b6118e4565b34801561053b57600080fd5b5061054f61054a366004614c6c565b6118ef565b604080516001600160a01b0390931683526020830191909152016103b2565b34801561057a57600080fd5b506103db611937565b34801561058f57600080fd5b506104b2600c5481565b3480156105a557600080fd5b506104b26105b43660046149e3565b611a1a565b3480156105c557600080fd5b506105cf61271081565b60405163ffffffff90911681526020016103b2565b3480156105f057600080fd5b506103db611ba1565b34801561060557600080fd5b506103db611ce7565b34801561061a57600080fd5b506009546105cf90600160a01b900463ffffffff1681565b34801561063e57600080fd5b506103db61064d3660046148f3565b611f23565b34801561065e57600080fd5b506103db61066d366004614bea565b611f3e565b34801561067e57600080fd5b506104b261068d366004614bea565b611f4a565b34801561069e57600080fd5b506103db611fbf565b3480156106b357600080fd5b506103db6106c2366004614c3a565b61211e565b3480156106d357600080fd5b50610405612226565b3480156106e857600080fd5b506104326106f7366004614bea565b6124bb565b34801561070857600080fd5b5061071c610717366004614bea565b6124cd565b6040805192151583529015156020830152016103b2565b34801561073f57600080fd5b506104b261074e366004614883565b612532565b34801561075f57600080fd5b506103db6125cb565b34801561077457600080fd5b506103db610783366004614bea565b612601565b34801561079457600080fd5b506104b267058d15e17628000081565b3480156107b057600080fd5b50601254610432906001600160a01b031681565b3480156107d057600080fd5b506103db612630565b3480156107e557600080fd5b506103db61280d565b3480156107fa57600080fd5b506000546001600160a01b0316610432565b34801561081857600080fd5b506103db610827366004614883565b61298b565b34801561083857600080fd5b506104056129d7565b34801561084d57600080fd5b506103db61085c366004614883565b6129e6565b34801561086d57600080fd5b50600954610432906001600160a01b031681565b34801561088d57600080fd5b506103db61089c3660046149af565b612a88565b3480156108ad57600080fd5b506105cf601481565b3480156108c257600080fd5b506103db612b58565b3480156108d757600080fd5b506103db6108e6366004614933565b612cb7565b3480156108f757600080fd5b506103db610906366004614883565b612cf0565b34801561091757600080fd5b50610405610926366004614bea565b612d92565b34801561093757600080fd5b506104b260085481565b34801561094d57600080fd5b506103db61095c366004614ac9565b612e26565b34801561096d57600080fd5b506103a661097c366004614883565b600d6020526000908152604090205460ff1681565b34801561099d57600080fd5b506104b26109ac366004614c8d565b612fb7565b3480156109bd57600080fd5b50610405612fd9565b3480156109d257600080fd5b506103a66109e13660046148bb565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a1b57600080fd5b506103db610a2a366004614a0e565b613001565b348015610a3b57600080fd5b506103db610a4a366004614883565b613121565b348015610a5b57600080fd5b5061043261dead81565b348015610a7157600080fd5b50600e546105cf9063ffffffff1681565b60006001600160e01b0319821663152a902d60e11b1480610ab357506001600160e01b0319821663e8a3d48560e01b145b80610ac25750610ac2826131b9565b92915050565b6000546001600160a01b03163314610afb5760405162461bcd60e51b8152600401610af2906150f2565b60405180910390fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b610b2784876151f4565b838383601183604051610b3a9190614e4c565b9081526040519081900360200190205460ff1615610b6a5760405162461bcd60e51b8152600401610af2906150c6565b601054604080516020601f85018190048102820181019092528381526001600160a01b0390921691610c2f91859085908190840183828082843760009201919091525050604051610c299250610bc9915033908a908a90602001614e0d565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b906131de565b6001600160a01b031614610c555760405162461bcd60e51b8152600401610af290614f8c565b6001601184604051610c679190614e4c565b908152604051908190036020019020805491151560ff199092169190911790556000610c93898c6151f4565b90506001600954600160c01b900460ff166007811115610cc357634e487b7160e01b600052602160045260246000fd5b14610d075760405162461bcd60e51b815260206004820152601460248201527346726565206d696e74206e6f742061637469766560601b6044820152606401610af2565b60008111610d275760405162461bcd60e51b8152600401610af290614f2a565b610d2f611569565b600e54610d449063ffffffff166127106152a3565b63ffffffff16610d54919061528c565b811115610d735760405162461bcd60e51b8152600401610af290614f61565b610d85896702c68af0bb140000615245565b341015610da45760405162461bcd60e51b8152600401610af290615184565b610db08c8c8c8c613202565b15610df25760405162461bcd60e51b8152602060048201526012602482015271151bdad95b88185b1c9958591e481d5cd95960721b6044820152606401610af2565b60005b8b811015610f0757600a546001600160a01b0316636352211e8e8e84818110610e2e57634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b8152600401610e5391815260200190565b60206040518083038186803b158015610e6b57600080fd5b505afa158015610e7f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ea3919061489f565b6001600160a01b0316336001600160a01b031614610ef55760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd081bdddb9959608a1b6044820152606401610af2565b80610eff816153ab565b915050610df5565b5060005b8981101561101d57600a546001600160a01b0316636352211e8c8c84818110610f4457634e487b7160e01b600052603260045260246000fd5b905060200201356040518263ffffffff1660e01b8152600401610f6991815260200190565b60206040518083038186803b158015610f8157600080fd5b505afa158015610f95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb9919061489f565b6001600160a01b0316336001600160a01b03161461100b5760405162461bcd60e51b815260206004820152600f60248201526e151bdad95b881b9bdd081bdddb9959608a1b6044820152606401610af2565b80611015816153ab565b915050610f0b565b5061102a8c8c8c8c612e26565b61103433826133aa565b505050505050505050505050565b60606002805461105190615349565b80601f016020809104026020016040519081016040528092919081815260200182805461107d90615349565b80156110ca5780601f1061109f576101008083540402835291602001916110ca565b820191906000526020600020905b8154815290600101906020018083116110ad57829003601f168201915b5050505050905090565b60006110ea826001546001600160801b03161190565b6111545760405162461bcd60e51b815260206004820152603560248201527f455243373231414275726e61626c653a20617070726f766564207175657279206044820152743337b9103737b732bc34b9ba32b73a103a37b5b2b760591b6064820152608401610af2565b506000908152600660205260409020546001600160a01b031690565b8360ff168383836011836040516111879190614e4c565b9081526040519081900360200190205460ff16156111b75760405162461bcd60e51b8152600401610af2906150c6565b601054604080516020601f85018190048102820181019092528381526001600160a01b039092169161121691859085908190840183828082843760009201919091525050604051610c299250610bc9915033908a908a90602001614e0d565b6001600160a01b03161461123c5760405162461bcd60e51b8152600401610af290614f8c565b600160118460405161124e9190614e4c565b908152604051908190036020019020805491151560ff199092169190911790556005600954600160c01b900460ff16600781111561129c57634e487b7160e01b600052602160045260246000fd5b146112db5760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b6044820152606401610af2565b60008860ff16116112fe5760405162461bcd60e51b8152600401610af290614f2a565b611306611569565b600e5461131b9063ffffffff166127106152a3565b63ffffffff1661132b919061528c565b8860ff16111561134d5760405162461bcd60e51b8152600401610af290614f61565b601460ff891611156113715760405162461bcd60e51b8152600401610af290614fc3565b601460ff891661138033612532565b61138a91906151f4565b11156113f45760405162461bcd60e51b815260206004820152603360248201527f416e79206f6e652077616c6c65742063616e6e6f7420686f6c64206d6f7265206044820152721d1a185b8813505617d0905510d217d3525395606a1b6064820152608401610af2565b61140960ff891667058d15e176280000615245565b3410156114285760405162461bcd60e51b8152600401610af290615184565b611435338960ff166133aa565b5050505050505050565b600061144a826124bb565b9050806001600160a01b0316836001600160a01b031614156114c15760405162461bcd60e51b815260206004820152602a60248201527f455243373231414275726e61626c653a20617070726f76616c20746f206375726044820152693932b73a1037bbb732b960b11b6064820152608401610af2565b336001600160a01b03821614806114dd57506114dd81336109e1565b6115595760405162461bcd60e51b815260206004820152604160248201527f455243373231414275726e61626c653a20617070726f76652063616c6c65722060448201527f6973206e6f74206f776e6572206e6f7220617070726f76656420666f7220616c6064820152601b60fa1b608482015260a401610af2565b6115648383836133c4565b505050565b600154600160801b90046001600160801b031690565b6000546001600160a01b031633146115a95760405162461bcd60e51b8152600401610af2906150f2565b6009805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b60018383836011836040516115e49190614e4c565b9081526040519081900360200190205460ff16156116145760405162461bcd60e51b8152600401610af2906150c6565b601054604080516020601f85018190048102820181019092528381526001600160a01b039092169161167391859085908190840183828082843760009201919091525050604051610c299250610bc9915033908a908a90602001614e0d565b6001600160a01b0316146116995760405162461bcd60e51b8152600401610af290614f8c565b60016011846040516116ab9190614e4c565b908152604051908190036020019020805491151560ff199092169190911790556003600954600160c01b900460ff1660078111156116f957634e487b7160e01b600052602160045260246000fd5b1461173c5760405162461bcd60e51b81526020600482015260136024820152725072652073616c65206e6f742061637469766560681b6044820152606401610af2565b336000908152600d602052604090205460ff161561178d5760405162461bcd60e51b815260206004820152600e60248201526d15da1a5d195b1a5cdd081d5cd95960921b6044820152606401610af2565b611795611569565b600e546117aa9063ffffffff166127106152a3565b63ffffffff166117ba919061528c565b600111156117da5760405162461bcd60e51b8152600401610af290614f61565b6702c68af0bb1400003410156118025760405162461bcd60e51b8152600401610af290615184565b61187789898080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c546040516bffffffffffffffffffffffff193360601b166020820152909250603401905060405160208183030381529060405280519060200120613420565b6118b25760405162461bcd60e51b815260206004820152600c60248201526b141c9bdbd98819985a5b195960a21b6044820152606401610af2565b336000818152600d60205260409020805460ff191660019081179091556118d991906133aa565b505050505050505050565b611564838383613436565b600954600090819081906127109061191490600160a01b900463ffffffff1686615245565b61191e9190615231565b6009546001600160a01b031693509150505b9250929050565b6000546001600160a01b031633146119615760405162461bcd60e51b8152600401610af2906150f2565b6001600954600160c01b900460ff16600781111561198f57634e487b7160e01b600052602160045260246000fd5b106119dc5760405162461bcd60e51b815260206004820152601d60248201527f46726565206d696e742068617320616c726561647920737461727465640000006044820152606401610af2565b6009805460ff60c01b1916600160c01b1790556040517f4c7c6bcac28d2096bee45bc16326df921bdd0460668fe96c6c6d360e16c2ec9290600090a1565b6000611a2583612532565b8210611a865760405162461bcd60e51b815260206004820152602a60248201527f455243373231414275726e61626c653a206f776e657220696e646578206f7574604482015269206f6620626f756e647360b01b6064820152608401610af2565b6000611a90611569565b905060008060005b83811015611b39576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215611aea57805192505b876001600160a01b0316836001600160a01b03161415611b265786841415611b1857509350610ac292505050565b83611b22816153ab565b9450505b5080611b31816153ab565b915050611a98565b5060405162461bcd60e51b815260206004820152603660248201527f455243373231414275726e61626c653a20756e61626c6520746f2067657420746044820152750ded6cadc40decc40deeedccae440c4f240d2dcc8caf60531b6064820152608401610af2565b6000546001600160a01b03163314611bcb5760405162461bcd60e51b8152600401610af2906150f2565b6005600954600160c01b900460ff166007811115611bf957634e487b7160e01b600052602160045260246000fd5b1015611c3d5760405162461bcd60e51b815260206004820152601360248201527214d85b19481cdd185d19481c995c5d5a5c9959606a1b6044820152606401610af2565b6007600954600160c01b900460ff166007811115611c6b57634e487b7160e01b600052602160045260246000fd5b10611ca95760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a185cc8195b99195960921b6044820152606401610af2565b6009805460ff60c01b1916600760c01b1790556040517fdcec425145dddcc9da423c0875cf787d092cc8b58dc6e649ff5c063503f6e8d590600090a1565b6000546001600160a01b03163314611d115760405162461bcd60e51b8152600401610af2906150f2565b6000600954600160c01b900460ff166007811115611d3f57634e487b7160e01b600052602160045260246000fd5b1480611d7657506007600954600160c01b900460ff166007811115611d7457634e487b7160e01b600052602160045260246000fd5b145b15611db45760405162461bcd60e51b815260206004820152600e60248201526d4e6f206163746976652073616c6560901b6044820152606401610af2565b6001600954600160c01b900460ff166007811115611de257634e487b7160e01b600052602160045260246000fd5b1480611e1957506003600954600160c01b900460ff166007811115611e1757634e487b7160e01b600052602160045260246000fd5b145b80611e4f57506005600954600160c01b900460ff166007811115611e4d57634e487b7160e01b600052602160045260246000fd5b145b15611e915760405162461bcd60e51b815260206004820152601260248201527114d85b19481a5cc81b9bdd081c185d5cd95960721b6044820152606401610af2565b600954600190600160c01b900460ff166007811115611ec057634e487b7160e01b600052602160045260246000fd5b611eca91906152c0565b60ff166007811115611eec57634e487b7160e01b600052602160045260246000fd5b6009805460ff60c01b1916600160c01b836007811115611f1c57634e487b7160e01b600052602160045260246000fd5b0217905550565b61156483838360405180602001604052806000815250612cb7565b611f478161378a565b50565b6001546000906001600160801b03168210611fbb5760405162461bcd60e51b815260206004820152602b60248201527f455243373231414275726e61626c653a20676c6f62616c20696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610af2565b5090565b6000546001600160a01b03163314611fe95760405162461bcd60e51b8152600401610af2906150f2565b6001600954600160c01b900460ff16600781111561201757634e487b7160e01b600052602160045260246000fd5b10156120655760405162461bcd60e51b815260206004820152601860248201527f46726565206d696e7420737461746520726571756972656400000000000000006044820152606401610af2565b6003600954600160c01b900460ff16600781111561209357634e487b7160e01b600052602160045260246000fd5b106120e05760405162461bcd60e51b815260206004820152601c60248201527f5072652d73616c652068617320616c72656164792073746172746564000000006044820152606401610af2565b6009805460ff60c01b1916600360c01b1790556040517f46c4761178801e1692fd377ae8cf590a11326fe7c3cde751bf4d939615cb641d90600090a1565b6000546001600160a01b031633146121485760405162461bcd60e51b8152600401610af2906150f2565b8051602f60f81b90829061215e9060019061528c565b8151811061217c57634e487b7160e01b600052603260045260246000fd5b01602001516001600160f81b031916146121d85760405162461bcd60e51b815260206004820152601760248201527f4d7573742073657420747261696c696e6720736c6173680000000000000000006044820152606401610af2565b80516121eb90600f9060208401906146ae565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa8160405161221b9190614f17565b60405180910390a150565b60606001600954600160c01b900460ff16600781111561225657634e487b7160e01b600052602160045260246000fd5b141561228057506040805180820190915260098152681194915157d352539560ba1b602082015290565b6002600954600160c01b900460ff1660078111156122ae57634e487b7160e01b600052602160045260246000fd5b14156122df575060408051808201909152601081526f1194915157d352539517d4105554d15160821b602082015290565b6003600954600160c01b900460ff16600781111561230d57634e487b7160e01b600052602160045260246000fd5b141561233657506040805180820190915260088152675052455f53414c4560c01b602082015290565b6004600954600160c01b900460ff16600781111561236457634e487b7160e01b600052602160045260246000fd5b1415612394575060408051808201909152600f81526e14149157d4d0531157d4105554d151608a1b602082015290565b6005600954600160c01b900460ff1660078111156123c257634e487b7160e01b600052602160045260246000fd5b14156123e7575060408051808201909152600481526353414c4560e01b602082015290565b6006600954600160c01b900460ff16600781111561241557634e487b7160e01b600052602160045260246000fd5b1415612441575060408051808201909152600b81526a14d0531157d4105554d15160aa1b602082015290565b6007600954600160c01b900460ff16600781111561246f57634e487b7160e01b600052602160045260246000fd5b14156124955750604080518082019091526005815264115391115160da1b602082015290565b5060408051808201909152600b81526a1393d517d4d5105495115160aa1b602082015290565b60006124c6826139f6565b5192915050565b6000806000806124dc85613b97565b6000828152600b602052604090205491935091506001821b8116612501576000612504565b60015b945060006125138360016151f4565b6001901b821611612525576000612528565b60015b9350505050915091565b60006001600160a01b0382166125a65760405162461bcd60e51b815260206004820152603360248201527f455243373231414275726e61626c653a2062616c616e636520717565727920666044820152726f7220746865207a65726f206164647265737360681b6064820152608401610af2565b506001600160a01b03166000908152600560205260409020546001600160801b031690565b6000546001600160a01b031633146125f55760405162461bcd60e51b8152600401610af2906150f2565b6125ff6000613bc3565b565b6000546001600160a01b0316331461262b5760405162461bcd60e51b8152600401610af2906150f2565b600c55565b6000546001600160a01b0316331461265a5760405162461bcd60e51b8152600401610af2906150f2565b6000600954600160c01b900460ff16600781111561268857634e487b7160e01b600052602160045260246000fd5b14806126bf57506007600954600160c01b900460ff1660078111156126bd57634e487b7160e01b600052602160045260246000fd5b145b156126fd5760405162461bcd60e51b815260206004820152600e60248201526d4e6f206163746976652073616c6560901b6044820152606401610af2565b6002600954600160c01b900460ff16600781111561272b57634e487b7160e01b600052602160045260246000fd5b148061276257506004600954600160c01b900460ff16600781111561276057634e487b7160e01b600052602160045260246000fd5b145b8061279857506006600954600160c01b900460ff16600781111561279657634e487b7160e01b600052602160045260246000fd5b145b156127d65760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc81c185d5cd95960921b6044820152606401610af2565b600954600160c01b900460ff16600781111561280257634e487b7160e01b600052602160045260246000fd5b611eca90600161520c565b6000546001600160a01b031633146128375760405162461bcd60e51b8152600401610af2906150f2565b47806128775760405162461bcd60e51b815260206004820152600f60248201526e42616c616e6365206973207a65726f60881b6044820152606401610af2565b600061271061288883611b58615245565b6128929190615231565b905060006128a0828461528c565b6012546040519192506001600160a01b03169083156108fc029084906000818181858888f193505050506129165760405162461bcd60e51b815260206004820152601860248201527f5769746864726177616c204661696c656420746f2041414100000000000000006044820152606401610af2565b6013546040516001600160a01b039091169082156108fc029083906000818181858888f193505050506115645760405162461bcd60e51b815260206004820152601b60248201527f5769746864726177616c204661696c656420746f206e657476726b00000000006044820152606401610af2565b6000546001600160a01b031633146129b55760405162461bcd60e51b8152600401610af2906150f2565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b60606003805461105190615349565b6000546001600160a01b03163314612a105760405162461bcd60e51b8152600401610af2906150f2565b6001600160a01b038116612a665760405162461bcd60e51b815260206004820152601e60248201527f53657420612076616c6964207769746864726177616c206164647265737300006044820152606401610af2565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216331415612aec5760405162461bcd60e51b815260206004820152602260248201527f455243373231414275726e61626c653a20617070726f766520746f2063616c6c60448201526132b960f11b6064820152608401610af2565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314612b825760405162461bcd60e51b8152600401610af2906150f2565b6003600954600160c01b900460ff166007811115612bb057634e487b7160e01b600052602160045260246000fd5b1015612bfe5760405162461bcd60e51b815260206004820152601760248201527f5072652d73616c652073746174652072657175697265640000000000000000006044820152606401610af2565b6005600954600160c01b900460ff166007811115612c2c57634e487b7160e01b600052602160045260246000fd5b10612c795760405162461bcd60e51b815260206004820152601860248201527f53616c652068617320616c7265616479207374617274656400000000000000006044820152606401610af2565b6009805460ff60c01b1916600560c01b1790556040517f771cfe172460b7d64cc46cca57a1e1f40f52b47cf1d16fe30c78a2935b3dd58090600090a1565b612cc2848484613436565b612cce84848484613c13565b612cea5760405162461bcd60e51b8152600401610af290615127565b50505050565b6000546001600160a01b03163314612d1a5760405162461bcd60e51b8152600401610af2906150f2565b6001600160a01b038116612d705760405162461bcd60e51b815260206004820152601e60248201527f53657420612076616c6964207769746864726177616c206164647265737300006044820152606401610af2565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6060612da8826001546001600160801b03161190565b612df45760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610af2565b600f612dff83613d1d565b604051602001612e10929190614e91565b6040516020818303038152906040529050919050565b6000808052600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7654815b85811015612eff57600080612e8e898985818110612e8257634e487b7160e01b600052603260045260246000fd5b90506020020135613b97565b91509150848214612eb8576000948552600b60205260408086209490945581855292909320549183905b612ec484826001612fb7565b935087612ed28460016151f4565b1415612eea576000858152600b602052604090208490555b50508080612ef7906153ab565b915050612e54565b5060005b83811015612fae57600080612f3d878785818110612f3157634e487b7160e01b600052603260045260246000fd5b90506020020135613e36565b91509150848214612f67576000948552600b60205260408086209490945581855292909320549183905b612f7384826001612fb7565b935085612f818460016151f4565b1415612f99576000858152600b602052604090208490555b50508080612fa6906153ab565b915050612f03565b50505050505050565b600081612fca576001831b198416612fd1565b6001831b84175b949350505050565b6060600f604051602001612fed9190614e68565b604051602081830303815290604052905090565b6000546001600160a01b0316331461302b5760405162461bcd60e51b8152600401610af2906150f2565b600e5463ffffffff90811690821611156130875760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f75676820726573657276656420737570706c790000000000006044820152606401610af2565b60008163ffffffff16116130ad5760405162461bcd60e51b8152600401610af290614f2a565b601463ffffffff821611156130d45760405162461bcd60e51b8152600401610af290614fc3565b600e80548291906000906130ef90849063ffffffff166152a3565b92506101000a81548163ffffffff021916908363ffffffff16021790555061311d828263ffffffff166133aa565b5050565b6000546001600160a01b0316331461314b5760405162461bcd60e51b8152600401610af2906150f2565b6001600160a01b0381166131b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610af2565b611f4781613bc3565b60006001600160e01b0319821663152a902d60e11b1480610ac25750610ac282613e59565b60008060006131ed8585613ec4565b915091506131fa81613f31565b509392505050565b6000808052600b6020527fdf7de25b7f1fd6d0b5205f0e18f1f35bd7b8d84cce336588d184533ce43a6f7654819081805b878110156132e5576000806132618b8b85818110612e8257634e487b7160e01b600052603260045260246000fd5b9150915085821461329c5783156132815760019650505050505050612fd1565b6000828152600b602052604081205492965091945090925084905b600180821b861694909417938a906132b59085906151f4565b14156132d05783156132d05760019650505050505050612fd1565b505080806132dd906153ab565b915050613233565b5060005b8581101561339b57600080613317898985818110612f3157634e487b7160e01b600052603260045260246000fd5b915091508582146133525783156133375760019650505050505050612fd1565b6000828152600b602052604081205492965091945090925084905b600180821b86169490941793889061336b9085906151f4565b14156133865783156133865760019650505050505050612fd1565b50508080613393906153ab565b9150506132e9565b50600098975050505050505050565b61311d828260405180602001604052806000815250614132565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60008261342d85846144e0565b14949350505050565b6000613441826139f6565b80519091506000906001600160a01b0316336001600160a01b0316148061347857503361346d846110d4565b6001600160a01b0316145b8061348a5750815161348a90336109e1565b9050806134a95760405162461bcd60e51b8152600401610af290615017565b846001600160a01b031682600001516001600160a01b0316146135255760405162461bcd60e51b815260206004820152602e60248201527f455243373231414275726e61626c653a207472616e736665722066726f6d206960448201526d3731b7b93932b1ba1037bbb732b960911b6064820152608401610af2565b6001600160a01b0384166135915760405162461bcd60e51b815260206004820152602d60248201527f455243373231414275726e61626c653a207472616e7366657220746f2074686560448201526c207a65726f206164647265737360981b6064820152608401610af2565b6135a160008484600001516133c4565b6001600160a01b03851660009081526005602052604081208054600192906135d39084906001600160801b0316615264565b82546101009290920a6001600160801b038181021990931691831602179091556001600160a01b0386166000908152600560205260408120805460019450909261361f918591166151c9565b82546001600160801b039182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b0380871682526001600160401b03428116602080850191825260008981526004909152948520935184549151909216600160a01b026001600160e01b031990911691909216171790556136a68460016151f4565b6000818152600460205260409020549091506001600160a01b0316613740576136d9816001546001600160801b03161190565b156137405760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b6000613795826139f6565b80519091506000906001600160a01b0316336001600160a01b031614806137cc5750336137c1846110d4565b6001600160a01b0316145b806137de575081516137de90336109e1565b9050806137fd5760405162461bcd60e51b8152600401610af290615017565b61380d60008484600001516133c4565b81516001600160a01b031660009081526005602052604081208054600192906138409084906001600160801b0316615264565b82546001600160801b039182166101009390930a92830291909202199091161790555060408051808201825261dead81526001600160401b03428116602080840191825260008881526004909152938420925183549151909216600160a01b026001600160e01b03199091166001600160a01b0392909216919091171790556138ca8460016151f4565b6000818152600460205260409020549091506001600160a01b0316613964576138fd816001546001600160801b03161190565b156139645760408051808201825284516001600160a01b0390811682526020808701516001600160401b039081168285019081526000878152600490935294909120925183549451909116600160a01b026001600160e01b03199094169116179190911790555b60018054600160801b90046001600160801b03169060106139848361530f565b91906101000a8154816001600160801b0302191690836001600160801b03160217905550508361dead6001600160a01b031684600001516001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b6040805180820190915260008082526020820152613a1e826001546001600160801b03161190565b613a3a5760405162461bcd60e51b8152600401610af290615074565b60007f00000000000000000000000000000000000000000000000000000000000000148310613a9b57613a8d7f00000000000000000000000000000000000000000000000000000000000000148461528c565b613a989060016151f4565b90505b825b818110613b28576000818152600460209081526040918290208251808401909352546001600160a01b038116808452600160a01b9091046001600160401b03169183019190915215613b155780516001600160a01b031661dead1415612fd15760405162461bcd60e51b8152600401610af290615074565b5080613b2081615332565b915050613a9d565b5060405162461bcd60e51b815260206004820152603760248201527f455243373231414275726e61626c653a20756e61626c6520746f20646574657260448201527f6d696e6520746865206f776e6572206f6620746f6b656e0000000000000000006064820152608401610af2565b600080613baa610100600185901b615231565b9150613bbc610100600185901b6153c6565b9050915091565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b15613d1557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613c57903390899088908890600401614eda565b602060405180830381600087803b158015613c7157600080fd5b505af1925050508015613ca1575060408051601f3d908101601f19168201909252613c9e91810190614c1e565b60015b613cfb573d808015613ccf576040519150601f19603f3d011682016040523d82523d6000602084013e613cd4565b606091505b508051613cf35760405162461bcd60e51b8152600401610af290615127565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612fd1565b506001612fd1565b606081613d415750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613d6b5780613d55816153ab565b9150613d649050600a83615231565b9150613d45565b6000816001600160401b03811115613d9357634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613dbd576020820181803683370190505b5090505b8415612fd157613dd260018361528c565b9150613ddf600a866153c6565b613dea9060306151f4565b60f81b818381518110613e0d57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350613e2f600a86615231565b9450613dc1565b600080613e4283613b97565b909250905080613e51816153ab565b915050915091565b60006001600160e01b031982166380ac58cd60e01b1480613e8a57506001600160e01b03198216635b5e139f60e01b145b80613ea557506001600160e01b0319821663780e9d6360e01b145b80610ac257506301ffc9a760e01b6001600160e01b0319831614610ac2565b600080825160411415613efb5760208301516040840151606085015160001a613eef87828585614592565b94509450505050611930565b825160401415613f255760208301516040840151613f1a86838361467f565b935093505050611930565b50600090506002611930565b6000816004811115613f5357634e487b7160e01b600052602160045260246000fd5b1415613f5c5750565b6001816004811115613f7e57634e487b7160e01b600052602160045260246000fd5b1415613fcc5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610af2565b6002816004811115613fee57634e487b7160e01b600052602160045260246000fd5b141561403c5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610af2565b600381600481111561405e57634e487b7160e01b600052602160045260246000fd5b14156140b75760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610af2565b60048160048111156140d957634e487b7160e01b600052602160045260246000fd5b1415611f475760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610af2565b6001546001600160801b03166001600160a01b0384166141a65760405162461bcd60e51b815260206004820152602960248201527f455243373231414275726e61626c653a206d696e7420746f20746865207a65726044820152686f206164647265737360b81b6064820152608401610af2565b6141c3816001600160801b03166001546001600160801b03161190565b1561421e5760405162461bcd60e51b815260206004820152602560248201527f455243373231414275726e61626c653a20746f6b656e20616c7265616479206d6044820152641a5b9d195960da1b6064820152608401610af2565b7f00000000000000000000000000000000000000000000000000000000000000148311156142a15760405162461bcd60e51b815260206004820152602a60248201527f455243373231414275726e61626c653a207175616e7469747920746f206d696e6044820152690e840e8dede40d0d2ced60b31b6064820152608401610af2565b6001600160a01b0384166000908152600560209081526040918290208251808401845290546001600160801b038082168352600160801b90910416918101919091528151808301909252805190919081906142fd9087906151c9565b6001600160801b0316815260200185836020015161431b91906151c9565b6001600160801b039081169091526001600160a01b0380881660008181526005602090815260408083208751978301518716600160801b0297871697909717909655855180870187529283526001600160401b0342811684830190815295891683526004909152948120915182549451909516600160a01b026001600160e01b031990941694909216939093179190911790915582905b8581101561444d576040516001600160801b038316906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4614411600088846001600160801b031688613c13565b61442d5760405162461bcd60e51b8152600401610af290615127565b8161443781615384565b9250508080614445906153ab565b9150506143b2565b506001805486919060009061446c9084906001600160801b03166151c9565b92506101000a8154816001600160801b0302191690836001600160801b0316021790555084600160000160108282829054906101000a90046001600160801b03166144b791906151c9565b92506101000a8154816001600160801b0302191690836001600160801b03160217905550613782565b600081815b84518110156131fa57600085828151811061451057634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161455257604080516020810185905290810182905260600160405160208183030381529060405280519060200120925061457f565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b508061458a816153ab565b9150506144e5565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156145c95750600090506003614676565b8460ff16601b141580156145e157508460ff16601c14155b156145f25750600090506004614676565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015614646573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661466f57600060019250925050614676565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b016146a087828885614592565b935093505050935093915050565b8280546146ba90615349565b90600052602060002090601f0160209004810192826146dc5760008555614722565b82601f106146f557805160ff1916838001178555614722565b82800160010185558215614722579182015b82811115614722578251825591602001919060010190614707565b50611fbb9291505b80821115611fbb576000815560010161472a565b60006001600160401b038084111561475857614758615406565b604051601f8501601f19908116603f0116810190828211818310171561478057614780615406565b8160405280935085815286868601111561479957600080fd5b858560208301376000602087830101525050509392505050565b60008083601f8401126147c4578182fd5b5081356001600160401b038111156147da578182fd5b6020830191508360208260051b850101111561193057600080fd5b8035801515811461480557600080fd5b919050565b60008083601f84011261481b578182fd5b5081356001600160401b03811115614831578182fd5b60208301915083602082850101111561193057600080fd5b600082601f830112614859578081fd5b6148688383356020850161473e565b9392505050565b803563ffffffff8116811461480557600080fd5b600060208284031215614894578081fd5b81356148688161541c565b6000602082840312156148b0578081fd5b81516148688161541c565b600080604083850312156148cd578081fd5b82356148d88161541c565b915060208301356148e88161541c565b809150509250929050565b600080600060608486031215614907578081fd5b83356149128161541c565b925060208401356149228161541c565b929592945050506040919091013590565b60008060008060808587031215614948578081fd5b84356149538161541c565b935060208501356149638161541c565b92506040850135915060608501356001600160401b03811115614984578182fd5b8501601f81018713614994578182fd5b6149a38782356020840161473e565b91505092959194509250565b600080604083850312156149c1578182fd5b82356149cc8161541c565b91506149da602084016147f5565b90509250929050565b600080604083850312156149f5578182fd5b8235614a008161541c565b946020939093013593505050565b60008060408385031215614a20578182fd5b8235614a2b8161541c565b91506149da6020840161486f565b600080600080600060608688031215614a50578081fd5b85356001600160401b0380821115614a66578283fd5b614a7289838a016147b3565b90975095506020880135915080821115614a8a578283fd5b614a9689838a01614849565b94506040880135915080821115614aab578283fd5b50614ab88882890161480a565b969995985093965092949392505050565b60008060008060408587031215614ade578182fd5b84356001600160401b0380821115614af4578384fd5b614b00888389016147b3565b90965094506020870135915080821115614b18578384fd5b50614b25878288016147b3565b95989497509550505050565b60008060008060008060006080888a031215614b4b578485fd5b87356001600160401b0380821115614b61578687fd5b614b6d8b838c016147b3565b909950975060208a0135915080821115614b85578687fd5b614b918b838c016147b3565b909750955060408a0135915080821115614ba9578384fd5b614bb58b838c01614849565b945060608a0135915080821115614bca578384fd5b50614bd78a828b0161480a565b989b979a50959850939692959293505050565b600060208284031215614bfb578081fd5b5035919050565b600060208284031215614c13578081fd5b813561486881615431565b600060208284031215614c2f578081fd5b815161486881615431565b600060208284031215614c4b578081fd5b81356001600160401b03811115614c60578182fd5b612fd184828501614849565b60008060408385031215614c7e578182fd5b50508035926020909101359150565b600080600060608486031215614ca1578081fd5b8335925060208401359150614cb8604085016147f5565b90509250925092565b600060208284031215614cd2578081fd5b6148688261486f565b60008060008060608587031215614cf0578182fd5b843560ff81168114614d00578283fd5b935060208501356001600160401b0380821115614d1b578384fd5b614d2788838901614849565b94506040870135915080821115614d3c578384fd5b50614b258782880161480a565b60008151808452614d618160208601602086016152e3565b601f01601f19169290920160200192915050565b8054600090600181811c9080831680614d8f57607f831692505b6020808410821415614daf57634e487b7160e01b86526022600452602486fd5b818015614dc35760018114614dd457614e01565b60ff19861689528489019650614e01565b60008881526020902060005b86811015614df95781548b820152908501908301614de0565b505084890196505b50505050505092915050565b6bffffffffffffffffffffffff198460601b16815282601482015260008251614e3d8160348501602087016152e3565b91909101603401949350505050565b60008251614e5e8184602087016152e3565b9190910192915050565b6000614e748284614d75565b6c31b7b73a3930b1ba173539b7b760991b8152600d019392505050565b6000614e9d8285614d75565b65746f6b656e2f60d01b81528351614ebc8160068401602088016152e3565b64173539b7b760d91b60069290910191820152600b01949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090614f0d90830184614d49565b9695505050505050565b6020815260006148686020830184614d49565b60208082526018908201527f596f75206d757374206d696e74206174206c6561737420310000000000000000604082015260600190565b6020808252601190820152704e6f7420656e6f75676820737570706c7960781b604082015260600190565b6020808252601d908201527f5369676e617475726520646f6573206e6f7420636f72726573706f6e64000000604082015260600190565b60208082526034908201527f43616e6e6f74206d696e74206d6f7265207468616e204d41585f42415443485f60408201527326a4a72a103832b9103a3930b739b0b1ba34b7b760611b606082015260800190565b6020808252603a908201527f455243373231414275726e61626c653a207472616e736665722063616c6c657260408201527f206973206e6f74206f776e6572206e6f7220617070726f766564000000000000606082015260800190565b60208082526032908201527f455243373231414275726e61626c653a206f776e657220717565727920666f72604082015271103737b732bc34b9ba32b73a103a37b5b2b760711b606082015260800190565b602080825260129082015271139bdb98d948185b1c9958591e481d5cd95960721b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252603b908201527f455243373231414275726e61626c653a207472616e7366657220746f206e6f6e60408201527f20455243373231526563656976657220696d706c656d656e7465720000000000606082015260800190565b60208082526025908201527f496e73756666696369656e742065746820746f2070726f63657373207468652060408201526437b93232b960d91b606082015260800190565b60006001600160801b038083168185168083038211156151eb576151eb6153da565b01949350505050565b60008219821115615207576152076153da565b500190565b600060ff821660ff84168060ff03821115615229576152296153da565b019392505050565b600082615240576152406153f0565b500490565b600081600019048311821515161561525f5761525f6153da565b500290565b60006001600160801b0383811690831681811015615284576152846153da565b039392505050565b60008282101561529e5761529e6153da565b500390565b600063ffffffff83811690831681811015615284576152846153da565b600060ff821660ff8416808210156152da576152da6153da565b90039392505050565b60005b838110156152fe5781810151838201526020016152e6565b83811115612cea5750506000910152565b60006001600160801b03821680615328576153286153da565b6000190192915050565b600081615341576153416153da565b506000190190565b600181811c9082168061535d57607f821691505b6020821081141561537e57634e487b7160e01b600052602260045260246000fd5b50919050565b60006001600160801b03808316818114156153a1576153a16153da565b6001019392505050565b60006000198214156153bf576153bf6153da565b5060010190565b6000826153d5576153d56153f0565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611f4757600080fd5b6001600160e01b031981168114611f4757600080fdfea26469706673582212204320d5106f8c10706c72ece24a3cc50187d321a8af67ecd798b229777258801564736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001fd055565fa8a79b8197b09a4841d2e5191a414100000000000000000000000077640cf3f89a4f1b5ca3a1e5c87f3f5b12ebf87e00000000000000000000000027c95b555170a43e43ee4230a77740ce87aa2c83
-----Decoded View---------------
Arg [0] : signer_ (address): 0x1fd055565FA8A79B8197B09A4841D2E5191A4141
Arg [1] : aaaContract_ (address): 0x77640cf3F89A4F1B5CA3A1e5c87f3F5B12ebf87e
Arg [2] : royaltyReceiver_ (address): 0x27C95b555170a43e43EE4230A77740cE87aA2c83
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000001fd055565fa8a79b8197b09a4841d2e5191a4141
Arg [1] : 00000000000000000000000077640cf3f89a4f1b5ca3a1e5c87f3f5b12ebf87e
Arg [2] : 00000000000000000000000027c95b555170a43e43ee4230a77740ce87aa2c83
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.