ERC-721
Overview
Max Total Supply
1,862 MOGIES
Holders
192
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 MOGIESLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MogiesDutchAuction
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "erc721a/contracts/ERC721A.sol"; contract MogiesDutchAuction is Ownable, ERC721A, ReentrancyGuard { using Strings for uint256; using SafeERC20 for IERC20; IERC20 stars; uint256 public immutable maxBatchSize; uint256 public immutable amountForDevs = 50; uint256 public immutable amountForSales = 1073; uint256 public immutable amountForAuction = 800; uint256 public immutable totalAmount = 1923; // prices in usd uint256 public ethUSDPrice; uint256 public starsUSDPrice; string private _name; string private _symbol; // dates for auction uint256 public constant AUCTION_PRICE_CURVE_LENGTH = 5 days; uint256 public constant AUCTION_DROP_INTERVAL = 1 days; uint256 usersBonusNotMinted = 0; uint256 usersBonusMinted = 0; uint256 totalRebateAmount = 0; bytes32 public allowListMerkleRoot; struct SaleConfig { uint32 auctionSaleStartTime; uint32 auctionSaleEndTime; uint32 whitelistSaleStartTime; uint32 whitelistSaleEndTime; uint32 publicSaleStartTime; uint32 publicSaleEndTime; uint32 devMintedAmount; uint32 auctionMintedAmount; uint32 saleMintedAmount; // for final price after auction sells out, should be used for mintListPrice and publicPrice uint256 ethPrice; uint256 starsPrice; bool hasPublicSale; } struct Sale { uint8 quantity; uint32 tier; uint256 pricePaid; bool isStars; } // sales for each wallet mapping(uint256 => address[]) public buyerList; mapping(address => Sale[]) public sales; mapping(address => bool) public hasClaimedRebate; // remaining mint amount // keeps track of order tier1 buyers bought mapping(address => uint256) public remainingMintAmount; // singleton variable for sale SaleConfig public saleConfig = SaleConfig({ auctionSaleStartTime: 0, auctionSaleEndTime: 0, whitelistSaleStartTime: 0, whitelistSaleEndTime: 0, publicSaleStartTime: 0, publicSaleEndTime: 0, devMintedAmount: 0, auctionMintedAmount: 0, saleMintedAmount: 0, ethPrice: 1 ether, starsPrice: 74862 ether, hasPublicSale: false }); event Purchase( address wallet, uint32 quantity, bool isUsingStars, uint256 starsPrice, uint256 ethPrice ); constructor( IERC20 _stars, address _owner, uint256 _maxBatchSize, uint256 _ethUSDPrice, // Price to lock these at beginning (used for rebate) uint256 _starsUSDPrice, // Price to lock these at beginning (used for rebate) // start and end times for auction and sales uint32 _auctionSaleStartTime, uint32 _auctionSaleEndTime, uint32 _whitelistSaleStartTime, uint32 _whitelistSaleEndTime, uint32 _publicSaleStartTime, uint32 _publicSaleEndTime ) ERC721A("Mogies", "MOGIES") { transferOwnership(_owner); maxBatchSize = _maxBatchSize; stars = _stars; ethUSDPrice = _ethUSDPrice; starsUSDPrice = _starsUSDPrice; _name = "Mogies"; _symbol = "MOGIES"; saleConfig.auctionSaleStartTime = _auctionSaleStartTime; saleConfig.auctionSaleEndTime = _auctionSaleEndTime; saleConfig.whitelistSaleStartTime = _whitelistSaleStartTime; saleConfig.whitelistSaleEndTime = _whitelistSaleEndTime; saleConfig.publicSaleStartTime = _publicSaleStartTime; saleConfig.publicSaleEndTime = _publicSaleEndTime; } modifier callerIsUser() { require(tx.origin == msg.sender, "The caller is another contract"); _; } modifier auctionAndSalesEnded() { require( block.timestamp > saleConfig.publicSaleEndTime && block.timestamp > saleConfig.whitelistSaleEndTime && block.timestamp > saleConfig.auctionSaleStartTime + AUCTION_PRICE_CURVE_LENGTH, "too early" ); _; } modifier isBeforeAuctionStarts() { require( block.timestamp < saleConfig.auctionSaleStartTime, "sale has already started" ); _; } // For marketing etc. // MUST BE MINTED BEFORE AUCTION AND SALES function devMint(uint32 quantity, address recipient) external onlyOwner { require( saleConfig.devMintedAmount + quantity <= amountForDevs, "too many already minted before dev mint" ); saleConfig.devMintedAmount += quantity; _batchMint(recipient, quantity); } function earlyMint(uint32 quantity, address recipient) external onlyOwner isBeforeAuctionStarts { require( saleConfig.auctionMintedAmount + quantity <= amountForAuction, "too many already minted before early mint" ); saleConfig.auctionMintedAmount += quantity; _batchMint(recipient, quantity); } // Function to handle dutch auction function auctionMint(uint32 quantity, bool isUsingStars) external payable callerIsUser { uint256 _auctionStartTime = uint256(saleConfig.auctionSaleStartTime); require( _auctionStartTime <= block.timestamp && block.timestamp < saleConfig.auctionSaleEndTime, "sale has not started yet" ); require( saleConfig.auctionMintedAmount + quantity <= amountForAuction, "Purchase would exceed max supply for Dutch auction mint" ); uint256 auctionPrice = getAuctionPrice(_auctionStartTime, isUsingStars); uint256 otherAuctionPrice = getAuctionPrice( _auctionStartTime, !isUsingStars ); uint256 totalCost = auctionPrice * quantity; // Keep track of how amount paid during auction uint256 totalPaid; if (isUsingStars) { saleConfig.starsPrice = auctionPrice; saleConfig.ethPrice = otherAuctionPrice; totalPaid = totalCost; stars.safeTransferFrom(msg.sender, address(this), totalPaid); } else { saleConfig.ethPrice = auctionPrice; saleConfig.starsPrice = otherAuctionPrice; totalPaid = msg.value - refundIfOver(totalCost); } saleConfig.auctionMintedAmount += quantity; _batchMint(msg.sender, quantity); uint256 tier = (block.timestamp - _auctionStartTime) / AUCTION_DROP_INTERVAL; buyerList[tier].push(msg.sender); if (remainingMintAmount[msg.sender] == 0) { usersBonusNotMinted++; remainingMintAmount[msg.sender] = usersBonusNotMinted; } sales[msg.sender].push( Sale({ quantity: uint8(quantity), pricePaid: totalPaid, tier: uint32(tier), isStars: isUsingStars }) ); emit Purchase( msg.sender, quantity, isUsingStars, saleConfig.starsPrice, saleConfig.ethPrice ); } // merkle tree will be updated during whitelist sale // Function to handle white list sale function allowlistMint( uint32 quantity, bool isUsingStars, bytes32[] calldata _proof ) external payable callerIsUser { require( saleConfig.saleMintedAmount + quantity <= amountForSales, "Purchase would exceed max supply for allowlistMint" ); require( isAllowListed(_proof, msg.sender), "This address is not allow listed for the presale" ); require( saleConfig.whitelistSaleStartTime < block.timestamp && block.timestamp < saleConfig.whitelistSaleEndTime, "outside of allowlist sale times" ); if (isUsingStars) { stars.safeTransferFrom( msg.sender, address(this), saleConfig.starsPrice * quantity ); } else { refundIfOver(saleConfig.ethPrice * quantity); } saleConfig.saleMintedAmount += quantity; _batchMint(msg.sender, quantity); emit Purchase( msg.sender, quantity, isUsingStars, saleConfig.starsPrice, saleConfig.ethPrice ); } function isAllowListed(bytes32[] calldata _proof, address _address) public view returns (bool) { require(_address != address(0), "Zero address not on Allow List"); bytes32 leaf = keccak256(abi.encodePacked(_address)); return MerkleProof.verify(_proof, allowListMerkleRoot, leaf); } // merkle tree will be updated during whitelist sale function setAllowListMerkleRoot(bytes32 _allowListMerkleRoot) external onlyOwner { allowListMerkleRoot = _allowListMerkleRoot; } // Function to handle public sale function publicSaleMint(uint32 quantity, bool isUsingStars) external payable callerIsUser { require( amountForDevs + saleConfig.saleMintedAmount + saleConfig.auctionMintedAmount + quantity <= totalAmount, "Purchase would exceed max supply" ); require(saleConfig.publicSaleStartTime < block.timestamp && block.timestamp < saleConfig.publicSaleEndTime, "public sale not active"); require(isPublicSaleOn(), "public sale is not active"); saleConfig.saleMintedAmount += quantity; if (isUsingStars) { stars.safeTransferFrom( msg.sender, address(this), saleConfig.starsPrice * quantity ); } else { refundIfOver(saleConfig.ethPrice * quantity); } _batchMint(msg.sender, quantity); emit Purchase( msg.sender, quantity, isUsingStars, saleConfig.starsPrice, saleConfig.ethPrice ); } function rebate() external auctionAndSalesEnded { require(sales[msg.sender].length > 0, "Nothing to rebate."); require(!hasClaimedRebate[msg.sender], "Rebate already claimed"); uint256 rebateAmount = 0; // for each sale user made during auction for (uint256 i = 0; i < sales[msg.sender].length; i++) { uint256 quantity = sales[msg.sender][i].quantity; // stars purchase all 1x rebate if (sales[msg.sender][i].isStars) { rebateAmount += (sales[msg.sender][i].pricePaid - (saleConfig.starsPrice * quantity)); } else { // if in first tier, 1.5x stars rebate if (sales[msg.sender][i].tier == 0) { rebateAmount += (15000 * ((sales[msg.sender][i].pricePaid - (saleConfig.ethPrice * quantity)) * ethUSDPrice)) / (10000 * starsUSDPrice); //if in second tier, 1.3x stars rebate } else if (sales[msg.sender][i].tier == 1) { rebateAmount += (13000 * ((sales[msg.sender][i].pricePaid - (saleConfig.ethPrice * quantity)) * ethUSDPrice)) / (10000 * starsUSDPrice); //if in third tier, 1x stars rebate } else if (sales[msg.sender][i].tier == 2) { rebateAmount += ((sales[msg.sender][i].pricePaid - (saleConfig.ethPrice * quantity)) * ethUSDPrice) / starsUSDPrice; } } } require(rebateAmount > 0, "Nothing to rebate."); hasClaimedRebate[msg.sender] = true; stars.safeTransfer(msg.sender, rebateAmount); } // let dutch auction buyers mint entitled number of mogies function mintRemaining() external callerIsUser auctionAndSalesEnded { require(totalSupply() < totalAmount, "nothing to mint"); require(remainingMintAmount[msg.sender] != 0, "cannot mint more"); uint256 quantity; // first time setter for leftover mogies if (totalRebateAmount == 0) { totalRebateAmount = totalAmount - totalSupply(); } // get base amount to mint per valid user if (usersBonusNotMinted + usersBonusMinted == totalRebateAmount) { quantity = 1; } else if (usersBonusNotMinted + usersBonusMinted < totalRebateAmount) { quantity = totalRebateAmount / (usersBonusNotMinted + usersBonusMinted); } // add one for earlier buyers for extra mogies if ( remainingMintAmount[msg.sender] <= // initial total mint remaining amount % total number of users to mint totalRebateAmount % (usersBonusNotMinted + usersBonusMinted) ) { quantity++; } usersBonusNotMinted--; usersBonusMinted++; remainingMintAmount[msg.sender] = 0; require(quantity > 0, "not entitled to mint remaining"); _batchMint(msg.sender, quantity); } function adminFinalMint(address recipient) external onlyOwner auctionAndSalesEnded { require(totalSupply() < totalAmount, "nothing to mint"); _batchMint(recipient, totalAmount - totalSupply()); } function isPublicSaleOn() public view returns (bool) { return saleConfig.hasPublicSale && saleConfig.publicSaleStartTime <= block.timestamp && block.timestamp < saleConfig.publicSaleEndTime; } function setPublicSale(bool _publicSale) external onlyOwner { saleConfig.hasPublicSale = _publicSale; } // ETH prices for auction uint256 public AUCTION_START_ETH_PRICE = 1 ether; uint256 public AUCTION_END_ETH_PRICE = 200000000 gwei; //0.2 eth uint256 public AUCTION_DROP_PER_STEP_ETH = 200000000 gwei; //0.2 eth uint256 public AUCTION_START_STARS_PRICE = 74862 ether; uint256 public AUCTION_END_STARS_PRICE = 14972400000000 gwei; // 14,972.4 eth uint256 public AUCTION_DROP_PER_STEP_STARS = 14972400000000 gwei; // 14,972.4 eth // helper functions for setting prices right before auction // NOTE: Only for when huge price discrepencies from time of deploying contract to start of auction. Will not be available once auction has already started. function setAuctionEthParams( uint256 _auctionStartEthPrice, uint256 _auctionEndEthPrice, uint256 _auctionDropPerStepEth ) external onlyOwner isBeforeAuctionStarts { AUCTION_START_ETH_PRICE = _auctionStartEthPrice; AUCTION_END_ETH_PRICE = _auctionEndEthPrice; AUCTION_DROP_PER_STEP_ETH = _auctionDropPerStepEth; } function setAuctionStarsParams( uint256 _auctionStartStarsPrice, uint256 _auctionEndStarsPrice, uint256 _auctionDropPerStepStars ) external onlyOwner isBeforeAuctionStarts { AUCTION_START_STARS_PRICE = _auctionStartStarsPrice; AUCTION_END_STARS_PRICE = _auctionEndStarsPrice; AUCTION_DROP_PER_STEP_STARS = _auctionDropPerStepStars; } function getAuctionPrice(uint256 _saleStartTime, bool _isUsingStars) public view returns (uint256) { if (_isUsingStars) { if (block.timestamp < _saleStartTime) { return AUCTION_START_STARS_PRICE; } if (block.timestamp >= _saleStartTime + AUCTION_PRICE_CURVE_LENGTH) { return AUCTION_END_STARS_PRICE; } else { uint256 steps = (block.timestamp - _saleStartTime) / AUCTION_DROP_INTERVAL; return AUCTION_START_STARS_PRICE - (steps * AUCTION_DROP_PER_STEP_STARS); } } else { if (block.timestamp < _saleStartTime) { return AUCTION_START_ETH_PRICE; } if (block.timestamp >= _saleStartTime + AUCTION_PRICE_CURVE_LENGTH) { return AUCTION_END_ETH_PRICE; } else { uint256 steps = (block.timestamp - _saleStartTime) / AUCTION_DROP_INTERVAL; return AUCTION_START_ETH_PRICE - (steps * AUCTION_DROP_PER_STEP_ETH); } } } function refundIfOver(uint256 price) private returns (uint256) { require(msg.value >= price, "Need to send more ETH."); uint256 refundAmount = 0; if (msg.value > price) { refundAmount = msg.value - price; payable(msg.sender).transfer(refundAmount); } return refundAmount; } function getBuyerList(uint256 tier) external view returns (address[] memory) { return buyerList[tier]; } // helper functions for setting prices right before auction // NOTE: Only for when huge price discrepencies from time of deploying contract to start of auction. Will not be available once auction has already started. function setEthUsdPrice(uint256 _ethUsdPrice) external onlyOwner isBeforeAuctionStarts { ethUSDPrice = _ethUsdPrice; } function setStarsUsdPrice(uint256 _starsUsdPrice) external onlyOwner isBeforeAuctionStarts { starsUSDPrice = _starsUsdPrice; } // helper functions for sale times function setAuctionSaleStartTime(uint32 timestamp) external onlyOwner { saleConfig.auctionSaleStartTime = timestamp; } function setAuctionSaleEndTime(uint32 timestamp) external onlyOwner { saleConfig.auctionSaleEndTime = timestamp; } function setWhitelistSaleStartTime(uint32 timestamp) external onlyOwner { saleConfig.whitelistSaleStartTime = timestamp; } function setWhitelistSaleEndTime(uint32 timestamp) external onlyOwner { saleConfig.whitelistSaleEndTime = timestamp; } function setPublicSaleStartTime(uint32 timestamp) external onlyOwner { saleConfig.publicSaleStartTime = timestamp; } function setPublicSaleEndTime(uint32 timestamp) external onlyOwner { saleConfig.publicSaleEndTime = timestamp; } function batchSetTimes(uint32 _auctionSaleStartTime, uint32 _auctionSaleEndTime, uint32 _whitelistSaleStartTime, uint32 _whitelistSaleEndTime, uint32 _publicSaleStartTime, uint32 _publicSaleEndTime) external onlyOwner { require(_auctionSaleStartTime < _auctionSaleEndTime, "Auction timestamps inverted"); require(_auctionSaleEndTime < _whitelistSaleStartTime, "Auction before whitelist sale"); require(_whitelistSaleStartTime < _whitelistSaleEndTime, "Whitelist sale timestamps inverted"); require(_whitelistSaleEndTime < _publicSaleStartTime, "Whitelist sale before public sale"); require(_publicSaleStartTime < _publicSaleEndTime, "Public sale timestamps inverted"); saleConfig.auctionSaleStartTime = _auctionSaleStartTime; saleConfig.auctionSaleEndTime = _auctionSaleEndTime; saleConfig.whitelistSaleStartTime = _whitelistSaleStartTime; saleConfig.whitelistSaleEndTime = _whitelistSaleEndTime; saleConfig.publicSaleStartTime = _publicSaleStartTime; saleConfig.publicSaleEndTime = _publicSaleEndTime; } // metadata URI string public uriPrefix; string public uriSuffix = ".json"; string public hiddenMetadataUri; bool public revealed; function setUriPrefix(string calldata _uriPrefix) external onlyOwner { uriPrefix = _uriPrefix; } function setUriSuffix(string calldata _uriSuffix) external onlyOwner { uriSuffix = _uriSuffix; } function setRevealed(bool _state) external onlyOwner { revealed = _state; } function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) { require( _exists(_tokenId), "ERC721Metadata: URI query for nonexistent token" ); if (revealed == false) { return hiddenMetadataUri; } string memory currentBaseURI = _baseURI(); return bytes(currentBaseURI).length > 0 ? string( abi.encodePacked(currentBaseURI, _tokenId.toString(), uriSuffix) ) : ""; } function setHiddenMetadataUri(string calldata _hiddenMetadataUri) external onlyOwner { hiddenMetadataUri = _hiddenMetadataUri; } function _baseURI() internal view virtual override returns (string memory) { return uriPrefix; } function withdrawMoney() external onlyOwner nonReentrant { (bool os, ) = payable(owner()).call{ value: address(this).balance }(""); require(os, "withdraw: transfer failed"); stars.safeTransfer(owner(), stars.balanceOf(address(this))); } function _batchMint(address recipient, uint256 quantity) private { uint256 numChunks = quantity / maxBatchSize; for (uint256 i = 0; i < numChunks; i++) { _safeMint(recipient, maxBatchSize); } uint256 remainder = quantity % maxBatchSize; if (remainder != 0) { _safeMint(recipient, remainder); } } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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 (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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.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)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @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 (last updated v4.7.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 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.7.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 /// @solidity memory-safe-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 (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @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); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`, * consuming from one or the other at each step according to the instructions given by * `proofFlags`. * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof} * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// 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 // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.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 extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ''; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _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); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
{ "evmVersion": "london", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 200 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_stars","type":"address"},{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_maxBatchSize","type":"uint256"},{"internalType":"uint256","name":"_ethUSDPrice","type":"uint256"},{"internalType":"uint256","name":"_starsUSDPrice","type":"uint256"},{"internalType":"uint32","name":"_auctionSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"_auctionSaleEndTime","type":"uint32"},{"internalType":"uint32","name":"_whitelistSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"_whitelistSaleEndTime","type":"uint32"},{"internalType":"uint32","name":"_publicSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"_publicSaleEndTime","type":"uint32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint32","name":"quantity","type":"uint32"},{"indexed":false,"internalType":"bool","name":"isUsingStars","type":"bool"},{"indexed":false,"internalType":"uint256","name":"starsPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethPrice","type":"uint256"}],"name":"Purchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"AUCTION_DROP_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_DROP_PER_STEP_ETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_DROP_PER_STEP_STARS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_END_ETH_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_END_STARS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_PRICE_CURVE_LENGTH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_START_ETH_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AUCTION_START_STARS_PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"adminFinalMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowListMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"bool","name":"isUsingStars","type":"bool"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"}],"name":"allowlistMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"amountForAuction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountForDevs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"amountForSales","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"bool","name":"isUsingStars","type":"bool"}],"name":"auctionMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_auctionSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"_auctionSaleEndTime","type":"uint32"},{"internalType":"uint32","name":"_whitelistSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"_whitelistSaleEndTime","type":"uint32"},{"internalType":"uint32","name":"_publicSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"_publicSaleEndTime","type":"uint32"}],"name":"batchSetTimes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"buyerList","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"address","name":"recipient","type":"address"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"address","name":"recipient","type":"address"}],"name":"earlyMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethUSDPrice","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":"_saleStartTime","type":"uint256"},{"internalType":"bool","name":"_isUsingStars","type":"bool"}],"name":"getAuctionPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tier","type":"uint256"}],"name":"getBuyerList","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasClaimedRebate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hiddenMetadataUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"address","name":"_address","type":"address"}],"name":"isAllowListed","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":"isPublicSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxBatchSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintRemaining","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"quantity","type":"uint32"},{"internalType":"bool","name":"isUsingStars","type":"bool"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"rebate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"remainingMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleConfig","outputs":[{"internalType":"uint32","name":"auctionSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"auctionSaleEndTime","type":"uint32"},{"internalType":"uint32","name":"whitelistSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"whitelistSaleEndTime","type":"uint32"},{"internalType":"uint32","name":"publicSaleStartTime","type":"uint32"},{"internalType":"uint32","name":"publicSaleEndTime","type":"uint32"},{"internalType":"uint32","name":"devMintedAmount","type":"uint32"},{"internalType":"uint32","name":"auctionMintedAmount","type":"uint32"},{"internalType":"uint32","name":"saleMintedAmount","type":"uint32"},{"internalType":"uint256","name":"ethPrice","type":"uint256"},{"internalType":"uint256","name":"starsPrice","type":"uint256"},{"internalType":"bool","name":"hasPublicSale","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"sales","outputs":[{"internalType":"uint8","name":"quantity","type":"uint8"},{"internalType":"uint32","name":"tier","type":"uint32"},{"internalType":"uint256","name":"pricePaid","type":"uint256"},{"internalType":"bool","name":"isStars","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_allowListMerkleRoot","type":"bytes32"}],"name":"setAllowListMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionStartEthPrice","type":"uint256"},{"internalType":"uint256","name":"_auctionEndEthPrice","type":"uint256"},{"internalType":"uint256","name":"_auctionDropPerStepEth","type":"uint256"}],"name":"setAuctionEthParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"setAuctionSaleEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"setAuctionSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_auctionStartStarsPrice","type":"uint256"},{"internalType":"uint256","name":"_auctionEndStarsPrice","type":"uint256"},{"internalType":"uint256","name":"_auctionDropPerStepStars","type":"uint256"}],"name":"setAuctionStarsParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethUsdPrice","type":"uint256"}],"name":"setEthUsdPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_hiddenMetadataUri","type":"string"}],"name":"setHiddenMetadataUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_publicSale","type":"bool"}],"name":"setPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"setPublicSaleEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"setPublicSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_starsUsdPrice","type":"uint256"}],"name":"setStarsUsdPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"setWhitelistSaleEndTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"setWhitelistSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"starsUSDPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriPrefix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
603260a05261043160c05261032060e052610783610100526000600f819055601081905560118190556101208190526101408190526101608190526101808190526101a08190526101c08190526101e0819052610200819052610220819052670de0b6b3a7640000610240819052690fda46f36c1ffcf800006102608190526102808390526017929092556018805463ffffffff191690556019819055601a829055601b805460ff19169055601c556702c68af0bb140000601d819055601e55601f5569032ba7ca48d33298000060208190556021556102e060405260056102a081905264173539b7b760d91b6102c09081526200010191602391906200043b565b503480156200010f57600080fd5b5060405162004ecf38038062004ecf833981016040819052620001329162000511565b604051806040016040528060068152602001654d6f6769657360d01b815250604051806040016040528060068152602001654d4f4749455360d01b8152506200018a620001846200030660201b60201c565b6200030a565b81516200019f9060039060208501906200043b565b508051620001b59060049060208401906200043b565b50506000600190815560095550620001cd8a6200035a565b6080899052600a80546001600160a01b0319166001600160a01b038d16179055600b889055600c879055604080518082019091526006808252654d6f6769657360d01b60209092019182526200022691600d916200043b565b50604080518082019091526006808252654d4f4749455360d01b60209092019182526200025691600e916200043b565b506017805463ffffffff928316600160a01b0263ffffffff60a01b19948416600160801b0294909416600160801b600160c01b03199584166c010000000000000000000000000263ffffffff60601b19978516680100000000000000000297909716600160401b600160801b0319988516640100000000026001600160401b03199093169490991693909317179590951695909517929092171692909217919091179055506200061d9350505050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b62000364620003dd565b6001600160a01b038116620003cf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b620003da816200030a565b50565b6000546001600160a01b03163314620004395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401620003c6565b565b8280546200044990620005e0565b90600052602060002090601f0160209004810192826200046d5760008555620004b8565b82601f106200048857805160ff1916838001178555620004b8565b82800160010185558215620004b8579182015b82811115620004b85782518255916020019190600101906200049b565b50620004c6929150620004ca565b5090565b5b80821115620004c65760008155600101620004cb565b6001600160a01b0381168114620003da57600080fd5b805163ffffffff811681146200050c57600080fd5b919050565b60008060008060008060008060008060006101608c8e0312156200053457600080fd5b8b516200054181620004e1565b60208d0151909b506200055481620004e1565b809a505060408c0151985060608c0151975060808c015196506200057b60a08d01620004f7565b95506200058b60c08d01620004f7565b94506200059b60e08d01620004f7565b9350620005ac6101008d01620004f7565b9250620005bd6101208d01620004f7565b9150620005ce6101408d01620004f7565b90509295989b509295989b9093969950565b600181811c90821680620005f557607f821691505b602082108114156200061757634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051614812620006bd6000396000818161054601528181611b7301528181611c4701528181611e0d01528181611e8f015261206c015260008181610d1f015281816113790152612afe01526000818161094d0152612302015260008181610d6a01528181611ec501526120a701526000818161059a0152818161334f0152818161338701526133c501526148126000f3fe60806040526004361061041b5760003560e01c806377462f451161021e578063c228508011610123578063f13531f3116100ab578063f6c2ac031161007a578063f6c2ac0314610ced578063f7df4c5a14610d0d578063f8a987d814610d41578063fbe1aa5114610d58578063ff28944f14610d8c57600080fd5b8063f13531f314610c81578063f2fde38b14610c97578063f3b674a414610cb7578063f56aba2514610cd757600080fd5b8063d8e56a27116100f2578063d8e56a2714610bc2578063e0790dde14610bd8578063e0a8085314610bf8578063e985e9c514610c18578063ea7a42e414610c6157600080fd5b8063c228508014610b49578063c87b56dd14610b5f578063d57e915f14610b7f578063d69afbfc14610b9257600080fd5b80639bb906e0116101a6578063a45ba8e711610175578063a45ba8e714610abf578063a727dd2614610ad4578063ac44600214610af4578063b88d4fde14610b09578063b951883a14610b2957600080fd5b80639bb906e014610a635780639fe4421f14610a79578063a072d20514610a8c578063a22cb46514610a9f57600080fd5b80637fa9f532116101ed5780637fa9f5321461093b578063854e3d3c1461096f5780638da5cb5b1461099c57806390aa0b0f146109ba57806395d89b4114610a4e57600080fd5b806377462f45146108bb5780637a4b6f52146108db5780637de86909146108fb5780637ec4a6591461091b57600080fd5b806342842e0e116103245780636352211e116102ac5780636e18eba51161027b5780636e18eba51461083b5780636ebc56011461085157806370a0823114610871578063715018a61461089157806376185f39146108a657600080fd5b80636352211e146107d05780636c9b789a146107f05780636c9dec23146108105780636c9e4cbb1461082557600080fd5b80635503a0e8116102f35780635503a0e81461074f5780635aca1bb6146107645780635cae01d3146107845780635fd84c281461079b57806362b99ad4146107bb57600080fd5b806342842e0e146106d55780634ba26307146106f55780634fdd43cb14610715578063518302271461073557600080fd5b80632913daa0116103a75780633326878f116103765780633326878f1461061f5780633667f3af1461063f5780633a1c83ac1461065f5780633f5e4741146106aa5780634236231b146106bf57600080fd5b80632913daa0146105885780632bee9c02146105bc5780632c1450a4146105d25780632f3c1711146105f257600080fd5b8063095ea7b3116103ee578063095ea7b3146104d157806316ba10e0146104f157806318160ddd146105115780631a39d8ef1461053457806323b872dd1461056857600080fd5b806301ffc9a7146104205780630662069d1461045557806306fdde0314610477578063081812fc14610499575b600080fd5b34801561042c57600080fd5b5061044061043b366004613e00565b610dac565b60405190151581526020015b60405180910390f35b34801561046157600080fd5b50610475610470366004613e36565b610dfe565b005b34801561048357600080fd5b5061048c610e2c565b60405161044c9190613ea9565b3480156104a557600080fd5b506104b96104b4366004613ebc565b610ebe565b6040516001600160a01b03909116815260200161044c565b3480156104dd57600080fd5b506104756104ec366004613eec565b610f02565b3480156104fd57600080fd5b5061047561050c366004613f16565b610f89565b34801561051d57600080fd5b50600254600154035b60405190815260200161044c565b34801561054057600080fd5b506105267f000000000000000000000000000000000000000000000000000000000000000081565b34801561057457600080fd5b50610475610583366004613f88565b610f9d565b34801561059457600080fd5b506105267f000000000000000000000000000000000000000000000000000000000000000081565b3480156105c857600080fd5b50610526601d5481565b3480156105de57600080fd5b506104756105ed366004613fc4565b610fa8565b3480156105fe57600080fd5b5061052661060d366004614038565b60166020526000908152604090205481565b34801561062b57600080fd5b5061047561063a366004613e36565b611230565b34801561064b57600080fd5b5061047561065a366004613ebc565b611260565b34801561066b57600080fd5b5061067f61067a366004613eec565b611294565b6040805160ff909516855263ffffffff9093166020850152918301521515606082015260800161044c565b3480156106b657600080fd5b506104406112e6565b3480156106cb57600080fd5b5061052660215481565b3480156106e157600080fd5b506104756106f0366004613f88565b61132a565b34801561070157600080fd5b50610475610710366004614053565b611345565b34801561072157600080fd5b50610475610730366004613f16565b61146b565b34801561074157600080fd5b506025546104409060ff1681565b34801561075b57600080fd5b5061048c61147f565b34801561077057600080fd5b5061047561077f366004614094565b61150d565b34801561079057600080fd5b506105266201518081565b3480156107a757600080fd5b506104756107b6366004613e36565b611528565b3480156107c757600080fd5b5061048c611556565b3480156107dc57600080fd5b506104b96107eb366004613ebc565b611563565b3480156107fc57600080fd5b5061047561080b366004613e36565b611575565b34801561081c57600080fd5b506104756115a3565b34801561083157600080fd5b50610526600c5481565b34801561084757600080fd5b50610526600b5481565b34801561085d57600080fd5b5061047561086c366004613e36565b611a62565b34801561087d57600080fd5b5061052661088c366004614038565b611a86565b34801561089d57600080fd5b50610475611ad5565b3480156108b257600080fd5b50610475611ae9565b3480156108c757600080fd5b506104756108d6366004614038565b611d9a565b3480156108e757600080fd5b506104756108f6366004614053565b611eb8565b34801561090757600080fd5b50610475610916366004613e36565b611f83565b34801561092757600080fd5b50610475610936366004613f16565b611fb6565b34801561094757600080fd5b506105267f000000000000000000000000000000000000000000000000000000000000000081565b34801561097b57600080fd5b5061098f61098a366004613ebc565b611fca565b60405161044c91906140b1565b3480156109a857600080fd5b506000546001600160a01b03166104b9565b3480156109c657600080fd5b50601754601854601954601a54601b54610a369463ffffffff808216956401000000008304821695600160401b8404831695600160601b8504841695600160801b8604851695600160a01b8104861695600160c01b8204811695600160e01b909204811694911692909160ff168c565b60405161044c9c9b9a999897969594939291906140fe565b348015610a5a57600080fd5b5061048c612036565b348015610a6f57600080fd5b5061052660125481565b610475610a87366004614183565b612045565b610475610a9a366004614206565b6122de565b348015610aab57600080fd5b50610475610aba366004614269565b61255f565b348015610acb57600080fd5b5061048c6125f5565b348015610ae057600080fd5b50610526610aef366004614285565b612602565b348015610b0057600080fd5b506104756126da565b348015610b1557600080fd5b50610475610b243660046142c0565b612888565b348015610b3557600080fd5b50610475610b44366004613ebc565b6128d2565b348015610b5557600080fd5b50610526601e5481565b348015610b6b57600080fd5b5061048c610b7a366004613ebc565b612906565b610475610b8d366004614183565b612a66565b348015610b9e57600080fd5b50610440610bad366004614038565b60156020526000908152604090205460ff1681565b348015610bce57600080fd5b50610526601f5481565b348015610be457600080fd5b50610475610bf336600461439c565b612e4b565b348015610c0457600080fd5b50610475610c13366004614094565b612e88565b348015610c2457600080fd5b50610440610c333660046143c8565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610c6d57600080fd5b50610475610c7c366004613ebc565b612ea3565b348015610c8d57600080fd5b50610526601c5481565b348015610ca357600080fd5b50610475610cb2366004614038565b612eb0565b348015610cc357600080fd5b50610440610cd23660046143e4565b612f26565b348015610ce357600080fd5b5061052660205481565b348015610cf957600080fd5b506104b9610d08366004614438565b613002565b348015610d1957600080fd5b506105267f000000000000000000000000000000000000000000000000000000000000000081565b348015610d4d57600080fd5b506105266206978081565b348015610d6457600080fd5b506105267f000000000000000000000000000000000000000000000000000000000000000081565b348015610d9857600080fd5b50610475610da736600461439c565b61303a565b60006001600160e01b031982166380ac58cd60e01b1480610ddd57506001600160e01b03198216635b5e139f60e01b145b80610df857506301ffc9a760e01b6001600160e01b03198316145b92915050565b610e06613077565b6017805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6060600d8054610e3b9061445a565b80601f0160208091040260200160405190810160405280929190818152602001828054610e679061445a565b8015610eb45780601f10610e8957610100808354040283529160200191610eb4565b820191906000526020600020905b815481529060010190602001808311610e9757829003601f168201915b5050505050905090565b6000610ec9826130d1565b610ee6576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610f0d82611563565b9050806001600160a01b0316836001600160a01b03161415610f425760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610f7957610f5c8133610c33565b610f79576040516367d9dca160e11b815260040160405180910390fd5b610f848383836130fd565b505050565b610f91613077565b610f8460238383613d51565b610f84838383613159565b610fb0613077565b8463ffffffff168663ffffffff16106110105760405162461bcd60e51b815260206004820152601b60248201527f41756374696f6e2074696d657374616d707320696e766572746564000000000060448201526064015b60405180910390fd5b8363ffffffff168563ffffffff161061106b5760405162461bcd60e51b815260206004820152601d60248201527f41756374696f6e206265666f72652077686974656c6973742073616c650000006044820152606401611007565b8263ffffffff168463ffffffff16106110d15760405162461bcd60e51b815260206004820152602260248201527f57686974656c6973742073616c652074696d657374616d707320696e76657274604482015261195960f21b6064820152608401611007565b8163ffffffff168363ffffffff16106111365760405162461bcd60e51b815260206004820152602160248201527f57686974656c6973742073616c65206265666f7265207075626c69632073616c6044820152606560f81b6064820152608401611007565b8063ffffffff168263ffffffff16106111915760405162461bcd60e51b815260206004820152601f60248201527f5075626c69632073616c652074696d657374616d707320696e766572746564006044820152606401611007565b6017805463ffffffff928316600160a01b0263ffffffff60a01b19948416600160801b029490941667ffffffffffffffff60801b19958416600160601b0263ffffffff60601b19978516600160401b02979097166fffffffffffffffff0000000000000000199885166401000000000267ffffffffffffffff199093169490991693909317179590951695909517929092171692909217919091179055565b611238613077565b6017805463ffffffff9092166401000000000267ffffffff0000000019909216919091179055565b611268613077565b60175463ffffffff16421061128f5760405162461bcd60e51b815260040161100790614495565b600c55565b601460205281600052604060002081815481106112b057600080fd5b600091825260209091206003909102018054600182015460029092015460ff808316955061010090920463ffffffff1693501684565b601b5460009060ff16801561130b575060175442600160801b90910463ffffffff1611155b80156113255750601754600160a01b900463ffffffff1642105b905090565b610f8483838360405180602001604052806000815250612888565b61134d613077565b60175463ffffffff1642106113745760405162461bcd60e51b815260040161100790614495565b6017547f0000000000000000000000000000000000000000000000000000000000000000906113b1908490600160e01b900463ffffffff166144e2565b63ffffffff1611156114175760405162461bcd60e51b815260206004820152602960248201527f746f6f206d616e7920616c7265616479206d696e746564206265666f72652065604482015268185c9b1e481b5a5b9d60ba1b6064820152608401611007565b60178054839190601c90611439908490600160e01b900463ffffffff166144e2565b92506101000a81548163ffffffff021916908363ffffffff160217905550611467818363ffffffff16613348565b5050565b611473613077565b610f8460248383613d51565b6023805461148c9061445a565b80601f01602080910402602001604051908101604052809291908181526020018280546114b89061445a565b80156115055780601f106114da57610100808354040283529160200191611505565b820191906000526020600020905b8154815290600101906020018083116114e857829003601f168201915b505050505081565b611515613077565b601b805460ff1916911515919091179055565b611530613077565b6017805463ffffffff909216600160801b0263ffffffff60801b19909216919091179055565b6022805461148c9061445a565b600061156e826133fc565b5192915050565b61157d613077565b6017805463ffffffff909216600160601b0263ffffffff60601b19909216919091179055565b601754600160a01b900463ffffffff16421180156115cf5750601754600160601b900463ffffffff1642115b80156115f057506017546115ed90620697809063ffffffff1661450a565b42115b61160c5760405162461bcd60e51b815260040161100790614522565b3360009081526014602052604090205461165d5760405162461bcd60e51b81526020600482015260126024820152712737ba3434b733903a37903932b130ba329760711b6044820152606401611007565b3360009081526015602052604090205460ff16156116b65760405162461bcd60e51b8152602060048201526016602482015275149958985d1948185b1c9958591e4818db185a5b595960521b6044820152606401611007565b6000805b336000908152601460205260409020548110156119e5573360009081526014602052604081208054839081106116f2576116f2614545565b6000918252602080832060039092029091015433835260149091526040909120805460ff9092169250908390811061172c5761172c614545565b600091825260209091206002600390920201015460ff16156117a457601a5461175690829061455b565b33600090815260146020526040902080548490811061177757611777614545565b906000526020600020906003020160010154611793919061457a565b61179d908461450a565b92506119d2565b3360009081526014602052604090208054839081106117c5576117c5614545565b6000918252602090912060039091020154610100900463ffffffff1661186257600c546117f49061271061455b565b600b5460195461180590849061455b565b33600090815260146020526040902080548690811061182657611826614545565b906000526020600020906003020160010154611842919061457a565b61184c919061455b565b61185890613a9861455b565b61179391906145a7565b33600090815260146020526040902080548390811061188357611883614545565b600091825260209091206003909102015463ffffffff610100909104166001141561191b57600c546118b79061271061455b565b600b546019546118c890849061455b565b3360009081526014602052604090208054869081106118e9576118e9614545565b906000526020600020906003020160010154611905919061457a565b61190f919061455b565b611858906132c861455b565b33600090815260146020526040902080548390811061193c5761193c614545565b6000918252602090912060039091020154610100900463ffffffff16600214156119d257600c54600b5460195461197490849061455b565b33600090815260146020526040902080548690811061199557611995614545565b9060005260206000209060030201600101546119b1919061457a565b6119bb919061455b565b6119c591906145a7565b6119cf908461450a565b92505b50806119dd816145bb565b9150506116ba565b5060008111611a2b5760405162461bcd60e51b81526020600482015260126024820152712737ba3434b733903a37903932b130ba329760711b6044820152606401611007565b336000818152601560205260409020805460ff19166001179055600a54611a5f916001600160a01b03919091169083613518565b50565b611a6a613077565b6017805463ffffffff191663ffffffff92909216919091179055565b60006001600160a01b038216611aaf576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b611add613077565b611ae7600061357b565b565b323314611b085760405162461bcd60e51b8152600401611007906145d6565b601754600160a01b900463ffffffff1642118015611b345750601754600160601b900463ffffffff1642115b8015611b555750601754611b5290620697809063ffffffff1661450a565b42115b611b715760405162461bcd60e51b815260040161100790614522565b7f0000000000000000000000000000000000000000000000000000000000000000611b9f6002546001540390565b10611bde5760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd1a1a5b99c81d1bc81b5a5b9d608a1b6044820152606401611007565b33600090815260166020526040902054611c2d5760405162461bcd60e51b815260206004820152601060248201526f63616e6e6f74206d696e74206d6f726560801b6044820152606401611007565b600060115460001415611c6f5760025460015403611c6b907f000000000000000000000000000000000000000000000000000000000000000061457a565b6011555b601154601054600f54611c82919061450a565b1415611c9057506001611cc9565b601154601054600f54611ca3919061450a565b1015611cc957601054600f54611cb9919061450a565b601154611cc691906145a7565b90505b601054600f54611cd9919061450a565b601154611ce6919061460d565b3360009081526016602052604090205411611d095780611d05816145bb565b9150505b600f8054906000611d1983614621565b909155505060108054906000611d2e836145bb565b90915550503360009081526016602052604081205580611d905760405162461bcd60e51b815260206004820152601e60248201527f6e6f7420656e7469746c656420746f206d696e742072656d61696e696e6700006044820152606401611007565b611a5f3382613348565b611da2613077565b601754600160a01b900463ffffffff1642118015611dce5750601754600160601b900463ffffffff1642115b8015611def5750601754611dec90620697809063ffffffff1661450a565b42115b611e0b5760405162461bcd60e51b815260040161100790614522565b7f0000000000000000000000000000000000000000000000000000000000000000611e396002546001540390565b10611e785760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd1a1a5b99c81d1bc81b5a5b9d608a1b6044820152606401611007565b611a5f81611e896002546001540390565b611eb3907f000000000000000000000000000000000000000000000000000000000000000061457a565b613348565b611ec0613077565b6017547f000000000000000000000000000000000000000000000000000000000000000090611efd908490600160c01b900463ffffffff166144e2565b63ffffffff161115611f615760405162461bcd60e51b815260206004820152602760248201527f746f6f206d616e7920616c7265616479206d696e746564206265666f72652064604482015266195d881b5a5b9d60ca1b6064820152608401611007565b60178054839190601890611439908490600160c01b900463ffffffff166144e2565b611f8b613077565b6017805463ffffffff909216600160401b026bffffffff000000000000000019909216919091179055565b611fbe613077565b610f8460228383613d51565b60008181526013602090815260409182902080548351818402810184019094528084526060939283018282801561202a57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161200c575b50505050509050919050565b6060600e8054610e3b9061445a565b3233146120645760405162461bcd60e51b8152600401611007906145d6565b6017546018547f00000000000000000000000000000000000000000000000000000000000000009163ffffffff80861692600160e01b9092048116916120cb91167f000000000000000000000000000000000000000000000000000000000000000061450a565b6120d5919061450a565b6120df919061450a565b111561212d5760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401611007565b60175442600160801b90910463ffffffff1610801561215a5750601754600160a01b900463ffffffff1642105b61219f5760405162461bcd60e51b81526020600482015260166024820152757075626c69632073616c65206e6f742061637469766560501b6044820152606401611007565b6121a76112e6565b6121f35760405162461bcd60e51b815260206004820152601960248201527f7075626c69632073616c65206973206e6f7420616374697665000000000000006044820152606401611007565b6018805483919060009061220e90849063ffffffff166144e2565b92506101000a81548163ffffffff021916908363ffffffff16021790555080156122675761226233308463ffffffff1660176003015461224e919061455b565b600a546001600160a01b03169291906135cb565b612286565b6019546122849061227f9063ffffffff85169061455b565b613603565b505b612296338363ffffffff16613348565b601a546019546040517f4b3eb1e4a9ca5746446f326e9c59c9a03bbf3a130df1ea73733bc01bfaa4624d926122d2923392879287929091614638565b60405180910390a15050565b3233146122fd5760405162461bcd60e51b8152600401611007906145d6565b6018547f00000000000000000000000000000000000000000000000000000000000000009061233390869063ffffffff166144e2565b63ffffffff1611156123a25760405162461bcd60e51b815260206004820152603260248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527108199bdc88185b1b1bdddb1a5cdd135a5b9d60721b6064820152608401611007565b6123ad828233612f26565b6124125760405162461bcd60e51b815260206004820152603060248201527f546869732061646472657373206973206e6f7420616c6c6f77206c697374656460448201526f20666f72207468652070726573616c6560801b6064820152608401611007565b60175442600160401b90910463ffffffff1610801561243f5750601754600160601b900463ffffffff1642105b61248b5760405162461bcd60e51b815260206004820152601f60248201527f6f757473696465206f6620616c6c6f776c6973742073616c652074696d6573006044820152606401611007565b82156124b2576124ad33308663ffffffff1660176003015461224e919061455b565b6124cc565b6019546124ca9061227f9063ffffffff87169061455b565b505b601880548591906000906124e790849063ffffffff166144e2565b92506101000a81548163ffffffff021916908363ffffffff160217905550612515338563ffffffff16613348565b601a546019546040517f4b3eb1e4a9ca5746446f326e9c59c9a03bbf3a130df1ea73733bc01bfaa4624d92612551923392899289929091614638565b60405180910390a150505050565b6001600160a01b0382163314156125895760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6024805461148c9061445a565b60008115612676578242101561261b5750601f54610df8565b612628620697808461450a565b42106126375750602054610df8565b600062015180612647854261457a565b61265191906145a7565b905060215481612661919061455b565b601f5461266e919061457a565b915050610df8565b824210156126875750601c54610df8565b612694620697808461450a565b42106126a35750601d54610df8565b6000620151806126b3854261457a565b6126bd91906145a7565b9050601e54816126cd919061455b565b601c5461266e919061457a565b6126e2613077565b600260095414156127355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611007565b6002600955600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114612787576040519150601f19603f3d011682016040523d82523d6000602084013e61278c565b606091505b50509050806127dd5760405162461bcd60e51b815260206004820152601960248201527f77697468647261773a207472616e73666572206661696c6564000000000000006044820152606401611007565b6128806127f26000546001600160a01b031690565b600a546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561283557600080fd5b505afa158015612849573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286d919061466c565b600a546001600160a01b03169190613518565b506001600955565b612893848484613159565b6001600160a01b0383163b156128cc576128af84848484613699565b6128cc576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6128da613077565b60175463ffffffff1642106129015760405162461bcd60e51b815260040161100790614495565b600b55565b6060612911826130d1565b6129755760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401611007565b60255460ff16612a07576024805461298c9061445a565b80601f01602080910402602001604051908101604052809291908181526020018280546129b89061445a565b801561202a5780601f106129da5761010080835404028352916020019161202a565b820191906000526020600020905b8154815290600101906020018083116129e85750939695505050505050565b6000612a11613791565b90506000815111612a315760405180602001604052806000815250612a5f565b80612a3b846137a0565b6023604051602001612a4f93929190614685565b6040516020818303038152906040525b9392505050565b323314612a855760405162461bcd60e51b8152600401611007906145d6565b60175463ffffffff16428111801590612aad5750601754640100000000900463ffffffff1642105b612af95760405162461bcd60e51b815260206004820152601860248201527f73616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401611007565b6017547f000000000000000000000000000000000000000000000000000000000000000090612b36908590600160e01b900463ffffffff166144e2565b63ffffffff161115612bb05760405162461bcd60e51b815260206004820152603760248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f20666f722044757463682061756374696f6e206d696e740000000000000000006064820152608401611007565b6000612bbc8284612602565b90506000612bcb838515612602565b90506000612bdf63ffffffff87168461455b565b905060008515612c135750601a8390556019829055600a548190612c0e906001600160a01b03163330846135cb565b612c33565b6019849055601a839055612c2682613603565b612c30903461457a565b90505b60178054889190601c90612c55908490600160e01b900463ffffffff166144e2565b92506101000a81548163ffffffff021916908363ffffffff160217905550612c83338863ffffffff16613348565b600062015180612c93874261457a565b612c9d91906145a7565b600081815260136020908152604080832080546001810182559084528284200180546001600160a01b0319163390811790915583526016909152902054909150612d0a57600f8054906000612cf1836145bb565b9091555050600f54336000908152601660205260409020555b60146000336001600160a01b03166001600160a01b0316815260200190815260200160002060405180608001604052808a60ff1681526020018363ffffffff168152602001848152602001891515815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548163ffffffff021916908363ffffffff1602179055506040820151816001015560608201518160020160006101000a81548160ff02191690831515021790555050507f4b3eb1e4a9ca5746446f326e9c59c9a03bbf3a130df1ea73733bc01bfaa4624d338989601760030154601760020154604051612e39959493929190614638565b60405180910390a15050505050505050565b612e53613077565b60175463ffffffff164210612e7a5760405162461bcd60e51b815260040161100790614495565b601c92909255601d55601e55565b612e90613077565b6025805460ff1916911515919091179055565b612eab613077565b601255565b612eb8613077565b6001600160a01b038116612f1d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611007565b611a5f8161357b565b60006001600160a01b038216612f7e5760405162461bcd60e51b815260206004820152601e60248201527f5a65726f2061646472657373206e6f74206f6e20416c6c6f77204c69737400006044820152606401611007565b6040516bffffffffffffffffffffffff19606084901b166020820152600090603401604051602081830303815290604052805190602001209050612ff985858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601254915084905061389e565b95945050505050565b6013602052816000526040600020818154811061301e57600080fd5b6000918252602090912001546001600160a01b03169150829050565b613042613077565b60175463ffffffff1642106130695760405162461bcd60e51b815260040161100790614495565b601f92909255602055602155565b6000546001600160a01b03163314611ae75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611007565b600060015482108015610df8575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000613164826133fc565b9050836001600160a01b031681600001516001600160a01b03161461319b5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806131b957506131b98533610c33565b806131d45750336131c984610ebe565b6001600160a01b0316145b9050806131f457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661321b57604051633a954ecd60e21b815260040160405180910390fd5b613227600084876130fd565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166132fd5760015482146132fd578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60006133747f0000000000000000000000000000000000000000000000000000000000000000836145a7565b905060005b818110156133bd576133ab847f00000000000000000000000000000000000000000000000000000000000000006138b4565b806133b5816145bb565b915050613379565b5060006133ea7f00000000000000000000000000000000000000000000000000000000000000008461460d565b905080156128cc576128cc84826138b4565b6040805160608101825260008082526020820181905291810191909152816001548110156134ff57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906134fd5780516001600160a01b031615613493579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156134f8579392505050565b613493565b505b604051636f96cda160e11b815260040160405180910390fd5b6040516001600160a01b038316602482015260448101829052610f8490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526138ce565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526128cc9085906323b872dd60e01b90608401613544565b60008134101561364e5760405162461bcd60e51b81526020600482015260166024820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b6044820152606401611007565b600082341115610df857613662833461457a565b604051909150339082156108fc029083906000818181858888f19350505050158015613692573d6000803e3d6000fd5b5092915050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906136ce903390899088908890600401614749565b602060405180830381600087803b1580156136e857600080fd5b505af1925050508015613718575060408051601f3d908101601f1916820190925261371591810190614786565b60015b613773573d808015613746576040519150601f19603f3d011682016040523d82523d6000602084013e61374b565b606091505b50805161376b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060228054610e3b9061445a565b6060816137c45750506040805180820190915260018152600360fc1b602082015290565b8160005b81156137ee57806137d8816145bb565b91506137e79050600a836145a7565b91506137c8565b60008167ffffffffffffffff811115613809576138096142aa565b6040519080825280601f01601f191660200182016040528015613833576020820181803683370190505b5090505b84156137895761384860018361457a565b9150613855600a8661460d565b61386090603061450a565b60f81b81838151811061387557613875614545565b60200101906001600160f81b031916908160001a905350613897600a866145a7565b9450613837565b6000826138ab85846139a0565b14949350505050565b6114678282604051806020016040528060008152506139ed565b6000613923826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613bac9092919063ffffffff16565b805190915015610f84578080602001905181019061394191906147a3565b610f845760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401611007565b600081815b84518110156139e5576139d1828683815181106139c4576139c4614545565b6020026020010151613bbb565b9150806139dd816145bb565b9150506139a5565b509392505050565b6001546001600160a01b038416613a1657604051622e076360e81b815260040160405180910390fd5b82613a345760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600590925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613b58575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613b216000878480600101955087613699565b613b3e576040516368d2bf6b60e11b815260040160405180910390fd5b808210613ad6578260015414613b5357600080fd5b613b9d565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613b59575b506001556128cc600085838684565b60606137898484600085613be7565b6000818310613bd7576000828152602084905260409020612a5f565b5060009182526020526040902090565b606082471015613c485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401611007565b6001600160a01b0385163b613c9f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401611007565b600080866001600160a01b03168587604051613cbb91906147c0565b60006040518083038185875af1925050503d8060008114613cf8576040519150601f19603f3d011682016040523d82523d6000602084013e613cfd565b606091505b5091509150613d0d828286613d18565b979650505050505050565b60608315613d27575081612a5f565b825115613d375782518084602001fd5b8160405162461bcd60e51b81526004016110079190613ea9565b828054613d5d9061445a565b90600052602060002090601f016020900481019282613d7f5760008555613dc5565b82601f10613d985782800160ff19823516178555613dc5565b82800160010185558215613dc5579182015b82811115613dc5578235825591602001919060010190613daa565b50613dd1929150613dd5565b5090565b5b80821115613dd15760008155600101613dd6565b6001600160e01b031981168114611a5f57600080fd5b600060208284031215613e1257600080fd5b8135612a5f81613dea565b803563ffffffff81168114613e3157600080fd5b919050565b600060208284031215613e4857600080fd5b612a5f82613e1d565b60005b83811015613e6c578181015183820152602001613e54565b838111156128cc5750506000910152565b60008151808452613e95816020860160208601613e51565b601f01601f19169290920160200192915050565b602081526000612a5f6020830184613e7d565b600060208284031215613ece57600080fd5b5035919050565b80356001600160a01b0381168114613e3157600080fd5b60008060408385031215613eff57600080fd5b613f0883613ed5565b946020939093013593505050565b60008060208385031215613f2957600080fd5b823567ffffffffffffffff80821115613f4157600080fd5b818501915085601f830112613f5557600080fd5b813581811115613f6457600080fd5b866020828501011115613f7657600080fd5b60209290920196919550909350505050565b600080600060608486031215613f9d57600080fd5b613fa684613ed5565b9250613fb460208501613ed5565b9150604084013590509250925092565b60008060008060008060c08789031215613fdd57600080fd5b613fe687613e1d565b9550613ff460208801613e1d565b945061400260408801613e1d565b935061401060608801613e1d565b925061401e60808801613e1d565b915061402c60a08801613e1d565b90509295509295509295565b60006020828403121561404a57600080fd5b612a5f82613ed5565b6000806040838503121561406657600080fd5b61406f83613e1d565b915061407d60208401613ed5565b90509250929050565b8015158114611a5f57600080fd5b6000602082840312156140a657600080fd5b8135612a5f81614086565b6020808252825182820181905260009190848201906040850190845b818110156140f25783516001600160a01b0316835292840192918401916001016140cd565b50909695505050505050565b63ffffffff8d811682528c811660208301528b811660408301528a81166060830152898116608083015288811660a0830152871660c0820152610180810163ffffffff871660e083015263ffffffff8616610100830152846101208301528361014083015261417261016083018415159052565b9d9c50505050505050505050505050565b6000806040838503121561419657600080fd5b61419f83613e1d565b915060208301356141af81614086565b809150509250929050565b60008083601f8401126141cc57600080fd5b50813567ffffffffffffffff8111156141e457600080fd5b6020830191508360208260051b85010111156141ff57600080fd5b9250929050565b6000806000806060858703121561421c57600080fd5b61422585613e1d565b9350602085013561423581614086565b9250604085013567ffffffffffffffff81111561425157600080fd5b61425d878288016141ba565b95989497509550505050565b6000806040838503121561427c57600080fd5b61419f83613ed5565b6000806040838503121561429857600080fd5b8235915060208301356141af81614086565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156142d657600080fd5b6142df85613ed5565b93506142ed60208601613ed5565b925060408501359150606085013567ffffffffffffffff8082111561431157600080fd5b818701915087601f83011261432557600080fd5b813581811115614337576143376142aa565b604051601f8201601f19908116603f0116810190838211818310171561435f5761435f6142aa565b816040528281528a602084870101111561437857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000606084860312156143b157600080fd5b505081359360208301359350604090920135919050565b600080604083850312156143db57600080fd5b61406f83613ed5565b6000806000604084860312156143f957600080fd5b833567ffffffffffffffff81111561441057600080fd5b61441c868287016141ba565b909450925061442f905060208501613ed5565b90509250925092565b6000806040838503121561444b57600080fd5b50508035926020909101359150565b600181811c9082168061446e57607f821691505b6020821081141561448f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f73616c652068617320616c726561647920737461727465640000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff808316818516808303821115614501576145016144cc565b01949350505050565b6000821982111561451d5761451d6144cc565b500190565b602080825260099082015268746f6f206561726c7960b81b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615614575576145756144cc565b500290565b60008282101561458c5761458c6144cc565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826145b6576145b6614591565b500490565b60006000198214156145cf576145cf6144cc565b5060010190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60008261461c5761461c614591565b500690565b600081614630576146306144cc565b506000190190565b6001600160a01b0395909516855263ffffffff93909316602085015290151560408401526060830152608082015260a00190565b60006020828403121561467e57600080fd5b5051919050565b6000845160206146988285838a01613e51565b8551918401916146ab8184848a01613e51565b8554920191600090600181811c90808316806146c857607f831692505b8583108114156146e657634e487b7160e01b85526022600452602485fd5b8080156146fa576001811461470b57614738565b60ff19851688528388019550614738565b60008b81526020902060005b858110156147305781548a820152908401908801614717565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061477c90830184613e7d565b9695505050505050565b60006020828403121561479857600080fd5b8151612a5f81613dea565b6000602082840312156147b557600080fd5b8151612a5f81614086565b600082516147d2818460208701613e51565b919091019291505056fea264697066735822122068ef5b12141bc147ea1b73492731658cc63a34859fdec2680dbfa958b3f1830864736f6c63430008090033000000000000000000000000c55c2175e90a46602fd42e931f62b3acc1a013ca00000000000000000000000033b2488e94b076156fdfb38c8a5c837fe6937b8f000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000005b367cfb4f20c20000000000000000000000000000000000000000000000000000003605bb2038ec00000000000000000000000000000000000000000000000000000000006592008000000000000000000000000000000000000000000000000000000000659200800000000000000000000000000000000000000000000000000000000065920080000000000000000000000000000000000000000000000000000000006592008000000000000000000000000000000000000000000000000000000000659200800000000000000000000000000000000000000000000000000000000065920080
Deployed Bytecode
0x60806040526004361061041b5760003560e01c806377462f451161021e578063c228508011610123578063f13531f3116100ab578063f6c2ac031161007a578063f6c2ac0314610ced578063f7df4c5a14610d0d578063f8a987d814610d41578063fbe1aa5114610d58578063ff28944f14610d8c57600080fd5b8063f13531f314610c81578063f2fde38b14610c97578063f3b674a414610cb7578063f56aba2514610cd757600080fd5b8063d8e56a27116100f2578063d8e56a2714610bc2578063e0790dde14610bd8578063e0a8085314610bf8578063e985e9c514610c18578063ea7a42e414610c6157600080fd5b8063c228508014610b49578063c87b56dd14610b5f578063d57e915f14610b7f578063d69afbfc14610b9257600080fd5b80639bb906e0116101a6578063a45ba8e711610175578063a45ba8e714610abf578063a727dd2614610ad4578063ac44600214610af4578063b88d4fde14610b09578063b951883a14610b2957600080fd5b80639bb906e014610a635780639fe4421f14610a79578063a072d20514610a8c578063a22cb46514610a9f57600080fd5b80637fa9f532116101ed5780637fa9f5321461093b578063854e3d3c1461096f5780638da5cb5b1461099c57806390aa0b0f146109ba57806395d89b4114610a4e57600080fd5b806377462f45146108bb5780637a4b6f52146108db5780637de86909146108fb5780637ec4a6591461091b57600080fd5b806342842e0e116103245780636352211e116102ac5780636e18eba51161027b5780636e18eba51461083b5780636ebc56011461085157806370a0823114610871578063715018a61461089157806376185f39146108a657600080fd5b80636352211e146107d05780636c9b789a146107f05780636c9dec23146108105780636c9e4cbb1461082557600080fd5b80635503a0e8116102f35780635503a0e81461074f5780635aca1bb6146107645780635cae01d3146107845780635fd84c281461079b57806362b99ad4146107bb57600080fd5b806342842e0e146106d55780634ba26307146106f55780634fdd43cb14610715578063518302271461073557600080fd5b80632913daa0116103a75780633326878f116103765780633326878f1461061f5780633667f3af1461063f5780633a1c83ac1461065f5780633f5e4741146106aa5780634236231b146106bf57600080fd5b80632913daa0146105885780632bee9c02146105bc5780632c1450a4146105d25780632f3c1711146105f257600080fd5b8063095ea7b3116103ee578063095ea7b3146104d157806316ba10e0146104f157806318160ddd146105115780631a39d8ef1461053457806323b872dd1461056857600080fd5b806301ffc9a7146104205780630662069d1461045557806306fdde0314610477578063081812fc14610499575b600080fd5b34801561042c57600080fd5b5061044061043b366004613e00565b610dac565b60405190151581526020015b60405180910390f35b34801561046157600080fd5b50610475610470366004613e36565b610dfe565b005b34801561048357600080fd5b5061048c610e2c565b60405161044c9190613ea9565b3480156104a557600080fd5b506104b96104b4366004613ebc565b610ebe565b6040516001600160a01b03909116815260200161044c565b3480156104dd57600080fd5b506104756104ec366004613eec565b610f02565b3480156104fd57600080fd5b5061047561050c366004613f16565b610f89565b34801561051d57600080fd5b50600254600154035b60405190815260200161044c565b34801561054057600080fd5b506105267f000000000000000000000000000000000000000000000000000000000000078381565b34801561057457600080fd5b50610475610583366004613f88565b610f9d565b34801561059457600080fd5b506105267f000000000000000000000000000000000000000000000000000000000000000a81565b3480156105c857600080fd5b50610526601d5481565b3480156105de57600080fd5b506104756105ed366004613fc4565b610fa8565b3480156105fe57600080fd5b5061052661060d366004614038565b60166020526000908152604090205481565b34801561062b57600080fd5b5061047561063a366004613e36565b611230565b34801561064b57600080fd5b5061047561065a366004613ebc565b611260565b34801561066b57600080fd5b5061067f61067a366004613eec565b611294565b6040805160ff909516855263ffffffff9093166020850152918301521515606082015260800161044c565b3480156106b657600080fd5b506104406112e6565b3480156106cb57600080fd5b5061052660215481565b3480156106e157600080fd5b506104756106f0366004613f88565b61132a565b34801561070157600080fd5b50610475610710366004614053565b611345565b34801561072157600080fd5b50610475610730366004613f16565b61146b565b34801561074157600080fd5b506025546104409060ff1681565b34801561075b57600080fd5b5061048c61147f565b34801561077057600080fd5b5061047561077f366004614094565b61150d565b34801561079057600080fd5b506105266201518081565b3480156107a757600080fd5b506104756107b6366004613e36565b611528565b3480156107c757600080fd5b5061048c611556565b3480156107dc57600080fd5b506104b96107eb366004613ebc565b611563565b3480156107fc57600080fd5b5061047561080b366004613e36565b611575565b34801561081c57600080fd5b506104756115a3565b34801561083157600080fd5b50610526600c5481565b34801561084757600080fd5b50610526600b5481565b34801561085d57600080fd5b5061047561086c366004613e36565b611a62565b34801561087d57600080fd5b5061052661088c366004614038565b611a86565b34801561089d57600080fd5b50610475611ad5565b3480156108b257600080fd5b50610475611ae9565b3480156108c757600080fd5b506104756108d6366004614038565b611d9a565b3480156108e757600080fd5b506104756108f6366004614053565b611eb8565b34801561090757600080fd5b50610475610916366004613e36565b611f83565b34801561092757600080fd5b50610475610936366004613f16565b611fb6565b34801561094757600080fd5b506105267f000000000000000000000000000000000000000000000000000000000000043181565b34801561097b57600080fd5b5061098f61098a366004613ebc565b611fca565b60405161044c91906140b1565b3480156109a857600080fd5b506000546001600160a01b03166104b9565b3480156109c657600080fd5b50601754601854601954601a54601b54610a369463ffffffff808216956401000000008304821695600160401b8404831695600160601b8504841695600160801b8604851695600160a01b8104861695600160c01b8204811695600160e01b909204811694911692909160ff168c565b60405161044c9c9b9a999897969594939291906140fe565b348015610a5a57600080fd5b5061048c612036565b348015610a6f57600080fd5b5061052660125481565b610475610a87366004614183565b612045565b610475610a9a366004614206565b6122de565b348015610aab57600080fd5b50610475610aba366004614269565b61255f565b348015610acb57600080fd5b5061048c6125f5565b348015610ae057600080fd5b50610526610aef366004614285565b612602565b348015610b0057600080fd5b506104756126da565b348015610b1557600080fd5b50610475610b243660046142c0565b612888565b348015610b3557600080fd5b50610475610b44366004613ebc565b6128d2565b348015610b5557600080fd5b50610526601e5481565b348015610b6b57600080fd5b5061048c610b7a366004613ebc565b612906565b610475610b8d366004614183565b612a66565b348015610b9e57600080fd5b50610440610bad366004614038565b60156020526000908152604090205460ff1681565b348015610bce57600080fd5b50610526601f5481565b348015610be457600080fd5b50610475610bf336600461439c565b612e4b565b348015610c0457600080fd5b50610475610c13366004614094565b612e88565b348015610c2457600080fd5b50610440610c333660046143c8565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610c6d57600080fd5b50610475610c7c366004613ebc565b612ea3565b348015610c8d57600080fd5b50610526601c5481565b348015610ca357600080fd5b50610475610cb2366004614038565b612eb0565b348015610cc357600080fd5b50610440610cd23660046143e4565b612f26565b348015610ce357600080fd5b5061052660205481565b348015610cf957600080fd5b506104b9610d08366004614438565b613002565b348015610d1957600080fd5b506105267f000000000000000000000000000000000000000000000000000000000000032081565b348015610d4d57600080fd5b506105266206978081565b348015610d6457600080fd5b506105267f000000000000000000000000000000000000000000000000000000000000003281565b348015610d9857600080fd5b50610475610da736600461439c565b61303a565b60006001600160e01b031982166380ac58cd60e01b1480610ddd57506001600160e01b03198216635b5e139f60e01b145b80610df857506301ffc9a760e01b6001600160e01b03198316145b92915050565b610e06613077565b6017805463ffffffff909216600160a01b0263ffffffff60a01b19909216919091179055565b6060600d8054610e3b9061445a565b80601f0160208091040260200160405190810160405280929190818152602001828054610e679061445a565b8015610eb45780601f10610e8957610100808354040283529160200191610eb4565b820191906000526020600020905b815481529060010190602001808311610e9757829003601f168201915b5050505050905090565b6000610ec9826130d1565b610ee6576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000610f0d82611563565b9050806001600160a01b0316836001600160a01b03161415610f425760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610f7957610f5c8133610c33565b610f79576040516367d9dca160e11b815260040160405180910390fd5b610f848383836130fd565b505050565b610f91613077565b610f8460238383613d51565b610f84838383613159565b610fb0613077565b8463ffffffff168663ffffffff16106110105760405162461bcd60e51b815260206004820152601b60248201527f41756374696f6e2074696d657374616d707320696e766572746564000000000060448201526064015b60405180910390fd5b8363ffffffff168563ffffffff161061106b5760405162461bcd60e51b815260206004820152601d60248201527f41756374696f6e206265666f72652077686974656c6973742073616c650000006044820152606401611007565b8263ffffffff168463ffffffff16106110d15760405162461bcd60e51b815260206004820152602260248201527f57686974656c6973742073616c652074696d657374616d707320696e76657274604482015261195960f21b6064820152608401611007565b8163ffffffff168363ffffffff16106111365760405162461bcd60e51b815260206004820152602160248201527f57686974656c6973742073616c65206265666f7265207075626c69632073616c6044820152606560f81b6064820152608401611007565b8063ffffffff168263ffffffff16106111915760405162461bcd60e51b815260206004820152601f60248201527f5075626c69632073616c652074696d657374616d707320696e766572746564006044820152606401611007565b6017805463ffffffff928316600160a01b0263ffffffff60a01b19948416600160801b029490941667ffffffffffffffff60801b19958416600160601b0263ffffffff60601b19978516600160401b02979097166fffffffffffffffff0000000000000000199885166401000000000267ffffffffffffffff199093169490991693909317179590951695909517929092171692909217919091179055565b611238613077565b6017805463ffffffff9092166401000000000267ffffffff0000000019909216919091179055565b611268613077565b60175463ffffffff16421061128f5760405162461bcd60e51b815260040161100790614495565b600c55565b601460205281600052604060002081815481106112b057600080fd5b600091825260209091206003909102018054600182015460029092015460ff808316955061010090920463ffffffff1693501684565b601b5460009060ff16801561130b575060175442600160801b90910463ffffffff1611155b80156113255750601754600160a01b900463ffffffff1642105b905090565b610f8483838360405180602001604052806000815250612888565b61134d613077565b60175463ffffffff1642106113745760405162461bcd60e51b815260040161100790614495565b6017547f0000000000000000000000000000000000000000000000000000000000000320906113b1908490600160e01b900463ffffffff166144e2565b63ffffffff1611156114175760405162461bcd60e51b815260206004820152602960248201527f746f6f206d616e7920616c7265616479206d696e746564206265666f72652065604482015268185c9b1e481b5a5b9d60ba1b6064820152608401611007565b60178054839190601c90611439908490600160e01b900463ffffffff166144e2565b92506101000a81548163ffffffff021916908363ffffffff160217905550611467818363ffffffff16613348565b5050565b611473613077565b610f8460248383613d51565b6023805461148c9061445a565b80601f01602080910402602001604051908101604052809291908181526020018280546114b89061445a565b80156115055780601f106114da57610100808354040283529160200191611505565b820191906000526020600020905b8154815290600101906020018083116114e857829003601f168201915b505050505081565b611515613077565b601b805460ff1916911515919091179055565b611530613077565b6017805463ffffffff909216600160801b0263ffffffff60801b19909216919091179055565b6022805461148c9061445a565b600061156e826133fc565b5192915050565b61157d613077565b6017805463ffffffff909216600160601b0263ffffffff60601b19909216919091179055565b601754600160a01b900463ffffffff16421180156115cf5750601754600160601b900463ffffffff1642115b80156115f057506017546115ed90620697809063ffffffff1661450a565b42115b61160c5760405162461bcd60e51b815260040161100790614522565b3360009081526014602052604090205461165d5760405162461bcd60e51b81526020600482015260126024820152712737ba3434b733903a37903932b130ba329760711b6044820152606401611007565b3360009081526015602052604090205460ff16156116b65760405162461bcd60e51b8152602060048201526016602482015275149958985d1948185b1c9958591e4818db185a5b595960521b6044820152606401611007565b6000805b336000908152601460205260409020548110156119e5573360009081526014602052604081208054839081106116f2576116f2614545565b6000918252602080832060039092029091015433835260149091526040909120805460ff9092169250908390811061172c5761172c614545565b600091825260209091206002600390920201015460ff16156117a457601a5461175690829061455b565b33600090815260146020526040902080548490811061177757611777614545565b906000526020600020906003020160010154611793919061457a565b61179d908461450a565b92506119d2565b3360009081526014602052604090208054839081106117c5576117c5614545565b6000918252602090912060039091020154610100900463ffffffff1661186257600c546117f49061271061455b565b600b5460195461180590849061455b565b33600090815260146020526040902080548690811061182657611826614545565b906000526020600020906003020160010154611842919061457a565b61184c919061455b565b61185890613a9861455b565b61179391906145a7565b33600090815260146020526040902080548390811061188357611883614545565b600091825260209091206003909102015463ffffffff610100909104166001141561191b57600c546118b79061271061455b565b600b546019546118c890849061455b565b3360009081526014602052604090208054869081106118e9576118e9614545565b906000526020600020906003020160010154611905919061457a565b61190f919061455b565b611858906132c861455b565b33600090815260146020526040902080548390811061193c5761193c614545565b6000918252602090912060039091020154610100900463ffffffff16600214156119d257600c54600b5460195461197490849061455b565b33600090815260146020526040902080548690811061199557611995614545565b9060005260206000209060030201600101546119b1919061457a565b6119bb919061455b565b6119c591906145a7565b6119cf908461450a565b92505b50806119dd816145bb565b9150506116ba565b5060008111611a2b5760405162461bcd60e51b81526020600482015260126024820152712737ba3434b733903a37903932b130ba329760711b6044820152606401611007565b336000818152601560205260409020805460ff19166001179055600a54611a5f916001600160a01b03919091169083613518565b50565b611a6a613077565b6017805463ffffffff191663ffffffff92909216919091179055565b60006001600160a01b038216611aaf576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b611add613077565b611ae7600061357b565b565b323314611b085760405162461bcd60e51b8152600401611007906145d6565b601754600160a01b900463ffffffff1642118015611b345750601754600160601b900463ffffffff1642115b8015611b555750601754611b5290620697809063ffffffff1661450a565b42115b611b715760405162461bcd60e51b815260040161100790614522565b7f0000000000000000000000000000000000000000000000000000000000000783611b9f6002546001540390565b10611bde5760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd1a1a5b99c81d1bc81b5a5b9d608a1b6044820152606401611007565b33600090815260166020526040902054611c2d5760405162461bcd60e51b815260206004820152601060248201526f63616e6e6f74206d696e74206d6f726560801b6044820152606401611007565b600060115460001415611c6f5760025460015403611c6b907f000000000000000000000000000000000000000000000000000000000000078361457a565b6011555b601154601054600f54611c82919061450a565b1415611c9057506001611cc9565b601154601054600f54611ca3919061450a565b1015611cc957601054600f54611cb9919061450a565b601154611cc691906145a7565b90505b601054600f54611cd9919061450a565b601154611ce6919061460d565b3360009081526016602052604090205411611d095780611d05816145bb565b9150505b600f8054906000611d1983614621565b909155505060108054906000611d2e836145bb565b90915550503360009081526016602052604081205580611d905760405162461bcd60e51b815260206004820152601e60248201527f6e6f7420656e7469746c656420746f206d696e742072656d61696e696e6700006044820152606401611007565b611a5f3382613348565b611da2613077565b601754600160a01b900463ffffffff1642118015611dce5750601754600160601b900463ffffffff1642115b8015611def5750601754611dec90620697809063ffffffff1661450a565b42115b611e0b5760405162461bcd60e51b815260040161100790614522565b7f0000000000000000000000000000000000000000000000000000000000000783611e396002546001540390565b10611e785760405162461bcd60e51b815260206004820152600f60248201526e1b9bdd1a1a5b99c81d1bc81b5a5b9d608a1b6044820152606401611007565b611a5f81611e896002546001540390565b611eb3907f000000000000000000000000000000000000000000000000000000000000078361457a565b613348565b611ec0613077565b6017547f000000000000000000000000000000000000000000000000000000000000003290611efd908490600160c01b900463ffffffff166144e2565b63ffffffff161115611f615760405162461bcd60e51b815260206004820152602760248201527f746f6f206d616e7920616c7265616479206d696e746564206265666f72652064604482015266195d881b5a5b9d60ca1b6064820152608401611007565b60178054839190601890611439908490600160c01b900463ffffffff166144e2565b611f8b613077565b6017805463ffffffff909216600160401b026bffffffff000000000000000019909216919091179055565b611fbe613077565b610f8460228383613d51565b60008181526013602090815260409182902080548351818402810184019094528084526060939283018282801561202a57602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161200c575b50505050509050919050565b6060600e8054610e3b9061445a565b3233146120645760405162461bcd60e51b8152600401611007906145d6565b6017546018547f00000000000000000000000000000000000000000000000000000000000007839163ffffffff80861692600160e01b9092048116916120cb91167f000000000000000000000000000000000000000000000000000000000000003261450a565b6120d5919061450a565b6120df919061450a565b111561212d5760405162461bcd60e51b815260206004820181905260248201527f507572636861736520776f756c6420657863656564206d617820737570706c796044820152606401611007565b60175442600160801b90910463ffffffff1610801561215a5750601754600160a01b900463ffffffff1642105b61219f5760405162461bcd60e51b81526020600482015260166024820152757075626c69632073616c65206e6f742061637469766560501b6044820152606401611007565b6121a76112e6565b6121f35760405162461bcd60e51b815260206004820152601960248201527f7075626c69632073616c65206973206e6f7420616374697665000000000000006044820152606401611007565b6018805483919060009061220e90849063ffffffff166144e2565b92506101000a81548163ffffffff021916908363ffffffff16021790555080156122675761226233308463ffffffff1660176003015461224e919061455b565b600a546001600160a01b03169291906135cb565b612286565b6019546122849061227f9063ffffffff85169061455b565b613603565b505b612296338363ffffffff16613348565b601a546019546040517f4b3eb1e4a9ca5746446f326e9c59c9a03bbf3a130df1ea73733bc01bfaa4624d926122d2923392879287929091614638565b60405180910390a15050565b3233146122fd5760405162461bcd60e51b8152600401611007906145d6565b6018547f00000000000000000000000000000000000000000000000000000000000004319061233390869063ffffffff166144e2565b63ffffffff1611156123a25760405162461bcd60e51b815260206004820152603260248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527108199bdc88185b1b1bdddb1a5cdd135a5b9d60721b6064820152608401611007565b6123ad828233612f26565b6124125760405162461bcd60e51b815260206004820152603060248201527f546869732061646472657373206973206e6f7420616c6c6f77206c697374656460448201526f20666f72207468652070726573616c6560801b6064820152608401611007565b60175442600160401b90910463ffffffff1610801561243f5750601754600160601b900463ffffffff1642105b61248b5760405162461bcd60e51b815260206004820152601f60248201527f6f757473696465206f6620616c6c6f776c6973742073616c652074696d6573006044820152606401611007565b82156124b2576124ad33308663ffffffff1660176003015461224e919061455b565b6124cc565b6019546124ca9061227f9063ffffffff87169061455b565b505b601880548591906000906124e790849063ffffffff166144e2565b92506101000a81548163ffffffff021916908363ffffffff160217905550612515338563ffffffff16613348565b601a546019546040517f4b3eb1e4a9ca5746446f326e9c59c9a03bbf3a130df1ea73733bc01bfaa4624d92612551923392899289929091614638565b60405180910390a150505050565b6001600160a01b0382163314156125895760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6024805461148c9061445a565b60008115612676578242101561261b5750601f54610df8565b612628620697808461450a565b42106126375750602054610df8565b600062015180612647854261457a565b61265191906145a7565b905060215481612661919061455b565b601f5461266e919061457a565b915050610df8565b824210156126875750601c54610df8565b612694620697808461450a565b42106126a35750601d54610df8565b6000620151806126b3854261457a565b6126bd91906145a7565b9050601e54816126cd919061455b565b601c5461266e919061457a565b6126e2613077565b600260095414156127355760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401611007565b6002600955600080546040516001600160a01b039091169047908381818185875af1925050503d8060008114612787576040519150601f19603f3d011682016040523d82523d6000602084013e61278c565b606091505b50509050806127dd5760405162461bcd60e51b815260206004820152601960248201527f77697468647261773a207472616e73666572206661696c6564000000000000006044820152606401611007565b6128806127f26000546001600160a01b031690565b600a546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561283557600080fd5b505afa158015612849573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061286d919061466c565b600a546001600160a01b03169190613518565b506001600955565b612893848484613159565b6001600160a01b0383163b156128cc576128af84848484613699565b6128cc576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6128da613077565b60175463ffffffff1642106129015760405162461bcd60e51b815260040161100790614495565b600b55565b6060612911826130d1565b6129755760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401611007565b60255460ff16612a07576024805461298c9061445a565b80601f01602080910402602001604051908101604052809291908181526020018280546129b89061445a565b801561202a5780601f106129da5761010080835404028352916020019161202a565b820191906000526020600020905b8154815290600101906020018083116129e85750939695505050505050565b6000612a11613791565b90506000815111612a315760405180602001604052806000815250612a5f565b80612a3b846137a0565b6023604051602001612a4f93929190614685565b6040516020818303038152906040525b9392505050565b323314612a855760405162461bcd60e51b8152600401611007906145d6565b60175463ffffffff16428111801590612aad5750601754640100000000900463ffffffff1642105b612af95760405162461bcd60e51b815260206004820152601860248201527f73616c6520686173206e6f7420737461727465642079657400000000000000006044820152606401611007565b6017547f000000000000000000000000000000000000000000000000000000000000032090612b36908590600160e01b900463ffffffff166144e2565b63ffffffff161115612bb05760405162461bcd60e51b815260206004820152603760248201527f507572636861736520776f756c6420657863656564206d617820737570706c7960448201527f20666f722044757463682061756374696f6e206d696e740000000000000000006064820152608401611007565b6000612bbc8284612602565b90506000612bcb838515612602565b90506000612bdf63ffffffff87168461455b565b905060008515612c135750601a8390556019829055600a548190612c0e906001600160a01b03163330846135cb565b612c33565b6019849055601a839055612c2682613603565b612c30903461457a565b90505b60178054889190601c90612c55908490600160e01b900463ffffffff166144e2565b92506101000a81548163ffffffff021916908363ffffffff160217905550612c83338863ffffffff16613348565b600062015180612c93874261457a565b612c9d91906145a7565b600081815260136020908152604080832080546001810182559084528284200180546001600160a01b0319163390811790915583526016909152902054909150612d0a57600f8054906000612cf1836145bb565b9091555050600f54336000908152601660205260409020555b60146000336001600160a01b03166001600160a01b0316815260200190815260200160002060405180608001604052808a60ff1681526020018363ffffffff168152602001848152602001891515815250908060018154018082558091505060019003906000526020600020906003020160009091909190915060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548163ffffffff021916908363ffffffff1602179055506040820151816001015560608201518160020160006101000a81548160ff02191690831515021790555050507f4b3eb1e4a9ca5746446f326e9c59c9a03bbf3a130df1ea73733bc01bfaa4624d338989601760030154601760020154604051612e39959493929190614638565b60405180910390a15050505050505050565b612e53613077565b60175463ffffffff164210612e7a5760405162461bcd60e51b815260040161100790614495565b601c92909255601d55601e55565b612e90613077565b6025805460ff1916911515919091179055565b612eab613077565b601255565b612eb8613077565b6001600160a01b038116612f1d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401611007565b611a5f8161357b565b60006001600160a01b038216612f7e5760405162461bcd60e51b815260206004820152601e60248201527f5a65726f2061646472657373206e6f74206f6e20416c6c6f77204c69737400006044820152606401611007565b6040516bffffffffffffffffffffffff19606084901b166020820152600090603401604051602081830303815290604052805190602001209050612ff985858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601254915084905061389e565b95945050505050565b6013602052816000526040600020818154811061301e57600080fd5b6000918252602090912001546001600160a01b03169150829050565b613042613077565b60175463ffffffff1642106130695760405162461bcd60e51b815260040161100790614495565b601f92909255602055602155565b6000546001600160a01b03163314611ae75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401611007565b600060015482108015610df8575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000613164826133fc565b9050836001600160a01b031681600001516001600160a01b03161461319b5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b03861614806131b957506131b98533610c33565b806131d45750336131c984610ebe565b6001600160a01b0316145b9050806131f457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661321b57604051633a954ecd60e21b815260040160405180910390fd5b613227600084876130fd565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166132fd5760015482146132fd578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b60006133747f000000000000000000000000000000000000000000000000000000000000000a836145a7565b905060005b818110156133bd576133ab847f000000000000000000000000000000000000000000000000000000000000000a6138b4565b806133b5816145bb565b915050613379565b5060006133ea7f000000000000000000000000000000000000000000000000000000000000000a8461460d565b905080156128cc576128cc84826138b4565b6040805160608101825260008082526020820181905291810191909152816001548110156134ff57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906134fd5780516001600160a01b031615613493579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156134f8579392505050565b613493565b505b604051636f96cda160e11b815260040160405180910390fd5b6040516001600160a01b038316602482015260448101829052610f8490849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526138ce565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526128cc9085906323b872dd60e01b90608401613544565b60008134101561364e5760405162461bcd60e51b81526020600482015260166024820152752732b2b2103a379039b2b7321036b7b9329022aa241760511b6044820152606401611007565b600082341115610df857613662833461457a565b604051909150339082156108fc029083906000818181858888f19350505050158015613692573d6000803e3d6000fd5b5092915050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906136ce903390899088908890600401614749565b602060405180830381600087803b1580156136e857600080fd5b505af1925050508015613718575060408051601f3d908101601f1916820190925261371591810190614786565b60015b613773573d808015613746576040519150601f19603f3d011682016040523d82523d6000602084013e61374b565b606091505b50805161376b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b606060228054610e3b9061445a565b6060816137c45750506040805180820190915260018152600360fc1b602082015290565b8160005b81156137ee57806137d8816145bb565b91506137e79050600a836145a7565b91506137c8565b60008167ffffffffffffffff811115613809576138096142aa565b6040519080825280601f01601f191660200182016040528015613833576020820181803683370190505b5090505b84156137895761384860018361457a565b9150613855600a8661460d565b61386090603061450a565b60f81b81838151811061387557613875614545565b60200101906001600160f81b031916908160001a905350613897600a866145a7565b9450613837565b6000826138ab85846139a0565b14949350505050565b6114678282604051806020016040528060008152506139ed565b6000613923826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613bac9092919063ffffffff16565b805190915015610f84578080602001905181019061394191906147a3565b610f845760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401611007565b600081815b84518110156139e5576139d1828683815181106139c4576139c4614545565b6020026020010151613bbb565b9150806139dd816145bb565b9150506139a5565b509392505050565b6001546001600160a01b038416613a1657604051622e076360e81b815260040160405180910390fd5b82613a345760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600590925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15613b58575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4613b216000878480600101955087613699565b613b3e576040516368d2bf6b60e11b815260040160405180910390fd5b808210613ad6578260015414613b5357600080fd5b613b9d565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210613b59575b506001556128cc600085838684565b60606137898484600085613be7565b6000818310613bd7576000828152602084905260409020612a5f565b5060009182526020526040902090565b606082471015613c485760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401611007565b6001600160a01b0385163b613c9f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401611007565b600080866001600160a01b03168587604051613cbb91906147c0565b60006040518083038185875af1925050503d8060008114613cf8576040519150601f19603f3d011682016040523d82523d6000602084013e613cfd565b606091505b5091509150613d0d828286613d18565b979650505050505050565b60608315613d27575081612a5f565b825115613d375782518084602001fd5b8160405162461bcd60e51b81526004016110079190613ea9565b828054613d5d9061445a565b90600052602060002090601f016020900481019282613d7f5760008555613dc5565b82601f10613d985782800160ff19823516178555613dc5565b82800160010185558215613dc5579182015b82811115613dc5578235825591602001919060010190613daa565b50613dd1929150613dd5565b5090565b5b80821115613dd15760008155600101613dd6565b6001600160e01b031981168114611a5f57600080fd5b600060208284031215613e1257600080fd5b8135612a5f81613dea565b803563ffffffff81168114613e3157600080fd5b919050565b600060208284031215613e4857600080fd5b612a5f82613e1d565b60005b83811015613e6c578181015183820152602001613e54565b838111156128cc5750506000910152565b60008151808452613e95816020860160208601613e51565b601f01601f19169290920160200192915050565b602081526000612a5f6020830184613e7d565b600060208284031215613ece57600080fd5b5035919050565b80356001600160a01b0381168114613e3157600080fd5b60008060408385031215613eff57600080fd5b613f0883613ed5565b946020939093013593505050565b60008060208385031215613f2957600080fd5b823567ffffffffffffffff80821115613f4157600080fd5b818501915085601f830112613f5557600080fd5b813581811115613f6457600080fd5b866020828501011115613f7657600080fd5b60209290920196919550909350505050565b600080600060608486031215613f9d57600080fd5b613fa684613ed5565b9250613fb460208501613ed5565b9150604084013590509250925092565b60008060008060008060c08789031215613fdd57600080fd5b613fe687613e1d565b9550613ff460208801613e1d565b945061400260408801613e1d565b935061401060608801613e1d565b925061401e60808801613e1d565b915061402c60a08801613e1d565b90509295509295509295565b60006020828403121561404a57600080fd5b612a5f82613ed5565b6000806040838503121561406657600080fd5b61406f83613e1d565b915061407d60208401613ed5565b90509250929050565b8015158114611a5f57600080fd5b6000602082840312156140a657600080fd5b8135612a5f81614086565b6020808252825182820181905260009190848201906040850190845b818110156140f25783516001600160a01b0316835292840192918401916001016140cd565b50909695505050505050565b63ffffffff8d811682528c811660208301528b811660408301528a81166060830152898116608083015288811660a0830152871660c0820152610180810163ffffffff871660e083015263ffffffff8616610100830152846101208301528361014083015261417261016083018415159052565b9d9c50505050505050505050505050565b6000806040838503121561419657600080fd5b61419f83613e1d565b915060208301356141af81614086565b809150509250929050565b60008083601f8401126141cc57600080fd5b50813567ffffffffffffffff8111156141e457600080fd5b6020830191508360208260051b85010111156141ff57600080fd5b9250929050565b6000806000806060858703121561421c57600080fd5b61422585613e1d565b9350602085013561423581614086565b9250604085013567ffffffffffffffff81111561425157600080fd5b61425d878288016141ba565b95989497509550505050565b6000806040838503121561427c57600080fd5b61419f83613ed5565b6000806040838503121561429857600080fd5b8235915060208301356141af81614086565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156142d657600080fd5b6142df85613ed5565b93506142ed60208601613ed5565b925060408501359150606085013567ffffffffffffffff8082111561431157600080fd5b818701915087601f83011261432557600080fd5b813581811115614337576143376142aa565b604051601f8201601f19908116603f0116810190838211818310171561435f5761435f6142aa565b816040528281528a602084870101111561437857600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000606084860312156143b157600080fd5b505081359360208301359350604090920135919050565b600080604083850312156143db57600080fd5b61406f83613ed5565b6000806000604084860312156143f957600080fd5b833567ffffffffffffffff81111561441057600080fd5b61441c868287016141ba565b909450925061442f905060208501613ed5565b90509250925092565b6000806040838503121561444b57600080fd5b50508035926020909101359150565b600181811c9082168061446e57607f821691505b6020821081141561448f57634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526018908201527f73616c652068617320616c726561647920737461727465640000000000000000604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600063ffffffff808316818516808303821115614501576145016144cc565b01949350505050565b6000821982111561451d5761451d6144cc565b500190565b602080825260099082015268746f6f206561726c7960b81b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000816000190483118215151615614575576145756144cc565b500290565b60008282101561458c5761458c6144cc565b500390565b634e487b7160e01b600052601260045260246000fd5b6000826145b6576145b6614591565b500490565b60006000198214156145cf576145cf6144cc565b5060010190565b6020808252601e908201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604082015260600190565b60008261461c5761461c614591565b500690565b600081614630576146306144cc565b506000190190565b6001600160a01b0395909516855263ffffffff93909316602085015290151560408401526060830152608082015260a00190565b60006020828403121561467e57600080fd5b5051919050565b6000845160206146988285838a01613e51565b8551918401916146ab8184848a01613e51565b8554920191600090600181811c90808316806146c857607f831692505b8583108114156146e657634e487b7160e01b85526022600452602485fd5b8080156146fa576001811461470b57614738565b60ff19851688528388019550614738565b60008b81526020902060005b858110156147305781548a820152908401908801614717565b505083880195505b50939b9a5050505050505050505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061477c90830184613e7d565b9695505050505050565b60006020828403121561479857600080fd5b8151612a5f81613dea565b6000602082840312156147b557600080fd5b8151612a5f81614086565b600082516147d2818460208701613e51565b919091019291505056fea264697066735822122068ef5b12141bc147ea1b73492731658cc63a34859fdec2680dbfa958b3f1830864736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c55c2175e90a46602fd42e931f62b3acc1a013ca00000000000000000000000033b2488e94b076156fdfb38c8a5c837fe6937b8f000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000005b367cfb4f20c20000000000000000000000000000000000000000000000000000003605bb2038ec00000000000000000000000000000000000000000000000000000000006592008000000000000000000000000000000000000000000000000000000000659200800000000000000000000000000000000000000000000000000000000065920080000000000000000000000000000000000000000000000000000000006592008000000000000000000000000000000000000000000000000000000000659200800000000000000000000000000000000000000000000000000000000065920080
-----Decoded View---------------
Arg [0] : _stars (address): 0xc55c2175E90A46602fD42e931f62B3Acc1A013Ca
Arg [1] : _owner (address): 0x33B2488E94b076156fdFB38c8A5c837FE6937b8f
Arg [2] : _maxBatchSize (uint256): 10
Arg [3] : _ethUSDPrice (uint256): 1682580000000000000000
Arg [4] : _starsUSDPrice (uint256): 15205950000000000
Arg [5] : _auctionSaleStartTime (uint32): 1704067200
Arg [6] : _auctionSaleEndTime (uint32): 1704067200
Arg [7] : _whitelistSaleStartTime (uint32): 1704067200
Arg [8] : _whitelistSaleEndTime (uint32): 1704067200
Arg [9] : _publicSaleStartTime (uint32): 1704067200
Arg [10] : _publicSaleEndTime (uint32): 1704067200
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 000000000000000000000000c55c2175e90a46602fd42e931f62b3acc1a013ca
Arg [1] : 00000000000000000000000033b2488e94b076156fdfb38c8a5c837fe6937b8f
Arg [2] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [3] : 00000000000000000000000000000000000000000000005b367cfb4f20c20000
Arg [4] : 000000000000000000000000000000000000000000000000003605bb2038ec00
Arg [5] : 0000000000000000000000000000000000000000000000000000000065920080
Arg [6] : 0000000000000000000000000000000000000000000000000000000065920080
Arg [7] : 0000000000000000000000000000000000000000000000000000000065920080
Arg [8] : 0000000000000000000000000000000000000000000000000000000065920080
Arg [9] : 0000000000000000000000000000000000000000000000000000000065920080
Arg [10] : 0000000000000000000000000000000000000000000000000000000065920080
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.