ERC-721
Overview
Max Total Supply
900 BW
Holders
271
Total Transfers
-
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
BlazingWomen
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; /*** * * * 8 888888888o 8 8888 .8. 8888888888',8888' 8 8888 b. 8 ,o888888o. * 8 8888 `88. 8 8888 .888. ,8',8888' 8 8888 888o. 8 8888 `88. * 8 8888 `88 8 8888 :88888. ,8',8888' 8 8888 Y88888o. 8 ,8 8888 `8. * 8 8888 ,88 8 8888 . `88888. ,8',8888' 8 8888 .`Y888888o. 8 88 8888 * 8 8888. ,88' 8 8888 .8. `88888. ,8',8888' 8 8888 8o. `Y888888o. 8 88 8888 * 8 8888888888 8 8888 .8`8. `88888. ,8',8888' 8 8888 8`Y8o. `Y88888o8 88 8888 * 8 8888 `88. 8 8888 .8' `8. `88888. ,8',8888' 8 8888 8 `Y8o. `Y8888 88 8888 8888888 * 8 8888 88 8 8888 .8' `8. `88888. ,8',8888' 8 8888 8 `Y8o. `Y8 `8 8888 .8' * 8 8888 ,88' 8 8888 .888888888. `88888. ,8',8888' 8 8888 8 `Y8o.` 8888 ,88' * 8 888888888P 8 888888888888 .8' `8. `88888. ,8',8888888888888 8 8888 8 `Yo `8888888P' * . . * `8.`888b ,8' ,o888888o. ,8. ,8. 8 8888888888 b. 8 * `8.`888b ,8'. 8888 `88. ,888. ,888. 8 8888 888o. 8 * `8.`888b ,8',8 8888 `8b .`8888. .`8888. 8 8888 Y88888o. 8 * `8.`888b .b ,8' 88 8888 `8b ,8.`8888. ,8.`8888. 8 8888 .`Y888888o. 8 * `8.`888b 88b ,8' 88 8888 88 ,8'8.`8888,8^8.`8888. 8 888888888888 8o. `Y888888o. 8 * `8.`888b .`888b,8' 88 8888 88 ,8' `8.`8888' `8.`8888. 8 8888 8`Y8o. `Y88888o8 * `8.`888b8.`8888' 88 8888 ,8P ,8' `8.`88' `8.`8888. 8 8888 8 `Y8o. `Y8888 * `8.`888`8.`88' `8 8888 ,8P ,8' `8.`' `8.`8888. 8 8888 8 `Y8o. `Y8 * `8.`8' `8,`' ` 8888 ,88' ,8' `8 `8.`8888. 8 8888 8 `Y8o.` * `8.` `8' `8888888P' ,8' ` `8.`8888. 8 888888888888 8 `Yo * * .... * .:-======:-=-: * :-====+**+==*+==- * -=============++===. * :=====++********++===. * ===+*####********====- * :+++##*####*#####*+===- * :: =********#*##*####*===. * -=-==#*********#**#*#*+==- * .:-=+#****#####*******==: * -==***#######****##*==- . * ===****#######****+=====--. * ====*#********#*====:... * ====+#########====== * ====+***#####*=-===- -. * .-====*******##*======-::=: * .:-======*********#*+====++++:. * :--==+************##*#*******=. * :+*#*******##*####**********#= * .-=+*##**####**#******************* * -+***********************************+ * :*******************************##****#+ * :*******************************##*****#- * ******#************#**+++====++********: * :****#*************==:---::----+******* * -****---:-=-==++=--:---:--::-=+******* * =*#=------:--:-------:---:---#*****+= * +*::::::-:--::---::--::-----#****+*: * +-:--:-----------=-===-=--=#****+* * =+------:-:----::--:----:=#****+= * -**-------::---:-:-::---+#****#- * .*=::::-::---:---:-:=++*#****#. * ========++++**********##**#* * ==++=++=+==-==-:::--=##**#- * ::::-::--:-::--:-::--*#**#. * .:-:::::::::::::::::::-#*##= * .-:--:::-:-:-:::::::::--=#*#* * .----::::-::-::::::-:::--=***#: * -:-:::-:-:--:-:::::::----=+#*#+ * ::-::::::-----:-::::-::---==**** * .:-:--::--::::---:::--:::---==**# * -::-:::-:::-:-----:-:-::-:=--=**# * .:::::-::::::---:::::::-:::-=-=+*# * ::::--::::----::-::::--:::-=-:==*#. * :::-:::::::::::::-::::-----=:-==*#. * ::-::::::::::---:--------:-=-=-=*#. * -:::::::::::::::--------=::---=+*#. * :::::::---:--------:-----:-==--+*#: * ::---------:::-----::::-=:---==#*#- * .----:-:::::--:-:-::--::-:=---+###+ * :-------:::::---::--:--:=-=--*####+ * :-:--:--:--:-----=--=-:=--=-:+#***#*- * .:--=-:=-:-------=-::-=--=-:. #*****#= * ::----:-=:----=---:---:=--:. **##*##*. * :::-::=:-------=--:-----::: =**#*###= * .-::--------:--:---:-:--::. *+ +*##. * :-:::---:::-::----:-:--.:. = .+** * .:::--::::::------:------ ...+= ************************************************************************************ ************************************************************************************ ************************************************************************************ * PROJECT: @PowerOfWomenNFT * FOUNDER: @leahsams & @PowerOfJack * ART: @leahsams * DEV: @ghooost0x2a ********************************** * @title: Blazing Women * @author: @ghooost0x2a ********************************** * ERC721B2FA - Ultra Low Gas - 2 Factor Authentication ***************************************************************** * ERC721B2FA is based on ERC721B low gas contract by @squuebo_nft * and the LockRegistry/Guardian contracts by @OwlOfMoistness ***************************************************************** */ import "./ERC721B2FAEnumLitePausable.sol"; import "./GuardianLiteB2FA.sol"; import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract BlazingWomen is ERC721B2FAEnumLitePausable, GuardianLiteB2FA { using MerkleProof for bytes32[]; using Address for address; using Strings for uint256; event Withdrawn(address indexed payee, uint256 weiAmount); uint256 public MAX_SUPPLY = 2500; address public POWERPASS_CONTRACT = 0xD3eBa4755429934F9ACF73B7d3bC82115446dfE5; /** * Phase 0: Mint Disabled * Phase 1+: For PowerPass Holders * Phase 2+: For Power List * Phase 3+: Public */ uint256 public mintPhase = 0; struct PhaseConfig { uint256 max_mints_per; uint256 price_per; uint256 price_per_fiveplus; uint256 price_per_tenplus; } PhaseConfig public powerPassHolderPhaseOneConf = PhaseConfig({ max_mints_per: 10, price_per: 0.04 ether, price_per_fiveplus: 0.038 ether, price_per_tenplus: 0.036 ether }); PhaseConfig public powerListPhaseTwoConf = PhaseConfig({ max_mints_per: 10, price_per: 0.06 ether, price_per_fiveplus: 0.057 ether, price_per_tenplus: 0.054 ether }); PhaseConfig public publicPhaseThreeConf = PhaseConfig({ max_mints_per: 4242, price_per: 0.08 ether, price_per_fiveplus: 0.076 ether, price_per_tenplus: 0.072 ether }); string internal baseURI = ""; string internal uriSuffix = ""; address public paymentRecipient = 0xA94F799A34887582987eC8C050f080e252B70A21; bytes32 private merkleRoot = 0; mapping(address => uint256) public powerPassHolderMints; mapping(address => uint256) public powerlistMints; mapping(address => uint256) public publicMints; constructor() ERC721B2FAEnumLitePausable("BlazingWomen", "BW", 1) {} fallback() external payable {} receive() external payable {} function setPowerPassHolderPhaseOneConf( uint256 maxMintsPer, uint256 pricePer, uint256 pricePerFivePlus, uint256 pricePerTenPlus ) external onlyDelegates { powerPassHolderPhaseOneConf.max_mints_per = maxMintsPer; powerPassHolderPhaseOneConf.price_per = pricePer; powerPassHolderPhaseOneConf.price_per_fiveplus = pricePerFivePlus; powerPassHolderPhaseOneConf.price_per_tenplus = pricePerTenPlus; } function setPowerListPhaseTwoConf( uint256 maxMintsPer, uint256 pricePer, uint256 pricePerFivePlus, uint256 pricePerTenPlus ) external onlyDelegates { powerListPhaseTwoConf.max_mints_per = maxMintsPer; powerListPhaseTwoConf.price_per = pricePer; powerListPhaseTwoConf.price_per_fiveplus = pricePerFivePlus; powerListPhaseTwoConf.price_per_tenplus = pricePerTenPlus; } function setPublicPhaseThreeConf( uint256 maxMintsPer, uint256 pricePer, uint256 pricePerFivePlus, uint256 pricePerTenPlus ) external onlyDelegates { publicPhaseThreeConf.max_mints_per = maxMintsPer; publicPhaseThreeConf.price_per = pricePer; publicPhaseThreeConf.price_per_fiveplus = pricePerFivePlus; publicPhaseThreeConf.price_per_tenplus = pricePerTenPlus; } function setMintPhase(uint256 newPhase) external onlyDelegates { mintPhase = newPhase; } function tokenURI(uint256 tokenId) external view override returns (string memory) { require( _exists(tokenId), "ERC721Metadata: URI query for nonexistent token" ); return bytes(baseURI).length > 0 ? string( abi.encodePacked(baseURI, tokenId.toString(), uriSuffix) ) : ""; } function updatePowerPassContractAddress(address new_addy) external onlyDelegates { POWERPASS_CONTRACT = new_addy; } function getPowerPassBalance(address addy) public view returns (uint256) { return IERC721(POWERPASS_CONTRACT).balanceOf(addy); } function getMerkleRoot() public view onlyDelegates returns (bytes32) { return merkleRoot; } function setMerkleRoot(bytes32 mRoot) external onlyDelegates { merkleRoot = mRoot; } function updateBlackListedApprovals( address[] calldata addys, bool[] calldata blacklisted ) external onlyDelegates { require( addys.length == blacklisted.length, "Nb addys doesn't match nb bools." ); for (uint256 i; i < addys.length; ++i) { _updateBlackListedApprovals(addys[i], blacklisted[i]); } } function isvalidMerkleProof(bytes32[] memory proof) public view returns (bool) { if (merkleRoot == 0) { return false; } bool proof_valid = proof.verify( merkleRoot, keccak256(abi.encodePacked(msg.sender)) ); return proof_valid; } function setBaseSuffixURI( string calldata newBaseURI, string calldata newURISuffix ) external onlyDelegates { baseURI = newBaseURI; uriSuffix = newURISuffix; } function setPaymentRecipient(address addy) external onlyDelegates { paymentRecipient = addy; } function setReducedMaxSupply(uint256 new_max_supply) external onlyDelegates { require(new_max_supply < MAX_SUPPLY, "Can only set a lower size."); require( new_max_supply >= totalSupply(), "New supply lower than current totalSupply" ); MAX_SUPPLY = new_max_supply; } // Mint fns function freeTeamMints(uint256 quantity, address[] memory recipients) external onlyDelegates { if (recipients.length == 1) { for (uint256 i = 0; i < quantity; i++) { _minty(1, recipients[0]); } } else { require( quantity == recipients.length, "Number of recipients doesn't match quantity." ); for (uint256 i = 0; i < recipients.length; i++) { _minty(1, recipients[i]); } } } function getTotalMintPrice(uint256 quantity, uint256 mintingPhase) public view returns (uint256) { uint256 totalPrice = 1 ether; if (quantity < 5) { if (mintingPhase == 1) { totalPrice = quantity * powerPassHolderPhaseOneConf.price_per; } else if (mintingPhase == 2) { totalPrice = quantity * powerListPhaseTwoConf.price_per; } else { totalPrice = quantity * publicPhaseThreeConf.price_per; } } else if (quantity >= 5 && quantity < 10) { if (mintingPhase == 1) { totalPrice = quantity * powerPassHolderPhaseOneConf.price_per_fiveplus; } else if (mintingPhase == 2) { totalPrice = quantity * powerListPhaseTwoConf.price_per_fiveplus; } else { totalPrice = quantity * publicPhaseThreeConf.price_per_fiveplus; } } else if (quantity >= 10) { if (mintingPhase == 1) { totalPrice = quantity * powerPassHolderPhaseOneConf.price_per_tenplus; } else if (mintingPhase == 2) { totalPrice = quantity * powerListPhaseTwoConf.price_per_tenplus; } else { totalPrice = quantity * publicPhaseThreeConf.price_per_tenplus; } } return totalPrice; } function powerPassMint(uint256 quantity) external payable { require( mintPhase >= 1 || _isDelegate(_msgSender()), "Power Pass Mint not open yet." ); uint256 powerPassBalance = getPowerPassBalance(_msgSender()); require( powerPassBalance > 0, "There are no Power Passes in your wallet!" ); uint256 maxAllowedToMint = (powerPassBalance * powerPassHolderPhaseOneConf.max_mints_per) - powerPassHolderMints[_msgSender()]; require(quantity <= maxAllowedToMint, "You cannot mint that many!"); uint256 totalPrice = getTotalMintPrice(quantity, 1); require(msg.value == totalPrice, "Wrong amount of ETH sent!"); powerPassHolderMints[_msgSender()] += quantity; _minty(quantity, _msgSender()); } // Pre-sale mint function powerListMint(uint256 quantity, bytes32[] memory proof) external payable { require( mintPhase >= 2 || _isDelegate(_msgSender()), "Powerlist mint not open yet!" ); uint256 maxAllowedToMint = powerListPhaseTwoConf.max_mints_per - powerlistMints[_msgSender()]; require(quantity <= maxAllowedToMint, "You cannot mint that many!"); uint256 totalPrice = getTotalMintPrice(quantity, 2); require(msg.value == totalPrice, "Wrong amount of ETH sent!"); require( isvalidMerkleProof(proof), "You are not authorized for pre-sale." ); powerlistMints[_msgSender()] += quantity; _minty(quantity, _msgSender()); } // Public Mint function publicMint(uint256 quantity) external payable { require( mintPhase >= 3 || _isDelegate(_msgSender()), "Public mint not open yet!" ); uint256 totalPrice = getTotalMintPrice(quantity, 3); require(msg.value == totalPrice, "Wrong amount of ETH sent!"); if (publicPhaseThreeConf.max_mints_per != 4242) { uint256 maxAllowedToMint = publicPhaseThreeConf.max_mints_per - publicMints[_msgSender()]; require(quantity <= maxAllowedToMint, "You cannot mint that many!"); publicMints[_msgSender()] += quantity; } _minty(quantity, _msgSender()); } function _minty(uint256 quantity, address addy) internal { require(quantity > 0, "Can't mint 0 tokens!"); require(quantity + totalSupply() <= MAX_SUPPLY, "Max supply reached!"); for (uint256 i = 0; i < quantity; i++) { _safeMint(addy, next()); } } //Just in case some ETH ends up in the contract so it doesn't remain stuck. function withdraw() external onlyDelegates { uint256 contract_balance = address(this).balance; address payable w_addy = payable(paymentRecipient); (bool success, ) = w_addy.call{value: (contract_balance)}(""); require(success, "Withdrawal failed!"); emit Withdrawn(w_addy, contract_balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @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] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} * * _Available since v4.7._ */ function verifyCalldata( bytes32[] calldata proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} * * _Available since v4.7._ */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). * * _Available since v4.7._ */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details. * * _Available since v4.7._ */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the merkle tree. uint256 leavesLen = leaves.length; uint256 totalHashes = proofFlags.length; // Check proof validity. require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof"); // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { return hashes[totalHashes - 1]; } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./ILockERC721.sol"; contract GuardianLiteB2FA { ILockERC721 public immutable LOCKABLE; mapping(address => address) public guardians; mapping(address => address) public pendingGuardians; event GuardianSet(address indexed guardian, address indexed user); event GuardianRenounce(address indexed guardian, address indexed user); event PendingGuardianSet( address indexed pendingGuardian, address indexed user ); /** * using address(this) when the Guardian is deployed in the same contract as the ERC721B */ constructor() { LOCKABLE = ILockERC721(address(this)); } function proposeGuardian(address _guardian) external { require(guardians[msg.sender] == address(0), "Guardian set"); require(msg.sender != _guardian, "Guardian must be a different wallet"); pendingGuardians[msg.sender] = _guardian; emit PendingGuardianSet(_guardian, msg.sender); } function acceptGuardianship(address _protege) external { require( pendingGuardians[_protege] == msg.sender, "Not the pending guardian" ); pendingGuardians[_protege] = address(0); guardians[_protege] = msg.sender; emit GuardianSet(msg.sender, _protege); } function renounce(address _tokenOwner) external { require(guardians[_tokenOwner] == msg.sender, "!guardian"); guardians[_tokenOwner] = address(0); emit GuardianRenounce(msg.sender, _tokenOwner); } function lockMany(uint256[] calldata _tokenIds) external { address owner; for (uint256 i = 0; i < _tokenIds.length; i++) { owner = LOCKABLE.ownerOf(_tokenIds[i]); require(guardians[owner] == msg.sender, "!guardian"); LOCKABLE.lockId(_tokenIds[i]); } } function unlockMany(uint256[] calldata _tokenIds) external { address owner; for (uint256 i = 0; i < _tokenIds.length; i++) { owner = LOCKABLE.ownerOf(_tokenIds[i]); require(guardians[owner] == msg.sender, "!guardian"); LOCKABLE.unlockId(_tokenIds[i]); } } /** Modified to grant temporary approval on the token, * to the guardian contract, before initiating transfer */ function unlockManyAndTransfer( uint256[] calldata _tokenIds, address _recipient ) external { address owner; for (uint256 i = 0; i < _tokenIds.length; i++) { owner = LOCKABLE.ownerOf(_tokenIds[i]); require(guardians[owner] == msg.sender, "!guardian"); LOCKABLE.temporaryApproval(_tokenIds[i]); LOCKABLE.unlockId(_tokenIds[i]); LOCKABLE.safeTransferFrom(owner, _recipient, _tokenIds[i]); } } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.14; /*** ************************************************************************* * ERC721B2FA - Ultra Low Gas - 2 Factor Authentication * * @author: @ghooost0x2a * ************************************************************************* * ERC721B2FA is a modified version of EnumerableLite, by @squuebo_nft * * and the LockRegistry/Guardian contracts by @OwlOfMoistness * ************************************************************************* * ::::::: :::::::: ::: * * :+: :+: :+: :+: :+: :+: :+: :+: * * +:+ :+:+ +:+ +:+ +:+ +:+ +:+ * * +#+ + +:+ +#++:+ +#+ +#++:++#++: * * +#+# +#+ +#+ +#+ +#+ +#+ +#+ * * #+# #+# #+# #+# #+# #+# #+# * * ####### ########## ### ### * *************************************************************************/ import "./ERC721BLockRegistry.sol"; import "./IBatch.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; //import "@openzeppelin/contracts/security/Pausable.sol"; abstract contract ERC721B2FAEnumLitePausable is ERC721BLockRegistry, IBatch, IERC721Enumerable { constructor( string memory _name, string memory _symbol, uint256 _offset ) ERC721BLockRegistry(_name, _symbol, _offset) {} function setDefaultRoyalty(address receiver, uint96 feeNumerator) external onlyDelegates { _setDefaultRoyalty(receiver, feeNumerator); } function deleteDefaultRoyalty() external onlyDelegates { _deleteDefaultRoyalty(); } function setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) external onlyDelegates { _setTokenRoyalty(tokenId, receiver, feeNumerator); } function resetTokenRoyalty(uint256 tokenId) external onlyDelegates { _resetTokenRoyalty(tokenId); } function isOwnerOf(address account, uint256[] calldata tokenIds) external view override returns (bool) { for (uint256 i; i < tokenIds.length; ++i) { if (_owners[tokenIds[i]] != account) return false; } return true; } function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721B) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256 tokenId) { uint256 count; for (uint256 i; i < _owners.length; ++i) { if (owner == _owners[i]) { if (count == index) return i; else ++count; } } require(false, "ERC721Enumerable: owner index out of bounds"); } function tokenByIndex(uint256 index) external view virtual override returns (uint256) { require( index < totalSupply(), "ERC721Enumerable: global index out of bounds" ); return index; } function totalSupply() public view override(ERC721B, IERC721Enumerable) returns (uint256) { return _owners.length - _offset; } // Modified to call ERC721BLockRegistry's safeTransferFrom (to account for 2FA) function transferBatch( address from, address to, uint256[] calldata tokenIds, bytes calldata data ) external override { for (uint256 i; i < tokenIds.length; ++i) { ERC721BLockRegistry.safeTransferFrom(from, to, tokenIds[i], data); } } function walletOfOwner(address account) external view override returns (uint256[] memory) { uint256 quantity = balanceOf(account); uint256[] memory wallet = new uint256[](quantity); for (uint256 i; i < quantity; ++i) { wallet[i] = tokenOfOwnerByIndex(account, i); } return wallet; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; import "./ERC721B.sol"; /** * Modified interface to add temporaryApproval for guardian contract */ interface ILockERC721 is IERC721 { function lockId(uint256 _id) external; function unlockId(uint256 _id) external; function freeId(uint256 _id, address _contract) external; function temporaryApproval(uint256 _id) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.13; interface IBatch { function isOwnerOf(address account, uint256[] calldata tokenIds) external view returns (bool); function transferBatch( address from, address to, uint256[] calldata tokenIds, bytes calldata data ) external; function walletOfOwner(address account) external view returns (uint256[] memory); }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.2; /* * ,_, * (',') * {/"\} * -"-"- */ import "./ERC721B.sol"; import "./LockRegistry.sol"; import "./ILockERC721.sol"; import "./UpdatableOperatorFilterer.sol"; import "./RevokableDefaultOperatorFilterer.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; abstract contract ERC721BLockRegistry is ERC721B, Pausable, RevokableDefaultOperatorFilterer, LockRegistry, ILockERC721 { constructor( string memory _name, string memory _symbol, uint256 _offset ) ERC721B(_name, _symbol, _offset) {} function setApprovalForAll(address operator, bool approved) public override(ERC721B, IERC721) onlyAllowedOperatorApproval(operator) { ERC721B.setApprovalForAll(operator, approved); } function approve(address operator, uint256 tokenId) public override(ERC721B, IERC721) onlyAllowedOperatorApproval(operator) { ERC721B.approve(operator, tokenId); } function transferFrom( address from, address to, uint256 tokenId ) public override(ERC721B, IERC721) onlyAllowedOperator(from) whenNotPaused { require(isUnlocked(tokenId), "Token is locked"); ERC721B.transferFrom(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) external override(ERC721B, IERC721) onlyAllowedOperator(from) whenNotPaused { require(isUnlocked(tokenId), "Token is locked"); ERC721B.safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public override(ERC721B, IERC721) onlyAllowedOperator(from) whenNotPaused { require(isUnlocked(tokenId), "Token is locked"); ERC721B.safeTransferFrom(from, to, tokenId, _data); } function owner() public view virtual override(Ownable, UpdatableOperatorFilterer) returns (address) { return Ownable.owner(); } /** * Added this function to be called (from an approvedContract's unlockManyAndTransfer) * so that the user doesn't need to provide authorization to the guardian contract, in advance */ function temporaryApproval(uint256 tokenId) external { require(_exists(tokenId), "Token !exist"); require(!isUnlocked(tokenId), "Token !locked"); require( LockRegistry.approvedContract[_msgSender()], "Not approved contract" ); ERC721B._approve(_msgSender(), tokenId); } function lockId(uint256 _id) external override { require(_exists(_id), "Token !exist"); _lockId(_id); } function unlockId(uint256 _id) external override { require(_exists(_id), "Token !exist"); _unlockId(_id); } function freeId(uint256 _id, address _contract) external override onlyDelegates { require(_exists(_id), "Token !exist"); _freeId(_id, _contract); } function togglePaused(bool pauseIt) external onlyDelegates { if (pauseIt == true) { _pause(); } else { _unpause(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @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 == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.15; /**************************************** * @author: squeebo_nft * * @team: GoldenX * **************************************** * Blimpie-ERC721 provides low-gas * * mints + transfers * ****************************************/ //INTERFACES import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; //CONTRACTS import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/token/common/ERC2981.sol"; abstract contract ERC721B is Context, ERC165, ERC2981, IERC721, IERC721Metadata { using Address for address; event BlacklistUpdate(address indexed addy, bool is_blacklisted); string private _name; string private _symbol; uint256 internal _offset; address[] internal _owners; mapping(uint256 => address) private _tokenApprovals; mapping(address => mapping(address => bool)) private _operatorApprovals; mapping(address => bool) public blacklisted_approvals; constructor( string memory name_, string memory symbol_, uint256 offset ) { _name = name_; _symbol = symbol_; _offset = offset; for (uint256 i; i < _offset; ++i) { _owners.push(address(0)); } } //public function balanceOf(address owner) public view virtual override returns (uint256) { require( owner != address(0), "ERC721: balance query for the zero address" ); uint256 count; for (uint256 i; i < _owners.length; ++i) { if (owner == _owners[i]) ++count; } return count; } function name() external view virtual override returns (string memory) { return _name; } function next() public view returns (uint256) { return _owners.length; } 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; } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165, ERC2981) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function symbol() external view virtual override returns (string memory) { return _symbol; } function totalSupply() public view virtual returns (uint256) { return _owners.length - _offset; } function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721B.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); } function getApproved(uint256 tokenId) public view virtual override returns (address) { require( _exists(tokenId), "ERC721: approved query for nonexistent token" ); return _tokenApprovals[tokenId]; } function _updateBlackListedApprovals(address addy, bool blacklisted) internal virtual { blacklisted_approvals[addy] = blacklisted; emit BlacklistUpdate(addy, blacklisted); } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { if (blacklisted_approvals[operator] == true) { return false; } return _operatorApprovals[owner][operator]; } function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); require( !blacklisted_approvals[operator], "This opperator is blacklisted." ); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } 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); } function safeTransferFrom( address from, address to, uint256 tokenId ) external virtual override { safeTransferFrom(from, to, tokenId, ""); } 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); } //internal 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" ); } function _exists(uint256 tokenId) internal view virtual returns (bool) { return tokenId < _owners.length && _owners[tokenId] != address(0); } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require( _exists(tokenId), "ERC721: operator query for nonexistent token" ); address owner = ERC721B.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } 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" ); } 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); _owners.push(to); emit Transfer(address(0), to, tokenId); } function _burn(uint256 tokenId) internal virtual { address owner = ERC721B.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _owners[tokenId] = address(0); _resetTokenRoyalty(tokenId); emit Transfer(owner, address(0), tokenId); } function _transfer( address from, address to, uint256 tokenId ) internal virtual { require( ERC721B.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); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } function _approve(address to, uint256 tokenId) internal virtual { require(!blacklisted_approvals[to], "This opperator is blacklisted."); _tokenApprovals[tokenId] = to; emit Approval(ERC721B.ownerOf(tokenId), to, tokenId); } 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; } } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./RevokableOperatorFilterer.sol"; /** * @title RevokableDefaultOperatorFilterer * @notice Inherits from RevokableOperatorFilterer and automatically subscribes to the default OpenSea subscription. * Note that OpenSea will disable creator fee enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. */ abstract contract RevokableDefaultOperatorFilterer is RevokableOperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() RevokableOperatorFilterer( 0x000000000000AAeB6D7670E522A718067333cd4E, DEFAULT_SUBSCRIPTION, true ) {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./IOperatorFilterRegistry.sol"; /** * @title UpdatableOperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. This contract allows the Owner to update the * OperatorFilterRegistry address via updateOperatorFilterRegistryAddress, including to the zero address, * which will bypass registry checks. * Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract UpdatableOperatorFilterer { error OperatorNotAllowed(address operator); error OnlyOwner(); IOperatorFilterRegistry public operatorFilterRegistry; constructor( address _registry, address subscriptionOrRegistrantToCopy, bool subscribe ) { IOperatorFilterRegistry registry = IOperatorFilterRegistry(_registry); operatorFilterRegistry = registry; // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(registry).code.length > 0) { if (subscribe) { registry.registerAndSubscribe( address(this), subscriptionOrRegistrantToCopy ); } else { if (subscriptionOrRegistrantToCopy != address(0)) { registry.registerAndCopyEntries( address(this), subscriptionOrRegistrantToCopy ); } else { registry.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } /** * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero * address, checks will be bypassed. OnlyOwner. */ function updateOperatorFilterRegistryAddress(address newRegistry) public virtual { if (msg.sender != owner()) { revert OnlyOwner(); } operatorFilterRegistry = IOperatorFilterRegistry(newRegistry); } /** * @dev assume the contract has an owner, but leave specific Ownable implementation up to inheriting contract */ function owner() public view virtual returns (address); function _checkFilterOperator(address operator) internal view virtual { IOperatorFilterRegistry registry = operatorFilterRegistry; // Check registry code length to facilitate testing in environments without a deployed registry. if ( address(registry) != address(0) && address(registry).code.length > 0 ) { if (!registry.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.2; /* * ,_, * (',') * {/"\} * -"-"- */ import "./Delegated.sol"; abstract contract LockRegistry is Delegated { mapping(address => bool) public approvedContract; mapping(uint256 => uint256) public lockCount; mapping(uint256 => mapping(uint256 => address)) public lockMap; mapping(uint256 => mapping(address => uint256)) public lockMapIndex; event TokenLocked( uint256 indexed tokenId, address indexed approvedContract ); event TokenUnlocked( uint256 indexed tokenId, address indexed approvedContract ); function isUnlocked(uint256 _id) public view returns (bool) { return lockCount[_id] == 0; } function updateApprovedContracts( address[] calldata _contracts, bool[] calldata _values ) external onlyDelegates { require(_contracts.length == _values.length, "!length"); for (uint256 i = 0; i < _contracts.length; i++) approvedContract[_contracts[i]] = _values[i]; } function _lockId(uint256 _id) internal { require(approvedContract[msg.sender], "Cannot update map"); require( lockMapIndex[_id][msg.sender] == 0, "ID already locked by caller" ); uint256 count = lockCount[_id] + 1; lockMap[_id][count] = msg.sender; lockMapIndex[_id][msg.sender] = count; lockCount[_id]++; emit TokenLocked(_id, msg.sender); } function _unlockId(uint256 _id) internal { require(approvedContract[msg.sender], "Cannot update map"); uint256 index = lockMapIndex[_id][msg.sender]; require(index != 0, "ID not locked by caller"); uint256 last = lockCount[_id]; if (index != last) { address lastContract = lockMap[_id][last]; lockMap[_id][index] = lastContract; lockMap[_id][last] = address(0); lockMapIndex[_id][lastContract] = index; } else lockMap[_id][index] = address(0); lockMapIndex[_id][msg.sender] = 0; lockCount[_id]--; emit TokenUnlocked(_id, msg.sender); } function _freeId(uint256 _id, address _contract) internal { require(!approvedContract[_contract], "Cannot update map"); uint256 index = lockMapIndex[_id][_contract]; require(index != 0, "ID not locked"); uint256 last = lockCount[_id]; if (index != last) { address lastContract = lockMap[_id][last]; lockMap[_id][index] = lastContract; lockMap[_id][last] = address(0); lockMapIndex[_id][lastContract] = index; } else lockMap[_id][index] = address(0); lockMapIndex[_id][_contract] = 0; lockCount[_id]--; emit TokenUnlocked(_id, _contract); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import "./UpdatableOperatorFilterer.sol"; import "./IOperatorFilterRegistry.sol"; /** * @title RevokableOperatorFilterer * @notice This contract is meant to allow contracts to permanently skip OperatorFilterRegistry checks if desired. The * Registry itself has an "unregister" function, but if the contract is ownable, the owner can re-register at * any point. As implemented, this abstract contract allows the contract owner to permanently skip the * OperatorFilterRegistry checks by calling revokeOperatorFilterRegistry. Once done, the registry * address cannot be further updated. * Note that OpenSea will still disable creator fee enforcement if filtered operators begin fulfilling orders * on-chain, eg, if the registry is revoked or bypassed. */ abstract contract RevokableOperatorFilterer is UpdatableOperatorFilterer { error RegistryHasBeenRevoked(); error InitialRegistryAddressCannotBeZeroAddress(); bool public isOperatorFilterRegistryRevoked; constructor( address _registry, address subscriptionOrRegistrantToCopy, bool subscribe ) UpdatableOperatorFilterer( _registry, subscriptionOrRegistrantToCopy, subscribe ) { // don't allow creating a contract with a permanently revoked registry if (_registry == address(0)) { revert InitialRegistryAddressCannotBeZeroAddress(); } } function _checkFilterOperator(address operator) internal view virtual override { if (address(operatorFilterRegistry) != address(0)) { super._checkFilterOperator(operator); } } /** * @notice Update the address that the contract will make OperatorFilter checks against. When set to the zero * address, checks will be permanently bypassed, and the address cannot be updated again. OnlyOwner. */ function updateOperatorFilterRegistryAddress(address newRegistry) public override { if (msg.sender != owner()) { revert OnlyOwner(); } // if registry has been revoked, do not allow further updates if (isOperatorFilterRegistryRevoked) { revert RegistryHasBeenRevoked(); } operatorFilterRegistry = IOperatorFilterRegistry(newRegistry); } /** * @notice Revoke the OperatorFilterRegistry address, permanently bypassing checks. OnlyOwner. */ function revokeOperatorFilterRegistry() public { if (msg.sender != owner()) { revert OnlyOwner(); } // if registry has been revoked, do not allow further updates if (isOperatorFilterRegistryRevoked) { revert RegistryHasBeenRevoked(); } // set to zero address to bypass checks operatorFilterRegistry = IOperatorFilterRegistry(address(0)); isOperatorFilterRegistryRevoked = true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "@openzeppelin/contracts/access/Ownable.sol"; contract Delegated is Ownable { mapping(address => bool) internal _delegates; modifier onlyDelegates() { require(_delegates[msg.sender], "Invalid delegate"); _; } constructor() Ownable() { setDelegate(owner(), true); } //onlyOwner function isDelegate(address addr) external view onlyOwner returns (bool) { return _delegates[addr]; } function _isDelegate(address addr) internal view returns (bool) { return _delegates[addr]; } function setDelegate(address addr, bool isDelegate_) public onlyOwner { _delegates[addr] = isDelegate_; } function transferOwnership(address newOwner) public virtual override onlyOwner { _delegates[newOwner] = true; super.transferOwnership(newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// 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/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 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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 (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InitialRegistryAddressCannotBeZeroAddress","type":"error"},{"inputs":[],"name":"OnlyOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"RegistryHasBeenRevoked","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"addy","type":"address"},{"indexed":false,"internalType":"bool","name":"is_blacklisted","type":"bool"}],"name":"BlacklistUpdate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"guardian","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"GuardianRenounce","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"guardian","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"GuardianSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingGuardian","type":"address"},{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"PendingGuardianSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"approvedContract","type":"address"}],"name":"TokenLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"approvedContract","type":"address"}],"name":"TokenUnlocked","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"payee","type":"address"},{"indexed":false,"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"LOCKABLE","outputs":[{"internalType":"contract ILockERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POWERPASS_CONTRACT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_protege","type":"address"}],"name":"acceptGuardianship","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"","type":"address"}],"name":"blacklisted_approvals","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_contract","type":"address"}],"name":"freeId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"address[]","name":"recipients","type":"address[]"}],"name":"freeTeamMints","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addy","type":"address"}],"name":"getPowerPassBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"mintingPhase","type":"uint256"}],"name":"getTotalMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"guardians","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isDelegate","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOperatorFilterRegistryRevoked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"isOwnerOf","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"isUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"isvalidMerkleProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"lockId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"lockMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"lockMapIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"next","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilterRegistry","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"pendingGuardians","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"powerListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"powerListPhaseTwoConf","outputs":[{"internalType":"uint256","name":"max_mints_per","type":"uint256"},{"internalType":"uint256","name":"price_per","type":"uint256"},{"internalType":"uint256","name":"price_per_fiveplus","type":"uint256"},{"internalType":"uint256","name":"price_per_tenplus","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"powerPassHolderMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"powerPassHolderPhaseOneConf","outputs":[{"internalType":"uint256","name":"max_mints_per","type":"uint256"},{"internalType":"uint256","name":"price_per","type":"uint256"},{"internalType":"uint256","name":"price_per_fiveplus","type":"uint256"},{"internalType":"uint256","name":"price_per_tenplus","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"powerPassMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"powerlistMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_guardian","type":"address"}],"name":"proposeGuardian","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"publicMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPhaseThreeConf","outputs":[{"internalType":"uint256","name":"max_mints_per","type":"uint256"},{"internalType":"uint256","name":"price_per","type":"uint256"},{"internalType":"uint256","name":"price_per_fiveplus","type":"uint256"},{"internalType":"uint256","name":"price_per_tenplus","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenOwner","type":"address"}],"name":"renounce","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revokeOperatorFilterRegistry","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseURI","type":"string"},{"internalType":"string","name":"newURISuffix","type":"string"}],"name":"setBaseSuffixURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"isDelegate_","type":"bool"}],"name":"setDelegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"mRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPhase","type":"uint256"}],"name":"setMintPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addy","type":"address"}],"name":"setPaymentRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMintsPer","type":"uint256"},{"internalType":"uint256","name":"pricePer","type":"uint256"},{"internalType":"uint256","name":"pricePerFivePlus","type":"uint256"},{"internalType":"uint256","name":"pricePerTenPlus","type":"uint256"}],"name":"setPowerListPhaseTwoConf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMintsPer","type":"uint256"},{"internalType":"uint256","name":"pricePer","type":"uint256"},{"internalType":"uint256","name":"pricePerFivePlus","type":"uint256"},{"internalType":"uint256","name":"pricePerTenPlus","type":"uint256"}],"name":"setPowerPassHolderPhaseOneConf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxMintsPer","type":"uint256"},{"internalType":"uint256","name":"pricePer","type":"uint256"},{"internalType":"uint256","name":"pricePerFivePlus","type":"uint256"},{"internalType":"uint256","name":"pricePerTenPlus","type":"uint256"}],"name":"setPublicPhaseThreeConf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"new_max_supply","type":"uint256"}],"name":"setReducedMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","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":"tokenId","type":"uint256"}],"name":"temporaryApproval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"pauseIt","type":"bool"}],"name":"togglePaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"tokenId","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":"tokenIds","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"transferBatch","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"unlockId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"unlockMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"unlockManyAndTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_contracts","type":"address[]"},{"internalType":"bool[]","name":"_values","type":"bool[]"}],"name":"updateApprovedContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addys","type":"address[]"},{"internalType":"bool[]","name":"blacklisted","type":"bool[]"}],"name":"updateBlackListedApprovals","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newRegistry","type":"address"}],"name":"updateOperatorFilterRegistryAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"new_addy","type":"address"}],"name":"updatePowerPassContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6109c4601255601380546001600160a01b03191673d3eba4755429934f9acf73b7d3bc82115446dfe517905560006014819055600a60a0819052668e1bc9bf04000060c0819052668700cc7577000060e0819052667fe5cf2bea0000610100819052601584905560169290925560175560185561012081905266d529ae9e86000061014081905266ca8132b032800061016081905266bfd8b6c1df0000610180819052601993909355601a91909155601b55601c556110926101a081905267011c37937e0800006101c081905267010e0198eaee00006101e081905266ffcb9e57d40000610200819052601d93909355601e91909155601f55602055610240604052610220908152602190620001169082620005e0565b50604080516020810190915260008152602290620001359082620005e0565b50602380546001600160a01b03191673a94f799a34887582987ec8c050f080e252b70a2117905560006024553480156200016e57600080fd5b506040518060400160405280600c81526020016b213630bd34b733abb7b6b2b760a11b81525060405180604001604052806002815260200161425760f01b81525060018282826daaeb6d7670e522a718067333cd4e733cc6cdda760b79bafa08df41ecfa224f810dceb660018282828888888260029081620001f19190620005e0565b506003620002008382620005e0565b50600481905560005b6004548110156200026757600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b03191690556200025f81620006ac565b905062000209565b5050600980546001600160a81b0319166101006001600160a01b038816908102919091179091558592503b159050620003ac5781156200030b57604051633e9f1edf60e11b81523060048201526001600160a01b038481166024830152821690637d3e3dbe906044015b600060405180830381600087803b158015620002ec57600080fd5b505af115801562000301573d6000803e3d6000fd5b50505050620003ac565b6001600160a01b03831615620003505760405163a0af290360e01b81523060048201526001600160a01b03848116602483015282169063a0af290390604401620002d1565b604051632210724360e11b81523060048201526001600160a01b03821690634420e48690602401600060405180830381600087803b1580156200039257600080fd5b505af1158015620003a7573d6000803e3d6000fd5b505050505b5050506001600160a01b0384169050620003d95760405163c49d17ad60e01b815260040160405180910390fd5b505050620003f6620003f06200041d60201b60201c565b62000421565b6200040c6200040462000473565b60016200048f565b50503060805250620006d492505050565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006200048a620004c460201b620032cf1760201c565b905090565b62000499620004d3565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b600a546001600160a01b031690565b33620004de62000473565b6001600160a01b031614620005395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200056657607f821691505b6020821081036200058757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620005db57600081815260208120601f850160051c81016020861015620005b65750805b601f850160051c820191505b81811015620005d757828155600101620005c2565b5050505b505050565b81516001600160401b03811115620005fc57620005fc6200053b565b62000614816200060d845462000551565b846200058d565b602080601f8311600181146200064c5760008415620006335750858301515b600019600386901b1c1916600185901b178555620005d7565b600085815260208120601f198616915b828110156200067d578886015182559484019460019091019084016200065c565b50858210156200069c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060018201620006cd57634e487b7160e01b600052601160045260246000fd5b5060010190565b608051615699620007286000396000818161062401528181611911015281816119f4015281816122e0015281816123c3015281816126cf015281816127b20152818161284a01526128e201526156996000f3fe60806040526004361061047e5760003560e01c806361dd0cfa11610253578063abc53e3011610143578063c87b56dd116100bb578063e250fd2311610082578063e250fd2314610f26578063e7c8089214610f46578063e985e9c514610f73578063ecba222a14610f93578063f2fde38b14610fb4578063f7f5326a14610fd457005b8063c87b56dd14610e83578063da541e0914610ea3578063dab3900f14610ec3578063db88125814610ee3578063dd4ad92914610f0357005b8063b534a5c41161010a578063b534a5c414610dc0578063b7c34a9c14610de0578063b88d4fde14610e00578063b8d1e53214610e20578063c097087314610e40578063c304555f14610e6357005b8063abc53e3014610cfe578063ac1855c114610d2b578063ac52e64414610d4b578063b0ccc31e14610d6b578063b1a6505f14610d9057005b80638da5cb5b116101d657806395d89b411161019d57806395d89b4114610c54578063998af13114610c695780639db79c6714610c89578063a0c1eeec14610ca9578063a22cb46514610cc9578063aa1b103f14610ce957005b80638da5cb5b14610bcc578063916ee35c14610be1578063943431bf14610bf457806394d216d614610c1457806395207ee114610c3457005b806372abc8b71161021a57806372abc8b714610b0e578063771fd76614610b3c5780637cb6475914610b6c57806380b9741014610b8c5780638a616bc014610bac57005b806361dd0cfa14610a495780636352211e14610a8c578063650b00f614610aac57806370a0823114610ad9578063715018a614610af957005b80632d1836f81161036e57806347028a5c116102f15780634f6ccce7116102b85780634f6ccce7146109a957806351bbf8d8146109c95780635944c753146109e95780635c975abb14610a095780635d7d033a14610a215780635ef9432a14610a3457005b806347028a5c1461091f578063495906571461093f5780634a994eef146109545780634c8fe526146109745780634d44660c1461098957005b80633ccfd60b116103355780633ccfd60b1461087d5780633fa6c1a91461089257806340a9c8df146108b257806342842e0e146108d2578063438b6300146108f257005b80632d1836f8146107d15780632db11544146108075780632f745c591461081a57806332cb6b0c1461083a5780633add14c81461085057005b806317881cbf116104015780632799cde0116103c85780632799cde0146106d15780632983c4b8146106f15780632a55205a146107115780632b1eaf29146107505780632cb34e13146107705780632cba81231461079057005b806317881cbf1461064657806318160ddd1461065c5780631dfe95a6146106715780631f76a7af1461069157806323b872dd146106b157005b80630777962711610445578063077796271461056c578063081812fc1461058c57806309308e5d146105ac578063095ea7b3146105f25780630b7766901461061257005b806301ffc9a71461048757806304634d8d146104bc578063046e1bd3146104dc5780630633b14a1461051457806306fdde031461054a57005b3661048557005b005b34801561049357600080fd5b506104a76104a2366004614857565b610ff4565b60405190151581526020015b60405180910390f35b3480156104c857600080fd5b506104856104d73660046148a0565b61101f565b3480156104e857600080fd5b506013546104fc906001600160a01b031681565b6040516001600160a01b0390911681526020016104b3565b34801561052057600080fd5b506104fc61052f3660046148d5565b6010602052600090815260409020546001600160a01b031681565b34801561055657600080fd5b5061055f611065565b6040516104b39190614942565b34801561057857600080fd5b506104a76105873660046148d5565b6110f7565b34801561059857600080fd5b506104fc6105a7366004614955565b611124565b3480156105b857600080fd5b506105e46105c736600461496e565b600f60209081526000928352604080842090915290825290205481565b6040519081526020016104b3565b3480156105fe57600080fd5b5061048561060d36600461499e565b6111ac565b34801561061e57600080fd5b506104fc7f000000000000000000000000000000000000000000000000000000000000000081565b34801561065257600080fd5b506105e460145481565b34801561066857600080fd5b506105e46111c5565b34801561067d57600080fd5b5061048561068c3660046149ca565b6111dc565b34801561069d57600080fd5b506104856106ac3660046148d5565b61121f565b3480156106bd57600080fd5b506104856106cc3660046149fc565b6112a8565b3480156106dd57600080fd5b506104856106ec366004614955565b611307565b3480156106fd57600080fd5b5061048561070c3660046148d5565b611338565b34801561071d57600080fd5b5061073161072c366004614a3d565b611389565b604080516001600160a01b0390931683526020830191909152016104b3565b34801561075c57600080fd5b506023546104fc906001600160a01b031681565b34801561077c57600080fd5b5061048561078b3660046148d5565b611437565b34801561079c57600080fd5b506104fc6107ab366004614a3d565b600e6020908152600092835260408084209091529082529020546001600160a01b031681565b3480156107dd57600080fd5b506104fc6107ec3660046148d5565b6011602052600090815260409020546001600160a01b031681565b610485610815366004614955565b611488565b34801561082657600080fd5b506105e461083536600461499e565b6115ac565b34801561084657600080fd5b506105e460125481565b34801561085c57600080fd5b506105e461086b3660046148d5565b60276020526000908152604090205481565b34801561088957600080fd5b50610485611677565b34801561089e57600080fd5b506104856108ad3660046149ca565b61178a565b3480156108be57600080fd5b506104856108cd366004614955565b6117cd565b3480156108de57600080fd5b506104856108ed3660046149fc565b6117fb565b3480156108fe57600080fd5b5061091261090d3660046148d5565b611864565b6040516104b39190614a5f565b34801561092b57600080fd5b5061048561093a366004614ae7565b611903565b34801561094b57600080fd5b506105e4611a9d565b34801561096057600080fd5b5061048561096f366004614b36565b611ad3565b34801561098057600080fd5b506005546105e4565b34801561099557600080fd5b506104a76109a4366004614b64565b611b06565b3480156109b557600080fd5b506105e46109c4366004614955565b611b88565b3480156109d557600080fd5b506104a76109e4366004614c8c565b611bf9565b3480156109f557600080fd5b50610485610a04366004614cc0565b611c5b565b348015610a1557600080fd5b5060095460ff166104a7565b610485610a2f366004614cfe565b611c95565b348015610a4057600080fd5b50610485611e0b565b348015610a5557600080fd5b50601554601654601754601854610a6c9392919084565b6040805194855260208501939093529183015260608201526080016104b3565b348015610a9857600080fd5b506104fc610aa7366004614955565b611e88565b348015610ab857600080fd5b506105e4610ac7366004614955565b600d6020526000908152604090205481565b348015610ae557600080fd5b506105e4610af43660046148d5565b611f14565b348015610b0557600080fd5b50610485611fe2565b348015610b1a57600080fd5b506104a7610b29366004614955565b6000908152600d60205260409020541590565b348015610b4857600080fd5b506104a7610b573660046148d5565b60086020526000908152604090205460ff1681565b348015610b7857600080fd5b50610485610b87366004614955565b611ff6565b348015610b9857600080fd5b506105e4610ba73660046148d5565b61202a565b348015610bb857600080fd5b50610485610bc7366004614955565b612099565b348015610bd857600080fd5b506104fc6120d9565b610485610bef366004614955565b6120ed565b348015610c0057600080fd5b50610485610c0f366004614955565b612240565b348015610c2057600080fd5b50610485610c2f36600461496e565b612274565b348015610c4057600080fd5b50610485610c4f366004614ae7565b6122d2565b348015610c6057600080fd5b5061055f61246c565b348015610c7557600080fd5b50610485610c84366004614955565b61247b565b348015610c9557600080fd5b506105e4610ca4366004614a3d565b61254c565b348015610cb557600080fd5b50610485610cc43660046149ca565b612632565b348015610cd557600080fd5b50610485610ce4366004614b36565b612675565b348015610cf557600080fd5b50610485612689565b348015610d0a57600080fd5b506105e4610d193660046148d5565b60266020526000908152604090205481565b348015610d3757600080fd5b50610485610d46366004614d44565b6126c1565b348015610d5757600080fd5b50610485610d66366004614d9a565b6129ac565b348015610d7757600080fd5b506009546104fc9061010090046001600160a01b031681565b348015610d9c57600080fd5b506104a7610dab3660046148d5565b600c6020526000908152604090205460ff1681565b348015610dcc57600080fd5b50610485610ddb366004614e46565b612aab565b348015610dec57600080fd5b50610485610dfb366004614955565b612b29565b348015610e0c57600080fd5b50610485610e1b366004614eda565b612c17565b348015610e2c57600080fd5b50610485610e3b3660046148d5565b612c71565b348015610e4c57600080fd5b50601954601a54601b54601c54610a6c9392919084565b348015610e6f57600080fd5b50610485610e7e3660046148d5565b612cfd565b348015610e8f57600080fd5b5061055f610e9e366004614955565b612e0c565b348015610eaf57600080fd5b50610485610ebe366004614f9d565b612eda565b348015610ecf57600080fd5b50610485610ede3660046148d5565b612f23565b348015610eef57600080fd5b50610485610efe366004614fba565b612ff2565b348015610f0f57600080fd5b50601d54601e54601f54602054610a6c9392919084565b348015610f3257600080fd5b50610485610f4136600461505f565b613106565b348015610f5257600080fd5b506105e4610f613660046148d5565b60256020526000908152604090205481565b348015610f7f57600080fd5b506104a7610f8e3660046150be565b613150565b348015610f9f57600080fd5b506009546104a790600160a81b900460ff1681565b348015610fc057600080fd5b50610485610fcf3660046148d5565b6131ac565b348015610fe057600080fd5b50610485610fef366004614d9a565b6131e0565b60006001600160e01b0319821663780e9d6360e01b14806110195750611019826132de565b92915050565b336000908152600b602052604090205460ff166110575760405162461bcd60e51b815260040161104e906150ec565b60405180910390fd5b611061828261331e565b5050565b60606002805461107490615116565b80601f01602080910402602001604051908101604052809291908181526020018280546110a090615116565b80156110ed5780601f106110c2576101008083540402835291602001916110ed565b820191906000526020600020905b8154815290600101906020018083116110d057829003601f168201915b5050505050905090565b60006111016133d8565b506001600160a01b0381166000908152600b602052604090205460ff165b919050565b600061112f82613437565b6111905760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161104e565b506000908152600660205260409020546001600160a01b031690565b816111b681613481565b6111c083836134a0565b505050565b6004546005546000916111d791615166565b905090565b336000908152600b602052604090205460ff1661120b5760405162461bcd60e51b815260040161104e906150ec565b601993909355601a91909155601b55601c55565b6001600160a01b038181166000908152601060205260409020541633146112585760405162461bcd60e51b815260040161104e90615179565b6001600160a01b03811660008181526010602052604080822080546001600160a01b03191690555133917f5b8f9622aeb5e504027e0bedd2e6ab42b294a529d87f5ef2ebf1dc0a1fe0f08191a350565b826001600160a01b03811633146112c2576112c233613481565b6112ca6135b0565b6000828152600d6020526040902054156112f65760405162461bcd60e51b815260040161104e9061519c565b6113018484846135f6565b50505050565b61131081613437565b61132c5760405162461bcd60e51b815260040161104e906151c5565b61133581613627565b50565b336000908152600b602052604090205460ff166113675760405162461bcd60e51b815260040161104e906150ec565b602380546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916113fe5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061141d906001600160601b0316876151eb565b6114279190615202565b91519350909150505b9250929050565b336000908152600b602052604090205460ff166114665760405162461bcd60e51b815260040161104e906150ec565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b60036014541015806114b857506114b8335b6001600160a01b03166000908152600b602052604090205460ff1690565b6115045760405162461bcd60e51b815260206004820152601960248201527f5075626c6963206d696e74206e6f74206f70656e207965742100000000000000604482015260640161104e565b600061151182600361254c565b90508034146115325760405162461bcd60e51b815260040161104e90615224565b601d54611092146115a25733600090815260276020526040812054601d5461155a9190615166565b90508083111561157c5760405162461bcd60e51b815260040161104e9061525b565b336000908152602760205260408120805485929061159b908490615292565b9091555050505b6110618233613767565b60008060005b60055481101561161a57600581815481106115cf576115cf6152a5565b6000918252602090912001546001600160a01b039081169086160361160a578382036115fe5791506110199050565b611607826152bb565b91505b611613816152bb565b90506115b2565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161104e565b336000908152600b602052604090205460ff166116a65760405162461bcd60e51b815260040161104e906150ec565b60235460405147916001600160a01b031690600090829084908381818185875af1925050503d80600081146116f7576040519150601f19603f3d011682016040523d82523d6000602084013e6116fc565b606091505b50509050806117425760405162461bcd60e51b81526020600482015260126024820152715769746864726177616c206661696c65642160701b604482015260640161104e565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58460405161177d91815260200190565b60405180910390a2505050565b336000908152600b602052604090205460ff166117b95760405162461bcd60e51b815260040161104e906150ec565b601d93909355601e91909155601f55602055565b6117d681613437565b6117f25760405162461bcd60e51b815260040161104e906151c5565b61133581613836565b826001600160a01b03811633146118155761181533613481565b61181d6135b0565b6000828152600d6020526040902054156118495760405162461bcd60e51b815260040161104e9061519c565b611301848484604051806020016040528060008152506139d6565b6060600061187183611f14565b90506000816001600160401b0381111561188d5761188d614bb8565b6040519080825280602002602001820160405280156118b6578160200160208202803683370190505b50905060005b828110156118fb576118ce85826115ac565b8282815181106118e0576118e06152a5565b60209081029190910101526118f4816152bb565b90506118bc565b509392505050565b6000805b82811015611301577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e858584818110611950576119506152a5565b905060200201356040518263ffffffff1660e01b815260040161197591815260200190565b602060405180830381865afa158015611992573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b691906152d4565b6001600160a01b038082166000908152601060205260409020549193501633146119f25760405162461bcd60e51b815260040161104e90615179565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340a9c8df858584818110611a3357611a336152a5565b905060200201356040518263ffffffff1660e01b8152600401611a5891815260200190565b600060405180830381600087803b158015611a7257600080fd5b505af1158015611a86573d6000803e3d6000fd5b505050508080611a95906152bb565b915050611907565b336000908152600b602052604081205460ff16611acc5760405162461bcd60e51b815260040161104e906150ec565b5060245490565b611adb6133d8565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000805b82811015611b7b57846001600160a01b03166005858584818110611b3057611b306152a5565b9050602002013581548110611b4757611b476152a5565b6000918252602090912001546001600160a01b031614611b6b576000915050611b81565b611b74816152bb565b9050611b0a565b50600190505b9392505050565b6000611b926111c5565b8210611bf55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161104e565b5090565b6024546000908103611c0d57506000919050565b6024546040516bffffffffffffffffffffffff193360601b166020820152600091611b81916034016040516020818303038152906040528051906020012085613a089092919063ffffffff16565b336000908152600b602052604090205460ff16611c8a5760405162461bcd60e51b815260040161104e906150ec565b6111c0838383613a1e565b6002601454101580611cab5750611cab3361149a565b611cf75760405162461bcd60e51b815260206004820152601c60248201527f506f7765726c697374206d696e74206e6f74206f70656e207965742100000000604482015260640161104e565b33600090815260266020526040812054601954611d149190615166565b905080831115611d365760405162461bcd60e51b815260040161104e9061525b565b6000611d4384600261254c565b9050803414611d645760405162461bcd60e51b815260040161104e90615224565b611d6d83611bf9565b611dc55760405162461bcd60e51b8152602060048201526024808201527f596f7520617265206e6f7420617574686f72697a656420666f72207072652d7360448201526330b6329760e11b606482015260840161104e565b8360266000335b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254611dfb9190615292565b9091555061130190508433613767565b611e136120d9565b6001600160a01b0316336001600160a01b031614611e4457604051635fc483c560e01b815260040160405180910390fd5b600954600160a81b900460ff1615611e6f57604051631551a48f60e11b815260040160405180910390fd5b60098054610100600160b01b031916600160a81b179055565b60008060058381548110611e9e57611e9e6152a5565b6000918252602090912001546001600160a01b03169050806110195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161104e565b60006001600160a01b038216611f7f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161104e565b6000805b600554811015611fdb5760058181548110611fa057611fa06152a5565b6000918252602090912001546001600160a01b0390811690851603611fcb57611fc8826152bb565b91505b611fd4816152bb565b9050611f83565b5092915050565b611fea6133d8565b611ff46000613ae9565b565b336000908152600b602052604090205460ff166120255760405162461bcd60e51b815260040161104e906150ec565b602455565b6013546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401602060405180830381865afa158015612075573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101991906152f1565b336000908152600b602052604090205460ff166120c85760405162461bcd60e51b815260040161104e906150ec565b600090815260016020526040812055565b60006111d7600a546001600160a01b031690565b600160145410158061210357506121033361149a565b61214f5760405162461bcd60e51b815260206004820152601d60248201527f506f7765722050617373204d696e74206e6f74206f70656e207965742e000000604482015260640161104e565b600061215a3361202a565b9050600081116121be5760405162461bcd60e51b815260206004820152602960248201527f546865726520617265206e6f20506f7765722050617373657320696e20796f75604482015268722077616c6c65742160b81b606482015260840161104e565b336000908152602560205260408120546015546121db90846151eb565b6121e59190615166565b9050808311156122075760405162461bcd60e51b815260040161104e9061525b565b600061221484600161254c565b90508034146122355760405162461bcd60e51b815260040161104e90615224565b836025600033611dcc565b336000908152600b602052604090205460ff1661226f5760405162461bcd60e51b815260040161104e906150ec565b601455565b336000908152600b602052604090205460ff166122a35760405162461bcd60e51b815260040161104e906150ec565b6122ac82613437565b6122c85760405162461bcd60e51b815260040161104e906151c5565b6110618282613b3b565b6000805b82811015611301577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e85858481811061231f5761231f6152a5565b905060200201356040518263ffffffff1660e01b815260040161234491815260200190565b602060405180830381865afa158015612361573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238591906152d4565b6001600160a01b038082166000908152601060205260409020549193501633146123c15760405162461bcd60e51b815260040161104e90615179565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632799cde0858584818110612402576124026152a5565b905060200201356040518263ffffffff1660e01b815260040161242791815260200190565b600060405180830381600087803b15801561244157600080fd5b505af1158015612455573d6000803e3d6000fd5b505050508080612464906152bb565b9150506122d6565b60606003805461107490615116565b61248481613437565b6124a05760405162461bcd60e51b815260040161104e906151c5565b6000818152600d60205260409020546124eb5760405162461bcd60e51b815260206004820152600d60248201526c151bdad95b88085b1bd8dad959609a1b604482015260640161104e565b336000908152600c602052604090205460ff166125425760405162461bcd60e51b8152602060048201526015602482015274139bdd08185c1c1c9bdd99590818dbdb9d1c9858dd605a1b604482015260640161104e565b6113353382613cf1565b6000670de0b6b3a7640000600584101561259e578260010361257c5760165461257590856151eb565b9050611b81565b8260020361259157601a5461257590856151eb565b601e5461257590856151eb565b600584101580156125af5750600a84105b156125eb57826001036125c95760175461257590856151eb565b826002036125de57601b5461257590856151eb565b601f5461257590856151eb565b600a8410611b8157826001036126085760185461257590856151eb565b8260020361261d57601c5461257590856151eb565b60205461262a90856151eb565b949350505050565b336000908152600b602052604090205460ff166126615760405162461bcd60e51b815260040161104e906150ec565b601593909355601691909155601755601855565b8161267f81613481565b6111c08383613dc8565b336000908152600b602052604090205460ff166126b85760405162461bcd60e51b815260040161104e906150ec565b611ff460008055565b6000805b838110156129a5577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316636352211e86868481811061270e5761270e6152a5565b905060200201356040518263ffffffff1660e01b815260040161273391815260200190565b602060405180830381865afa158015612750573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061277491906152d4565b6001600160a01b038082166000908152601060205260409020549193501633146127b05760405162461bcd60e51b815260040161104e90615179565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663998af1318686848181106127f1576127f16152a5565b905060200201356040518263ffffffff1660e01b815260040161281691815260200190565b600060405180830381600087803b15801561283057600080fd5b505af1158015612844573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166340a9c8df868684818110612889576128896152a5565b905060200201356040518263ffffffff1660e01b81526004016128ae91815260200190565b600060405180830381600087803b1580156128c857600080fd5b505af11580156128dc573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166342842e0e8385888886818110612923576129236152a5565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561297a57600080fd5b505af115801561298e573d6000803e3d6000fd5b50505050808061299d906152bb565b9150506126c5565b5050505050565b336000908152600b602052604090205460ff166129db5760405162461bcd60e51b815260040161104e906150ec565b828114612a145760405162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b604482015260640161104e565b60005b838110156129a557828282818110612a3157612a316152a5565b9050602002016020810190612a469190614f9d565b600c6000878785818110612a5c57612a5c6152a5565b9050602002016020810190612a7191906148d5565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612aa3816152bb565b915050612a17565b60005b83811015612b2057612b108787878785818110612acd57612acd6152a5565b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c1792505050565b612b19816152bb565b9050612aae565b50505050505050565b336000908152600b602052604090205460ff16612b585760405162461bcd60e51b815260040161104e906150ec565b6012548110612ba95760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c79207365742061206c6f7765722073697a652e000000000000604482015260640161104e565b612bb16111c5565b811015612c125760405162461bcd60e51b815260206004820152602960248201527f4e657720737570706c79206c6f776572207468616e2063757272656e7420746f60448201526874616c537570706c7960b81b606482015260840161104e565b601255565b836001600160a01b0381163314612c3157612c3133613481565b612c396135b0565b6000838152600d602052604090205415612c655760405162461bcd60e51b815260040161104e9061519c565b6129a5858585856139d6565b612c796120d9565b6001600160a01b0316336001600160a01b031614612caa57604051635fc483c560e01b815260040160405180910390fd5b600954600160a81b900460ff1615612cd557604051631551a48f60e11b815260040160405180910390fd5b600980546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b336000908152601060205260409020546001600160a01b031615612d525760405162461bcd60e51b815260206004820152600c60248201526b11dd585c991a585b881cd95d60a21b604482015260640161104e565b6001600160a01b0381163303612db65760405162461bcd60e51b815260206004820152602360248201527f477561726469616e206d757374206265206120646966666572656e742077616c6044820152621b195d60ea1b606482015260840161104e565b3360008181526011602052604080822080546001600160a01b0319166001600160a01b038616908117909155905190917f503d1e4f800a36ee58e59b969fc42121ae1ebf3d1a20b558d5248d879427522c91a350565b6060612e1782613437565b612e7b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161104e565b600060218054612e8a90615116565b905011612ea65760405180602001604052806000815250611019565b6021612eb183613ef5565b6022604051602001612ec59392919061537d565b60405160208183030381529060405292915050565b336000908152600b602052604090205460ff16612f095760405162461bcd60e51b815260040161104e906150ec565b801515600103612f1b57611335613f87565b611335613fe1565b6001600160a01b03818116600090815260116020526040902054163314612f8c5760405162461bcd60e51b815260206004820152601860248201527f4e6f74207468652070656e64696e6720677561726469616e0000000000000000604482015260640161104e565b6001600160a01b038116600081815260116020908152604080832080546001600160a01b031990811690915560109092528083208054339316831790555190917fc3ce29e3ab42e524b6f6f1b4d3674898d503ee3577a64ac87b555904ebc1413891a350565b336000908152600b602052604090205460ff166130215760405162461bcd60e51b815260040161104e906150ec565b805160010361306c5760005b828110156111c05761305a60018360008151811061304d5761304d6152a5565b6020026020010151613767565b80613064816152bb565b91505061302d565b805182146130d15760405162461bcd60e51b815260206004820152602c60248201527f4e756d626572206f6620726563697069656e747320646f65736e2774206d617460448201526b31b41038bab0b73a34ba3c9760a11b606482015260840161104e565b60005b81518110156111c0576130f4600183838151811061304d5761304d6152a5565b806130fe816152bb565b9150506130d4565b336000908152600b602052604090205460ff166131355760405162461bcd60e51b815260040161104e906150ec565b60216131428486836153fe565b5060226129a58284836153fe565b6001600160a01b03811660009081526008602052604081205460ff16151560010361317d57506000611019565b506001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6131b46133d8565b6001600160a01b0381166000908152600b60205260409020805460ff191660011790556113358161401a565b336000908152600b602052604090205460ff1661320f5760405162461bcd60e51b815260040161104e906150ec565b82811461325e5760405162461bcd60e51b815260206004820181905260248201527f4e6220616464797320646f65736e2774206d61746368206e6220626f6f6c732e604482015260640161104e565b60005b838110156129a5576132bf85858381811061327e5761327e6152a5565b905060200201602081019061329391906148d5565b8484848181106132a5576132a56152a5565b90506020020160208101906132ba9190614f9d565b614090565b6132c8816152bb565b9050613261565b600a546001600160a01b031690565b60006001600160e01b031982166380ac58cd60e01b148061330f57506001600160e01b03198216635b5e139f60e01b145b806110195750611019826140ef565b6127106001600160601b03821611156133495760405162461bcd60e51b815260040161104e906154bd565b6001600160a01b03821661339f5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161104e565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b336133e16120d9565b6001600160a01b031614611ff45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161104e565b60055460009082108015611019575060006001600160a01b031660058381548110613464576134646152a5565b6000918252602090912001546001600160a01b0316141592915050565b60095461010090046001600160a01b0316156113355761133581614124565b60006134ab82611e88565b9050806001600160a01b0316836001600160a01b0316036135185760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161104e565b336001600160a01b038216148061353457506135348133613150565b6135a65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161104e565b6111c08383613cf1565b60095460ff1615611ff45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161104e565b61360033826141eb565b61361c5760405162461bcd60e51b815260040161104e90615507565b6111c08383836142ad565b336000908152600c602052604090205460ff166136565760405162461bcd60e51b815260040161104e90615558565b6000818152600f60209081526040808320338452909152902054156136bd5760405162461bcd60e51b815260206004820152601b60248201527f494420616c7265616479206c6f636b65642062792063616c6c65720000000000604482015260640161104e565b6000818152600d60205260408120546136d7906001615292565b6000838152600e60209081526040808320848452825280832080546001600160a01b03191633908117909155868452600f83528184209084528252808320849055858352600d9091528120805492935090613731836152bb565b9091555050604051339083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a35050565b600082116137ae5760405162461bcd60e51b815260206004820152601460248201527343616e2774206d696e74203020746f6b656e732160601b604482015260640161104e565b6012546137b96111c5565b6137c39084615292565b11156138075760405162461bcd60e51b81526020600482015260136024820152724d617820737570706c7920726561636865642160681b604482015260640161104e565b60005b828110156111c0576138248261381f60055490565b614403565b8061382e816152bb565b91505061380a565b336000908152600c602052604090205460ff166138655760405162461bcd60e51b815260040161104e90615558565b6000818152600f60209081526040808320338452909152812054908190036138cf5760405162461bcd60e51b815260206004820152601760248201527f4944206e6f74206c6f636b65642062792063616c6c6572000000000000000000604482015260640161104e565b6000828152600d6020526040902054818114613945576000838152600e602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155868452600f8352818420908452909152902082905561396d565b6000838152600e60209081526040808320858452909152902080546001600160a01b03191690555b6000838152600f602090815260408083203384528252808320839055858352600d909152812080549161399f83615583565b9091555050604051339084907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a3505050565b6139e033836141eb565b6139fc5760405162461bcd60e51b815260040161104e90615507565b6113018484848461441d565b600082613a158584614450565b14949350505050565b6127106001600160601b0382161115613a495760405162461bcd60e51b815260040161104e906154bd565b6001600160a01b038216613a9f5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d65746572730000000000604482015260640161104e565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0381166000908152600c602052604090205460ff1615613b745760405162461bcd60e51b815260040161104e90615558565b6000828152600f602090815260408083206001600160a01b038516845290915281205490819003613bd75760405162461bcd60e51b815260206004820152600d60248201526c1251081b9bdd081b1bd8dad959609a1b604482015260640161104e565b6000838152600d6020526040902054818114613c4d576000848152600e602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155878452600f83528184209084529091529020829055613c75565b6000848152600e60209081526040808320858452909152902080546001600160a01b03191690555b6000848152600f602090815260408083206001600160a01b03871684528252808320839055868352600d9091528120805491613cb083615583565b90915550506040516001600160a01b0384169085907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a350505050565b6001600160a01b03821660009081526008602052604090205460ff1615613d5a5760405162461bcd60e51b815260206004820152601e60248201527f54686973206f7070657261746f7220697320626c61636b6c69737465642e0000604482015260640161104e565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613d8f82611e88565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b336001600160a01b03831603613e205760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161104e565b6001600160a01b03821660009081526008602052604090205460ff1615613e895760405162461bcd60e51b815260206004820152601e60248201527f54686973206f7070657261746f7220697320626c61636b6c69737465642e0000604482015260640161104e565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60606000613f0283614495565b60010190506000816001600160401b03811115613f2157613f21614bb8565b6040519080825280601f01601f191660200182016040528015613f4b576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084613f5557509392505050565b613f8f6135b0565b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613fc43390565b6040516001600160a01b03909116815260200160405180910390a1565b613fe961456d565b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33613fc4565b6140226133d8565b6001600160a01b0381166140875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161104e565b61133581613ae9565b6001600160a01b038216600081815260086020908152604091829020805460ff191685151590811790915591519182527ff8c135050097fab433dee08c659e48cb9abde02b5aac510ce02e618b2569d168910160405180910390a25050565b60006001600160e01b0319821663152a902d60e11b148061101957506301ffc9a760e01b6001600160e01b0319831614611019565b60095461010090046001600160a01b0316801580159061414e57506000816001600160a01b03163b115b1561106157604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa15801561419f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141c3919061559a565b61106157604051633b79c77360e21b81526001600160a01b038316600482015260240161104e565b60006141f682613437565b6142575760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161104e565b600061426283611e88565b9050806001600160a01b0316846001600160a01b0316148061429d5750836001600160a01b031661429284611124565b6001600160a01b0316145b8061262a575061262a8185613150565b826001600160a01b03166142c082611e88565b6001600160a01b0316146143285760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161104e565b6001600160a01b03821661438a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161104e565b614395600082613cf1565b81600582815481106143a9576143a96152a5565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6110618282604051806020016040528060008152506145b6565b6144288484846142ad565b614434848484846145e9565b6113015760405162461bcd60e51b815260040161104e906155b7565b600081815b84518110156118fb5761448182868381518110614474576144746152a5565b60200260200101516146ea565b91508061448d816152bb565b915050614455565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106144d45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614500576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061451e57662386f26fc10000830492506010015b6305f5e1008310614536576305f5e100830492506008015b612710831061454a57612710830492506004015b6064831061455c576064830492506002015b600a83106110195760010192915050565b60095460ff16611ff45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161104e565b6145c08383614719565b6145cd60008484846145e9565b6111c05760405162461bcd60e51b815260040161104e906155b7565b60006001600160a01b0384163b156146df57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061462d903390899088908890600401615609565b6020604051808303816000875af1925050508015614668575060408051601f3d908101601f1916820190925261466591810190615646565b60015b6146c5573d808015614696576040519150601f19603f3d011682016040523d82523d6000602084013e61469b565b606091505b5080516000036146bd5760405162461bcd60e51b815260040161104e906155b7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061262a565b506001949350505050565b6000818310614706576000828152602084905260409020611b81565b6000838152602083905260409020611b81565b6001600160a01b03821661476f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161104e565b61477881613437565b156147c55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161104e565b6005805460018101825560009182527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461133557600080fd5b60006020828403121561486957600080fd5b8135611b8181614841565b6001600160a01b038116811461133557600080fd5b80356001600160601b038116811461111f57600080fd5b600080604083850312156148b357600080fd5b82356148be81614874565b91506148cc60208401614889565b90509250929050565b6000602082840312156148e757600080fd5b8135611b8181614874565b60005b8381101561490d5781810151838201526020016148f5565b50506000910152565b6000815180845261492e8160208601602086016148f2565b601f01601f19169290920160200192915050565b602081526000611b816020830184614916565b60006020828403121561496757600080fd5b5035919050565b6000806040838503121561498157600080fd5b82359150602083013561499381614874565b809150509250929050565b600080604083850312156149b157600080fd5b82356149bc81614874565b946020939093013593505050565b600080600080608085870312156149e057600080fd5b5050823594602084013594506040840135936060013592509050565b600080600060608486031215614a1157600080fd5b8335614a1c81614874565b92506020840135614a2c81614874565b929592945050506040919091013590565b60008060408385031215614a5057600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015614a9757835183529284019291840191600101614a7b565b50909695505050505050565b60008083601f840112614ab557600080fd5b5081356001600160401b03811115614acc57600080fd5b6020830191508360208260051b850101111561143057600080fd5b60008060208385031215614afa57600080fd5b82356001600160401b03811115614b1057600080fd5b614b1c85828601614aa3565b90969095509350505050565b801515811461133557600080fd5b60008060408385031215614b4957600080fd5b8235614b5481614874565b9150602083013561499381614b28565b600080600060408486031215614b7957600080fd5b8335614b8481614874565b925060208401356001600160401b03811115614b9f57600080fd5b614bab86828701614aa3565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614bf657614bf6614bb8565b604052919050565b60006001600160401b03821115614c1757614c17614bb8565b5060051b60200190565b600082601f830112614c3257600080fd5b81356020614c47614c4283614bfe565b614bce565b82815260059290921b84018101918181019086841115614c6657600080fd5b8286015b84811015614c815780358352918301918301614c6a565b509695505050505050565b600060208284031215614c9e57600080fd5b81356001600160401b03811115614cb457600080fd5b61262a84828501614c21565b600080600060608486031215614cd557600080fd5b833592506020840135614ce781614874565b9150614cf560408501614889565b90509250925092565b60008060408385031215614d1157600080fd5b8235915060208301356001600160401b03811115614d2e57600080fd5b614d3a85828601614c21565b9150509250929050565b600080600060408486031215614d5957600080fd5b83356001600160401b03811115614d6f57600080fd5b614d7b86828701614aa3565b9094509250506020840135614d8f81614874565b809150509250925092565b60008060008060408587031215614db057600080fd5b84356001600160401b0380821115614dc757600080fd5b614dd388838901614aa3565b90965094506020870135915080821115614dec57600080fd5b50614df987828801614aa3565b95989497509550505050565b60008083601f840112614e1757600080fd5b5081356001600160401b03811115614e2e57600080fd5b60208301915083602082850101111561143057600080fd5b60008060008060008060808789031215614e5f57600080fd5b8635614e6a81614874565b95506020870135614e7a81614874565b945060408701356001600160401b0380821115614e9657600080fd5b614ea28a838b01614aa3565b90965094506060890135915080821115614ebb57600080fd5b50614ec889828a01614e05565b979a9699509497509295939492505050565b60008060008060808587031215614ef057600080fd5b8435614efb81614874565b9350602085810135614f0c81614874565b93506040860135925060608601356001600160401b0380821115614f2f57600080fd5b818801915088601f830112614f4357600080fd5b813581811115614f5557614f55614bb8565b614f67601f8201601f19168501614bce565b91508082528984828501011115614f7d57600080fd5b808484018584013760008482840101525080935050505092959194509250565b600060208284031215614faf57600080fd5b8135611b8181614b28565b60008060408385031215614fcd57600080fd5b823591506020808401356001600160401b03811115614feb57600080fd5b8401601f81018613614ffc57600080fd5b803561500a614c4282614bfe565b81815260059190911b8201830190838101908883111561502957600080fd5b928401925b8284101561505057833561504181614874565b8252928401929084019061502e565b80955050505050509250929050565b6000806000806040858703121561507557600080fd5b84356001600160401b038082111561508c57600080fd5b61509888838901614e05565b909650945060208701359150808211156150b157600080fd5b50614df987828801614e05565b600080604083850312156150d157600080fd5b82356150dc81614874565b9150602083013561499381614874565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b600181811c9082168061512a57607f821691505b60208210810361514a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561101957611019615150565b60208082526009908201526810b3bab0b93234b0b760b91b604082015260600190565b6020808252600f908201526e151bdad95b881a5cc81b1bd8dad959608a1b604082015260600190565b6020808252600c908201526b151bdad95b8808595e1a5cdd60a21b604082015260600190565b808202811582820484141761101957611019615150565b60008261521f57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526019908201527f57726f6e6720616d6f756e74206f66204554482073656e742100000000000000604082015260600190565b6020808252601a908201527f596f752063616e6e6f74206d696e742074686174206d616e7921000000000000604082015260600190565b8082018082111561101957611019615150565b634e487b7160e01b600052603260045260246000fd5b6000600182016152cd576152cd615150565b5060010190565b6000602082840312156152e657600080fd5b8151611b8181614874565b60006020828403121561530357600080fd5b5051919050565b6000815461531781615116565b6001828116801561532f576001811461534457615373565b60ff1984168752821515830287019450615373565b8560005260208060002060005b8581101561536a5781548a820152908401908201615351565b50505082870194505b5050505092915050565b6000615389828661530a565b84516153998183602089016148f2565b6153a58183018661530a565b979650505050505050565b601f8211156111c057600081815260208120601f850160051c810160208610156153d75750805b601f850160051c820191505b818110156153f6578281556001016153e3565b505050505050565b6001600160401b0383111561541557615415614bb8565b615429836154238354615116565b836153b0565b6000601f84116001811461545d57600085156154455750838201355b600019600387901b1c1916600186901b1783556129a5565b600083815260209020601f19861690835b8281101561548e578685013582556020948501946001909201910161546e565b50868210156154ab5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260119082015270043616e6e6f7420757064617465206d617607c1b604082015260600190565b60008161559257615592615150565b506000190190565b6000602082840312156155ac57600080fd5b8151611b8181614b28565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061563c90830184614916565b9695505050505050565b60006020828403121561565857600080fd5b8151611b818161484156fea2646970667358221220a5f8322571412f3b695f7dcfb129196a0debe8fb571d1aba7f01b8c129d4df8a64736f6c63430008110033
Deployed Bytecode
0x60806040526004361061047e5760003560e01c806361dd0cfa11610253578063abc53e3011610143578063c87b56dd116100bb578063e250fd2311610082578063e250fd2314610f26578063e7c8089214610f46578063e985e9c514610f73578063ecba222a14610f93578063f2fde38b14610fb4578063f7f5326a14610fd457005b8063c87b56dd14610e83578063da541e0914610ea3578063dab3900f14610ec3578063db88125814610ee3578063dd4ad92914610f0357005b8063b534a5c41161010a578063b534a5c414610dc0578063b7c34a9c14610de0578063b88d4fde14610e00578063b8d1e53214610e20578063c097087314610e40578063c304555f14610e6357005b8063abc53e3014610cfe578063ac1855c114610d2b578063ac52e64414610d4b578063b0ccc31e14610d6b578063b1a6505f14610d9057005b80638da5cb5b116101d657806395d89b411161019d57806395d89b4114610c54578063998af13114610c695780639db79c6714610c89578063a0c1eeec14610ca9578063a22cb46514610cc9578063aa1b103f14610ce957005b80638da5cb5b14610bcc578063916ee35c14610be1578063943431bf14610bf457806394d216d614610c1457806395207ee114610c3457005b806372abc8b71161021a57806372abc8b714610b0e578063771fd76614610b3c5780637cb6475914610b6c57806380b9741014610b8c5780638a616bc014610bac57005b806361dd0cfa14610a495780636352211e14610a8c578063650b00f614610aac57806370a0823114610ad9578063715018a614610af957005b80632d1836f81161036e57806347028a5c116102f15780634f6ccce7116102b85780634f6ccce7146109a957806351bbf8d8146109c95780635944c753146109e95780635c975abb14610a095780635d7d033a14610a215780635ef9432a14610a3457005b806347028a5c1461091f578063495906571461093f5780634a994eef146109545780634c8fe526146109745780634d44660c1461098957005b80633ccfd60b116103355780633ccfd60b1461087d5780633fa6c1a91461089257806340a9c8df146108b257806342842e0e146108d2578063438b6300146108f257005b80632d1836f8146107d15780632db11544146108075780632f745c591461081a57806332cb6b0c1461083a5780633add14c81461085057005b806317881cbf116104015780632799cde0116103c85780632799cde0146106d15780632983c4b8146106f15780632a55205a146107115780632b1eaf29146107505780632cb34e13146107705780632cba81231461079057005b806317881cbf1461064657806318160ddd1461065c5780631dfe95a6146106715780631f76a7af1461069157806323b872dd146106b157005b80630777962711610445578063077796271461056c578063081812fc1461058c57806309308e5d146105ac578063095ea7b3146105f25780630b7766901461061257005b806301ffc9a71461048757806304634d8d146104bc578063046e1bd3146104dc5780630633b14a1461051457806306fdde031461054a57005b3661048557005b005b34801561049357600080fd5b506104a76104a2366004614857565b610ff4565b60405190151581526020015b60405180910390f35b3480156104c857600080fd5b506104856104d73660046148a0565b61101f565b3480156104e857600080fd5b506013546104fc906001600160a01b031681565b6040516001600160a01b0390911681526020016104b3565b34801561052057600080fd5b506104fc61052f3660046148d5565b6010602052600090815260409020546001600160a01b031681565b34801561055657600080fd5b5061055f611065565b6040516104b39190614942565b34801561057857600080fd5b506104a76105873660046148d5565b6110f7565b34801561059857600080fd5b506104fc6105a7366004614955565b611124565b3480156105b857600080fd5b506105e46105c736600461496e565b600f60209081526000928352604080842090915290825290205481565b6040519081526020016104b3565b3480156105fe57600080fd5b5061048561060d36600461499e565b6111ac565b34801561061e57600080fd5b506104fc7f00000000000000000000000054f7c276d8d1530f590b02e1c83873b10d069b7081565b34801561065257600080fd5b506105e460145481565b34801561066857600080fd5b506105e46111c5565b34801561067d57600080fd5b5061048561068c3660046149ca565b6111dc565b34801561069d57600080fd5b506104856106ac3660046148d5565b61121f565b3480156106bd57600080fd5b506104856106cc3660046149fc565b6112a8565b3480156106dd57600080fd5b506104856106ec366004614955565b611307565b3480156106fd57600080fd5b5061048561070c3660046148d5565b611338565b34801561071d57600080fd5b5061073161072c366004614a3d565b611389565b604080516001600160a01b0390931683526020830191909152016104b3565b34801561075c57600080fd5b506023546104fc906001600160a01b031681565b34801561077c57600080fd5b5061048561078b3660046148d5565b611437565b34801561079c57600080fd5b506104fc6107ab366004614a3d565b600e6020908152600092835260408084209091529082529020546001600160a01b031681565b3480156107dd57600080fd5b506104fc6107ec3660046148d5565b6011602052600090815260409020546001600160a01b031681565b610485610815366004614955565b611488565b34801561082657600080fd5b506105e461083536600461499e565b6115ac565b34801561084657600080fd5b506105e460125481565b34801561085c57600080fd5b506105e461086b3660046148d5565b60276020526000908152604090205481565b34801561088957600080fd5b50610485611677565b34801561089e57600080fd5b506104856108ad3660046149ca565b61178a565b3480156108be57600080fd5b506104856108cd366004614955565b6117cd565b3480156108de57600080fd5b506104856108ed3660046149fc565b6117fb565b3480156108fe57600080fd5b5061091261090d3660046148d5565b611864565b6040516104b39190614a5f565b34801561092b57600080fd5b5061048561093a366004614ae7565b611903565b34801561094b57600080fd5b506105e4611a9d565b34801561096057600080fd5b5061048561096f366004614b36565b611ad3565b34801561098057600080fd5b506005546105e4565b34801561099557600080fd5b506104a76109a4366004614b64565b611b06565b3480156109b557600080fd5b506105e46109c4366004614955565b611b88565b3480156109d557600080fd5b506104a76109e4366004614c8c565b611bf9565b3480156109f557600080fd5b50610485610a04366004614cc0565b611c5b565b348015610a1557600080fd5b5060095460ff166104a7565b610485610a2f366004614cfe565b611c95565b348015610a4057600080fd5b50610485611e0b565b348015610a5557600080fd5b50601554601654601754601854610a6c9392919084565b6040805194855260208501939093529183015260608201526080016104b3565b348015610a9857600080fd5b506104fc610aa7366004614955565b611e88565b348015610ab857600080fd5b506105e4610ac7366004614955565b600d6020526000908152604090205481565b348015610ae557600080fd5b506105e4610af43660046148d5565b611f14565b348015610b0557600080fd5b50610485611fe2565b348015610b1a57600080fd5b506104a7610b29366004614955565b6000908152600d60205260409020541590565b348015610b4857600080fd5b506104a7610b573660046148d5565b60086020526000908152604090205460ff1681565b348015610b7857600080fd5b50610485610b87366004614955565b611ff6565b348015610b9857600080fd5b506105e4610ba73660046148d5565b61202a565b348015610bb857600080fd5b50610485610bc7366004614955565b612099565b348015610bd857600080fd5b506104fc6120d9565b610485610bef366004614955565b6120ed565b348015610c0057600080fd5b50610485610c0f366004614955565b612240565b348015610c2057600080fd5b50610485610c2f36600461496e565b612274565b348015610c4057600080fd5b50610485610c4f366004614ae7565b6122d2565b348015610c6057600080fd5b5061055f61246c565b348015610c7557600080fd5b50610485610c84366004614955565b61247b565b348015610c9557600080fd5b506105e4610ca4366004614a3d565b61254c565b348015610cb557600080fd5b50610485610cc43660046149ca565b612632565b348015610cd557600080fd5b50610485610ce4366004614b36565b612675565b348015610cf557600080fd5b50610485612689565b348015610d0a57600080fd5b506105e4610d193660046148d5565b60266020526000908152604090205481565b348015610d3757600080fd5b50610485610d46366004614d44565b6126c1565b348015610d5757600080fd5b50610485610d66366004614d9a565b6129ac565b348015610d7757600080fd5b506009546104fc9061010090046001600160a01b031681565b348015610d9c57600080fd5b506104a7610dab3660046148d5565b600c6020526000908152604090205460ff1681565b348015610dcc57600080fd5b50610485610ddb366004614e46565b612aab565b348015610dec57600080fd5b50610485610dfb366004614955565b612b29565b348015610e0c57600080fd5b50610485610e1b366004614eda565b612c17565b348015610e2c57600080fd5b50610485610e3b3660046148d5565b612c71565b348015610e4c57600080fd5b50601954601a54601b54601c54610a6c9392919084565b348015610e6f57600080fd5b50610485610e7e3660046148d5565b612cfd565b348015610e8f57600080fd5b5061055f610e9e366004614955565b612e0c565b348015610eaf57600080fd5b50610485610ebe366004614f9d565b612eda565b348015610ecf57600080fd5b50610485610ede3660046148d5565b612f23565b348015610eef57600080fd5b50610485610efe366004614fba565b612ff2565b348015610f0f57600080fd5b50601d54601e54601f54602054610a6c9392919084565b348015610f3257600080fd5b50610485610f4136600461505f565b613106565b348015610f5257600080fd5b506105e4610f613660046148d5565b60256020526000908152604090205481565b348015610f7f57600080fd5b506104a7610f8e3660046150be565b613150565b348015610f9f57600080fd5b506009546104a790600160a81b900460ff1681565b348015610fc057600080fd5b50610485610fcf3660046148d5565b6131ac565b348015610fe057600080fd5b50610485610fef366004614d9a565b6131e0565b60006001600160e01b0319821663780e9d6360e01b14806110195750611019826132de565b92915050565b336000908152600b602052604090205460ff166110575760405162461bcd60e51b815260040161104e906150ec565b60405180910390fd5b611061828261331e565b5050565b60606002805461107490615116565b80601f01602080910402602001604051908101604052809291908181526020018280546110a090615116565b80156110ed5780601f106110c2576101008083540402835291602001916110ed565b820191906000526020600020905b8154815290600101906020018083116110d057829003601f168201915b5050505050905090565b60006111016133d8565b506001600160a01b0381166000908152600b602052604090205460ff165b919050565b600061112f82613437565b6111905760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161104e565b506000908152600660205260409020546001600160a01b031690565b816111b681613481565b6111c083836134a0565b505050565b6004546005546000916111d791615166565b905090565b336000908152600b602052604090205460ff1661120b5760405162461bcd60e51b815260040161104e906150ec565b601993909355601a91909155601b55601c55565b6001600160a01b038181166000908152601060205260409020541633146112585760405162461bcd60e51b815260040161104e90615179565b6001600160a01b03811660008181526010602052604080822080546001600160a01b03191690555133917f5b8f9622aeb5e504027e0bedd2e6ab42b294a529d87f5ef2ebf1dc0a1fe0f08191a350565b826001600160a01b03811633146112c2576112c233613481565b6112ca6135b0565b6000828152600d6020526040902054156112f65760405162461bcd60e51b815260040161104e9061519c565b6113018484846135f6565b50505050565b61131081613437565b61132c5760405162461bcd60e51b815260040161104e906151c5565b61133581613627565b50565b336000908152600b602052604090205460ff166113675760405162461bcd60e51b815260040161104e906150ec565b602380546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916113fe5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061141d906001600160601b0316876151eb565b6114279190615202565b91519350909150505b9250929050565b336000908152600b602052604090205460ff166114665760405162461bcd60e51b815260040161104e906150ec565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b60036014541015806114b857506114b8335b6001600160a01b03166000908152600b602052604090205460ff1690565b6115045760405162461bcd60e51b815260206004820152601960248201527f5075626c6963206d696e74206e6f74206f70656e207965742100000000000000604482015260640161104e565b600061151182600361254c565b90508034146115325760405162461bcd60e51b815260040161104e90615224565b601d54611092146115a25733600090815260276020526040812054601d5461155a9190615166565b90508083111561157c5760405162461bcd60e51b815260040161104e9061525b565b336000908152602760205260408120805485929061159b908490615292565b9091555050505b6110618233613767565b60008060005b60055481101561161a57600581815481106115cf576115cf6152a5565b6000918252602090912001546001600160a01b039081169086160361160a578382036115fe5791506110199050565b611607826152bb565b91505b611613816152bb565b90506115b2565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161104e565b336000908152600b602052604090205460ff166116a65760405162461bcd60e51b815260040161104e906150ec565b60235460405147916001600160a01b031690600090829084908381818185875af1925050503d80600081146116f7576040519150601f19603f3d011682016040523d82523d6000602084013e6116fc565b606091505b50509050806117425760405162461bcd60e51b81526020600482015260126024820152715769746864726177616c206661696c65642160701b604482015260640161104e565b816001600160a01b03167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d58460405161177d91815260200190565b60405180910390a2505050565b336000908152600b602052604090205460ff166117b95760405162461bcd60e51b815260040161104e906150ec565b601d93909355601e91909155601f55602055565b6117d681613437565b6117f25760405162461bcd60e51b815260040161104e906151c5565b61133581613836565b826001600160a01b03811633146118155761181533613481565b61181d6135b0565b6000828152600d6020526040902054156118495760405162461bcd60e51b815260040161104e9061519c565b611301848484604051806020016040528060008152506139d6565b6060600061187183611f14565b90506000816001600160401b0381111561188d5761188d614bb8565b6040519080825280602002602001820160405280156118b6578160200160208202803683370190505b50905060005b828110156118fb576118ce85826115ac565b8282815181106118e0576118e06152a5565b60209081029190910101526118f4816152bb565b90506118bc565b509392505050565b6000805b82811015611301577f00000000000000000000000054f7c276d8d1530f590b02e1c83873b10d069b706001600160a01b0316636352211e858584818110611950576119506152a5565b905060200201356040518263ffffffff1660e01b815260040161197591815260200190565b602060405180830381865afa158015611992573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119b691906152d4565b6001600160a01b038082166000908152601060205260409020549193501633146119f25760405162461bcd60e51b815260040161104e90615179565b7f00000000000000000000000054f7c276d8d1530f590b02e1c83873b10d069b706001600160a01b03166340a9c8df858584818110611a3357611a336152a5565b905060200201356040518263ffffffff1660e01b8152600401611a5891815260200190565b600060405180830381600087803b158015611a7257600080fd5b505af1158015611a86573d6000803e3d6000fd5b505050508080611a95906152bb565b915050611907565b336000908152600b602052604081205460ff16611acc5760405162461bcd60e51b815260040161104e906150ec565b5060245490565b611adb6133d8565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b6000805b82811015611b7b57846001600160a01b03166005858584818110611b3057611b306152a5565b9050602002013581548110611b4757611b476152a5565b6000918252602090912001546001600160a01b031614611b6b576000915050611b81565b611b74816152bb565b9050611b0a565b50600190505b9392505050565b6000611b926111c5565b8210611bf55760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161104e565b5090565b6024546000908103611c0d57506000919050565b6024546040516bffffffffffffffffffffffff193360601b166020820152600091611b81916034016040516020818303038152906040528051906020012085613a089092919063ffffffff16565b336000908152600b602052604090205460ff16611c8a5760405162461bcd60e51b815260040161104e906150ec565b6111c0838383613a1e565b6002601454101580611cab5750611cab3361149a565b611cf75760405162461bcd60e51b815260206004820152601c60248201527f506f7765726c697374206d696e74206e6f74206f70656e207965742100000000604482015260640161104e565b33600090815260266020526040812054601954611d149190615166565b905080831115611d365760405162461bcd60e51b815260040161104e9061525b565b6000611d4384600261254c565b9050803414611d645760405162461bcd60e51b815260040161104e90615224565b611d6d83611bf9565b611dc55760405162461bcd60e51b8152602060048201526024808201527f596f7520617265206e6f7420617574686f72697a656420666f72207072652d7360448201526330b6329760e11b606482015260840161104e565b8360266000335b6001600160a01b03166001600160a01b031681526020019081526020016000206000828254611dfb9190615292565b9091555061130190508433613767565b611e136120d9565b6001600160a01b0316336001600160a01b031614611e4457604051635fc483c560e01b815260040160405180910390fd5b600954600160a81b900460ff1615611e6f57604051631551a48f60e11b815260040160405180910390fd5b60098054610100600160b01b031916600160a81b179055565b60008060058381548110611e9e57611e9e6152a5565b6000918252602090912001546001600160a01b03169050806110195760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161104e565b60006001600160a01b038216611f7f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161104e565b6000805b600554811015611fdb5760058181548110611fa057611fa06152a5565b6000918252602090912001546001600160a01b0390811690851603611fcb57611fc8826152bb565b91505b611fd4816152bb565b9050611f83565b5092915050565b611fea6133d8565b611ff46000613ae9565b565b336000908152600b602052604090205460ff166120255760405162461bcd60e51b815260040161104e906150ec565b602455565b6013546040516370a0823160e01b81526001600160a01b03838116600483015260009216906370a0823190602401602060405180830381865afa158015612075573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101991906152f1565b336000908152600b602052604090205460ff166120c85760405162461bcd60e51b815260040161104e906150ec565b600090815260016020526040812055565b60006111d7600a546001600160a01b031690565b600160145410158061210357506121033361149a565b61214f5760405162461bcd60e51b815260206004820152601d60248201527f506f7765722050617373204d696e74206e6f74206f70656e207965742e000000604482015260640161104e565b600061215a3361202a565b9050600081116121be5760405162461bcd60e51b815260206004820152602960248201527f546865726520617265206e6f20506f7765722050617373657320696e20796f75604482015268722077616c6c65742160b81b606482015260840161104e565b336000908152602560205260408120546015546121db90846151eb565b6121e59190615166565b9050808311156122075760405162461bcd60e51b815260040161104e9061525b565b600061221484600161254c565b90508034146122355760405162461bcd60e51b815260040161104e90615224565b836025600033611dcc565b336000908152600b602052604090205460ff1661226f5760405162461bcd60e51b815260040161104e906150ec565b601455565b336000908152600b602052604090205460ff166122a35760405162461bcd60e51b815260040161104e906150ec565b6122ac82613437565b6122c85760405162461bcd60e51b815260040161104e906151c5565b6110618282613b3b565b6000805b82811015611301577f00000000000000000000000054f7c276d8d1530f590b02e1c83873b10d069b706001600160a01b0316636352211e85858481811061231f5761231f6152a5565b905060200201356040518263ffffffff1660e01b815260040161234491815260200190565b602060405180830381865afa158015612361573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061238591906152d4565b6001600160a01b038082166000908152601060205260409020549193501633146123c15760405162461bcd60e51b815260040161104e90615179565b7f00000000000000000000000054f7c276d8d1530f590b02e1c83873b10d069b706001600160a01b0316632799cde0858584818110612402576124026152a5565b905060200201356040518263ffffffff1660e01b815260040161242791815260200190565b600060405180830381600087803b15801561244157600080fd5b505af1158015612455573d6000803e3d6000fd5b505050508080612464906152bb565b9150506122d6565b60606003805461107490615116565b61248481613437565b6124a05760405162461bcd60e51b815260040161104e906151c5565b6000818152600d60205260409020546124eb5760405162461bcd60e51b815260206004820152600d60248201526c151bdad95b88085b1bd8dad959609a1b604482015260640161104e565b336000908152600c602052604090205460ff166125425760405162461bcd60e51b8152602060048201526015602482015274139bdd08185c1c1c9bdd99590818dbdb9d1c9858dd605a1b604482015260640161104e565b6113353382613cf1565b6000670de0b6b3a7640000600584101561259e578260010361257c5760165461257590856151eb565b9050611b81565b8260020361259157601a5461257590856151eb565b601e5461257590856151eb565b600584101580156125af5750600a84105b156125eb57826001036125c95760175461257590856151eb565b826002036125de57601b5461257590856151eb565b601f5461257590856151eb565b600a8410611b8157826001036126085760185461257590856151eb565b8260020361261d57601c5461257590856151eb565b60205461262a90856151eb565b949350505050565b336000908152600b602052604090205460ff166126615760405162461bcd60e51b815260040161104e906150ec565b601593909355601691909155601755601855565b8161267f81613481565b6111c08383613dc8565b336000908152600b602052604090205460ff166126b85760405162461bcd60e51b815260040161104e906150ec565b611ff460008055565b6000805b838110156129a5577f00000000000000000000000054f7c276d8d1530f590b02e1c83873b10d069b706001600160a01b0316636352211e86868481811061270e5761270e6152a5565b905060200201356040518263ffffffff1660e01b815260040161273391815260200190565b602060405180830381865afa158015612750573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061277491906152d4565b6001600160a01b038082166000908152601060205260409020549193501633146127b05760405162461bcd60e51b815260040161104e90615179565b7f00000000000000000000000054f7c276d8d1530f590b02e1c83873b10d069b706001600160a01b031663998af1318686848181106127f1576127f16152a5565b905060200201356040518263ffffffff1660e01b815260040161281691815260200190565b600060405180830381600087803b15801561283057600080fd5b505af1158015612844573d6000803e3d6000fd5b505050507f00000000000000000000000054f7c276d8d1530f590b02e1c83873b10d069b706001600160a01b03166340a9c8df868684818110612889576128896152a5565b905060200201356040518263ffffffff1660e01b81526004016128ae91815260200190565b600060405180830381600087803b1580156128c857600080fd5b505af11580156128dc573d6000803e3d6000fd5b505050507f00000000000000000000000054f7c276d8d1530f590b02e1c83873b10d069b706001600160a01b03166342842e0e8385888886818110612923576129236152a5565b6040516001600160e01b031960e088901b1681526001600160a01b03958616600482015294909316602485015250602090910201356044820152606401600060405180830381600087803b15801561297a57600080fd5b505af115801561298e573d6000803e3d6000fd5b50505050808061299d906152bb565b9150506126c5565b5050505050565b336000908152600b602052604090205460ff166129db5760405162461bcd60e51b815260040161104e906150ec565b828114612a145760405162461bcd60e51b8152602060048201526007602482015266042d8cadccee8d60cb1b604482015260640161104e565b60005b838110156129a557828282818110612a3157612a316152a5565b9050602002016020810190612a469190614f9d565b600c6000878785818110612a5c57612a5c6152a5565b9050602002016020810190612a7191906148d5565b6001600160a01b031681526020810191909152604001600020805460ff191691151591909117905580612aa3816152bb565b915050612a17565b60005b83811015612b2057612b108787878785818110612acd57612acd6152a5565b9050602002013586868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250612c1792505050565b612b19816152bb565b9050612aae565b50505050505050565b336000908152600b602052604090205460ff16612b585760405162461bcd60e51b815260040161104e906150ec565b6012548110612ba95760405162461bcd60e51b815260206004820152601a60248201527f43616e206f6e6c79207365742061206c6f7765722073697a652e000000000000604482015260640161104e565b612bb16111c5565b811015612c125760405162461bcd60e51b815260206004820152602960248201527f4e657720737570706c79206c6f776572207468616e2063757272656e7420746f60448201526874616c537570706c7960b81b606482015260840161104e565b601255565b836001600160a01b0381163314612c3157612c3133613481565b612c396135b0565b6000838152600d602052604090205415612c655760405162461bcd60e51b815260040161104e9061519c565b6129a5858585856139d6565b612c796120d9565b6001600160a01b0316336001600160a01b031614612caa57604051635fc483c560e01b815260040160405180910390fd5b600954600160a81b900460ff1615612cd557604051631551a48f60e11b815260040160405180910390fd5b600980546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b336000908152601060205260409020546001600160a01b031615612d525760405162461bcd60e51b815260206004820152600c60248201526b11dd585c991a585b881cd95d60a21b604482015260640161104e565b6001600160a01b0381163303612db65760405162461bcd60e51b815260206004820152602360248201527f477561726469616e206d757374206265206120646966666572656e742077616c6044820152621b195d60ea1b606482015260840161104e565b3360008181526011602052604080822080546001600160a01b0319166001600160a01b038616908117909155905190917f503d1e4f800a36ee58e59b969fc42121ae1ebf3d1a20b558d5248d879427522c91a350565b6060612e1782613437565b612e7b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161104e565b600060218054612e8a90615116565b905011612ea65760405180602001604052806000815250611019565b6021612eb183613ef5565b6022604051602001612ec59392919061537d565b60405160208183030381529060405292915050565b336000908152600b602052604090205460ff16612f095760405162461bcd60e51b815260040161104e906150ec565b801515600103612f1b57611335613f87565b611335613fe1565b6001600160a01b03818116600090815260116020526040902054163314612f8c5760405162461bcd60e51b815260206004820152601860248201527f4e6f74207468652070656e64696e6720677561726469616e0000000000000000604482015260640161104e565b6001600160a01b038116600081815260116020908152604080832080546001600160a01b031990811690915560109092528083208054339316831790555190917fc3ce29e3ab42e524b6f6f1b4d3674898d503ee3577a64ac87b555904ebc1413891a350565b336000908152600b602052604090205460ff166130215760405162461bcd60e51b815260040161104e906150ec565b805160010361306c5760005b828110156111c05761305a60018360008151811061304d5761304d6152a5565b6020026020010151613767565b80613064816152bb565b91505061302d565b805182146130d15760405162461bcd60e51b815260206004820152602c60248201527f4e756d626572206f6620726563697069656e747320646f65736e2774206d617460448201526b31b41038bab0b73a34ba3c9760a11b606482015260840161104e565b60005b81518110156111c0576130f4600183838151811061304d5761304d6152a5565b806130fe816152bb565b9150506130d4565b336000908152600b602052604090205460ff166131355760405162461bcd60e51b815260040161104e906150ec565b60216131428486836153fe565b5060226129a58284836153fe565b6001600160a01b03811660009081526008602052604081205460ff16151560010361317d57506000611019565b506001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6131b46133d8565b6001600160a01b0381166000908152600b60205260409020805460ff191660011790556113358161401a565b336000908152600b602052604090205460ff1661320f5760405162461bcd60e51b815260040161104e906150ec565b82811461325e5760405162461bcd60e51b815260206004820181905260248201527f4e6220616464797320646f65736e2774206d61746368206e6220626f6f6c732e604482015260640161104e565b60005b838110156129a5576132bf85858381811061327e5761327e6152a5565b905060200201602081019061329391906148d5565b8484848181106132a5576132a56152a5565b90506020020160208101906132ba9190614f9d565b614090565b6132c8816152bb565b9050613261565b600a546001600160a01b031690565b60006001600160e01b031982166380ac58cd60e01b148061330f57506001600160e01b03198216635b5e139f60e01b145b806110195750611019826140ef565b6127106001600160601b03821611156133495760405162461bcd60e51b815260040161104e906154bd565b6001600160a01b03821661339f5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161104e565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b336133e16120d9565b6001600160a01b031614611ff45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161104e565b60055460009082108015611019575060006001600160a01b031660058381548110613464576134646152a5565b6000918252602090912001546001600160a01b0316141592915050565b60095461010090046001600160a01b0316156113355761133581614124565b60006134ab82611e88565b9050806001600160a01b0316836001600160a01b0316036135185760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161104e565b336001600160a01b038216148061353457506135348133613150565b6135a65760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161104e565b6111c08383613cf1565b60095460ff1615611ff45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161104e565b61360033826141eb565b61361c5760405162461bcd60e51b815260040161104e90615507565b6111c08383836142ad565b336000908152600c602052604090205460ff166136565760405162461bcd60e51b815260040161104e90615558565b6000818152600f60209081526040808320338452909152902054156136bd5760405162461bcd60e51b815260206004820152601b60248201527f494420616c7265616479206c6f636b65642062792063616c6c65720000000000604482015260640161104e565b6000818152600d60205260408120546136d7906001615292565b6000838152600e60209081526040808320848452825280832080546001600160a01b03191633908117909155868452600f83528184209084528252808320849055858352600d9091528120805492935090613731836152bb565b9091555050604051339083907f9ecfd70e9ff36df72989324a49559383d39f9290d700b10cf5ac10dcb68d264390600090a35050565b600082116137ae5760405162461bcd60e51b815260206004820152601460248201527343616e2774206d696e74203020746f6b656e732160601b604482015260640161104e565b6012546137b96111c5565b6137c39084615292565b11156138075760405162461bcd60e51b81526020600482015260136024820152724d617820737570706c7920726561636865642160681b604482015260640161104e565b60005b828110156111c0576138248261381f60055490565b614403565b8061382e816152bb565b91505061380a565b336000908152600c602052604090205460ff166138655760405162461bcd60e51b815260040161104e90615558565b6000818152600f60209081526040808320338452909152812054908190036138cf5760405162461bcd60e51b815260206004820152601760248201527f4944206e6f74206c6f636b65642062792063616c6c6572000000000000000000604482015260640161104e565b6000828152600d6020526040902054818114613945576000838152600e602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155868452600f8352818420908452909152902082905561396d565b6000838152600e60209081526040808320858452909152902080546001600160a01b03191690555b6000838152600f602090815260408083203384528252808320839055858352600d909152812080549161399f83615583565b9091555050604051339084907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a3505050565b6139e033836141eb565b6139fc5760405162461bcd60e51b815260040161104e90615507565b6113018484848461441d565b600082613a158584614450565b14949350505050565b6127106001600160601b0382161115613a495760405162461bcd60e51b815260040161104e906154bd565b6001600160a01b038216613a9f5760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d65746572730000000000604482015260640161104e565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0381166000908152600c602052604090205460ff1615613b745760405162461bcd60e51b815260040161104e90615558565b6000828152600f602090815260408083206001600160a01b038516845290915281205490819003613bd75760405162461bcd60e51b815260206004820152600d60248201526c1251081b9bdd081b1bd8dad959609a1b604482015260640161104e565b6000838152600d6020526040902054818114613c4d576000848152600e602090815260408083208484528252808320805486855282852080546001600160a01b03199081166001600160a01b03909316928317909155825416909155878452600f83528184209084529091529020829055613c75565b6000848152600e60209081526040808320858452909152902080546001600160a01b03191690555b6000848152600f602090815260408083206001600160a01b03871684528252808320839055868352600d9091528120805491613cb083615583565b90915550506040516001600160a01b0384169085907f0fe7d9801197f79ef3b1595d19379eb58f0fff5f98b0f6d6f34c03cae5306c3790600090a350505050565b6001600160a01b03821660009081526008602052604090205460ff1615613d5a5760405162461bcd60e51b815260206004820152601e60248201527f54686973206f7070657261746f7220697320626c61636b6c69737465642e0000604482015260640161104e565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190613d8f82611e88565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b336001600160a01b03831603613e205760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161104e565b6001600160a01b03821660009081526008602052604090205460ff1615613e895760405162461bcd60e51b815260206004820152601e60248201527f54686973206f7070657261746f7220697320626c61636b6c69737465642e0000604482015260640161104e565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60606000613f0283614495565b60010190506000816001600160401b03811115613f2157613f21614bb8565b6040519080825280601f01601f191660200182016040528015613f4b576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084613f5557509392505050565b613f8f6135b0565b6009805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258613fc43390565b6040516001600160a01b03909116815260200160405180910390a1565b613fe961456d565b6009805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33613fc4565b6140226133d8565b6001600160a01b0381166140875760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161104e565b61133581613ae9565b6001600160a01b038216600081815260086020908152604091829020805460ff191685151590811790915591519182527ff8c135050097fab433dee08c659e48cb9abde02b5aac510ce02e618b2569d168910160405180910390a25050565b60006001600160e01b0319821663152a902d60e11b148061101957506301ffc9a760e01b6001600160e01b0319831614611019565b60095461010090046001600160a01b0316801580159061414e57506000816001600160a01b03163b115b1561106157604051633185c44d60e21b81523060048201526001600160a01b03838116602483015282169063c617113490604401602060405180830381865afa15801561419f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141c3919061559a565b61106157604051633b79c77360e21b81526001600160a01b038316600482015260240161104e565b60006141f682613437565b6142575760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161104e565b600061426283611e88565b9050806001600160a01b0316846001600160a01b0316148061429d5750836001600160a01b031661429284611124565b6001600160a01b0316145b8061262a575061262a8185613150565b826001600160a01b03166142c082611e88565b6001600160a01b0316146143285760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b606482015260840161104e565b6001600160a01b03821661438a5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161104e565b614395600082613cf1565b81600582815481106143a9576143a96152a5565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b6110618282604051806020016040528060008152506145b6565b6144288484846142ad565b614434848484846145e9565b6113015760405162461bcd60e51b815260040161104e906155b7565b600081815b84518110156118fb5761448182868381518110614474576144746152a5565b60200260200101516146ea565b91508061448d816152bb565b915050614455565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106144d45772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310614500576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061451e57662386f26fc10000830492506010015b6305f5e1008310614536576305f5e100830492506008015b612710831061454a57612710830492506004015b6064831061455c576064830492506002015b600a83106110195760010192915050565b60095460ff16611ff45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161104e565b6145c08383614719565b6145cd60008484846145e9565b6111c05760405162461bcd60e51b815260040161104e906155b7565b60006001600160a01b0384163b156146df57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061462d903390899088908890600401615609565b6020604051808303816000875af1925050508015614668575060408051601f3d908101601f1916820190925261466591810190615646565b60015b6146c5573d808015614696576040519150601f19603f3d011682016040523d82523d6000602084013e61469b565b606091505b5080516000036146bd5760405162461bcd60e51b815260040161104e906155b7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061262a565b506001949350505050565b6000818310614706576000828152602084905260409020611b81565b6000838152602083905260409020611b81565b6001600160a01b03821661476f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161104e565b61477881613437565b156147c55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161104e565b6005805460018101825560009182527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160e01b03198116811461133557600080fd5b60006020828403121561486957600080fd5b8135611b8181614841565b6001600160a01b038116811461133557600080fd5b80356001600160601b038116811461111f57600080fd5b600080604083850312156148b357600080fd5b82356148be81614874565b91506148cc60208401614889565b90509250929050565b6000602082840312156148e757600080fd5b8135611b8181614874565b60005b8381101561490d5781810151838201526020016148f5565b50506000910152565b6000815180845261492e8160208601602086016148f2565b601f01601f19169290920160200192915050565b602081526000611b816020830184614916565b60006020828403121561496757600080fd5b5035919050565b6000806040838503121561498157600080fd5b82359150602083013561499381614874565b809150509250929050565b600080604083850312156149b157600080fd5b82356149bc81614874565b946020939093013593505050565b600080600080608085870312156149e057600080fd5b5050823594602084013594506040840135936060013592509050565b600080600060608486031215614a1157600080fd5b8335614a1c81614874565b92506020840135614a2c81614874565b929592945050506040919091013590565b60008060408385031215614a5057600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015614a9757835183529284019291840191600101614a7b565b50909695505050505050565b60008083601f840112614ab557600080fd5b5081356001600160401b03811115614acc57600080fd5b6020830191508360208260051b850101111561143057600080fd5b60008060208385031215614afa57600080fd5b82356001600160401b03811115614b1057600080fd5b614b1c85828601614aa3565b90969095509350505050565b801515811461133557600080fd5b60008060408385031215614b4957600080fd5b8235614b5481614874565b9150602083013561499381614b28565b600080600060408486031215614b7957600080fd5b8335614b8481614874565b925060208401356001600160401b03811115614b9f57600080fd5b614bab86828701614aa3565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614bf657614bf6614bb8565b604052919050565b60006001600160401b03821115614c1757614c17614bb8565b5060051b60200190565b600082601f830112614c3257600080fd5b81356020614c47614c4283614bfe565b614bce565b82815260059290921b84018101918181019086841115614c6657600080fd5b8286015b84811015614c815780358352918301918301614c6a565b509695505050505050565b600060208284031215614c9e57600080fd5b81356001600160401b03811115614cb457600080fd5b61262a84828501614c21565b600080600060608486031215614cd557600080fd5b833592506020840135614ce781614874565b9150614cf560408501614889565b90509250925092565b60008060408385031215614d1157600080fd5b8235915060208301356001600160401b03811115614d2e57600080fd5b614d3a85828601614c21565b9150509250929050565b600080600060408486031215614d5957600080fd5b83356001600160401b03811115614d6f57600080fd5b614d7b86828701614aa3565b9094509250506020840135614d8f81614874565b809150509250925092565b60008060008060408587031215614db057600080fd5b84356001600160401b0380821115614dc757600080fd5b614dd388838901614aa3565b90965094506020870135915080821115614dec57600080fd5b50614df987828801614aa3565b95989497509550505050565b60008083601f840112614e1757600080fd5b5081356001600160401b03811115614e2e57600080fd5b60208301915083602082850101111561143057600080fd5b60008060008060008060808789031215614e5f57600080fd5b8635614e6a81614874565b95506020870135614e7a81614874565b945060408701356001600160401b0380821115614e9657600080fd5b614ea28a838b01614aa3565b90965094506060890135915080821115614ebb57600080fd5b50614ec889828a01614e05565b979a9699509497509295939492505050565b60008060008060808587031215614ef057600080fd5b8435614efb81614874565b9350602085810135614f0c81614874565b93506040860135925060608601356001600160401b0380821115614f2f57600080fd5b818801915088601f830112614f4357600080fd5b813581811115614f5557614f55614bb8565b614f67601f8201601f19168501614bce565b91508082528984828501011115614f7d57600080fd5b808484018584013760008482840101525080935050505092959194509250565b600060208284031215614faf57600080fd5b8135611b8181614b28565b60008060408385031215614fcd57600080fd5b823591506020808401356001600160401b03811115614feb57600080fd5b8401601f81018613614ffc57600080fd5b803561500a614c4282614bfe565b81815260059190911b8201830190838101908883111561502957600080fd5b928401925b8284101561505057833561504181614874565b8252928401929084019061502e565b80955050505050509250929050565b6000806000806040858703121561507557600080fd5b84356001600160401b038082111561508c57600080fd5b61509888838901614e05565b909650945060208701359150808211156150b157600080fd5b50614df987828801614e05565b600080604083850312156150d157600080fd5b82356150dc81614874565b9150602083013561499381614874565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b600181811c9082168061512a57607f821691505b60208210810361514a57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561101957611019615150565b60208082526009908201526810b3bab0b93234b0b760b91b604082015260600190565b6020808252600f908201526e151bdad95b881a5cc81b1bd8dad959608a1b604082015260600190565b6020808252600c908201526b151bdad95b8808595e1a5cdd60a21b604082015260600190565b808202811582820484141761101957611019615150565b60008261521f57634e487b7160e01b600052601260045260246000fd5b500490565b60208082526019908201527f57726f6e6720616d6f756e74206f66204554482073656e742100000000000000604082015260600190565b6020808252601a908201527f596f752063616e6e6f74206d696e742074686174206d616e7921000000000000604082015260600190565b8082018082111561101957611019615150565b634e487b7160e01b600052603260045260246000fd5b6000600182016152cd576152cd615150565b5060010190565b6000602082840312156152e657600080fd5b8151611b8181614874565b60006020828403121561530357600080fd5b5051919050565b6000815461531781615116565b6001828116801561532f576001811461534457615373565b60ff1984168752821515830287019450615373565b8560005260208060002060005b8581101561536a5781548a820152908401908201615351565b50505082870194505b5050505092915050565b6000615389828661530a565b84516153998183602089016148f2565b6153a58183018661530a565b979650505050505050565b601f8211156111c057600081815260208120601f850160051c810160208610156153d75750805b601f850160051c820191505b818110156153f6578281556001016153e3565b505050505050565b6001600160401b0383111561541557615415614bb8565b615429836154238354615116565b836153b0565b6000601f84116001811461545d57600085156154455750838201355b600019600387901b1c1916600186901b1783556129a5565b600083815260209020601f19861690835b8281101561548e578685013582556020948501946001909201910161546e565b50868210156154ab5760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b602080825260119082015270043616e6e6f7420757064617465206d617607c1b604082015260600190565b60008161559257615592615150565b506000190190565b6000602082840312156155ac57600080fd5b8151611b8181614b28565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061563c90830184614916565b9695505050505050565b60006020828403121561565857600080fd5b8151611b818161484156fea2646970667358221220a5f8322571412f3b695f7dcfb129196a0debe8fb571d1aba7f01b8c129d4df8a64736f6c63430008110033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.