ERC-721
Overview
Max Total Supply
107 EU
Holders
25
Total Transfers
-
Market
Fully Diluted Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
Euclid
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // // ******** ** ** ****** ** ** ******* // /**///// /** /** **////** /** /** /**////** // /** /** /** ** // /** /** /** /** // /******* /** /** /** /** /** /** /** // /**//// /** /** /** /** /** /** /** // /** /** /** //** ** /** /** /** ** // /******** //******* //****** /******** /** /******* // //////// /////// ////// //////// // /////// // // by collect-code 2022 // https://collect-code.com/ // pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "./IEuclidRandomizer.sol"; import "./IEuclidFormula.sol"; import "./EuclidShuffle.sol"; import "./Whitelist.sol"; /// @custom:security-contact [email protected] contract Euclid is ERC721, ERC721Enumerable, Ownable { using SafeMath for uint256; using Strings for uint256; IEuclidRandomizer randomizer; IEuclidFormula formula; EuclidShuffle.ShuffleState tokenShuffle; mapping(uint256 => uint128) public tokenIdToHash; address payee; uint256 payeePercentage; struct State { uint8 phase; // 0:paused, 1:whitelist, 2:public uint256 price1; // Phase1 price in pwei/finney (ETH/1000) uint256 price2; // Phase2 price in pwei/finney (ETH/1000) uint256 maxBuyout; // max a user can mint at once uint256 maxSupply; // total tokens that can be minted uint256 availableSupply; // available to mint uint256 mintedCount; // excluding token zero } State internal state_; struct TokenInfo { uint256 tokenNumber; uint256 tokenId; uint128 hash; } WhitelistStorage whitelist; event Minted(address indexed to, uint256 indexed tokenNumber, uint256 indexed tokenId, uint128 hash); event ChangedPhase(uint8 indexed phase, uint256 indexed price1, uint256 indexed price2); constructor(uint256 maxSupply, address randomizer_, address formula_) ERC721("Euclid", "EU") { randomizer = IEuclidRandomizer(randomizer_); formula = IEuclidFormula(formula_); EuclidShuffle.initialize(tokenShuffle, uint32(maxSupply)); state_ = State( 0, // phase 50, // price1 168, // price2 12, // maxBuyout maxSupply, // maxSupply maxSupply, // availableSupply 0 // mintedCount ); } // Required by Interfaces function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } //--------------------------- // Admin // function setPhase(uint8 newPhase, uint256 newPrice1InPwei, uint256 newPrice2InPwei) onlyOwner public { state_.phase = newPhase; if(newPrice1InPwei > 0) state_.price1 = newPrice1InPwei; if(newPrice2InPwei > 0) state_.price2 = newPrice2InPwei; emit ChangedPhase(state_.phase, state_.price1, state_.price2); } function setupWhitelistContract(address contractAddress, uint8 newMintsPerSource, uint8 newMintsPerBuilt) onlyOwner public { Whitelist.setupContract(whitelist, contractAddress, newMintsPerSource, newMintsPerBuilt); } function setPayee(address newPayeeAddress, uint256 newPayeePercentage) onlyOwner public { payee = newPayeeAddress; payeePercentage = Math.min(newPayeePercentage, 100); } function withdraw() onlyOwner public { payable(msg.sender).transfer(address(this).balance); } function giftCode(address to, uint256 quantity) onlyOwner public returns (uint256) { validatePurchase(quantity, 0); return mintCode(to, quantity); } //--------------------------- // Internal // function validatePurchase(uint256 quantity, uint8 phase) internal { require(state_.mintedCount < state_.maxSupply, "CC:SoldOut"); require(quantity > 0 && quantity <= state_.availableSupply && quantity <= state_.maxBuyout, "CC:QuantityNotAvailable"); require(msg.sender == owner() || (msg.value > 0 && msg.value == calculatePriceForQuantity(quantity, phase)), "CC:BadValue"); } function mintCode(address to, uint256 quantity) internal returns(uint256) { uint256 tokenId = 0; for(uint256 i = 0 ; i < quantity ; i++) { if(totalSupply() > 0) { state_.mintedCount = state_.mintedCount.add(1); } uint128 seed = randomizer.makeSeed(address(this), to, block.number, state_.mintedCount); if(state_.mintedCount > 0) { tokenId = EuclidShuffle.getNextShuffleId(randomizer, tokenShuffle, seed); } _safeMint(to, tokenId); tokenIdToHash[tokenId] = seed; emit Minted(to, state_.mintedCount, tokenId, seed); } state_.availableSupply = state_.maxSupply - state_.mintedCount; if (payee != address(0) && payeePercentage > 0 && msg.value > 0) { payable(payee).transfer(msg.value.div(100).mul(payeePercentage)); } return state_.mintedCount; } //--------------------------- // Public // function getState() public view returns (State memory) { return state_; } // Get all whitelisted Tokens of a user, mapped to claimable amount per Token function getWhitelistedTokens(address to) public view returns (uint256[] memory, uint8[] memory) { return Whitelist.getAvailableMintsForUser(whitelist, to); } // Get available mints for a whitelisted token function getWhitelistAvailableMints(uint256 tokenId, uint256 /*flags*/) public view returns (uint8) { return Whitelist.calcAvailableMintsPerTokenId(whitelist, tokenId); } // Claim Euclid Token using whitelisted Token, during whitelist sale phase function claimCode(address to, uint256[] memory tokenIds) public payable returns (uint256) { require(totalSupply() > 0, "CC:Unreleased"); require(state_.phase >= 1, "CC:ChromiumSaleIsPaused"); uint8 quantity = Whitelist.claimTokenIds(whitelist, tokenIds); // will revert if not owner or none available validatePurchase(quantity, 1); return mintCode(to, quantity); } // Purchase Euclid Token(s), during public sale phase function buyCode(address to, uint256 quantity) public payable returns (uint256) { require(totalSupply() > 0, "CC:Unreleased"); require(state_.phase == 2, "CC:PublicSaleIsPaused"); validatePurchase(quantity, 2); return mintCode(to, quantity); } // Get Token prices in WEI function calculatePriceForQuantity(uint256 quantity, uint8 phase) public view returns (uint256) { return quantity * (phase == 1 ? state_.price1 : state_.price2) * 1_000_000_000_000_000; // 1 ETH=1_000_000_000_000_000_000 } // Get array of prices in WEI, for all allowed purchase quantities function getPrices(uint8 phase) public view returns (uint256[] memory result) { result = new uint[](totalSupply() == 0 ? 0 : Math.min(state_.availableSupply, state_.maxBuyout)); for(uint256 i = 0 ; i < result.length ; i++) { result[i] = calculatePriceForQuantity(i+1, phase); } } // Get all minted tokenIds function getMintedTokenIds(uint32 offset, uint32 pageSize) public view returns (uint32[] memory result) { if(offset < totalSupply()) { uint32 maxPageSize = uint32(totalSupply()) - offset; result = new uint32[](pageSize == 0 || pageSize > maxPageSize ? maxPageSize : pageSize); for(uint32 i = 0; i < result.length; i++) { result[i] = tokenShuffle.ids[offset+i]; } } } // Get all Token Ids owned by someone function getOwnedTokens(address from) public view returns (uint256[] memory result) { result = new uint[](balanceOf(from)); for(uint256 i = 0 ; i < result.length ; i++) { result[i] = tokenOfOwnerByIndex(from, i); } } // Get public token info function getTokenInfo(address /*from*/, uint32 tokenNumber) public view returns (TokenInfo memory) { uint256 tokenId = tokenNumber == 0 ? 0 : tokenShuffle.ids[tokenNumber]; return TokenInfo(tokenNumber, tokenId, tokenIdToHash[tokenId]); } function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), 'CC:BadTokenId'); uint128 hash = tokenIdToHash[tokenId]; return string(abi.encodePacked( 'https://collect-code.com/api/token/euclid/', tokenId.toString(), '/metadata?v=1&hash=', (hash > 0 ? uint256(hash).toHexString(16) : '0x0'), '&formula=', formula.generateFormula(hash, tokenId) )); } }
// SPDX-License-Identifier: MIT // // ******** ** ** ****** ** ** ******* // /**///// /** /** **////** /** /** /**////** // /** /** /** ** // /** /** /** /** // /******* /** /** /** /** /** /** /** // /**//// /** /** /** /** /** /** /** // /** /** /** //** ** /** /** /** ** // /******** //******* //****** /******** /** /******* // //////// /////// ////// //////// // /////// // // by collect-code 2022 // https://collect-code.com/ // pragma solidity ^0.8.2; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; interface IParent is IERC721, IERC721Enumerable, IERC721Metadata { } struct WhitelistStorage { IParent parent; uint8 mintsPerSource; uint8 mintsPerBuilt; mapping(uint256 => uint8) mintsByTokenId; } library Whitelist { function setupContract(WhitelistStorage storage self, address contractAddress, uint8 newMintsPerSource, uint8 newMintsPerBuilt) public { self.parent = IParent(contractAddress); self.mintsPerSource = newMintsPerSource; self.mintsPerBuilt = newMintsPerBuilt; } function isTokenBuilt(WhitelistStorage storage self, uint256 tokenId) public view returns (bool) { bytes memory uri = bytes(self.parent.tokenURI(tokenId)); return (uri[uri.length-1] != '='); } function calcAllowedMintsPerTokenId(WhitelistStorage storage self, uint256 tokenId) public view returns (uint8) { try self.parent.ownerOf(tokenId) returns (address /*owner*/) { } catch { return 0; // token does not exist } if(self.mintsPerBuilt > 0 && isTokenBuilt(self, tokenId)) { return self.mintsPerBuilt; } return self.mintsPerSource; } function calcAvailableMintsPerTokenId(WhitelistStorage storage self, uint256 tokenId) public view returns (uint8) { uint8 allowedMints = calcAllowedMintsPerTokenId(self, tokenId); if (self.mintsByTokenId[tokenId] >= allowedMints) { // avoid negative result return 0; // none available } return (allowedMints - self.mintsByTokenId[tokenId]); } function getAvailableMintsForUser(WhitelistStorage storage self, address to) public view returns (uint256[] memory, uint8[] memory) { uint256 balance = self.parent.balanceOf(to); uint256[] memory tokenIds = new uint256[](balance); uint8[] memory available = new uint8[](balance); for(uint256 i = 0 ; i < balance ; i++) { tokenIds[i] = self.parent.tokenOfOwnerByIndex(to, i); available[i] = calcAvailableMintsPerTokenId(self, tokenIds[i]); } return (tokenIds, available); } function claimTokenIds(WhitelistStorage storage self, uint256[] memory tokenIds) public returns (uint8 quantity) { for(uint256 i = 0 ; i < tokenIds.length ; i++) { require(self.parent.ownerOf(tokenIds[i]) == msg.sender, "Whitelist: Not Owner"); uint8 available = calcAvailableMintsPerTokenId(self, tokenIds[i]); if(available > 0) { self.mintsByTokenId[tokenIds[i]] += available; quantity += available; } } require(quantity > 0, "Whitelist: None available"); } }
// SPDX-License-Identifier: MIT // // ******** ** ** ****** ** ** ******* // /**///// /** /** **////** /** /** /**////** // /** /** /** ** // /** /** /** /** // /******* /** /** /** /** /** /** /** // /**//// /** /** /** /** /** /** /** // /** /** /** //** ** /** /** /** ** // /******** //******* //****** /******** /** /******* // //////// /////// ////// //////// // /////// // // by collect-code 2022 // https://collect-code.com/ // pragma solidity ^0.8.2; interface IEuclidRandomizer { struct RandomizerState { uint32[4] state; uint32 value; } function makeSeed(address contractAddress, address senderAddress, uint blockNumber, uint256 tokenNumber) external view returns (uint128) ; function initialize(uint128 seed) external pure returns (RandomizerState memory); function initialize(bytes16 seed) external pure returns (RandomizerState memory); function getNextValue(RandomizerState memory self) external pure returns (RandomizerState memory); function getInt(RandomizerState memory self, uint32 maxExclusive) external pure returns (RandomizerState memory); function getIntRange(RandomizerState memory self, uint32 minInclusive, uint32 maxExclusive) external pure returns (RandomizerState memory); }
// SPDX-License-Identifier: MIT // // ******** ** ** ****** ** ** ******* // /**///// /** /** **////** /** /** /**////** // /** /** /** ** // /** /** /** /** // /******* /** /** /** /** /** /** /** // /**//// /** /** /** /** /** /** /** // /** /** /** //** ** /** /** /** ** // /******** //******* //****** /******** /** /******* // //////// /////// ////// //////// // /////// // // by collect-code 2022 // https://collect-code.com/ // pragma solidity ^0.8.2; import "@openzeppelin/contracts/utils/Strings.sol"; import "./IEuclidRandomizer.sol"; interface IEuclidFormula { function generateFormula(uint128 hash, uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // // ******** ** ** ****** ** ** ******* // /**///// /** /** **////** /** /** /**////** // /** /** /** ** // /** /** /** /** // /******* /** /** /** /** /** /** /** // /**//// /** /** /** /** /** /** /** // /** /** /** //** ** /** /** /** ** // /******** //******* //****** /******** /** /******* // //////// /////// ////// //////// // /////// // // by collect-code 2022 // https://collect-code.com/ // pragma solidity ^0.8.2; import "./IEuclidRandomizer.sol"; library EuclidShuffle { struct ShuffleState { mapping(uint32 => uint32) ids; uint32 size; uint32 pos; } //---------------------------------- // Token Id Randomizer // (storage version) // // - based on Fisher–Yates shuffle // - it does not store the randomizer state, just generated Ids // - each call to getNextShuffleId() must contain a new seed // - use EuclidRandomizer.makeSeed() or make your own // // Initializes Shuffle storage // size is the total number of Ids to be suffled // allows getNextShuffleId() to be called <size> times function initialize(ShuffleState storage self, uint32 size) public { self.size = size; self.pos = 0; } // Return new shuffled id from storage // Ids keys and values range from 1..size // Returns 0 when all ids have been used function getNextShuffleId(IEuclidRandomizer randomizer, ShuffleState storage self, uint128 seed) public returns (uint32) { if(self.pos == self.size) return 0; // no more ids available self.pos += 1; if(self.pos == self.size) return self.ids[self.pos]; // last // choose a random remaining cell IEuclidRandomizer.RandomizerState memory rnd = randomizer.initialize(seed); rnd = randomizer.getIntRange(rnd, self.pos, self.size); // swap for current position uint32 swapPos = rnd.value + 1; uint32 newId = self.ids[swapPos] > 0 ? self.ids[swapPos] : swapPos; self.ids[swapPos] = self.ids[self.pos] > 0 ? self.ids[self.pos] : self.pos; self.ids[self.pos] = newId; return newId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @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 virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_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 { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _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 { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @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. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * 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 ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * 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, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": { "/contracts/Whitelist.sol": { "Whitelist": "0x840B41337Ca6d28854B7CB6bb6d6f73393FeC220" }, "/contracts/EuclidShuffle.sol": { "EuclidShuffle": "0x7Ec6F396bF164954EcBd82580459d7B5d91500B0" } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"address","name":"randomizer_","type":"address"},{"internalType":"address","name":"formula_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint8","name":"phase","type":"uint8"},{"indexed":true,"internalType":"uint256","name":"price1","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"price2","type":"uint256"}],"name":"ChangedPhase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenNumber","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"hash","type":"uint128"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"buyCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint8","name":"phase","type":"uint8"}],"name":"calculatePriceForQuantity","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"claimCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"offset","type":"uint32"},{"internalType":"uint32","name":"pageSize","type":"uint32"}],"name":"getMintedTokenIds","outputs":[{"internalType":"uint32[]","name":"result","type":"uint32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"getOwnedTokens","outputs":[{"internalType":"uint256[]","name":"result","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"phase","type":"uint8"}],"name":"getPrices","outputs":[{"internalType":"uint256[]","name":"result","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getState","outputs":[{"components":[{"internalType":"uint8","name":"phase","type":"uint8"},{"internalType":"uint256","name":"price1","type":"uint256"},{"internalType":"uint256","name":"price2","type":"uint256"},{"internalType":"uint256","name":"maxBuyout","type":"uint256"},{"internalType":"uint256","name":"maxSupply","type":"uint256"},{"internalType":"uint256","name":"availableSupply","type":"uint256"},{"internalType":"uint256","name":"mintedCount","type":"uint256"}],"internalType":"struct Euclid.State","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"tokenNumber","type":"uint32"}],"name":"getTokenInfo","outputs":[{"components":[{"internalType":"uint256","name":"tokenNumber","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"hash","type":"uint128"}],"internalType":"struct Euclid.TokenInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"getWhitelistAvailableMints","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"getWhitelistedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint8[]","name":"","type":"uint8[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"giftCode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPayeeAddress","type":"address"},{"internalType":"uint256","name":"newPayeePercentage","type":"uint256"}],"name":"setPayee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newPhase","type":"uint8"},{"internalType":"uint256","name":"newPrice1InPwei","type":"uint256"},{"internalType":"uint256","name":"newPrice2InPwei","type":"uint256"}],"name":"setPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"},{"internalType":"uint8","name":"newMintsPerSource","type":"uint8"},{"internalType":"uint8","name":"newMintsPerBuilt","type":"uint8"}],"name":"setupWhitelistContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"tokenIdToHash","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162006777380380620067778339818101604052810190620000379190620003f2565b6040518060400160405280600681526020017f4575636c696400000000000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f45550000000000000000000000000000000000000000000000000000000000008152508160009081620000b49190620006be565b508060019081620000c69190620006be565b505050620000e9620000dd6200027f60201b60201c565b6200028760201b60201c565b81600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550737ec6f396bf164954ecbd82580459d7b5d91500b063ddec1e75600d856040518363ffffffff1660e01b8152600401620001a7929190620007cd565b60006040518083038186803b158015620001c057600080fd5b505af4158015620001d5573d6000803e3d6000fd5b505050506040518060e00160405280600060ff1681526020016032815260200160a88152602001600c81526020018481526020018481526020016000815250601260008201518160000160006101000a81548160ff021916908360ff1602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c08201518160060155905050505050620007fa565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b6000819050919050565b620003678162000352565b81146200037357600080fd5b50565b60008151905062000387816200035c565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620003ba826200038d565b9050919050565b620003cc81620003ad565b8114620003d857600080fd5b50565b600081519050620003ec81620003c1565b92915050565b6000806000606084860312156200040e576200040d6200034d565b5b60006200041e8682870162000376565b93505060206200043186828701620003db565b92505060406200044486828701620003db565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620004d057607f821691505b602082108103620004e657620004e562000488565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620005507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000511565b6200055c868362000511565b95508019841693508086168417925050509392505050565b6000819050919050565b60006200059f62000599620005938462000352565b62000574565b62000352565b9050919050565b6000819050919050565b620005bb836200057e565b620005d3620005ca82620005a6565b8484546200051e565b825550505050565b600090565b620005ea620005db565b620005f7818484620005b0565b505050565b5b818110156200061f5762000613600082620005e0565b600181019050620005fd565b5050565b601f8211156200066e576200063881620004ec565b620006438462000501565b8101602085101562000653578190505b6200066b620006628562000501565b830182620005fc565b50505b505050565b600082821c905092915050565b6000620006936000198460080262000673565b1980831691505092915050565b6000620006ae838362000680565b9150826002028217905092915050565b620006c9826200044e565b67ffffffffffffffff811115620006e557620006e462000459565b5b620006f18254620004b7565b620006fe82828562000623565b600060209050601f83116001811462000736576000841562000721578287015190505b6200072d8582620006a0565b8655506200079d565b601f1984166200074686620004ec565b60005b82811015620007705784890151825560018201915060208501945060208101905062000749565b868310156200079057848901516200078c601f89168262000680565b8355505b6001600288020188555050505b505050505050565b8082525050565b600063ffffffff82169050919050565b620007c781620007ac565b82525050565b6000604082019050620007e46000830185620007a5565b620007f36020830184620007bc565b9392505050565b615f6d806200080a6000396000f3fe6080604052600436106102045760003560e01c806370a0823111610118578063a748ea21116100a0578063dc2b41561161006f578063dc2b4156146107f8578063e985e9c514610835578063f2333d1d14610872578063f2fde38b1461089b578063fc2643a0146108c457610204565b8063a748ea2114610718578063b88d4fde14610755578063c87b56dd1461077e578063d9d61655146107bb57610204565b8063888b98db116100e7578063888b98db146106335780638b2d76a21461065c5780638da5cb5b1461069957806395d89b41146106c4578063a22cb465146106ef57610204565b806370a0823114610572578063715018a6146105af5780637883a4ed146105c657806381826189146105f657610204565b806324d6c8d51161019b5780633ccfd60b1161016a5780633ccfd60b1461047b57806342842e0e146104925780634f6ccce7146104bb578063621a1f74146104f85780636352211e1461053557610204565b806324d6c8d51461039357806325c6a631146103d15780632f745c591461040e57806336f344631461044b57610204565b806318160ddd116101d757806318160ddd146102d75780631865c57d1461030257806322ee900e1461032d57806323b872dd1461036a57610204565b806301ffc9a71461020957806306fdde0314610246578063081812fc14610271578063095ea7b3146102ae575b600080fd5b34801561021557600080fd5b50610230600480360381019061022b919061397f565b6108ed565b60405161023d91906139c7565b60405180910390f35b34801561025257600080fd5b5061025b6108ff565b6040516102689190613a7b565b60405180910390f35b34801561027d57600080fd5b5061029860048036038101906102939190613ad3565b610991565b6040516102a59190613b41565b60405180910390f35b3480156102ba57600080fd5b506102d560048036038101906102d09190613b88565b610a16565b005b3480156102e357600080fd5b506102ec610b2d565b6040516102f99190613bd7565b60405180910390f35b34801561030e57600080fd5b50610317610b3a565b6040516103249190613cab565b60405180910390f35b34801561033957600080fd5b50610354600480360381019061034f9190613b88565b610bad565b6040516103619190613bd7565b60405180910390f35b34801561037657600080fd5b50610391600480360381019061038c9190613cc6565b610c48565b005b34801561039f57600080fd5b506103ba60048036038101906103b59190613d19565b610ca8565b6040516103c8929190613ea4565b60405180910390f35b3480156103dd57600080fd5b506103f860048036038101906103f39190613f17565b610d34565b6040516104059190613fc4565b60405180910390f35b34801561041a57600080fd5b5061043560048036038101906104309190613b88565b610df9565b6040516104429190613bd7565b60405180910390f35b61046560048036038101906104609190613b88565b610e9e565b6040516104729190613bd7565b60405180910390f35b34801561048757600080fd5b50610490610f5e565b005b34801561049e57600080fd5b506104b960048036038101906104b49190613cc6565b611023565b005b3480156104c757600080fd5b506104e260048036038101906104dd9190613ad3565b611043565b6040516104ef9190613bd7565b60405180910390f35b34801561050457600080fd5b5061051f600480360381019061051a9190613ad3565b6110b4565b60405161052c9190613fee565b60405180910390f35b34801561054157600080fd5b5061055c60048036038101906105579190613ad3565b6110e3565b6040516105699190613b41565b60405180910390f35b34801561057e57600080fd5b5061059960048036038101906105949190613d19565b611194565b6040516105a69190613bd7565b60405180910390f35b3480156105bb57600080fd5b506105c461124b565b005b6105e060048036038101906105db9190614151565b6112d3565b6040516105ed9190613bd7565b60405180910390f35b34801561060257600080fd5b5061061d600480360381019061061891906141ad565b61141a565b60405161062a91906142ab565b60405180910390f35b34801561063f57600080fd5b5061065a600480360381019061065591906142f9565b611563565b005b34801561066857600080fd5b50610683600480360381019061067e919061434c565b611652565b6040516106909190613bd7565b60405180910390f35b3480156106a557600080fd5b506106ae611696565b6040516106bb9190613b41565b60405180910390f35b3480156106d057600080fd5b506106d96116c0565b6040516106e69190613a7b565b60405180910390f35b3480156106fb57600080fd5b50610716600480360381019061071191906143b8565b611752565b005b34801561072457600080fd5b5061073f600480360381019061073a91906143f8565b611768565b60405161074c9190614447565b60405180910390f35b34801561076157600080fd5b5061077c60048036038101906107779190614517565b6117ed565b005b34801561078a57600080fd5b506107a560048036038101906107a09190613ad3565b61184f565b6040516107b29190613a7b565b60405180910390f35b3480156107c757600080fd5b506107e260048036038101906107dd9190613d19565b611a1e565b6040516107ef919061459a565b60405180910390f35b34801561080457600080fd5b5061081f600480360381019061081a91906145bc565b611ac1565b60405161082c919061459a565b60405180910390f35b34801561084157600080fd5b5061085c600480360381019061085791906145e9565b611b92565b60405161086991906139c7565b60405180910390f35b34801561087e57600080fd5b5061089960048036038101906108949190614629565b611c26565b005b3480156108a757600080fd5b506108c260048036038101906108bd9190613d19565b611d3b565b005b3480156108d057600080fd5b506108eb60048036038101906108e69190613b88565b611e32565b005b60006108f882611f04565b9050919050565b60606000805461090e906146ab565b80601f016020809104026020016040519081016040528092919081815260200182805461093a906146ab565b80156109875780601f1061095c57610100808354040283529160200191610987565b820191906000526020600020905b81548152906001019060200180831161096a57829003601f168201915b5050505050905090565b600061099c82611f7e565b6109db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d29061474e565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a21826110e3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a88906147e0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ab0611fea565b73ffffffffffffffffffffffffffffffffffffffff161480610adf5750610ade81610ad9611fea565b611b92565b5b610b1e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1590614872565b60405180910390fd5b610b288383611ff2565b505050565b6000600880549050905090565b610b426138a0565b60126040518060e00160405290816000820160009054906101000a900460ff1660ff1660ff1681526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152602001600682015481525050905090565b6000610bb7611fea565b73ffffffffffffffffffffffffffffffffffffffff16610bd5611696565b73ffffffffffffffffffffffffffffffffffffffff1614610c2b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c22906148de565b60405180910390fd5b610c368260006120ab565b610c4083836121f4565b905092915050565b610c59610c53611fea565b82612589565b610c98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8f90614970565b60405180910390fd5b610ca3838383612667565b505050565b60608073840b41337ca6d28854b7cb6bb6d6f73393fec22063a9f652f56019856040518363ffffffff1660e01b8152600401610ce59291906149a6565b600060405180830381865af4158015610d02573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610d2b9190614b53565b91509150915091565b610d3c6138e0565b6000808363ffffffff1614610d8357600d60000160008463ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900463ffffffff16610d86565b60005b63ffffffff16905060405180606001604052808463ffffffff168152602001828152602001600f600084815260200190815260200160002060009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff1681525091505092915050565b6000610e0483611194565b8210610e45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e3c90614c3d565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600080610ea9610b2d565b11610ee9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee090614ca9565b60405180910390fd5b6002601260000160009054906101000a900460ff1660ff1614610f41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3890614d15565b60405180910390fd5b610f4c8260026120ab565b610f5683836121f4565b905092915050565b610f66611fea565b73ffffffffffffffffffffffffffffffffffffffff16610f84611696565b73ffffffffffffffffffffffffffffffffffffffff1614610fda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd1906148de565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611020573d6000803e3d6000fd5b50565b61103e838383604051806020016040528060008152506117ed565b505050565b600061104d610b2d565b821061108e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108590614da7565b60405180910390fd5b600882815481106110a2576110a1614dc7565b5b90600052602060002001549050919050565b600f6020528060005260406000206000915054906101000a90046fffffffffffffffffffffffffffffffff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361118b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118290614e68565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611204576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fb90614efa565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611253611fea565b73ffffffffffffffffffffffffffffffffffffffff16611271611696565b73ffffffffffffffffffffffffffffffffffffffff16146112c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112be906148de565b60405180910390fd5b6112d160006128c2565b565b6000806112de610b2d565b1161131e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131590614ca9565b60405180910390fd5b6001601260000160009054906101000a900460ff1660ff161015611377576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136e90614f66565b60405180910390fd5b600073840b41337ca6d28854b7cb6bb6d6f73393fec22063da36dd0d6019856040518363ffffffff1660e01b81526004016113b392919061501c565b602060405180830381865af41580156113d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f4919061504c565b90506114048160ff1660016120ab565b611411848260ff166121f4565b91505092915050565b6060611424610b2d565b8363ffffffff16101561155d5760008361143c610b2d565b61144691906150a8565b905060008363ffffffff16148061146857508063ffffffff168363ffffffff16115b6114725782611474565b805b63ffffffff1667ffffffffffffffff8111156114935761149261400e565b5b6040519080825280602002602001820160405280156114c15781602001602082028036833780820191505090505b50915060005b82518163ffffffff16101561155a57600d600001600082876114e991906150dc565b63ffffffff1663ffffffff16815260200190815260200160002060009054906101000a900463ffffffff16838263ffffffff168151811061152d5761152c614dc7565b5b602002602001019063ffffffff16908163ffffffff1681525050808061155290615116565b9150506114c7565b50505b92915050565b61156b611fea565b73ffffffffffffffffffffffffffffffffffffffff16611589611696565b73ffffffffffffffffffffffffffffffffffffffff16146115df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115d6906148de565b60405180910390fd5b73840b41337ca6d28854b7cb6bb6d6f73393fec22063b533218960198585856040518563ffffffff1660e01b815260040161161d9493929190615151565b60006040518083038186803b15801561163557600080fd5b505af4158015611649573d6000803e3d6000fd5b50505050505050565b600066038d7ea4c6800060018360ff161461167257601260020154611679565b6012600101545b846116849190615196565b61168e9190615196565b905092915050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546116cf906146ab565b80601f01602080910402602001604051908101604052809291908181526020018280546116fb906146ab565b80156117485780601f1061171d57610100808354040283529160200191611748565b820191906000526020600020905b81548152906001019060200180831161172b57829003601f168201915b5050505050905090565b61176461175d611fea565b8383612988565b5050565b600073840b41337ca6d28854b7cb6bb6d6f73393fec22063276caf5e6019856040518363ffffffff1660e01b81526004016117a49291906151ff565b602060405180830381865af41580156117c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e5919061504c565b905092915050565b6117fe6117f8611fea565b83612589565b61183d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183490614970565b60405180910390fd5b61184984848484612af4565b50505050565b606061185a82611f7e565b611899576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189090615274565b60405180910390fd5b6000600f600084815260200190815260200160002060009054906101000a90046fffffffffffffffffffffffffffffffff1690506118d683612b50565b6000826fffffffffffffffffffffffffffffffff161161192b576040518060400160405280600381526020017f3078300000000000000000000000000000000000000000000000000000000000815250611952565b6119516010836fffffffffffffffffffffffffffffffff16612cb090919063ffffffff16565b5b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639e36c58584876040518363ffffffff1660e01b81526004016119af929190615294565b600060405180830381865afa1580156119cc573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906119f5919061535e565b604051602001611a07939291906154ed565b604051602081830303815290604052915050919050565b6060611a2982611194565b67ffffffffffffffff811115611a4257611a4161400e565b5b604051908082528060200260200182016040528015611a705781602001602082028036833780820191505090505b50905060005b8151811015611abb57611a898382610df9565b828281518110611a9c57611a9b614dc7565b5b6020026020010181815250508080611ab39061553f565b915050611a76565b50919050565b60606000611acd610b2d565b14611aeb57611ae6601260050154601260030154612eec565b611aee565b60005b67ffffffffffffffff811115611b0757611b0661400e565b5b604051908082528060200260200182016040528015611b355781602001602082028036833780820191505090505b50905060005b8151811015611b8c57611b5a600182611b549190615587565b84611652565b828281518110611b6d57611b6c614dc7565b5b6020026020010181815250508080611b849061553f565b915050611b3b565b50919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c2e611fea565b73ffffffffffffffffffffffffffffffffffffffff16611c4c611696565b73ffffffffffffffffffffffffffffffffffffffff1614611ca2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c99906148de565b60405180910390fd5b82601260000160006101000a81548160ff021916908360ff1602179055506000821115611cd457816012600101819055505b6000811115611ce857806012600201819055505b601260020154601260010154601260000160009054906101000a900460ff1660ff167f2a9b26f44dc422dc38a2f12e95f55d7ab70513565169f482a93311cfb80307e560405160405180910390a4505050565b611d43611fea565b73ffffffffffffffffffffffffffffffffffffffff16611d61611696565b73ffffffffffffffffffffffffffffffffffffffff1614611db7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dae906148de565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611e26576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1d9061564f565b60405180910390fd5b611e2f816128c2565b50565b611e3a611fea565b73ffffffffffffffffffffffffffffffffffffffff16611e58611696565b73ffffffffffffffffffffffffffffffffffffffff1614611eae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ea5906148de565b60405180910390fd5b81601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611efa816064612eec565b6011819055505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f775750611f7682612f05565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612065836110e3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b601260040154601260060154106120f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120ee906156bb565b60405180910390fd5b60008211801561210c57506012600501548211155b801561211d57506012600301548211155b61215c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215390615727565b60405180910390fd5b612164611696565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806121b157506000341180156121b057506121ad8282611652565b34145b5b6121f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e790615793565b60405180910390fd5b5050565b6000806000905060005b83811015612457576000612210610b2d565b11156122395761222f6001601260060154612fe790919063ffffffff16565b6012600601819055505b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663f192d0e73088436012600601546040518563ffffffff1660e01b81526004016122a194939291906157b3565b602060405180830381865afa1580156122be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122e29190615824565b90506000601260060154111561239a57737ec6f396bf164954ecbd82580459d7b5d91500b063039982de600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600d846040518463ffffffff1660e01b8152600401612350939291906158c6565b602060405180830381865af415801561236d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123919190615912565b63ffffffff1692505b6123a48684612ffd565b80600f600085815260200190815260200160002060006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550826012600601548773ffffffffffffffffffffffffffffffffffffffff167f4e130dffa4b734b9c0b268adbf9c51775913ee0787e0fd9e4f5df524c5b5e5d78460405161243b9190613fee565b60405180910390a450808061244f9061553f565b9150506121fe565b5060126006015460126004015461246e919061593f565b601260050181905550600073ffffffffffffffffffffffffffffffffffffffff16601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141580156124d857506000601154115b80156124e45750600034115b1561257a57601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc61254d60115461253f60643461301b90919063ffffffff16565b61303190919063ffffffff16565b9081150290604051600060405180830381858888f19350505050158015612578573d6000803e3d6000fd5b505b60126006015491505092915050565b600061259482611f7e565b6125d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ca906159e5565b60405180910390fd5b60006125de836110e3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061264d57508373ffffffffffffffffffffffffffffffffffffffff1661263584610991565b73ffffffffffffffffffffffffffffffffffffffff16145b8061265e575061265d8185611b92565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612687826110e3565b73ffffffffffffffffffffffffffffffffffffffff16146126dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d490615a77565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361274c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274390615b09565b60405180910390fd5b612757838383613047565b612762600082611ff2565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546127b2919061593f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128099190615587565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036129f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ed90615b75565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612ae791906139c7565b60405180910390a3505050565b612aff848484612667565b612b0b84848484613057565b612b4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b4190615c07565b60405180910390fd5b50505050565b606060008203612b97576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612cab565b600082905060005b60008214612bc9578080612bb29061553f565b915050600a82612bc29190615c56565b9150612b9f565b60008167ffffffffffffffff811115612be557612be461400e565b5b6040519080825280601f01601f191660200182016040528015612c175781602001600182028036833780820191505090505b5090505b60008514612ca457600182612c30919061593f565b9150600a85612c3f9190615c87565b6030612c4b9190615587565b60f81b818381518110612c6157612c60614dc7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612c9d9190615c56565b9450612c1b565b8093505050505b919050565b606060006002836002612cc39190615196565b612ccd9190615587565b67ffffffffffffffff811115612ce657612ce561400e565b5b6040519080825280601f01601f191660200182016040528015612d185781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110612d5057612d4f614dc7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110612db457612db3614dc7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002612df49190615196565b612dfe9190615587565b90505b6001811115612e9e577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110612e4057612e3f614dc7565b5b1a60f81b828281518110612e5757612e56614dc7565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612e9790615cb8565b9050612e01565b5060008414612ee2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ed990615d2d565b60405180910390fd5b8091505092915050565b6000818310612efb5781612efd565b825b905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612fd057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612fe05750612fdf826131de565b5b9050919050565b60008183612ff59190615587565b905092915050565b613017828260405180602001604052806000815250613248565b5050565b600081836130299190615c56565b905092915050565b6000818361303f9190615196565b905092915050565b6130528383836132a3565b505050565b60006130788473ffffffffffffffffffffffffffffffffffffffff166133b5565b156131d1578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130a1611fea565b8786866040518563ffffffff1660e01b81526004016130c39493929190615da2565b6020604051808303816000875af19250505080156130ff57506040513d601f19601f820116820180604052508101906130fc9190615e03565b60015b613181573d806000811461312f576040519150601f19603f3d011682016040523d82523d6000602084013e613134565b606091505b506000815103613179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161317090615c07565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506131d6565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61325283836133c8565b61325f6000848484613057565b61329e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161329590615c07565b60405180910390fd5b505050565b6132ae838383613595565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036132f0576132eb8161359a565b61332f565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461332e5761332d83826135e3565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036133715761336c81613750565b6133b0565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146133af576133ae8282613821565b5b5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603613437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161342e90615e7c565b60405180910390fd5b61344081611f7e565b15613480576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347790615ee8565b60405180910390fd5b61348c60008383613047565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546134dc9190615587565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016135f084611194565b6135fa919061593f565b90506000600760008481526020019081526020016000205490508181146136df576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613764919061593f565b905060006009600084815260200190815260200160002054905060006008838154811061379457613793614dc7565b5b9060005260206000200154905080600883815481106137b6576137b5614dc7565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061380557613804615f08565b5b6001900381819060005260206000200160009055905550505050565b600061382c83611194565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b6040518060e00160405280600060ff1681526020016000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6040518060600160405280600081526020016000815260200160006fffffffffffffffffffffffffffffffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61395c81613927565b811461396757600080fd5b50565b60008135905061397981613953565b92915050565b6000602082840312156139955761399461391d565b5b60006139a38482850161396a565b91505092915050565b60008115159050919050565b6139c1816139ac565b82525050565b60006020820190506139dc60008301846139b8565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613a1c578082015181840152602081019050613a01565b83811115613a2b576000848401525b50505050565b6000601f19601f8301169050919050565b6000613a4d826139e2565b613a5781856139ed565b9350613a678185602086016139fe565b613a7081613a31565b840191505092915050565b60006020820190508181036000830152613a958184613a42565b905092915050565b6000819050919050565b613ab081613a9d565b8114613abb57600080fd5b50565b600081359050613acd81613aa7565b92915050565b600060208284031215613ae957613ae861391d565b5b6000613af784828501613abe565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613b2b82613b00565b9050919050565b613b3b81613b20565b82525050565b6000602082019050613b566000830184613b32565b92915050565b613b6581613b20565b8114613b7057600080fd5b50565b600081359050613b8281613b5c565b92915050565b60008060408385031215613b9f57613b9e61391d565b5b6000613bad85828601613b73565b9250506020613bbe85828601613abe565b9150509250929050565b613bd181613a9d565b82525050565b6000602082019050613bec6000830184613bc8565b92915050565b600060ff82169050919050565b613c0881613bf2565b82525050565b613c1781613a9d565b82525050565b60e082016000820151613c336000850182613bff565b506020820151613c466020850182613c0e565b506040820151613c596040850182613c0e565b506060820151613c6c6060850182613c0e565b506080820151613c7f6080850182613c0e565b5060a0820151613c9260a0850182613c0e565b5060c0820151613ca560c0850182613c0e565b50505050565b600060e082019050613cc06000830184613c1d565b92915050565b600080600060608486031215613cdf57613cde61391d565b5b6000613ced86828701613b73565b9350506020613cfe86828701613b73565b9250506040613d0f86828701613abe565b9150509250925092565b600060208284031215613d2f57613d2e61391d565b5b6000613d3d84828501613b73565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000613d7e8383613c0e565b60208301905092915050565b6000602082019050919050565b6000613da282613d46565b613dac8185613d51565b9350613db783613d62565b8060005b83811015613de8578151613dcf8882613d72565b9750613dda83613d8a565b925050600181019050613dbb565b5085935050505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000613e2d8383613bff565b60208301905092915050565b6000602082019050919050565b6000613e5182613df5565b613e5b8185613e00565b9350613e6683613e11565b8060005b83811015613e97578151613e7e8882613e21565b9750613e8983613e39565b925050600181019050613e6a565b5085935050505092915050565b60006040820190508181036000830152613ebe8185613d97565b90508181036020830152613ed28184613e46565b90509392505050565b600063ffffffff82169050919050565b613ef481613edb565b8114613eff57600080fd5b50565b600081359050613f1181613eeb565b92915050565b60008060408385031215613f2e57613f2d61391d565b5b6000613f3c85828601613b73565b9250506020613f4d85828601613f02565b9150509250929050565b60006fffffffffffffffffffffffffffffffff82169050919050565b613f7c81613f57565b82525050565b606082016000820151613f986000850182613c0e565b506020820151613fab6020850182613c0e565b506040820151613fbe6040850182613f73565b50505050565b6000606082019050613fd96000830184613f82565b92915050565b613fe881613f57565b82525050565b60006020820190506140036000830184613fdf565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61404682613a31565b810181811067ffffffffffffffff821117156140655761406461400e565b5b80604052505050565b6000614078613913565b9050614084828261403d565b919050565b600067ffffffffffffffff8211156140a4576140a361400e565b5b602082029050602081019050919050565b600080fd5b60006140cd6140c884614089565b61406e565b905080838252602082019050602084028301858111156140f0576140ef6140b5565b5b835b8181101561411957806141058882613abe565b8452602084019350506020810190506140f2565b5050509392505050565b600082601f83011261413857614137614009565b5b81356141488482602086016140ba565b91505092915050565b600080604083850312156141685761416761391d565b5b600061417685828601613b73565b925050602083013567ffffffffffffffff81111561419757614196613922565b5b6141a385828601614123565b9150509250929050565b600080604083850312156141c4576141c361391d565b5b60006141d285828601613f02565b92505060206141e385828601613f02565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61422281613edb565b82525050565b60006142348383614219565b60208301905092915050565b6000602082019050919050565b6000614258826141ed565b61426281856141f8565b935061426d83614209565b8060005b8381101561429e5781516142858882614228565b975061429083614240565b925050600181019050614271565b5085935050505092915050565b600060208201905081810360008301526142c5818461424d565b905092915050565b6142d681613bf2565b81146142e157600080fd5b50565b6000813590506142f3816142cd565b92915050565b6000806000606084860312156143125761431161391d565b5b600061432086828701613b73565b9350506020614331868287016142e4565b9250506040614342868287016142e4565b9150509250925092565b600080604083850312156143635761436261391d565b5b600061437185828601613abe565b9250506020614382858286016142e4565b9150509250929050565b614395816139ac565b81146143a057600080fd5b50565b6000813590506143b28161438c565b92915050565b600080604083850312156143cf576143ce61391d565b5b60006143dd85828601613b73565b92505060206143ee858286016143a3565b9150509250929050565b6000806040838503121561440f5761440e61391d565b5b600061441d85828601613abe565b925050602061442e85828601613abe565b9150509250929050565b61444181613bf2565b82525050565b600060208201905061445c6000830184614438565b92915050565b600080fd5b600067ffffffffffffffff8211156144825761448161400e565b5b61448b82613a31565b9050602081019050919050565b82818337600083830152505050565b60006144ba6144b584614467565b61406e565b9050828152602081018484840111156144d6576144d5614462565b5b6144e1848285614498565b509392505050565b600082601f8301126144fe576144fd614009565b5b813561450e8482602086016144a7565b91505092915050565b600080600080608085870312156145315761453061391d565b5b600061453f87828801613b73565b945050602061455087828801613b73565b935050604061456187828801613abe565b925050606085013567ffffffffffffffff81111561458257614581613922565b5b61458e878288016144e9565b91505092959194509250565b600060208201905081810360008301526145b48184613d97565b905092915050565b6000602082840312156145d2576145d161391d565b5b60006145e0848285016142e4565b91505092915050565b60008060408385031215614600576145ff61391d565b5b600061460e85828601613b73565b925050602061461f85828601613b73565b9150509250929050565b6000806000606084860312156146425761464161391d565b5b6000614650868287016142e4565b935050602061466186828701613abe565b925050604061467286828701613abe565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806146c357607f821691505b6020821081036146d6576146d561467c565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614738602c836139ed565b9150614743826146dc565b604082019050919050565b600060208201905081810360008301526147678161472b565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b60006147ca6021836139ed565b91506147d58261476e565b604082019050919050565b600060208201905081810360008301526147f9816147bd565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b600061485c6038836139ed565b915061486782614800565b604082019050919050565b6000602082019050818103600083015261488b8161484f565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006148c86020836139ed565b91506148d382614892565b602082019050919050565b600060208201905081810360008301526148f7816148bb565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b600061495a6031836139ed565b9150614965826148fe565b604082019050919050565b600060208201905081810360008301526149898161494d565b9050919050565b8082525050565b6149a081613b20565b82525050565b60006040820190506149bb6000830185614990565b6149c86020830184614997565b9392505050565b6000815190506149de81613aa7565b92915050565b60006149f76149f284614089565b61406e565b90508083825260208201905060208402830185811115614a1a57614a196140b5565b5b835b81811015614a435780614a2f88826149cf565b845260208401935050602081019050614a1c565b5050509392505050565b600082601f830112614a6257614a61614009565b5b8151614a728482602086016149e4565b91505092915050565b600067ffffffffffffffff821115614a9657614a9561400e565b5b602082029050602081019050919050565b600081519050614ab6816142cd565b92915050565b6000614acf614aca84614a7b565b61406e565b90508083825260208201905060208402830185811115614af257614af16140b5565b5b835b81811015614b1b5780614b078882614aa7565b845260208401935050602081019050614af4565b5050509392505050565b600082601f830112614b3a57614b39614009565b5b8151614b4a848260208601614abc565b91505092915050565b60008060408385031215614b6a57614b6961391d565b5b600083015167ffffffffffffffff811115614b8857614b87613922565b5b614b9485828601614a4d565b925050602083015167ffffffffffffffff811115614bb557614bb4613922565b5b614bc185828601614b25565b9150509250929050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614c27602b836139ed565b9150614c3282614bcb565b604082019050919050565b60006020820190508181036000830152614c5681614c1a565b9050919050565b7f43433a556e72656c656173656400000000000000000000000000000000000000600082015250565b6000614c93600d836139ed565b9150614c9e82614c5d565b602082019050919050565b60006020820190508181036000830152614cc281614c86565b9050919050565b7f43433a5075626c696353616c6549735061757365640000000000000000000000600082015250565b6000614cff6015836139ed565b9150614d0a82614cc9565b602082019050919050565b60006020820190508181036000830152614d2e81614cf2565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000614d91602c836139ed565b9150614d9c82614d35565b604082019050919050565b60006020820190508181036000830152614dc081614d84565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614e526029836139ed565b9150614e5d82614df6565b604082019050919050565b60006020820190508181036000830152614e8181614e45565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614ee4602a836139ed565b9150614eef82614e88565b604082019050919050565b60006020820190508181036000830152614f1381614ed7565b9050919050565b7f43433a4368726f6d69756d53616c654973506175736564000000000000000000600082015250565b6000614f506017836139ed565b9150614f5b82614f1a565b602082019050919050565b60006020820190508181036000830152614f7f81614f43565b9050919050565b600082825260208201905092915050565b614fa081613a9d565b82525050565b6000614fb28383614f97565b60208301905092915050565b6000614fc982613d46565b614fd38185614f86565b9350614fde83613d62565b8060005b8381101561500f578151614ff68882614fa6565b975061500183613d8a565b925050600181019050614fe2565b5085935050505092915050565b60006040820190506150316000830185614990565b81810360208301526150438184614fbe565b90509392505050565b6000602082840312156150625761506161391d565b5b600061507084828501614aa7565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006150b382613edb565b91506150be83613edb565b9250828210156150d1576150d0615079565b5b828203905092915050565b60006150e782613edb565b91506150f283613edb565b92508263ffffffff0382111561510b5761510a615079565b5b828201905092915050565b600061512182613edb565b915063ffffffff820361513757615136615079565b5b600182019050919050565b61514b81613bf2565b82525050565b60006080820190506151666000830187614990565b6151736020830186614997565b6151806040830185615142565b61518d6060830184615142565b95945050505050565b60006151a182613a9d565b91506151ac83613a9d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156151e5576151e4615079565b5b828202905092915050565b6151f981613a9d565b82525050565b60006040820190506152146000830185614990565b61522160208301846151f0565b9392505050565b7f43433a426164546f6b656e496400000000000000000000000000000000000000600082015250565b600061525e600d836139ed565b915061526982615228565b602082019050919050565b6000602082019050818103600083015261528d81615251565b9050919050565b60006040820190506152a96000830185613fdf565b6152b66020830184613bc8565b9392505050565b600067ffffffffffffffff8211156152d8576152d761400e565b5b6152e182613a31565b9050602081019050919050565b60006153016152fc846152bd565b61406e565b90508281526020810184848401111561531d5761531c614462565b5b6153288482856139fe565b509392505050565b600082601f83011261534557615344614009565b5b81516153558482602086016152ee565b91505092915050565b6000602082840312156153745761537361391d565b5b600082015167ffffffffffffffff81111561539257615391613922565b5b61539e84828501615330565b91505092915050565b600081905092915050565b7f68747470733a2f2f636f6c6c6563742d636f64652e636f6d2f6170692f746f6b60008201527f656e2f6575636c69642f00000000000000000000000000000000000000000000602082015250565b600061540e602a836153a7565b9150615419826153b2565b602a82019050919050565b600061542f826139e2565b61543981856153a7565b93506154498185602086016139fe565b80840191505092915050565b7f2f6d657461646174613f763d3126686173683d00000000000000000000000000600082015250565b600061548b6013836153a7565b915061549682615455565b601382019050919050565b7f26666f726d756c613d0000000000000000000000000000000000000000000000600082015250565b60006154d76009836153a7565b91506154e2826154a1565b600982019050919050565b60006154f882615401565b91506155048286615424565b915061550f8261547e565b915061551b8285615424565b9150615526826154ca565b91506155328284615424565b9150819050949350505050565b600061554a82613a9d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361557c5761557b615079565b5b600182019050919050565b600061559282613a9d565b915061559d83613a9d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156155d2576155d1615079565b5b828201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006156396026836139ed565b9150615644826155dd565b604082019050919050565b600060208201905081810360008301526156688161562c565b9050919050565b7f43433a536f6c644f757400000000000000000000000000000000000000000000600082015250565b60006156a5600a836139ed565b91506156b08261566f565b602082019050919050565b600060208201905081810360008301526156d481615698565b9050919050565b7f43433a5175616e746974794e6f74417661696c61626c65000000000000000000600082015250565b60006157116017836139ed565b915061571c826156db565b602082019050919050565b6000602082019050818103600083015261574081615704565b9050919050565b7f43433a42616456616c7565000000000000000000000000000000000000000000600082015250565b600061577d600b836139ed565b915061578882615747565b602082019050919050565b600060208201905081810360008301526157ac81615770565b9050919050565b60006080820190506157c86000830187613b32565b6157d56020830186613b32565b6157e26040830185613bc8565b6157ef6060830184613bc8565b95945050505050565b61580181613f57565b811461580c57600080fd5b50565b60008151905061581e816157f8565b92915050565b60006020828403121561583a5761583961391d565b5b60006158488482850161580f565b91505092915050565b6000819050919050565b600061587661587161586c84613b00565b615851565b613b00565b9050919050565b60006158888261585b565b9050919050565b600061589a8261587d565b9050919050565b6158aa8161588f565b82525050565b8082525050565b6158c081613f57565b82525050565b60006060820190506158db60008301866158a1565b6158e860208301856158b0565b6158f560408301846158b7565b949350505050565b60008151905061590c81613eeb565b92915050565b6000602082840312156159285761592761391d565b5b6000615936848285016158fd565b91505092915050565b600061594a82613a9d565b915061595583613a9d565b92508282101561596857615967615079565b5b828203905092915050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006159cf602c836139ed565b91506159da82615973565b604082019050919050565b600060208201905081810360008301526159fe816159c2565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b6000615a616029836139ed565b9150615a6c82615a05565b604082019050919050565b60006020820190508181036000830152615a9081615a54565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615af36024836139ed565b9150615afe82615a97565b604082019050919050565b60006020820190508181036000830152615b2281615ae6565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615b5f6019836139ed565b9150615b6a82615b29565b602082019050919050565b60006020820190508181036000830152615b8e81615b52565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615bf16032836139ed565b9150615bfc82615b95565b604082019050919050565b60006020820190508181036000830152615c2081615be4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000615c6182613a9d565b9150615c6c83613a9d565b925082615c7c57615c7b615c27565b5b828204905092915050565b6000615c9282613a9d565b9150615c9d83613a9d565b925082615cad57615cac615c27565b5b828206905092915050565b6000615cc382613a9d565b915060008203615cd657615cd5615079565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000615d176020836139ed565b9150615d2282615ce1565b602082019050919050565b60006020820190508181036000830152615d4681615d0a565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615d7482615d4d565b615d7e8185615d58565b9350615d8e8185602086016139fe565b615d9781613a31565b840191505092915050565b6000608082019050615db76000830187613b32565b615dc46020830186613b32565b615dd16040830185613bc8565b8181036060830152615de38184615d69565b905095945050505050565b600081519050615dfd81613953565b92915050565b600060208284031215615e1957615e1861391d565b5b6000615e2784828501615dee565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615e666020836139ed565b9150615e7182615e30565b602082019050919050565b60006020820190508181036000830152615e9581615e59565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615ed2601c836139ed565b9150615edd82615e9c565b602082019050919050565b60006020820190508181036000830152615f0181615ec5565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122020037b565416393e6077e32d760cd6e829f3957cfb4b271314a695c04027a9ac64736f6c634300080f0033000000000000000000000000000000000000000000000000000000000000074e000000000000000000000000c0e28d054a6b412bb520a5447d450ed70c0a36940000000000000000000000005b70d3d52726d7aa02aec79ca1be84c2e027f1a0
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000074e000000000000000000000000c0e28d054a6b412bb520a5447d450ed70c0a36940000000000000000000000005b70d3d52726d7aa02aec79ca1be84c2e027f1a0
-----Decoded View---------------
Arg [0] : maxSupply (uint256): 1870
Arg [1] : randomizer_ (address): 0xC0E28D054A6b412bb520a5447d450Ed70c0A3694
Arg [2] : formula_ (address): 0x5b70D3D52726d7aA02aEc79Ca1bE84c2e027f1a0
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000000000074e
Arg [1] : 000000000000000000000000c0e28d054a6b412bb520a5447d450ed70c0a3694
Arg [2] : 0000000000000000000000005b70d3d52726d7aa02aec79ca1be84c2e027f1a0
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.