ERC-721
Overview
Max Total Supply
677 RPR
Holders
102
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 RPRLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
RektPepeRenaissance
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ERC721A.sol"; import "./RPRSmartWallet.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/proxy/Clones.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; contract RektPepeRenaissance is ERC721A, Ownable, ReentrancyGuard { string private BASE_URI; uint256 public immutable freeMints; address public immutable smartWalletTemplate; struct SaleConfig { uint32 preSaleDuration; uint32 preSaleStartTime; uint64 seedPrice; uint64 preSalePrice; uint64 publicSalePrice; } SaleConfig public saleConfig; mapping(address => bool) public allowlist; mapping(address => bool) public rektOGs; event Mint(address indexed to, uint256 indexed quantity); modifier callerIsUser() { require(msg.sender == tx.origin, "Caller is another contract"); _; } constructor( uint256 collectionSize_, uint256 maxBatchSize_, uint256 freeMints_, string memory baseUri_ ) ERC721A("RektPepeRenaissance", "RPR", maxBatchSize_, collectionSize_) { freeMints = freeMints_; BASE_URI = baseUri_; RPRSmartWallet smartWallet = new RPRSmartWallet(); smartWalletTemplate = address(smartWallet); } /* WARNING: BURNING TOKENS WITH ASSETS REMAINING IN THEIR ASSOCIATED SMART WALLET WILL RESULT IN THE ASSETS BEING LOST FOREVER. */ function burn(uint256 tokenId) external { bool isApprovedOrOwner = (_msgSender() == ownerOf(tokenId) || getApproved(tokenId) == _msgSender() || isApprovedForAll(ownerOf(tokenId), _msgSender())); require(isApprovedOrOwner, "You are not the owner or approved"); _burn(tokenId); } function getPrice() public view returns (uint) { SaleConfig memory config = saleConfig; uint currentTime = block.timestamp; if (currentTime < config.preSaleStartTime) { return 0; } else if (currentTime < config.preSaleStartTime + config.preSaleDuration) { return config.preSalePrice; } else { return config.publicSalePrice; } } function seedRoundMint(uint256 quantity) external payable callerIsUser { uint256 price = saleConfig.seedPrice; require(price > 0, "Seed round not yet started"); require(block.timestamp < uint256(saleConfig.preSaleStartTime), "seed round is over"); require(quantity > 0, "Cannot mint 0 tokens"); require(totalSupply() + quantity <= collectionSize, "reached max supply"); require(msg.value == price * quantity, "Incorrect funds"); if (allowlist[msg.sender] || rektOGs[msg.sender]) { _safeMint(msg.sender, quantity); } else { revert("Attempting to mint more than allowed"); } emit Mint(msg.sender, quantity); } function mint(uint256 quantity) external payable callerIsUser { uint256 price = getPrice(); require(quantity > 0, "Cannot mint 0 tokens"); require(price > 0, "Sale not yet started"); require(totalSupply() + quantity <= collectionSize, "reached max supply"); if (rektOGs[msg.sender]) { price = saleConfig.seedPrice; require(msg.value == price * quantity, "Incorrect funds"); _safeMint(msg.sender, quantity); } else { require(msg.value == price * quantity, "Incorrect funds"); _safeMint(msg.sender, quantity); } emit Mint(msg.sender, quantity); } function setSaleConfig( uint32 preSaleDuration_, uint32 preSaleStartTime_, uint64 seedPriceWei_, uint64 preSalePriceWei_, uint64 publicSalePriceWei_ ) external onlyOwner { saleConfig = SaleConfig( preSaleDuration_, preSaleStartTime_, seedPriceWei_, preSalePriceWei_, publicSalePriceWei_ ); } function seedAllowlist(address[] memory addresses) external onlyOwner { uint arrLength = addresses.length; for (uint256 i = 0; i < arrLength; ++i) { if (!rektOGs[addresses[i]]) { allowlist[addresses[i]] = true; } } } function seedRektOGs(address[] memory addresses) external onlyOwner { uint arrLength = addresses.length; for (uint256 i = 0; i < arrLength; ++i) { if (allowlist[addresses[i]]) { allowlist[addresses[i]] = false; } rektOGs[addresses[i]] = true; } } function isAllowlist() external view returns (bool) { return allowlist[msg.sender]; } function isRektOG() external view returns (bool) { return rektOGs[msg.sender]; } function devMint(uint256 quantity) external onlyOwner { require( totalSupply() + quantity <= freeMints, "too many already minted before dev mint" ); require( quantity % maxBatchSize == 0, "can only mint a multiple of the maxBatchSize" ); uint256 numChunks = quantity / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(msg.sender, maxBatchSize); } } function setOwnersExplicit(uint256 quantity) external onlyOwner nonReentrant { _setOwnersExplicit(quantity); } function withdrawCharity() external onlyOwner nonReentrant { (bool success, ) = msg.sender.call{value: address(this).balance}(""); require(success, "Transfer failed."); } function _baseURI() internal view virtual override returns (string memory) { return BASE_URI; } function setBaseURI(string memory _new) external onlyOwner { BASE_URI = _new; } function getOwnershipData(uint256 tokenId) external view returns (TokenOwnership memory) { return ownershipOf(tokenId); } /* Smart Wallet Methods */ function getWalletForTokenId(uint256 tokenId) private returns (RPRSmartWallet wallet) { wallet = RPRSmartWallet(Clones.cloneDeterministic(smartWalletTemplate, keccak256(abi.encode(tokenId)))); } function getWalletAddressForTokenId(uint256 tokenId) public returns (address walletAddress) { walletAddress = Clones.cloneDeterministic(smartWalletTemplate, keccak256(abi.encode(tokenId))); } function withdrawEther(uint256 walletId) external callerIsUser { TokenOwnership memory ownership = ownershipOf(walletId); require(_msgSender() == ownership.addr, "Only the token owner can withdraw ether"); getWalletForTokenId(walletId).withdrawEther(_msgSender()); } function withdrawERC20(address _contract, uint256 amount, uint256 walletId) external callerIsUser { TokenOwnership memory ownership = ownershipOf(walletId); require(_msgSender() == ownership.addr, "Only the token owner can withdraw ERC20"); getWalletForTokenId(walletId).withdrawERC20(_contract, amount, _msgSender()); } function withdrawERC721(address _contract, uint256 tokenId, uint256 walletId) external callerIsUser { TokenOwnership memory ownership = ownershipOf(walletId); require(_msgSender() == ownership.addr, "Only the token owner can withdraw ERC721"); getWalletForTokenId(walletId).withdrawERC721(_contract, tokenId, _msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..). * * Assumes the number of issuable tokens (collection size) is capped and fits in a uint128. * * Does not support burning tokens to address(0). */ contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable { using Address for address; using Strings for uint256; struct TokenOwnership { address addr; uint64 startTimestamp; } struct AddressData { uint128 balance; uint128 numberMinted; } uint256 private currentIndex = 0; uint256 internal immutable collectionSize; uint256 internal immutable maxBatchSize; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See ownershipOf implementation for details. mapping(uint256 => TokenOwnership) private _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev * `maxBatchSize` refers to how much a minter can mint at a time. * `collectionSize_` refers to how many tokens are in the collection. */ constructor( string memory name_, string memory symbol_, uint256 maxBatchSize_, uint256 collectionSize_ ) { require( collectionSize_ > 0, "ERC721A: collection must have a nonzero supply" ); require(maxBatchSize_ > 0, "ERC721A: max batch size must be nonzero"); _name = name_; _symbol = symbol_; maxBatchSize = maxBatchSize_; collectionSize = collectionSize_; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view override returns (uint256) { return currentIndex; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view override returns (uint256) { require(index < totalSupply(), "ERC721A: global index out of bounds"); return index; } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. * This read function is O(collectionSize). If calling from a separate contract, be sure to test gas first. * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) { require(index < balanceOf(owner), "ERC721A: owner index out of bounds"); uint256 numMintedSoFar = totalSupply(); uint256 tokenIdsIdx = 0; address currOwnershipAddr = address(0); for (uint256 i = 0; i < numMintedSoFar; i++) { TokenOwnership memory ownership = _ownerships[i]; if (ownership.addr != address(0)) { currOwnershipAddr = ownership.addr; } if (currOwnershipAddr == owner) { if (tokenIdsIdx == index) { return i; } tokenIdsIdx++; } } revert("ERC721A: unable to get token of owner by index"); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { require(owner != address(0), "ERC721A: balance query for the zero address"); return uint256(_addressData[owner].balance); } function _numberMinted(address owner) internal view returns (uint256) { require( owner != address(0), "ERC721A: number minted query for the zero address" ); return uint256(_addressData[owner].numberMinted); } function ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { require(_exists(tokenId), "ERC721A: owner query for nonexistent token"); uint256 lowestTokenToCheck; if (tokenId >= maxBatchSize) { lowestTokenToCheck = tokenId - maxBatchSize + 1; } for (uint256 curr = tokenId; curr >= lowestTokenToCheck; curr--) { TokenOwnership memory ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } revert("ERC721A: unable to determine the owner of token"); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); require(to != owner, "ERC721A: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721A: approve caller is not owner nor approved for all" ); _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { require(_exists(tokenId), "ERC721A: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public override { require(operator != _msgSender(), "ERC721A: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public 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), "ERC721A: transfer to non ERC721Receiver implementer" ); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return tokenId < currentIndex; } function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ""); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - there must be `quantity` tokens remaining unminted in the total collection. * - `to` cannot be the zero address. * - `quantity` cannot be larger than the max batch size. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = currentIndex; require(to != address(0), "ERC721A: mint to the zero address"); // We know if the first token in the batch doesn't exist, the other ones don't as well, because of serial ordering. require(!_exists(startTokenId), "ERC721A: token already minted"); require(quantity <= maxBatchSize, "ERC721A: quantity to mint too high"); _beforeTokenTransfers(address(0), to, startTokenId, quantity); AddressData memory addressData = _addressData[to]; _addressData[to] = AddressData( addressData.balance + uint128(quantity), addressData.numberMinted + uint128(quantity) ); _ownerships[startTokenId] = TokenOwnership(to, uint64(block.timestamp)); uint256 updatedIndex = startTokenId; for (uint256 i = 0; i < quantity; i++) { emit Transfer(address(0), to, updatedIndex); require( _checkOnERC721Received(address(0), to, updatedIndex, _data), "ERC721A: transfer to non ERC721Receiver implementer" ); updatedIndex++; } currentIndex = updatedIndex; _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) private { TokenOwnership memory prevOwnership = ownershipOf(tokenId); bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr || getApproved(tokenId) == _msgSender() || isApprovedForAll(prevOwnership.addr, _msgSender())); require( isApprovedOrOwner, "ERC721A: transfer caller is not owner nor approved" ); require( prevOwnership.addr == from, "ERC721A: transfer from incorrect owner" ); require(to != address(0), "ERC721A: transfer to the zero address"); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, prevOwnership.addr); _addressData[from].balance -= 1; _addressData[to].balance += 1; _ownerships[tokenId] = TokenOwnership(to, uint64(block.timestamp)); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; if (_ownerships[nextTokenId].addr == address(0)) { if (_exists(nextTokenId)) { _ownerships[nextTokenId] = TokenOwnership( prevOwnership.addr, prevOwnership.startTimestamp ); } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { TokenOwnership memory prevOwnership = ownershipOf(tokenId); // _beforeTokenTransfers(prevOwnership.addr, address(0), tokenId); // Clear approvals _approve(address(0), tokenId, prevOwnership.addr); _addressData[prevOwnership.addr].balance -= 1; delete _ownerships[tokenId]; // 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(prevOwnership.addr, address(0), tokenId); // _afterTokenTransfers(prevOwnership.addr, address(0), tokenId); } uint256 public nextOwnerToExplicitlySet = 0; /** * @dev Explicitly set `owners` to eliminate loops in future calls of ownerOf(). */ function _setOwnersExplicit(uint256 quantity) internal { uint256 oldNextOwnerToSet = nextOwnerToExplicitlySet; require(quantity > 0, "quantity must be nonzero"); uint256 endIndex = oldNextOwnerToSet + quantity - 1; if (endIndex > collectionSize - 1) { endIndex = collectionSize - 1; } // We know if the last one in the group exists, all in the group exist, due to serial ordering. require(_exists(endIndex), "not enough minted yet for this cleanup"); for (uint256 i = oldNextOwnerToSet; i <= endIndex; i++) { if (_ownerships[i].addr == address(0)) { TokenOwnership memory ownership = ownershipOf(i); _ownerships[i] = TokenOwnership( ownership.addr, ownership.startTimestamp ); } } nextOwnerToExplicitlySet = endIndex + 1; } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721A: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: GNU-GPL v3.0 or later import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/interfaces/IERC721.sol"; pragma solidity ^0.8.0; /// @author RobAnon contract RPRSmartWallet { using SafeERC20 for IERC20; address private immutable MASTER; constructor() { MASTER = msg.sender; } modifier onlyMaster() { require(msg.sender == MASTER, 'E016'); _; } //https://ethereum.stackexchange.com/questions/19341/address-send-vs-address-transfer-best-practice-usage function withdrawEther(address owner) public onlyMaster { (bool success, ) = owner.call{value: address(this).balance}(""); require(success, "Transfer failed."); _cleanMemory(); } function withdrawERC20(address token, uint256 amount, address recipient) external onlyMaster { IERC20(token).safeTransfer(recipient, amount); withdrawEther(recipient); _cleanMemory(); } function withdrawERC721(address token, uint256 tokenId, address recipient) external onlyMaster { IERC721(token).safeTransferFrom(address(this), recipient, tokenId); withdrawEther(recipient); _cleanMemory(); } /// Credit to doublesharp for the brilliant gas-saving concept /// Self-destructing clone pattern function cleanMemory() external onlyMaster { _cleanMemory(); } function _cleanMemory() internal { selfdestruct(payable(MASTER)); } function _checkApproval(uint amountUnderlying, address vaultToken, address vaultAdapter) private { if(IERC20(vaultToken).allowance(address(this), vaultAdapter) < amountUnderlying) { IERC20(vaultToken).approve(vaultAdapter, type(uint).max); } } }
// 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 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (proxy/Clones.sol) pragma solidity ^0.8.0; /** * @dev https://eips.ethereum.org/EIPS/eip-1167[EIP 1167] is a standard for * deploying minimal proxy contracts, also known as "clones". * * > To simply and cheaply clone contract functionality in an immutable way, this standard specifies * > a minimal bytecode implementation that delegates all calls to a known, fixed address. * * The library includes functions to deploy a proxy using either `create` (traditional deployment) or `create2` * (salted deterministic deployment). It also includes functions to predict the addresses of clones deployed using the * deterministic method. * * _Available since v3.4._ */ library Clones { /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create opcode, which should never revert. */ function clone(address implementation) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create(0, ptr, 0x37) } require(instance != address(0), "ERC1167: create failed"); } /** * @dev Deploys and returns the address of a clone that mimics the behaviour of `implementation`. * * This function uses the create2 opcode and a `salt` to deterministically deploy * the clone. Using the same `implementation` and `salt` multiple time will revert, since * the clones cannot be deployed twice at the same address. */ function cloneDeterministic(address implementation, bytes32 salt) internal returns (address instance) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) instance := create2(0, ptr, 0x37, salt) } require(instance != address(0), "ERC1167: create2 failed"); } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { assembly { let ptr := mload(0x40) mstore(ptr, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(ptr, 0x14), shl(0x60, implementation)) mstore(add(ptr, 0x28), 0x5af43d82803e903d91602b57fd5bf3ff00000000000000000000000000000000) mstore(add(ptr, 0x38), shl(0x60, deployer)) mstore(add(ptr, 0x4c), salt) mstore(add(ptr, 0x6c), keccak256(ptr, 0x37)) predicted := keccak256(add(ptr, 0x37), 0x55) } } /** * @dev Computes the address of a clone deployed using {Clones-cloneDeterministic}. */ function predictDeterministicAddress(address implementation, bytes32 salt) internal view returns (address predicted) { return predictDeterministicAddress(implementation, salt, address(this)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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/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/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 // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"collectionSize_","type":"uint256"},{"internalType":"uint256","name":"maxBatchSize_","type":"uint256"},{"internalType":"uint256","name":"freeMints_","type":"uint256"},{"internalType":"string","name":"baseUri_","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"allowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freeMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"}],"internalType":"struct ERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getWalletAddressForTokenId","outputs":[{"internalType":"address","name":"walletAddress","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isAllowlist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isRektOG","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextOwnerToExplicitlySet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"address","name":"","type":"address"}],"name":"rektOGs","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleConfig","outputs":[{"internalType":"uint32","name":"preSaleDuration","type":"uint32"},{"internalType":"uint32","name":"preSaleStartTime","type":"uint32"},{"internalType":"uint64","name":"seedPrice","type":"uint64"},{"internalType":"uint64","name":"preSalePrice","type":"uint64"},{"internalType":"uint64","name":"publicSalePrice","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"seedAllowlist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"seedRektOGs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"seedRoundMint","outputs":[],"stateMutability":"payable","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":"_new","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setOwnersExplicit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"preSaleDuration_","type":"uint32"},{"internalType":"uint32","name":"preSaleStartTime_","type":"uint32"},{"internalType":"uint64","name":"seedPriceWei_","type":"uint64"},{"internalType":"uint64","name":"preSalePriceWei_","type":"uint64"},{"internalType":"uint64","name":"publicSalePriceWei_","type":"uint64"}],"name":"setSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"smartWalletTemplate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"withdrawCharity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"walletId","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"walletId","type":"uint256"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"walletId","type":"uint256"}],"name":"withdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6101006040526000805560006007553480156200001b57600080fd5b50604051620051fa380380620051fa8339810160408190526200003e9162000326565b6040518060400160405280601381526020017f52656b745065706552656e61697373616e6365000000000000000000000000008152506040518060400160405280600381526020016229282960e91b815250848660008111620000ff5760405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20636f6c6c656374696f6e206d757374206861766520612060448201526d6e6f6e7a65726f20737570706c7960901b60648201526084015b60405180910390fd5b60008211620001615760405162461bcd60e51b815260206004820152602760248201527f455243373231413a206d61782062617463682073697a65206d757374206265206044820152666e6f6e7a65726f60c81b6064820152608401620000f6565b8351620001769060019060208701906200025c565b5082516200018c9060029060208601906200025c565b5060a09190915260805250620001a49050336200020a565b600160095560c08290528051620001c390600a9060208401906200025c565b506000604051620001d490620002eb565b604051809103906000f080158015620001f1573d6000803e3d6000fd5b506001600160a01b031660e052506200045f9350505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200026a9062000422565b90600052602060002090601f0160209004810192826200028e5760008555620002d9565b82601f10620002a957805160ff1916838001178555620002d9565b82800160010185558215620002d9579182015b82811115620002d9578251825591602001919060010190620002bc565b50620002e7929150620002f9565b5090565b610a1280620047e883390190565b5b80821115620002e75760008155600101620002fa565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156200033d57600080fd5b8451602080870151604088015160608901519397509095509350906001600160401b03808211156200036e57600080fd5b818801915088601f8301126200038357600080fd5b81518181111562000398576200039862000310565b604051601f8201601f19908116603f01168101908382118183101715620003c357620003c362000310565b816040528281528b86848701011115620003dc57600080fd5b600093505b82841015620004005784840186015181850187015292850192620003e1565b82841115620004125760008684830101525b989b979a50959850505050505050565b600181811c908216806200043757607f821691505b602082108114156200045957634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051614309620004df600039600081816108d501526125e701526000818161062701526111500152600081816111fc0152818161129b015281816112d301528181612d2501528181612d4f0152613776015260008181611fd90152818161245e01528181612edd0152612f0f01526143096000f3fe6080604052600436106102dc5760003560e01c80636c07ea4311610184578063a0712d68116100d6578063c180960e1161008a578063e4f1660811610064578063e4f16608146108c3578063e985e9c5146108f7578063f2fde38b1461094057600080fd5b8063c180960e1461086d578063c87b56dd1461088d578063d7224ba0146108ad57600080fd5b8063a7cd52cb116100bb578063a7cd52cb1461080a578063b88d4fde1461083a578063bb97c0af1461085a57600080fd5b8063a0712d68146107d7578063a22cb465146107ea57600080fd5b806388c206f7116101385780639231ab2a116101125780639231ab2a1461075f57806395d89b41146107ad57806398d5fdca146107c257600080fd5b806388c206f7146106695780638da5cb5b1461068957806390aa0b0f146106a757600080fd5b8063715018a611610169578063715018a61461060057806380b1733514610615578063863bc7291461064957600080fd5b80636c07ea43146105c057806370a08231146105e057600080fd5b80632f745c591161023d5780633c8cce3a116101f15780634f6ccce7116101cb5780634f6ccce71461056057806355f804b3146105805780636352211e146105a057600080fd5b80633c8cce3a1461050057806342842e0e1461052057806342966c681461054057600080fd5b8063375a069a11610222578063375a069a146104ab5780633a653e9d146104cb5780633bed33ce146104e057600080fd5b80632f745c591461046657806335a7658e1461048657600080fd5b8063169d8edd1161029457806323b872dd1161027957806323b872dd146104065780632a491247146104265780632d20fb601461044657600080fd5b8063169d8edd146103c257806318160ddd146103e757600080fd5b806306fdde03116102c557806306fdde0314610346578063081812fc14610368578063095ea7b3146103a057600080fd5b806301ffc9a7146102e15780630453cd7614610316575b600080fd5b3480156102ed57600080fd5b506103016102fc366004613b21565b610960565b60405190151581526020015b60405180910390f35b34801561032257600080fd5b50610301610331366004613b5a565b600d6020526000908152604090205460ff1681565b34801561035257600080fd5b5061035b610a91565b60405161030d9190613beb565b34801561037457600080fd5b50610388610383366004613bfe565b610b23565b6040516001600160a01b03909116815260200161030d565b3480156103ac57600080fd5b506103c06103bb366004613c17565b610bc3565b005b3480156103ce57600080fd5b50336000908152600c602052604090205460ff16610301565b3480156103f357600080fd5b506000545b60405190815260200161030d565b34801561041257600080fd5b506103c0610421366004613c41565b610cf6565b34801561043257600080fd5b506103c0610441366004613c7d565b610d01565b34801561045257600080fd5b506103c0610461366004613bfe565b610e88565b34801561047257600080fd5b506103f8610481366004613c17565b610f4b565b34801561049257600080fd5b50336000908152600d602052604090205460ff16610301565b3480156104b757600080fd5b506103c06104c6366004613bfe565b6110f4565b3480156104d757600080fd5b506103c0611309565b3480156104ec57600080fd5b506103c06104fb366004613bfe565b611453565b34801561050c57600080fd5b506103c061051b366004613cdc565b6115c5565b34801561052c57600080fd5b506103c061053b366004613c41565b611747565b34801561054c57600080fd5b506103c061055b366004613bfe565b611762565b34801561056c57600080fd5b506103f861057b366004613bfe565b611836565b34801561058c57600080fd5b506103c061059b366004613e35565b6118b2565b3480156105ac57600080fd5b506103886105bb366004613bfe565b61191f565b3480156105cc57600080fd5b506103c06105db366004613c7d565b611931565b3480156105ec57600080fd5b506103f86105fb366004613b5a565b611a35565b34801561060c57600080fd5b506103c0611ae1565b34801561062157600080fd5b506103f87f000000000000000000000000000000000000000000000000000000000000000081565b34801561065557600080fd5b506103c0610664366004613e7e565b611b47565b34801561067557600080fd5b506103c0610684366004613e7e565b611cc0565b34801561069557600080fd5b506008546001600160a01b0316610388565b3480156106b357600080fd5b50600b546107209063ffffffff8082169164010000000081049091169067ffffffffffffffff680100000000000000008204811691700100000000000000000000000000000000810482169178010000000000000000000000000000000000000000000000009091041685565b6040805163ffffffff968716815295909416602086015267ffffffffffffffff928316938501939093528116606084015216608082015260a00161030d565b34801561076b57600080fd5b5061077f61077a366004613bfe565b611dd0565b6040805182516001600160a01b0316815260209283015167ffffffffffffffff16928101929092520161030d565b3480156107b957600080fd5b5061035b611ded565b3480156107ce57600080fd5b506103f8611dfc565b6103c06107e5366004613bfe565b611edc565b3480156107f657600080fd5b506103c0610805366004613f2b565b612186565b34801561081657600080fd5b50610301610825366004613b5a565b600c6020526000908152604090205460ff1681565b34801561084657600080fd5b506103c0610855366004613f67565b612269565b6103c0610868366004613bfe565b6122f8565b34801561087957600080fd5b50610388610888366004613bfe565b6125e0565b34801561089957600080fd5b5061035b6108a8366004613bfe565b612634565b3480156108b957600080fd5b506103f860075481565b3480156108cf57600080fd5b506103887f000000000000000000000000000000000000000000000000000000000000000081565b34801561090357600080fd5b50610301610912366004613fe3565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561094c57600080fd5b506103c061095b366004613b5a565b61270f565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109f357507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a3f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a8b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060018054610aa090614016565b80601f0160208091040260200160405190810160405280929190818152602001828054610acc90614016565b8015610b195780601f10610aee57610100808354040283529160200191610b19565b820191906000526020600020905b815481529060010190602001808311610afc57829003601f168201915b5050505050905090565b6000610b30826000541190565b610ba75760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610bce8261191f565b9050806001600160a01b0316836001600160a01b03161415610c585760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b336001600160a01b0382161480610c745750610c748133610912565b610ce65760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b9e565b610cf18383836127f1565b505050565b610cf1838383612865565b333214610d505760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610b9e565b6000610d5b82612c90565b80519091506001600160a01b0316336001600160a01b031614610de65760405162461bcd60e51b815260206004820152602860248201527f4f6e6c792074686520746f6b656e206f776e65722063616e207769746864726160448201527f77204552433732310000000000000000000000000000000000000000000000006064820152608401610b9e565b610def826125e0565b6001600160a01b0316637b9f76b58585335b60405160e085901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b03938416600482015260248101929092529091166044820152606401600060405180830381600087803b158015610e6a57600080fd5b505af1158015610e7e573d6000803e3d6000fd5b5050505050505050565b6008546001600160a01b03163314610ee25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b60026009541415610f355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b9e565b6002600955610f4381612e6c565b506001600955565b6000610f5683611a35565b8210610fca5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b600080549080805b83811015611085576000818152600360209081526040918290208251808401909352546001600160a01b0381168084527401000000000000000000000000000000000000000090910467ffffffffffffffff16918301919091521561103657805192505b876001600160a01b0316836001600160a01b03161415611072578684141561106457509350610a8b92505050565b8361106e81614099565b9450505b508061107d81614099565b915050610fd2565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610b9e565b6008546001600160a01b0316331461114e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b7f00000000000000000000000000000000000000000000000000000000000000008161117960005490565b61118391906140d2565b11156111f75760405162461bcd60e51b815260206004820152602760248201527f746f6f206d616e7920616c7265616479206d696e746564206265666f7265206460448201527f6576206d696e74000000000000000000000000000000000000000000000000006064820152608401610b9e565b6112217f000000000000000000000000000000000000000000000000000000000000000082614119565b156112945760405162461bcd60e51b815260206004820152602c60248201527f63616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a6500000000000000000000000000000000000000006064820152608401610b9e565b60006112c07f00000000000000000000000000000000000000000000000000000000000000008361412d565b905060005b81811015610cf1576112f7337f0000000000000000000000000000000000000000000000000000000000000000613096565b8061130181614099565b9150506112c5565b6008546001600160a01b031633146113635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b600260095414156113b65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b9e565b6002600955604051600090339047908381818185875af1925050503d80600081146113fd576040519150601f19603f3d011682016040523d82523d6000602084013e611402565b606091505b5050905080610f435760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b9e565b3332146114a25760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610b9e565b60006114ad82612c90565b80519091506001600160a01b0316336001600160a01b0316146115385760405162461bcd60e51b815260206004820152602760248201527f4f6e6c792074686520746f6b656e206f776e65722063616e207769746864726160448201527f77206574686572000000000000000000000000000000000000000000000000006064820152608401610b9e565b611541826125e0565b6001600160a01b031663af933b57336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156115a957600080fd5b505af11580156115bd573d6000803e3d6000fd5b505050505050565b6008546001600160a01b0316331461161f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b6040805160a08101825263ffffffff968716808252959096166020870181905267ffffffffffffffff94851691870182905292841660608701819052919093166080909501859052600b80547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016909417640100000000909202919091177fffffffffffffffff00000000000000000000000000000000ffffffffffffffff16680100000000000000009092027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff16919091177001000000000000000000000000000000009091021777ffffffffffffffffffffffffffffffffffffffffffffffff167801000000000000000000000000000000000000000000000000909202919091179055565b610cf183838360405180602001604052806000815250612269565b600061176d8261191f565b6001600160a01b0316336001600160a01b0316148061179c57503361179183610b23565b6001600160a01b0316145b806117b457506117b46117ae8361191f565b33610912565b9050806118295760405162461bcd60e51b815260206004820152602160248201527f596f7520617265206e6f7420746865206f776e6572206f7220617070726f766560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b611832826130b0565b5050565b6000805482106118ae5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b5090565b6008546001600160a01b0316331461190c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b805161183290600a906020840190613a63565b600061192a82612c90565b5192915050565b3332146119805760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610b9e565b600061198b82612c90565b80519091506001600160a01b0316336001600160a01b031614611a165760405162461bcd60e51b815260206004820152602760248201527f4f6e6c792074686520746f6b656e206f776e65722063616e207769746864726160448201527f77204552433230000000000000000000000000000000000000000000000000006064820152608401610b9e565b611a1f826125e0565b6001600160a01b0316635fc3ea0b858533610e01565b60006001600160a01b038216611ab35760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610b9e565b506001600160a01b03166000908152600460205260409020546fffffffffffffffffffffffffffffffff1690565b6008546001600160a01b03163314611b3b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b611b45600061326f565b565b6008546001600160a01b03163314611ba15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b805160005b81811015610cf157600c6000848381518110611bc457611bc4614141565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615611c48576000600c6000858481518110611c0857611c08614141565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b6001600d6000858481518110611c6057611c60614141565b6020908102919091018101516001600160a01b0316825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055611cb981614099565b9050611ba6565b6008546001600160a01b03163314611d1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b805160005b81811015610cf157600d6000848381518110611d3d57611d3d614141565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16611dc0576001600c6000858481518110611d8057611d80614141565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b611dc981614099565b9050611d1f565b6040805180820190915260008082526020820152610a8b82612c90565b606060028054610aa090614016565b6040805160a081018252600b5463ffffffff80821683526401000000008204166020830181905267ffffffffffffffff680100000000000000008304811694840194909452700100000000000000000000000000000000820484166060840152780100000000000000000000000000000000000000000000000090910490921660808201526000914290811015611e965760009250505090565b81516020830151611ea79190614170565b63ffffffff16811015611ec857506060015167ffffffffffffffff16919050565b506080015167ffffffffffffffff16919050565b333214611f2b5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610b9e565b6000611f35611dfc565b905060008211611f875760405162461bcd60e51b815260206004820152601460248201527f43616e6e6f74206d696e74203020746f6b656e730000000000000000000000006044820152606401610b9e565b60008111611fd75760405162461bcd60e51b815260206004820152601460248201527f53616c65206e6f742079657420737461727465640000000000000000000000006044820152606401610b9e565b7f00000000000000000000000000000000000000000000000000000000000000008261200260005490565b61200c91906140d2565b111561205a5760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b9e565b336000908152600d602052604090205460ff16156120f35750600b5468010000000000000000900467ffffffffffffffff166120968282614198565b34146120e45760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742066756e647300000000000000000000000000000000006044820152606401610b9e565b6120ee3383613096565b612155565b6120fd8282614198565b341461214b5760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742066756e647300000000000000000000000000000000006044820152606401610b9e565b6121553383613096565b604051829033907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688590600090a35050565b6001600160a01b0382163314156121df5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b9e565b3360008181526006602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612274848484612865565b612280848484846132d9565b6122f25760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b9e565b50505050565b3332146123475760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610b9e565b600b5468010000000000000000900467ffffffffffffffff16806123ad5760405162461bcd60e51b815260206004820152601a60248201527f5365656420726f756e64206e6f742079657420737461727465640000000000006044820152606401610b9e565b600b54640100000000900463ffffffff16421061240c5760405162461bcd60e51b815260206004820152601260248201527f7365656420726f756e64206973206f76657200000000000000000000000000006044820152606401610b9e565b6000821161245c5760405162461bcd60e51b815260206004820152601460248201527f43616e6e6f74206d696e74203020746f6b656e730000000000000000000000006044820152606401610b9e565b7f00000000000000000000000000000000000000000000000000000000000000008261248760005490565b61249191906140d2565b11156124df5760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b9e565b6124e98282614198565b34146125375760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742066756e647300000000000000000000000000000000006044820152606401610b9e565b336000908152600c602052604090205460ff16806125645750336000908152600d602052604090205460ff165b15612573576120ee3383613096565b60405162461bcd60e51b8152602060048201526024808201527f417474656d7074696e6720746f206d696e74206d6f7265207468616e20616c6c60448201527f6f776564000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b6000610a8b7f00000000000000000000000000000000000000000000000000000000000000008360405160200161261991815260200190565b604051602081830303815290604052805190602001206134a5565b6060612641826000541190565b6126b35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b9e565b60006126bd61355c565b905060008151116126dd5760405180602001604052806000815250612708565b806126e78461356b565b6040516020016126f89291906141d5565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146127695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b6001600160a01b0381166127e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b9e565b6127ee8161326f565b50565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061287082612c90565b80519091506000906001600160a01b0316336001600160a01b031614806128a757503361289c84610b23565b6001600160a01b0316145b806128b9575081516128b99033610912565b90508061292e5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610b9e565b846001600160a01b031682600001516001600160a01b0316146129b95760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610b9e565b6001600160a01b038416612a355760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b9e565b612a4560008484600001516127f1565b6001600160a01b0385166000908152600460205260408120805460019290612a809084906fffffffffffffffffffffffffffffffff166141fb565b82546101009290920a6fffffffffffffffffffffffffffffffff8181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612ad59185911661422c565b82546fffffffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff42811660208085019182526000898152600390915294852093518454915190921674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091169190921617179055612b8f8460016140d2565b6000818152600360205260409020549091506001600160a01b0316612c4a57612bb9816000541190565b15612c4a5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff908116828501908152600087815260039093529490912092518354945190911674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115bd565b6040805180820190915260008082526020820152612caf826000541190565b612d215760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610b9e565b60007f00000000000000000000000000000000000000000000000000000000000000008310612d8257612d747f000000000000000000000000000000000000000000000000000000000000000084614257565b612d7f9060016140d2565b90505b825b818110612dfd576000818152600360209081526040918290208251808401909352546001600160a01b0381168084527401000000000000000000000000000000000000000090910467ffffffffffffffff169183019190915215612dea57949350505050565b5080612df58161426e565b915050612d84565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610b9e565b60075481612ebc5760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f00000000000000006044820152606401610b9e565b60006001612eca84846140d2565b612ed49190614257565b9050612f0160017f0000000000000000000000000000000000000000000000000000000000000000614257565b811115612f3657612f3360017f0000000000000000000000000000000000000000000000000000000000000000614257565b90505b612f41816000541190565b612fb35760405162461bcd60e51b815260206004820152602660248201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360448201527f6c65616e757000000000000000000000000000000000000000000000000000006064820152608401610b9e565b815b818111613082576000818152600360205260409020546001600160a01b0316613070576000612fe382612c90565b60408051808201825282516001600160a01b03908116825260209384015167ffffffffffffffff908116858401908152600088815260039096529390942091518254935190941674010000000000000000000000000000000000000000027fffffffff00000000000000000000000000000000000000000000000000000000909316931692909217179055505b8061307a81614099565b915050612fb5565b5061308e8160016140d2565b600755505050565b61183282826040518060200160405280600081525061369d565b60006130bb82612c90565b90506130cd60008383600001516127f1565b80516001600160a01b031660009081526004602052604081208054600192906131099084906fffffffffffffffffffffffffffffffff166141fb565b82546fffffffffffffffffffffffffffffffff9182166101009390930a928302919092021990911617905550600082815260036020526040812080547fffffffff000000000000000000000000000000000000000000000000000000001690556131748360016140d2565b6000818152600360205260409020549091506001600160a01b031661322f5761319e816000541190565b1561322f5760408051808201825283516001600160a01b03908116825260208086015167ffffffffffffffff908116828501908152600087815260039093529490912092518354945190911674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009094169116179190911790555b815160405184916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505050565b600880546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b15613499576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906133369033908990889088906004016142a3565b602060405180830381600087803b15801561335057600080fd5b505af192505050801561339e575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261339b918101906142df565b60015b61344e573d8080156133cc576040519150601f19603f3d011682016040523d82523d6000602084013e6133d1565b606091505b5080516134465760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b9e565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061349d565b5060015b949350505050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152826037826000f59150506001600160a01b038116610a8b5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c65640000000000000000006044820152606401610b9e565b6060600a8054610aa090614016565b6060816135ab57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135d557806135bf81614099565b91506135ce9050600a8361412d565b91506135af565b60008167ffffffffffffffff8111156135f0576135f0613d41565b6040519080825280601f01601f19166020018201604052801561361a576020820181803683370190505b5090505b841561349d5761362f600183614257565b915061363c600a86614119565b6136479060306140d2565b60f81b81838151811061365c5761365c614141565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613696600a8661412d565b945061361e565b6000546001600160a01b03841661371c5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b613727816000541190565b156137745760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b9e565b7f000000000000000000000000000000000000000000000000000000000000000083111561380a5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546fffffffffffffffffffffffffffffffff8082168352700100000000000000000000000000000000909104169181019190915281518083019092528051909190819061387c90879061422c565b6fffffffffffffffffffffffffffffffff1681526020018583602001516138a3919061422c565b6fffffffffffffffffffffffffffffffff9081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600390955294812091518254945190951674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941694909216939093179190911790915582905b85811015613a585760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46139c660008884886132d9565b613a385760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b9e565b81613a4281614099565b9250508080613a5090614099565b915050613979565b5060008190556115bd565b828054613a6f90614016565b90600052602060002090601f016020900481019282613a915760008555613ad7565b82601f10613aaa57805160ff1916838001178555613ad7565b82800160010185558215613ad7579182015b82811115613ad7578251825591602001919060010190613abc565b506118ae9291505b808211156118ae5760008155600101613adf565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146127ee57600080fd5b600060208284031215613b3357600080fd5b813561270881613af3565b80356001600160a01b0381168114613b5557600080fd5b919050565b600060208284031215613b6c57600080fd5b61270882613b3e565b60005b83811015613b90578181015183820152602001613b78565b838111156122f25750506000910152565b60008151808452613bb9816020860160208601613b75565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006127086020830184613ba1565b600060208284031215613c1057600080fd5b5035919050565b60008060408385031215613c2a57600080fd5b613c3383613b3e565b946020939093013593505050565b600080600060608486031215613c5657600080fd5b613c5f84613b3e565b9250613c6d60208501613b3e565b9150604084013590509250925092565b600080600060608486031215613c9257600080fd5b613c9b84613b3e565b95602085013595506040909401359392505050565b803563ffffffff81168114613b5557600080fd5b803567ffffffffffffffff81168114613b5557600080fd5b600080600080600060a08688031215613cf457600080fd5b613cfd86613cb0565b9450613d0b60208701613cb0565b9350613d1960408701613cc4565b9250613d2760608701613cc4565b9150613d3560808701613cc4565b90509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613db757613db7613d41565b604052919050565b600067ffffffffffffffff831115613dd957613dd9613d41565b613e0a60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613d70565b9050828152838383011115613e1e57600080fd5b828260208301376000602084830101529392505050565b600060208284031215613e4757600080fd5b813567ffffffffffffffff811115613e5e57600080fd5b8201601f81018413613e6f57600080fd5b61349d84823560208401613dbf565b60006020808385031215613e9157600080fd5b823567ffffffffffffffff80821115613ea957600080fd5b818501915085601f830112613ebd57600080fd5b813581811115613ecf57613ecf613d41565b8060051b9150613ee0848301613d70565b8181529183018401918481019088841115613efa57600080fd5b938501935b83851015613f1f57613f1085613b3e565b82529385019390850190613eff565b98975050505050505050565b60008060408385031215613f3e57600080fd5b613f4783613b3e565b915060208301358015158114613f5c57600080fd5b809150509250929050565b60008060008060808587031215613f7d57600080fd5b613f8685613b3e565b9350613f9460208601613b3e565b925060408501359150606085013567ffffffffffffffff811115613fb757600080fd5b8501601f81018713613fc857600080fd5b613fd787823560208401613dbf565b91505092959194509250565b60008060408385031215613ff657600080fd5b613fff83613b3e565b915061400d60208401613b3e565b90509250929050565b600181811c9082168061402a57607f821691505b60208210811415614064577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140cb576140cb61406a565b5060010190565b600082198211156140e5576140e561406a565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614128576141286140ea565b500690565b60008261413c5761413c6140ea565b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600063ffffffff80831681851680830382111561418f5761418f61406a565b01949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141d0576141d061406a565b500290565b600083516141e7818460208801613b75565b83519083019061418f818360208801613b75565b60006fffffffffffffffffffffffffffffffff838116908316818110156142245761422461406a565b039392505050565b60006fffffffffffffffffffffffffffffffff80831681851680830382111561418f5761418f61406a565b6000828210156142695761426961406a565b500390565b60008161427d5761427d61406a565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142d56080830184613ba1565b9695505050505050565b6000602082840312156142f157600080fd5b815161270881613af356fea164736f6c6343000809000a60a060405234801561001057600080fd5b50336080526080516109c761004b6000396000818160ac01528181610160015281816102380152818161036c01526104cd01526109c76000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80633ff5b85f146100515780635fc3ea0b1461005b5780637b9f76b51461006e578063af933b5714610081575b600080fd5b610059610094565b005b6100596100693660046108a4565b610148565b61005961007c3660046108a4565b610220565b61005961008f3660046108e0565b610354565b3373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161461013e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101359060208082526004908201527f4530313600000000000000000000000000000000000000000000000000000000604082015260600190565b60405180910390fd5b6101466104cb565b565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146101e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101359060208082526004908201527f4530313600000000000000000000000000000000000000000000000000000000604082015260600190565b61020a73ffffffffffffffffffffffffffffffffffffffff84168284610504565b61021381610354565b61021b6104cb565b505050565b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146102c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101359060208082526004908201527f4530313600000000000000000000000000000000000000000000000000000000604082015260600190565b6040517f42842e0e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8281166024830152604482018490528416906342842e0e90606401600060405180830381600087803b15801561033757600080fd5b505af115801561034b573d6000803e3d6000fd5b50505050610213815b3373ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016146103f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101359060208082526004908201527f4530313600000000000000000000000000000000000000000000000000000000604082015260600190565b60008173ffffffffffffffffffffffffffffffffffffffff164760405160006040518083038185875af1925050503d806000811461044f576040519150601f19603f3d011682016040523d82523d6000602084013e610454565b606091505b50509050806104bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610135565b6104c76104cb565b5050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16ff5b6040805173ffffffffffffffffffffffffffffffffffffffff848116602483015260448083018590528351808403909101815260649092018352602080830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905283518085019094528084527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65649084015261021b928692916000916105cf918516908490610679565b80519091501561021b57808060200190518101906105ed91906108fb565b61021b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610135565b60606106888484600085610692565b90505b9392505050565b606082471015610724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610135565b73ffffffffffffffffffffffffffffffffffffffff85163b6107a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610135565b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516107cb919061094d565b60006040518083038185875af1925050503d8060008114610808576040519150601f19603f3d011682016040523d82523d6000602084013e61080d565b606091505b509150915061081d828286610828565b979650505050505050565b6060831561083757508161068b565b8251156108475782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101359190610969565b803573ffffffffffffffffffffffffffffffffffffffff8116811461089f57600080fd5b919050565b6000806000606084860312156108b957600080fd5b6108c28461087b565b9250602084013591506108d76040850161087b565b90509250925092565b6000602082840312156108f257600080fd5b61068b8261087b565b60006020828403121561090d57600080fd5b8151801515811461068b57600080fd5b60005b83811015610938578181015183820152602001610920565b83811115610947576000848401525b50505050565b6000825161095f81846020870161091d565b9190910192915050565b602081526000825180602084015261098881604085016020870161091d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea164736f6c6343000809000a0000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000d697066732d6578616d706c652f00000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102dc5760003560e01c80636c07ea4311610184578063a0712d68116100d6578063c180960e1161008a578063e4f1660811610064578063e4f16608146108c3578063e985e9c5146108f7578063f2fde38b1461094057600080fd5b8063c180960e1461086d578063c87b56dd1461088d578063d7224ba0146108ad57600080fd5b8063a7cd52cb116100bb578063a7cd52cb1461080a578063b88d4fde1461083a578063bb97c0af1461085a57600080fd5b8063a0712d68146107d7578063a22cb465146107ea57600080fd5b806388c206f7116101385780639231ab2a116101125780639231ab2a1461075f57806395d89b41146107ad57806398d5fdca146107c257600080fd5b806388c206f7146106695780638da5cb5b1461068957806390aa0b0f146106a757600080fd5b8063715018a611610169578063715018a61461060057806380b1733514610615578063863bc7291461064957600080fd5b80636c07ea43146105c057806370a08231146105e057600080fd5b80632f745c591161023d5780633c8cce3a116101f15780634f6ccce7116101cb5780634f6ccce71461056057806355f804b3146105805780636352211e146105a057600080fd5b80633c8cce3a1461050057806342842e0e1461052057806342966c681461054057600080fd5b8063375a069a11610222578063375a069a146104ab5780633a653e9d146104cb5780633bed33ce146104e057600080fd5b80632f745c591461046657806335a7658e1461048657600080fd5b8063169d8edd1161029457806323b872dd1161027957806323b872dd146104065780632a491247146104265780632d20fb601461044657600080fd5b8063169d8edd146103c257806318160ddd146103e757600080fd5b806306fdde03116102c557806306fdde0314610346578063081812fc14610368578063095ea7b3146103a057600080fd5b806301ffc9a7146102e15780630453cd7614610316575b600080fd5b3480156102ed57600080fd5b506103016102fc366004613b21565b610960565b60405190151581526020015b60405180910390f35b34801561032257600080fd5b50610301610331366004613b5a565b600d6020526000908152604090205460ff1681565b34801561035257600080fd5b5061035b610a91565b60405161030d9190613beb565b34801561037457600080fd5b50610388610383366004613bfe565b610b23565b6040516001600160a01b03909116815260200161030d565b3480156103ac57600080fd5b506103c06103bb366004613c17565b610bc3565b005b3480156103ce57600080fd5b50336000908152600c602052604090205460ff16610301565b3480156103f357600080fd5b506000545b60405190815260200161030d565b34801561041257600080fd5b506103c0610421366004613c41565b610cf6565b34801561043257600080fd5b506103c0610441366004613c7d565b610d01565b34801561045257600080fd5b506103c0610461366004613bfe565b610e88565b34801561047257600080fd5b506103f8610481366004613c17565b610f4b565b34801561049257600080fd5b50336000908152600d602052604090205460ff16610301565b3480156104b757600080fd5b506103c06104c6366004613bfe565b6110f4565b3480156104d757600080fd5b506103c0611309565b3480156104ec57600080fd5b506103c06104fb366004613bfe565b611453565b34801561050c57600080fd5b506103c061051b366004613cdc565b6115c5565b34801561052c57600080fd5b506103c061053b366004613c41565b611747565b34801561054c57600080fd5b506103c061055b366004613bfe565b611762565b34801561056c57600080fd5b506103f861057b366004613bfe565b611836565b34801561058c57600080fd5b506103c061059b366004613e35565b6118b2565b3480156105ac57600080fd5b506103886105bb366004613bfe565b61191f565b3480156105cc57600080fd5b506103c06105db366004613c7d565b611931565b3480156105ec57600080fd5b506103f86105fb366004613b5a565b611a35565b34801561060c57600080fd5b506103c0611ae1565b34801561062157600080fd5b506103f87f00000000000000000000000000000000000000000000000000000000000001f481565b34801561065557600080fd5b506103c0610664366004613e7e565b611b47565b34801561067557600080fd5b506103c0610684366004613e7e565b611cc0565b34801561069557600080fd5b506008546001600160a01b0316610388565b3480156106b357600080fd5b50600b546107209063ffffffff8082169164010000000081049091169067ffffffffffffffff680100000000000000008204811691700100000000000000000000000000000000810482169178010000000000000000000000000000000000000000000000009091041685565b6040805163ffffffff968716815295909416602086015267ffffffffffffffff928316938501939093528116606084015216608082015260a00161030d565b34801561076b57600080fd5b5061077f61077a366004613bfe565b611dd0565b6040805182516001600160a01b0316815260209283015167ffffffffffffffff16928101929092520161030d565b3480156107b957600080fd5b5061035b611ded565b3480156107ce57600080fd5b506103f8611dfc565b6103c06107e5366004613bfe565b611edc565b3480156107f657600080fd5b506103c0610805366004613f2b565b612186565b34801561081657600080fd5b50610301610825366004613b5a565b600c6020526000908152604090205460ff1681565b34801561084657600080fd5b506103c0610855366004613f67565b612269565b6103c0610868366004613bfe565b6122f8565b34801561087957600080fd5b50610388610888366004613bfe565b6125e0565b34801561089957600080fd5b5061035b6108a8366004613bfe565b612634565b3480156108b957600080fd5b506103f860075481565b3480156108cf57600080fd5b506103887f000000000000000000000000232b5de716d9640617b91723e3914bfe381644a281565b34801561090357600080fd5b50610301610912366004613fe3565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561094c57600080fd5b506103c061095b366004613b5a565b61270f565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd0000000000000000000000000000000000000000000000000000000014806109f357507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610a3f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d6300000000000000000000000000000000000000000000000000000000145b80610a8b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b606060018054610aa090614016565b80601f0160208091040260200160405190810160405280929190818152602001828054610acc90614016565b8015610b195780601f10610aee57610100808354040283529160200191610b19565b820191906000526020600020905b815481529060010190602001808311610afc57829003601f168201915b5050505050905090565b6000610b30826000541190565b610ba75760405162461bcd60e51b815260206004820152602d60248201527f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560448201527f78697374656e7420746f6b656e0000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600560205260409020546001600160a01b031690565b6000610bce8261191f565b9050806001600160a01b0316836001600160a01b03161415610c585760405162461bcd60e51b815260206004820152602260248201527f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60448201527f65720000000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b336001600160a01b0382161480610c745750610c748133610912565b610ce65760405162461bcd60e51b815260206004820152603960248201527f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656420666f7220616c6c000000000000006064820152608401610b9e565b610cf18383836127f1565b505050565b610cf1838383612865565b333214610d505760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610b9e565b6000610d5b82612c90565b80519091506001600160a01b0316336001600160a01b031614610de65760405162461bcd60e51b815260206004820152602860248201527f4f6e6c792074686520746f6b656e206f776e65722063616e207769746864726160448201527f77204552433732310000000000000000000000000000000000000000000000006064820152608401610b9e565b610def826125e0565b6001600160a01b0316637b9f76b58585335b60405160e085901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b03938416600482015260248101929092529091166044820152606401600060405180830381600087803b158015610e6a57600080fd5b505af1158015610e7e573d6000803e3d6000fd5b5050505050505050565b6008546001600160a01b03163314610ee25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b60026009541415610f355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b9e565b6002600955610f4381612e6c565b506001600955565b6000610f5683611a35565b8210610fca5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60448201527f64730000000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b600080549080805b83811015611085576000818152600360209081526040918290208251808401909352546001600160a01b0381168084527401000000000000000000000000000000000000000090910467ffffffffffffffff16918301919091521561103657805192505b876001600160a01b0316836001600160a01b03161415611072578684141561106457509350610a8b92505050565b8361106e81614099565b9450505b508061107d81614099565b915050610fd2565b5060405162461bcd60e51b815260206004820152602e60248201527f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060448201527f6f776e657220627920696e6465780000000000000000000000000000000000006064820152608401610b9e565b6008546001600160a01b0316331461114e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b7f00000000000000000000000000000000000000000000000000000000000001f48161117960005490565b61118391906140d2565b11156111f75760405162461bcd60e51b815260206004820152602760248201527f746f6f206d616e7920616c7265616479206d696e746564206265666f7265206460448201527f6576206d696e74000000000000000000000000000000000000000000000000006064820152608401610b9e565b6112217f000000000000000000000000000000000000000000000000000000000000000a82614119565b156112945760405162461bcd60e51b815260206004820152602c60248201527f63616e206f6e6c79206d696e742061206d756c7469706c65206f66207468652060448201527f6d6178426174636853697a6500000000000000000000000000000000000000006064820152608401610b9e565b60006112c07f000000000000000000000000000000000000000000000000000000000000000a8361412d565b905060005b81811015610cf1576112f7337f000000000000000000000000000000000000000000000000000000000000000a613096565b8061130181614099565b9150506112c5565b6008546001600160a01b031633146113635760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b600260095414156113b65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b9e565b6002600955604051600090339047908381818185875af1925050503d80600081146113fd576040519150601f19603f3d011682016040523d82523d6000602084013e611402565b606091505b5050905080610f435760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b9e565b3332146114a25760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610b9e565b60006114ad82612c90565b80519091506001600160a01b0316336001600160a01b0316146115385760405162461bcd60e51b815260206004820152602760248201527f4f6e6c792074686520746f6b656e206f776e65722063616e207769746864726160448201527f77206574686572000000000000000000000000000000000000000000000000006064820152608401610b9e565b611541826125e0565b6001600160a01b031663af933b57336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b039091166004820152602401600060405180830381600087803b1580156115a957600080fd5b505af11580156115bd573d6000803e3d6000fd5b505050505050565b6008546001600160a01b0316331461161f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b6040805160a08101825263ffffffff968716808252959096166020870181905267ffffffffffffffff94851691870182905292841660608701819052919093166080909501859052600b80547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016909417640100000000909202919091177fffffffffffffffff00000000000000000000000000000000ffffffffffffffff16680100000000000000009092027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff16919091177001000000000000000000000000000000009091021777ffffffffffffffffffffffffffffffffffffffffffffffff167801000000000000000000000000000000000000000000000000909202919091179055565b610cf183838360405180602001604052806000815250612269565b600061176d8261191f565b6001600160a01b0316336001600160a01b0316148061179c57503361179183610b23565b6001600160a01b0316145b806117b457506117b46117ae8361191f565b33610912565b9050806118295760405162461bcd60e51b815260206004820152602160248201527f596f7520617265206e6f7420746865206f776e6572206f7220617070726f766560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b611832826130b0565b5050565b6000805482106118ae5760405162461bcd60e51b815260206004820152602360248201527f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560448201527f6e647300000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b5090565b6008546001600160a01b0316331461190c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b805161183290600a906020840190613a63565b600061192a82612c90565b5192915050565b3332146119805760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610b9e565b600061198b82612c90565b80519091506001600160a01b0316336001600160a01b031614611a165760405162461bcd60e51b815260206004820152602760248201527f4f6e6c792074686520746f6b656e206f776e65722063616e207769746864726160448201527f77204552433230000000000000000000000000000000000000000000000000006064820152608401610b9e565b611a1f826125e0565b6001600160a01b0316635fc3ea0b858533610e01565b60006001600160a01b038216611ab35760405162461bcd60e51b815260206004820152602b60248201527f455243373231413a2062616c616e636520717565727920666f7220746865207a60448201527f65726f20616464726573730000000000000000000000000000000000000000006064820152608401610b9e565b506001600160a01b03166000908152600460205260409020546fffffffffffffffffffffffffffffffff1690565b6008546001600160a01b03163314611b3b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b611b45600061326f565b565b6008546001600160a01b03163314611ba15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b805160005b81811015610cf157600c6000848381518110611bc457611bc4614141565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff1615611c48576000600c6000858481518110611c0857611c08614141565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b6001600d6000858481518110611c6057611c60614141565b6020908102919091018101516001600160a01b0316825281019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055611cb981614099565b9050611ba6565b6008546001600160a01b03163314611d1a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b805160005b81811015610cf157600d6000848381518110611d3d57611d3d614141565b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff16611dc0576001600c6000858481518110611d8057611d80614141565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff0219169083151502179055505b611dc981614099565b9050611d1f565b6040805180820190915260008082526020820152610a8b82612c90565b606060028054610aa090614016565b6040805160a081018252600b5463ffffffff80821683526401000000008204166020830181905267ffffffffffffffff680100000000000000008304811694840194909452700100000000000000000000000000000000820484166060840152780100000000000000000000000000000000000000000000000090910490921660808201526000914290811015611e965760009250505090565b81516020830151611ea79190614170565b63ffffffff16811015611ec857506060015167ffffffffffffffff16919050565b506080015167ffffffffffffffff16919050565b333214611f2b5760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610b9e565b6000611f35611dfc565b905060008211611f875760405162461bcd60e51b815260206004820152601460248201527f43616e6e6f74206d696e74203020746f6b656e730000000000000000000000006044820152606401610b9e565b60008111611fd75760405162461bcd60e51b815260206004820152601460248201527f53616c65206e6f742079657420737461727465640000000000000000000000006044820152606401610b9e565b7f00000000000000000000000000000000000000000000000000000000000027108261200260005490565b61200c91906140d2565b111561205a5760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b9e565b336000908152600d602052604090205460ff16156120f35750600b5468010000000000000000900467ffffffffffffffff166120968282614198565b34146120e45760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742066756e647300000000000000000000000000000000006044820152606401610b9e565b6120ee3383613096565b612155565b6120fd8282614198565b341461214b5760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742066756e647300000000000000000000000000000000006044820152606401610b9e565b6121553383613096565b604051829033907f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688590600090a35050565b6001600160a01b0382163314156121df5760405162461bcd60e51b815260206004820152601a60248201527f455243373231413a20617070726f766520746f2063616c6c65720000000000006044820152606401610b9e565b3360008181526006602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612274848484612865565b612280848484846132d9565b6122f25760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b9e565b50505050565b3332146123475760405162461bcd60e51b815260206004820152601a60248201527f43616c6c657220697320616e6f7468657220636f6e74726163740000000000006044820152606401610b9e565b600b5468010000000000000000900467ffffffffffffffff16806123ad5760405162461bcd60e51b815260206004820152601a60248201527f5365656420726f756e64206e6f742079657420737461727465640000000000006044820152606401610b9e565b600b54640100000000900463ffffffff16421061240c5760405162461bcd60e51b815260206004820152601260248201527f7365656420726f756e64206973206f76657200000000000000000000000000006044820152606401610b9e565b6000821161245c5760405162461bcd60e51b815260206004820152601460248201527f43616e6e6f74206d696e74203020746f6b656e730000000000000000000000006044820152606401610b9e565b7f00000000000000000000000000000000000000000000000000000000000027108261248760005490565b61249191906140d2565b11156124df5760405162461bcd60e51b815260206004820152601260248201527f72656163686564206d617820737570706c7900000000000000000000000000006044820152606401610b9e565b6124e98282614198565b34146125375760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742066756e647300000000000000000000000000000000006044820152606401610b9e565b336000908152600c602052604090205460ff16806125645750336000908152600d602052604090205460ff165b15612573576120ee3383613096565b60405162461bcd60e51b8152602060048201526024808201527f417474656d7074696e6720746f206d696e74206d6f7265207468616e20616c6c60448201527f6f776564000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b6000610a8b7f000000000000000000000000232b5de716d9640617b91723e3914bfe381644a28360405160200161261991815260200190565b604051602081830303815290604052805190602001206134a5565b6060612641826000541190565b6126b35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006064820152608401610b9e565b60006126bd61355c565b905060008151116126dd5760405180602001604052806000815250612708565b806126e78461356b565b6040516020016126f89291906141d5565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146127695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9e565b6001600160a01b0381166127e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b9e565b6127ee8161326f565b50565b60008281526005602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061287082612c90565b80519091506000906001600160a01b0316336001600160a01b031614806128a757503361289c84610b23565b6001600160a01b0316145b806128b9575081516128b99033610912565b90508061292e5760405162461bcd60e51b815260206004820152603260248201527f455243373231413a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f76656400000000000000000000000000006064820152608401610b9e565b846001600160a01b031682600001516001600160a01b0316146129b95760405162461bcd60e51b815260206004820152602660248201527f455243373231413a207472616e736665722066726f6d20696e636f727265637460448201527f206f776e657200000000000000000000000000000000000000000000000000006064820152608401610b9e565b6001600160a01b038416612a355760405162461bcd60e51b815260206004820152602560248201527f455243373231413a207472616e7366657220746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610b9e565b612a4560008484600001516127f1565b6001600160a01b0385166000908152600460205260408120805460019290612a809084906fffffffffffffffffffffffffffffffff166141fb565b82546101009290920a6fffffffffffffffffffffffffffffffff8181021990931691831602179091556001600160a01b03861660009081526004602052604081208054600194509092612ad59185911661422c565b82546fffffffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506040805180820182526001600160a01b03808716825267ffffffffffffffff42811660208085019182526000898152600390915294852093518454915190921674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009091169190921617179055612b8f8460016140d2565b6000818152600360205260409020549091506001600160a01b0316612c4a57612bb9816000541190565b15612c4a5760408051808201825284516001600160a01b03908116825260208087015167ffffffffffffffff908116828501908152600087815260039093529490912092518354945190911674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009094169116179190911790555b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115bd565b6040805180820190915260008082526020820152612caf826000541190565b612d215760405162461bcd60e51b815260206004820152602a60248201527f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360448201527f74656e7420746f6b656e000000000000000000000000000000000000000000006064820152608401610b9e565b60007f000000000000000000000000000000000000000000000000000000000000000a8310612d8257612d747f000000000000000000000000000000000000000000000000000000000000000a84614257565b612d7f9060016140d2565b90505b825b818110612dfd576000818152600360209081526040918290208251808401909352546001600160a01b0381168084527401000000000000000000000000000000000000000090910467ffffffffffffffff169183019190915215612dea57949350505050565b5080612df58161426e565b915050612d84565b5060405162461bcd60e51b815260206004820152602f60248201527f455243373231413a20756e61626c6520746f2064657465726d696e652074686560448201527f206f776e6572206f6620746f6b656e00000000000000000000000000000000006064820152608401610b9e565b60075481612ebc5760405162461bcd60e51b815260206004820152601860248201527f7175616e74697479206d757374206265206e6f6e7a65726f00000000000000006044820152606401610b9e565b60006001612eca84846140d2565b612ed49190614257565b9050612f0160017f0000000000000000000000000000000000000000000000000000000000002710614257565b811115612f3657612f3360017f0000000000000000000000000000000000000000000000000000000000002710614257565b90505b612f41816000541190565b612fb35760405162461bcd60e51b815260206004820152602660248201527f6e6f7420656e6f756768206d696e7465642079657420666f722074686973206360448201527f6c65616e757000000000000000000000000000000000000000000000000000006064820152608401610b9e565b815b818111613082576000818152600360205260409020546001600160a01b0316613070576000612fe382612c90565b60408051808201825282516001600160a01b03908116825260209384015167ffffffffffffffff908116858401908152600088815260039096529390942091518254935190941674010000000000000000000000000000000000000000027fffffffff00000000000000000000000000000000000000000000000000000000909316931692909217179055505b8061307a81614099565b915050612fb5565b5061308e8160016140d2565b600755505050565b61183282826040518060200160405280600081525061369d565b60006130bb82612c90565b90506130cd60008383600001516127f1565b80516001600160a01b031660009081526004602052604081208054600192906131099084906fffffffffffffffffffffffffffffffff166141fb565b82546fffffffffffffffffffffffffffffffff9182166101009390930a928302919092021990911617905550600082815260036020526040812080547fffffffff000000000000000000000000000000000000000000000000000000001690556131748360016140d2565b6000818152600360205260409020549091506001600160a01b031661322f5761319e816000541190565b1561322f5760408051808201825283516001600160a01b03908116825260208086015167ffffffffffffffff908116828501908152600087815260039093529490912092518354945190911674010000000000000000000000000000000000000000027fffffffff000000000000000000000000000000000000000000000000000000009094169116179190911790555b815160405184916000916001600160a01b03909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505050565b600880546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006001600160a01b0384163b15613499576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906133369033908990889088906004016142a3565b602060405180830381600087803b15801561335057600080fd5b505af192505050801561339e575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261339b918101906142df565b60015b61344e573d8080156133cc576040519150601f19603f3d011682016040523d82523d6000602084013e6133d1565b606091505b5080516134465760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b9e565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a020000000000000000000000000000000000000000000000000000000014905061349d565b5060015b949350505050565b60006040517f3d602d80600a3d3981f3363d3d373d3d3d363d7300000000000000000000000081528360601b60148201527f5af43d82803e903d91602b57fd5bf300000000000000000000000000000000006028820152826037826000f59150506001600160a01b038116610a8b5760405162461bcd60e51b815260206004820152601760248201527f455243313136373a2063726561746532206661696c65640000000000000000006044820152606401610b9e565b6060600a8054610aa090614016565b6060816135ab57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135d557806135bf81614099565b91506135ce9050600a8361412d565b91506135af565b60008167ffffffffffffffff8111156135f0576135f0613d41565b6040519080825280601f01601f19166020018201604052801561361a576020820181803683370190505b5090505b841561349d5761362f600183614257565b915061363c600a86614119565b6136479060306140d2565b60f81b81838151811061365c5761365c614141565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613696600a8661412d565b945061361e565b6000546001600160a01b03841661371c5760405162461bcd60e51b815260206004820152602160248201527f455243373231413a206d696e7420746f20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b613727816000541190565b156137745760405162461bcd60e51b815260206004820152601d60248201527f455243373231413a20746f6b656e20616c7265616479206d696e7465640000006044820152606401610b9e565b7f000000000000000000000000000000000000000000000000000000000000000a83111561380a5760405162461bcd60e51b815260206004820152602260248201527f455243373231413a207175616e7469747920746f206d696e7420746f6f20686960448201527f67680000000000000000000000000000000000000000000000000000000000006064820152608401610b9e565b6001600160a01b0384166000908152600460209081526040918290208251808401845290546fffffffffffffffffffffffffffffffff8082168352700100000000000000000000000000000000909104169181019190915281518083019092528051909190819061387c90879061422c565b6fffffffffffffffffffffffffffffffff1681526020018583602001516138a3919061422c565b6fffffffffffffffffffffffffffffffff9081169091526001600160a01b03808816600081815260046020908152604080832087519783015187167001000000000000000000000000000000000297909616969096179094558451808601865291825267ffffffffffffffff428116838601908152888352600390955294812091518254945190951674010000000000000000000000000000000000000000027fffffffff0000000000000000000000000000000000000000000000000000000090941694909216939093179190911790915582905b85811015613a585760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46139c660008884886132d9565b613a385760405162461bcd60e51b815260206004820152603360248201527f455243373231413a207472616e7366657220746f206e6f6e204552433732315260448201527f6563656976657220696d706c656d656e746572000000000000000000000000006064820152608401610b9e565b81613a4281614099565b9250508080613a5090614099565b915050613979565b5060008190556115bd565b828054613a6f90614016565b90600052602060002090601f016020900481019282613a915760008555613ad7565b82601f10613aaa57805160ff1916838001178555613ad7565b82800160010185558215613ad7579182015b82811115613ad7578251825591602001919060010190613abc565b506118ae9291505b808211156118ae5760008155600101613adf565b7fffffffff00000000000000000000000000000000000000000000000000000000811681146127ee57600080fd5b600060208284031215613b3357600080fd5b813561270881613af3565b80356001600160a01b0381168114613b5557600080fd5b919050565b600060208284031215613b6c57600080fd5b61270882613b3e565b60005b83811015613b90578181015183820152602001613b78565b838111156122f25750506000910152565b60008151808452613bb9816020860160208601613b75565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006127086020830184613ba1565b600060208284031215613c1057600080fd5b5035919050565b60008060408385031215613c2a57600080fd5b613c3383613b3e565b946020939093013593505050565b600080600060608486031215613c5657600080fd5b613c5f84613b3e565b9250613c6d60208501613b3e565b9150604084013590509250925092565b600080600060608486031215613c9257600080fd5b613c9b84613b3e565b95602085013595506040909401359392505050565b803563ffffffff81168114613b5557600080fd5b803567ffffffffffffffff81168114613b5557600080fd5b600080600080600060a08688031215613cf457600080fd5b613cfd86613cb0565b9450613d0b60208701613cb0565b9350613d1960408701613cc4565b9250613d2760608701613cc4565b9150613d3560808701613cc4565b90509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613db757613db7613d41565b604052919050565b600067ffffffffffffffff831115613dd957613dd9613d41565b613e0a60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601613d70565b9050828152838383011115613e1e57600080fd5b828260208301376000602084830101529392505050565b600060208284031215613e4757600080fd5b813567ffffffffffffffff811115613e5e57600080fd5b8201601f81018413613e6f57600080fd5b61349d84823560208401613dbf565b60006020808385031215613e9157600080fd5b823567ffffffffffffffff80821115613ea957600080fd5b818501915085601f830112613ebd57600080fd5b813581811115613ecf57613ecf613d41565b8060051b9150613ee0848301613d70565b8181529183018401918481019088841115613efa57600080fd5b938501935b83851015613f1f57613f1085613b3e565b82529385019390850190613eff565b98975050505050505050565b60008060408385031215613f3e57600080fd5b613f4783613b3e565b915060208301358015158114613f5c57600080fd5b809150509250929050565b60008060008060808587031215613f7d57600080fd5b613f8685613b3e565b9350613f9460208601613b3e565b925060408501359150606085013567ffffffffffffffff811115613fb757600080fd5b8501601f81018713613fc857600080fd5b613fd787823560208401613dbf565b91505092959194509250565b60008060408385031215613ff657600080fd5b613fff83613b3e565b915061400d60208401613b3e565b90509250929050565b600181811c9082168061402a57607f821691505b60208210811415614064577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156140cb576140cb61406a565b5060010190565b600082198211156140e5576140e561406a565b500190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082614128576141286140ea565b500690565b60008261413c5761413c6140ea565b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600063ffffffff80831681851680830382111561418f5761418f61406a565b01949350505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156141d0576141d061406a565b500290565b600083516141e7818460208801613b75565b83519083019061418f818360208801613b75565b60006fffffffffffffffffffffffffffffffff838116908316818110156142245761422461406a565b039392505050565b60006fffffffffffffffffffffffffffffffff80831681851680830382111561418f5761418f61406a565b6000828210156142695761426961406a565b500390565b60008161427d5761427d61406a565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b60006001600160a01b038087168352808616602084015250836040830152608060608301526142d56080830184613ba1565b9695505050505050565b6000602082840312156142f157600080fd5b815161270881613af356fea164736f6c6343000809000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000d697066732d6578616d706c652f00000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : collectionSize_ (uint256): 10000
Arg [1] : maxBatchSize_ (uint256): 10
Arg [2] : freeMints_ (uint256): 500
Arg [3] : baseUri_ (string): ipfs-example/
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000002710
Arg [1] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [2] : 00000000000000000000000000000000000000000000000000000000000001f4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [5] : 697066732d6578616d706c652f00000000000000000000000000000000000000
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.