ERC-721
Overview
Max Total Supply
1,186 GB
Holders
253
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 GBLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
GlitchyBitches
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED // Copyright 2021 Arran Schlosberg (@divergencearran / @divergence_art) pragma solidity >=0.8.0 <0.9.0; import "./MetaPurse.sol"; import "./SignatureRegistry.sol"; import "@divergencetech/ethier/contracts/erc721/ERC721Common.sol"; import "@divergencetech/ethier/contracts/sales/FixedPriceSeller.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract GlitchyBitches is ERC721Common, FixedPriceSeller { /// @notice Separate contracts for GB metadata and signer set. MetaPurse public immutable metapurse; SignerRegistry public immutable signers; constructor( string memory name, string memory symbol, address openSeaProxyRegistry, address[] memory _signers, address payable beneficiary ) ERC721Common(name, symbol, openSeaProxyRegistry) FixedPriceSeller( 0.07 ether, Seller.SellerConfig({ totalInventory: 10101, maxPerAddress: 10, maxPerTx: 10 }), beneficiary ) { metapurse = new MetaPurse(); metapurse.transferOwnership(owner()); signers = new SignerRegistry(_signers); signers.transferOwnership(owner()); } /// @notice An initial mint window provides minters with an extra 30 days of /// version-changing allowance. bool public earlyMinting = true; /// @notice Limits minting to those with a valid signature. bool public onlyAllowList = true; /// @notice Toggle the early-minting and only-allowlist flags. function setMintingFlags(bool allowList, bool early) external onlyOwner { earlyMinting = early; onlyAllowList = allowList; } /// @notice Mints for the recipient., requiring a signature iff the /// onlyAllowList flag is set to true, otherwise signature is /// @dev The message sender MAY be different to the recipient although the /// signature is always expected to be for the recipient. /// @param signature Required iff the onlyAllowList flag is set to true, /// otherwise an empty value can be sent. function safeMint( address to, uint256 num, bytes calldata signature ) external payable { if (onlyAllowList) { signers.validateSignature(to, signature); } Seller._purchase(to, num); } /** @notice Maximum number of tokens that the contract owner can mint for free over the life of the contract. */ uint256 public ownerQuota = 500; /// @notice Contract owner can mint free of charge up to the quota. function ownerMint(address to, uint256 num) external onlyOwner { require( num <= ownerQuota && num <= sellerConfig.totalInventory - totalSupply(), "Owner quota reached" ); ownerQuota -= num; _handlePurchase(to, num); } /// @notice Mint new tokens for the recipient. function _handlePurchase(address to, uint256 num) internal override { for (uint256 i = 0; i < num; i++) { ERC721._safeMint(to, totalSupply()); } metapurse.newTokens(num, earlyMinting); } /// @notice Prefix for tokenURI(). MUST NOT include a trailing slash. string public _baseTokenURI; /// @notice Change the tokenURI() prefix value. /// @param uri The new base, which MUST NOT include a trailing slash. function setBaseTokenURI(string calldata uri) external onlyOwner { _baseTokenURI = uri; } /// @notice Required override of Seller.totalSold(). function totalSold() public view override returns (uint256) { return ERC721Enumerable.totalSupply(); } /// @notice Returns the URI for token metadata. /// @dev In the initial stages this will be centralised so as to hide future /// token versions, but will eventually be moved to IPFS after all are /// revealed. function tokenURI(uint256 tokenId) public view override tokenExists(tokenId) returns (string memory) { return string( abi.encodePacked( _baseTokenURI, "/", Strings.toString(tokenId), "_", Strings.toString(metapurse.tokenVersion(tokenId)), ".json" ) ); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a / b + (a % b == 0 ? 0 : 1); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.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 pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT 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 pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../security/Pausable.sol"; /** * @dev ERC721 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC721Pausable is ERC721, Pausable { /** * @dev See {ERC721-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); require(!paused(), "ERC721Pausable: token transfer while paused"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { require(operator != _msgSender(), "ERC721: approve to caller"); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender)); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT 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 Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { 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.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() { _setOwner(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 Divergent Technologies Ltd (github.com/divergencetech) pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; /// @notice A Pausable contract that can only be toggled by the Owner. contract OwnerPausable is Ownable, Pausable { /// @notice Pauses the contract. function pause() public onlyOwner { Pausable._pause(); } /// @notice Unpauses the contract. function unpause() public onlyOwner { Pausable._unpause(); } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 Divergent Technologies Ltd (github.com/divergencetech) pragma solidity >=0.8.0 <0.9.0; import "../utils/OwnerPausable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /** @notice An abstract contract providing the _purchase() function to: - Enforce per-wallet / per-transaction limits - Calculate required cost, forwarding to a beneficiary, and refunding extra */ abstract contract Seller is OwnerPausable, ReentrancyGuard { using Address for address payable; using Strings for uint256; /// @dev Note that the address limits are vulnerable to wallet farming. struct SellerConfig { uint256 totalInventory; uint256 maxPerAddress; uint256 maxPerTx; } constructor(SellerConfig memory config, address payable _beneficiary) { setSellerConfig(config); setBeneficiary(_beneficiary); } /// @notice Configuration of purchase limits. SellerConfig public sellerConfig; /// @notice Sets the seller config. function setSellerConfig(SellerConfig memory config) public onlyOwner { sellerConfig = config; } /// @notice Recipient of revenues. address payable public beneficiary; /// @notice Sets the recipient of revenues. function setBeneficiary(address payable _beneficiary) public onlyOwner { beneficiary = _beneficiary; } /** @dev Must return the current cost of a batch of items. This may be constant or, for example, decreasing for a Dutch auction or increasing for a bonding curve. @param n The number of items being purchased. */ function cost(uint256 n) public view virtual returns (uint256); /** @dev Must return the number of items already sold. This MAY be different to the total number of items in supply (e.g. ERC721Enumerable.totalSupply()) as some items may not count against the Seller's inventory. */ function totalSold() public view virtual returns (uint256); /** @dev Called by _purchase() after all limits have been put in place; must perform all contract-specific sale logic, e.g. ERC721 minting. @param to The recipient of the item(s). @param n The number of items allowed to be purchased, which MAY be less than to the number passed to _purchase() but SHALL be greater than zero. */ function _handlePurchase(address to, uint256 n) internal virtual; /** @notice Tracks the number of items already bought by an address, regardless of transferring out (in the case of ERC721). @dev This isn't public as it may be skewed due to differences in msg.sender and tx.origin, which it treats in the same way such that sum(_bought)>=totalSold(). */ mapping(address => uint256) private _bought; /** @notice Returns min(n, max(extra items addr can purchase)) and reverts if 0. @param zeroMsg The message with which to revert on 0 extra. */ function _capExtra( uint256 n, address addr, string memory zeroMsg ) internal view returns (uint256) { uint256 extra = sellerConfig.maxPerAddress - _bought[addr]; if (extra == 0) { revert(string(abi.encodePacked("Seller: ", zeroMsg))); } return Math.min(n, extra); } /// @notice Emitted when a buyer is refunded. event Refund(address indexed buyer, uint256 amount); /// @notice Emitted on all purchases of non-zero amount. event Revenue( address indexed beneficiary, uint256 numPurchased, uint256 amount ); /** @notice Enforces all purchase limits (counts and costs) before calling _handlePurchase(), after which the received funds are disbursed to the beneficiary, less any required refunds. @param to The final recipient of the item(s). @param requested The number of items requested for purchase, which MAY be reduced when passed to _handlePurchase(). */ function _purchase(address to, uint256 requested) internal nonReentrant whenNotPaused { /** * ##### CHECKS */ uint256 n = Math.min(requested, sellerConfig.maxPerTx); n = _capExtra(n, to, "Buyer limit"); bool alsoLimitSender = _msgSender() != to; bool alsoLimitOrigin = tx.origin != _msgSender() && tx.origin != to; if (alsoLimitSender) { n = _capExtra(n, _msgSender(), "Sender limit"); } if (alsoLimitOrigin) { n = _capExtra(n, tx.origin, "Origin limit"); } n = Math.min(n, sellerConfig.totalInventory - totalSold()); require(n > 0, "Sold out"); uint256 _cost = cost(n); if (msg.value < _cost) { revert( string( abi.encodePacked( "Costs ", (_cost / 1e9).toString(), " GWei" ) ) ); } /** * ##### EFFECTS */ _bought[to] += n; if (alsoLimitSender) { _bought[_msgSender()] += n; } if (alsoLimitOrigin) { _bought[tx.origin] += n; } _handlePurchase(to, n); /** * ##### INTERACTIONS */ // Ideally we'd be using a PullPayment here, but the user experience is // poor when there's a variable cost or the number of items purchased // has been capped. We've addressed reentrancy with both a nonReentrant // modifier and the checks, effects, interactions pattern. if (_cost > 0) { beneficiary.sendValue(_cost); emit Revenue(beneficiary, n, _cost); } if (msg.value > _cost) { address payable reimburse = payable(_msgSender()); uint256 refund = msg.value - _cost; // Using Address.sendValue() here would mask the revertMsg upon // reentrancy, but we want to expose it to allow for more precise // testing. This otherwise uses the exact same pattern as // Address.sendValue(). (bool success, bytes memory returnData) = reimburse.call{ value: refund }(""); // Although `returnData` will have a spurious prefix, all we really // care about is that it contains the ReentrancyGuard reversion // message so we can check in the tests. require(success, string(returnData)); emit Refund(reimburse, refund); } } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 Divergent Technologies Ltd (github.com/divergencetech) pragma solidity >=0.8.0 <0.9.0; import "./Seller.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; /// @notice A Seller with fixed per-item price. abstract contract FixedPriceSeller is Seller { constructor( uint256 _price, Seller.SellerConfig memory sellerConfig, address payable _beneficiary ) Seller(sellerConfig, _beneficiary) { setPrice(_price); } /** @notice The fixed per-item price. @dev Fixed as in not changing with time nor number of items, but not a constant. */ uint256 public price; /// @notice Sets the per-item price. function setPrice(uint256 _price) public onlyOwner { price = _price; } /// @notice Override of Seller.cost() with fixed price. function cost(uint256 n) public view override returns (uint256) { return n * price; } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 Divergent Technologies Ltd (github.com/divergencetech) pragma solidity >=0.8.9 <0.9.0; library PRNG { /** @notice A source of random numbers. @dev Pointer to a 4-word buffer of {seed, counter, entropy, remaining unread bits}. however, note that this is abstracted away by the API and SHOULD NOT be used. This layout MUST NOT be considered part of the public API and therefore not relied upon even within stable versions */ type Source is uint256; /// @notice Layout within the buffer. 0x00 is the seed. uint256 private constant COUNTER = 0x20; uint256 private constant ENTROPY = 0x40; uint256 private constant REMAIN = 0x60; /** @notice Returns a new deterministic Source, differentiated only by the seed. @dev Use of PRNG.Source does NOT provide any unpredictability as generated numbers are entirely deterministic. Either a verifiable source of randomness such as Chainlink VRF, or a commit-and-reveal protocol MUST be used if unpredictability is required. The latter is only appropriate if the contract owner can be trusted within the specified threat model. */ function newSource(bytes32 seed) internal pure returns (Source src) { assembly { src := mload(0x40) mstore(0x40, add(src, 0x80)) mstore(src, seed) } _refill(src); } /** @dev Hashes seed||counter, placing it in the entropy word, and resets the remaining bits to 256. Increments the counter ready for the next refill. */ function _refill(Source src) private pure { assembly { mstore(add(src, ENTROPY), keccak256(src, 0x40)) mstore(add(src, REMAIN), 256) let ctr := add(src, COUNTER) mstore(ctr, add(1, mload(ctr))) } } /** @notice Returns the specified number of bits <= 256 from the Source. @dev It is safe to cast the returned value to a uint<bits>. */ function read(Source src, uint256 bits) internal pure returns (uint256 sample) { require(bits <= 256, "PRNG: max 256 bits"); uint256 remain; assembly { remain := mload(add(src, REMAIN)) } if (remain > bits) { return readWithSufficient(src, bits); } uint256 extra = bits - remain; sample = readWithSufficient(src, remain); assembly { sample := shl(extra, sample) } _refill(src); sample = sample | readWithSufficient(src, extra); } /** @notice Returns the specified number of bits, assuming that there is sufficient entropy remaining. See read() for usage. */ function readWithSufficient(Source src, uint256 bits) private pure returns (uint256 sample) { assembly { let pool := add(src, ENTROPY) let ent := mload(pool) sample := and(ent, sub(shl(bits, 1), 1)) mstore(pool, shr(bits, ent)) let rem := add(src, REMAIN) mstore(rem, sub(mload(rem), bits)) } } /// @notice Returns a random boolean. function readBool(Source src) internal pure returns (bool) { return read(src, 1) == 1; } /** @notice Returns the number of bits needed to encode n. @dev Useful for calling readLessThan() multiple times with the same upper bound. */ function bitLength(uint256 n) internal pure returns (uint16 bits) { assembly { for { let _n := n } gt(_n, 0) { _n := shr(1, _n) } { bits := add(bits, 1) } } } /** @notice Returns a uniformly random value in [0,n) with rejection sampling. @dev If the size of n is known, prefer readLessThan(Source, uint, uint16) as it skips the bit counting performed by this version; see bitLength(). */ function readLessThan(Source src, uint256 n) internal pure returns (uint256) { return readLessThan(src, n, bitLength(n)); } /** @notice Returns a uniformly random value in [0,n) with rejection sampling from the range [0,2^bits). @dev For greatest efficiency, the value of bits should be the smallest number of bits required to capture n; if this is not known, use readLessThan(Source, uint) or bitLength(). Although rejections are reduced by using twice the number of bits, this increases the rate at which the entropy pool must be refreshed with a call to keccak256(). TODO: benchmark higher number of bits for rejection vs hashing gas cost. */ function readLessThan( Source src, uint256 n, uint16 bits ) internal pure returns (uint256 result) { // Discard results >= n and try again because using % will bias towards // lower values; e.g. if n = 13 and we read 4 bits then {13, 14, 15}%13 // will select {0, 1, 2} twice as often as the other values. for (result = n; result >= n; result = read(src, bits)) {} } /** @notice Returns the internal state of the Source. @dev MUST NOT be considered part of the API and is subject to change without deprecation nor warning. Only exposed for testing. */ function state(Source src) internal pure returns ( uint256 seed, uint256 counter, uint256 entropy, uint256 remain ) { assembly { seed := mload(src) counter := mload(add(src, COUNTER)) entropy := mload(add(src, ENTROPY)) remain := mload(add(src, REMAIN)) } } }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 Divergent Technologies Ltd (github.com/divergencetech) pragma solidity >=0.8.0 <0.9.0; import "./BaseOpenSea.sol"; import "../utils/OwnerPausable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol"; import "@openzeppelin/contracts/utils/Context.sol"; /** @notice An ERC721 contract with common functionality: - OpenSea gas-free listings - OpenZeppelin Enumerable and Pausable - OpenZeppelin Pausable with functions exposed to Owner only */ contract ERC721Common is BaseOpenSea, Context, ERC721Enumerable, ERC721Pausable, OwnerPausable { /** @param openSeaProxyRegistry Set to 0xa5409ec958c83c3f309868babaca7c86dcb077c1 for Mainnet and 0xf57b2c51ded3a29e6891aba85459d600256cf317 for Rinkeby. */ constructor( string memory name, string memory symbol, address openSeaProxyRegistry ) ERC721(name, symbol) { if (openSeaProxyRegistry != address(0)) { BaseOpenSea._setOpenSeaRegistry(openSeaProxyRegistry); } } /// @notice Requires that the token exists. modifier tokenExists(uint256 tokenId) { require(ERC721._exists(tokenId), "ERC721Common: Token doesn't exist"); _; } /// @notice Requires that msg.sender owns or is approved for the token. modifier onlyApprovedOrOwner(uint256 tokenId) { require( _isApprovedOrOwner(_msgSender(), tokenId), "ERC721Common: Not approved nor owner" ); _; } /// @notice Overrides _beforeTokenTransfer as required by inheritance. function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721Enumerable, ERC721Pausable) { super._beforeTokenTransfer(from, to, tokenId); } /// @notice Overrides supportsInterface as required by inheritance. function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) { return super.supportsInterface(interfaceId); } /** @notice Returns true if either standard isApprovedForAll() returns true or the operator is the OpenSea proxy for the owner. */ function isApprovedForAll(address owner, address operator) public view override returns (bool) { return super.isApprovedForAll(owner, operator) || BaseOpenSea.isOwnersOpenSeaProxy(owner, operator); } }
// SPDX-License-Identifier: MIT // Copyright Simon Fremaux (@dievardump) // https://gist.github.com/dievardump/483eb43bc6ed30b14f01e01842e3339b/ pragma solidity ^0.8.0; /// @title OpenSea contract helper that defines a few things /// @author Simon Fremaux (@dievardump) /// @dev This is a contract used to add OpenSea's support for gas-less trading /// by checking if operator is owner's proxy contract BaseOpenSea { string private _contractURI; ProxyRegistry private _proxyRegistry; /// @notice Returns the contract URI function. Used on OpenSea to get details /// about a contract (owner, royalties etc...) /// See documentation: https://docs.opensea.io/docs/contract-level-metadata function contractURI() public view returns (string memory) { return _contractURI; } /// @notice Helper for OpenSea gas-less trading /// @dev Allows to check if `operator` is owner's OpenSea proxy /// @param owner the owner we check for /// @param operator the operator (proxy) we check for function isOwnersOpenSeaProxy(address owner, address operator) public view returns (bool) { ProxyRegistry proxyRegistry = _proxyRegistry; return // we have a proxy registry address address(proxyRegistry) != address(0) && // current operator is owner's proxy address address(proxyRegistry.proxies(owner)) == operator; } /// @dev Internal function to set the _contractURI /// @param contractURI_ the new contract uri function _setContractURI(string memory contractURI_) internal { _contractURI = contractURI_; } /// @dev Internal function to set the _proxyRegistry /// @param proxyRegistryAddress the new proxy registry address function _setOpenSeaRegistry(address proxyRegistryAddress) internal { _proxyRegistry = ProxyRegistry(proxyRegistryAddress); } } contract OwnableDelegateProxy {} contract ProxyRegistry { mapping(address => OwnableDelegateProxy) public proxies; }
// SPDX-License-Identifier: MIT // Copyright (c) 2021 Divergent Technologies Ltd (github.com/divergencetech) pragma solidity >=0.8.0 <0.9.0; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; /** @title SignatureChecker @notice Additional functions for EnumerableSet.Addresset that require a valid ECDSA signature, signed by any member of the set. */ library SignatureChecker { using EnumerableSet for EnumerableSet.AddressSet; /** @notice Requires that the nonce has not been used previously and that the recovered signer is contained in the signers AddressSet. @param signers Set of addresses from which signatures are accepted. @param usedNonces Set of already-used nonces. @param signature ECDSA signature of keccak256(abi.encodePacked(data,nonce)). */ function validateSignature( EnumerableSet.AddressSet storage signers, bytes memory data, bytes32 nonce, bytes calldata signature, mapping(bytes32 => bool) storage usedNonces ) internal { require(!usedNonces[nonce], "SignatureChecker: Nonce already used"); usedNonces[nonce] = true; _validate(signers, keccak256(abi.encodePacked(data, nonce)), signature); } /** @notice Requires that the recovered signer is contained in the signers AddressSet. */ function validateSignature( EnumerableSet.AddressSet storage signers, bytes32 hash, bytes calldata signature ) internal view { _validate(signers, hash, signature); } /** @notice Hashes addr and requires that the recovered signer is contained in the signers AddressSet. @dev Equivalent to validate(sha3(addr), signature); */ function validateSignature( EnumerableSet.AddressSet storage signers, address addr, bytes calldata signature ) internal view { _validate(signers, keccak256(abi.encodePacked(addr)), signature); } /** @notice Common validator logic, requiring that the recovered signer is contained in the _signers AddressSet. */ function _validate( EnumerableSet.AddressSet storage signers, bytes32 hash, bytes calldata signature ) private view { require( signers.contains(ECDSA.recover(hash, signature)), "SignatureChecker: Invalid signature" ); } }
// SPDX-License-Identifier: UNLICENSED // Copyright 2021 Arran Schlosberg (@divergencearran / @divergence_art) pragma solidity >=0.8.0 <0.9.0; import "@divergencetech/ethier/contracts/crypto/SignatureChecker.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; /// @dev Abstract the set of signers to keep primary contract smaller. contract SignerRegistry is Ownable { using EnumerableSet for EnumerableSet.AddressSet; using SignatureChecker for EnumerableSet.AddressSet; /** @notice Addresses from which we accept signatures during allow-list phase. */ EnumerableSet.AddressSet private _signers; constructor(address[] memory signers) { for (uint256 i = 0; i < signers.length; i++) { _signers.add(signers[i]); } } /// @notice Wrapper around internal signers.validateSignature(). function validateSignature(address to, bytes calldata signature) public view { _signers.validateSignature(to, signature); } /// @notice Add an address to the set of allowed signature sources. function addSigner(address signer) external onlyOwner { _signers.add(signer); } /// @notice Remove an address from the set of allowed signature sources. function removeSigner(address signer) external onlyOwner { _signers.remove(signer); } }
// SPDX-License-Identifier: UNLICENSED // Copyright 2021 Arran Schlosberg (@divergencearran / @divergence_art) pragma solidity >=0.8.0 <0.9.0; import "@divergencetech/ethier/contracts/random/PRNG.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import "@openzeppelin/contracts/utils/math/Math.sol"; contract MetaPurse is Ownable { using PRNG for PRNG.Source; /// @notice The primary GB contract that deployed this one. IERC721 public immutable glitchyBitches; constructor() { glitchyBitches = IERC721(msg.sender); } /// @notice Requires that the message sender is the primary GB contract. modifier onlyGlitchyBitches() { require( msg.sender == address(glitchyBitches), "Only GlitchyBitches contract" ); _; } /// @notice Total number of versions for each token. uint8 private constant NUM_VERSIONS = 6; /// @notice Carries per-token metadata. struct Token { uint8 version; uint8 highestRevealed; // Changing a token to a different version requires an allowance, // increasing by 1 per day. This is calculated as the difference in time // since the token's allowance started incrementing, less the amount // spent. See allowanceOf(). uint64 changeAllowanceStartTime; int64 spent; uint8 glitched; } /// @notice All token metadata. /// @dev Tokens are minted incrementally to correspond to array index. Token[] public tokens; /// @notice Adds metadata for a new set of tokens. function newTokens(uint256 num, bool extraAllowance) public onlyGlitchyBitches { int64 initialSpent = extraAllowance ? int64(-30) : int64(0); for (uint256 i = 0; i < num; i++) { tokens.push( Token({ version: 0, highestRevealed: 0, changeAllowanceStartTime: uint64(block.timestamp), spent: initialSpent, glitched: 0 }) ); } } /// @notice Returns tokens[tokenId].version, for use by GB tokenURI(). function tokenVersion(uint256 tokenId) external view tokenExists(tokenId) returns (uint8) { return tokens[tokenId].version; } /// @notice Tokens that have a higher rate of increasing allowance. mapping(uint256 => uint64) private _allowanceRate; /// @notice Sets the higher allowance rate for the specified tokens. /// @dev These are only set after minting because that stops people from /// waiting to mint a specific valuable piece. The off-chain data makes it /// clear that they're different, so we can't arbitrarily set these at whim. function setHigherAllowanceRates(uint64 rate, uint256[] memory tokenIds) external onlyOwner { for (uint256 i = 0; i < tokenIds.length; i++) { _allowanceRate[tokenIds[i]] = rate; } } /// @notice Requires that a token exists. function _requireTokenExists(uint256 tokenId) private view { require(tokenId < tokens.length, "Token doesn't exist"); } /// @notice Modifier equivalent of _requireTokenExists. modifier tokenExists(uint256 tokenId) { _requireTokenExists(tokenId); _; } /** @notice Requires that the message sender either owns or is approved for the token. */ modifier onlyApprovedOrOwner(uint256 tokenId) { _requireTokenExists(tokenId); require( glitchyBitches.ownerOf(tokenId) == msg.sender || glitchyBitches.getApproved(tokenId) == msg.sender, "Not approved nor owner" ); _; } /// @notice Returns the version-change allowance of the token. function allowanceOf(uint256 tokenId) public view tokenExists(tokenId) returns (uint32) { Token storage token = tokens[tokenId]; uint64 higherRate = _allowanceRate[tokenId]; uint64 rate = uint64(higherRate > 0 ? higherRate : 1); uint64 allowance = ((uint64(block.timestamp) - token.changeAllowanceStartTime) / 86400) * rate; return uint32(uint64(int64(allowance) - token.spent)); } /// @notice Reduces the version-change allowance of the token by amount. /// @dev Enforces a non-negative allowanceOf(). /// @param amount The amount by which allowanceOf() will be reduced. function _spend(uint256 tokenId, uint32 amount) internal onlyApprovedOrOwner(tokenId) { require(allowanceOf(tokenId) >= amount, "Insufficient allowance"); tokens[tokenId].spent += int64(int32(amount)); } /// @notice Costs for version-changing actions. See allowanceOf(). uint32 public REVEAL_COST = 30; uint32 public CHANGE_COST = 10; event VersionRevealed(uint256 indexed tokenId, uint8 version); /// @notice Reveals the next version for the token, if one exists, and sets /// the token metadata to show this version. /// @dev The use of _spend() limits this to owners / approved. function revealVersion(uint256 tokenId) external tokenExists(tokenId) { Token storage token = tokens[tokenId]; token.highestRevealed++; require(token.highestRevealed < NUM_VERSIONS, "All revealed"); _spend(tokenId, REVEAL_COST); token.version = token.highestRevealed; emit VersionRevealed(tokenId, token.highestRevealed); } event VersionChanged(uint256 indexed tokenId, uint8 version); /// @notice Changes to an already-revealed version of the token. /// @dev The use of _spend() limits this to owners / approved. function changeToVersion(uint256 tokenId, uint8 version) external tokenExists(tokenId) { Token storage token = tokens[tokenId]; // There's a 1-in-8 chance that she glitches. See the comment re // randomness in changeToRandomVersion(); TL;DR doesn't need to be // secure. if (token.highestRevealed == NUM_VERSIONS - 1) { bytes32 rand = keccak256(abi.encodePacked(tokenId, block.number)); if (uint256(rand) & 7 == 0) { return _changeToRandomVersion(tokenId, true, version); } } require(version <= token.highestRevealed, "Version not revealed"); require(version != token.version, "Already on version"); _spend(tokenId, CHANGE_COST); token.version = version; token.glitched = 0; emit VersionChanged(tokenId, version); } /// @notice Randomly changes to an already-revealed version of the token. /// @dev The use of _spend() limits this to owners / approved. function changeToRandomVersion(uint256 tokenId) external tokenExists(tokenId) { _changeToRandomVersion(tokenId, false, 255); } /// @notice Randomly changes to an already-revealed version of the token. /// @dev The use of _spend() limits this to owners / approved. /// @param glitched Whether this function was called due to a "glitch". /// @param wanted The version number actually requested; used to avoid /// glitching to the same value. function _changeToRandomVersion( uint256 tokenId, bool glitched, uint8 wanted ) internal { Token storage token = tokens[tokenId]; require(token.highestRevealed > 0, "Insufficient reveals"); _spend(tokenId, CHANGE_COST); // This function only requires randomness for "fun" to allow collectors // to change to an unexpected version. We don't need to protect against // bad actors, so it's safe to assume that a specific token won't be // changed more than once per block. PRNG.Source src = PRNG.newSource( keccak256(abi.encodePacked(tokenId, block.number)) ); uint256 version; for ( version = NUM_VERSIONS; // guarantee at least one read from src version >= NUM_VERSIONS || // unbiased version == token.version || version == wanted; version = src.read(3) ) {} token.version = uint8(version); token.glitched = glitched ? 1 : 0; emit VersionChanged(tokenId, uint8(version)); } /// @notice Donate version-changing allowance to a different token. /// @dev The use of _spend() limits this to owners / approved of fromId. function donate( uint256 fromId, uint256 toId, uint32 amount ) external tokenExists(fromId) tokenExists(toId) { _spend(fromId, amount); tokens[toId].spent -= int64(int32(amount)); } /// @notice Input parameter for increaseAllowance(), coupling a tokenId with /// the amount of version-changing allowance it will receive. struct Allocation { uint256 tokenId; uint32 amount; } /// @notice Allocate version-changing allowance to a set of tokens. function increaseAllowance(Allocation[] memory allocs) external onlyOwner { for (uint256 i = 0; i < allocs.length; i++) { _requireTokenExists(allocs[i].tokenId); tokens[allocs[i].tokenId].spent -= int64(int32(allocs[i].amount)); } } }
{ "remappings": [], "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"openSeaProxyRegistry","type":"address"},{"internalType":"address[]","name":"_signers","type":"address[]"},{"internalType":"address payable","name":"beneficiary","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Refund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"numPurchased","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Revenue","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"},{"inputs":[],"name":"_baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"beneficiary","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"n","type":"uint256"}],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"earlyMinting","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isOwnersOpenSeaProxy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"metapurse","outputs":[{"internalType":"contract MetaPurse","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"num","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerQuota","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"num","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"safeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sellerConfig","outputs":[{"internalType":"uint256","name":"totalInventory","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_beneficiary","type":"address"}],"name":"setBeneficiary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"allowList","type":"bool"},{"internalType":"bool","name":"early","type":"bool"}],"name":"setMintingFlags","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"totalInventory","type":"uint256"},{"internalType":"uint256","name":"maxPerAddress","type":"uint256"},{"internalType":"uint256","name":"maxPerTx","type":"uint256"}],"internalType":"struct Seller.SellerConfig","name":"config","type":"tuple"}],"name":"setSellerConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signers","outputs":[{"internalType":"contract SignerRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c06040526001601460006101000a81548160ff0219169083151502179055506001601460016101000a81548160ff0219169083151502179055506101f46015553480156200004d57600080fd5b506040516200a7be3803806200a7be833981810160405281019062000073919062000ac2565b66f8b0a10e47000060405180606001604052806127758152602001600a8152602001600a81525082818189898982828160029080519060200190620000ba929190620006d4565b508060039080519060200190620000d3929190620006d4565b505050620000f6620000ea6200037660201b60201c565b6200037e60201b60201c565b6000600c60146101000a81548160ff021916908315150217905550600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146200015d576200015c816200044460201b62001dab1760201c565b5b5050506001600d8190555062000179826200048860201b60201c565b6200018a816200053e60201b60201c565b50506200019d836200061160201b60201c565b505050604051620001ae9062000765565b604051809103906000f080158015620001cb573d6000803e3d6000fd5b5073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff168152505060805173ffffffffffffffffffffffffffffffffffffffff1663f2fde38b6200022d620006aa60201b60201c565b6040518263ffffffff1660e01b81526004016200024b919062000bb8565b600060405180830381600087803b1580156200026657600080fd5b505af11580156200027b573d6000803e3d6000fd5b50505050816040516200028e9062000773565b6200029a919062000ca3565b604051809103906000f080158015620002b7573d6000803e3d6000fd5b5073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff168152505060a05173ffffffffffffffffffffffffffffffffffffffff1663f2fde38b62000319620006aa60201b60201c565b6040518263ffffffff1660e01b815260040162000337919062000bb8565b600060405180830381600087803b1580156200035257600080fd5b505af115801562000367573d6000803e3d6000fd5b50505050505050505062000daf565b600033905090565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b620004986200037660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff16620004be620006aa60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff161462000517576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200050e9062000d28565b60405180910390fd5b80600e60008201518160000155602082015181600101556040820151816002015590505050565b6200054e6200037660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000574620006aa60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620005cd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005c49062000d28565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b620006216200037660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1662000647620006aa60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614620006a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620006979062000d28565b60405180910390fd5b8060138190555050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b828054620006e29062000d79565b90600052602060002090601f01602090048101928262000706576000855562000752565b82601f106200072157805160ff191683800117855562000752565b8280016001018555821562000752579182015b828111156200075157825182559160200191906001019062000734565b5b50905062000761919062000781565b5090565b61276f806200681983390190565b6118368062008f8883390190565b5b808211156200079c57600081600090555060010162000782565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200080982620007be565b810181811067ffffffffffffffff821117156200082b576200082a620007cf565b5b80604052505050565b600062000840620007a0565b90506200084e8282620007fe565b919050565b600067ffffffffffffffff821115620008715762000870620007cf565b5b6200087c82620007be565b9050602081019050919050565b60005b83811015620008a95780820151818401526020810190506200088c565b83811115620008b9576000848401525b50505050565b6000620008d6620008d08462000853565b62000834565b905082815260208101848484011115620008f557620008f4620007b9565b5b6200090284828562000889565b509392505050565b600082601f830112620009225762000921620007b4565b5b815162000934848260208601620008bf565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200096a826200093d565b9050919050565b6200097c816200095d565b81146200098857600080fd5b50565b6000815190506200099c8162000971565b92915050565b600067ffffffffffffffff821115620009c057620009bf620007cf565b5b602082029050602081019050919050565b600080fd5b6000620009ed620009e784620009a2565b62000834565b9050808382526020820190506020840283018581111562000a135762000a12620009d1565b5b835b8181101562000a40578062000a2b88826200098b565b84526020840193505060208101905062000a15565b5050509392505050565b600082601f83011262000a625762000a61620007b4565b5b815162000a74848260208601620009d6565b91505092915050565b600062000a8a826200093d565b9050919050565b62000a9c8162000a7d565b811462000aa857600080fd5b50565b60008151905062000abc8162000a91565b92915050565b600080600080600060a0868803121562000ae15762000ae0620007aa565b5b600086015167ffffffffffffffff81111562000b025762000b01620007af565b5b62000b10888289016200090a565b955050602086015167ffffffffffffffff81111562000b345762000b33620007af565b5b62000b42888289016200090a565b945050604062000b55888289016200098b565b935050606086015167ffffffffffffffff81111562000b795762000b78620007af565b5b62000b878882890162000a4a565b925050608062000b9a8882890162000aab565b9150509295509295909350565b62000bb2816200095d565b82525050565b600060208201905062000bcf600083018462000ba7565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b62000c0c816200095d565b82525050565b600062000c20838362000c01565b60208301905092915050565b6000602082019050919050565b600062000c468262000bd5565b62000c52818562000be0565b935062000c5f8362000bf1565b8060005b8381101562000c9657815162000c7a888262000c12565b975062000c878362000c2c565b92505060018101905062000c63565b5085935050505092915050565b6000602082019050818103600083015262000cbf818462000c39565b905092915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600062000d1060208362000cc7565b915062000d1d8262000cd8565b602082019050919050565b6000602082019050818103600083015262000d438162000d01565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168062000d9257607f821691505b6020821081141562000da95762000da862000d4a565b5b50919050565b60805160a051615a2f62000dea600039600081816110150152611580015260008181610e9701528181611a9601526123a40152615a2f6000f3fe6080604052600436106102515760003560e01c80636b81114d11610139578063a035b1fe116100b6578063bb69b7ef1161007a578063bb69b7ef14610891578063c87b56dd146108be578063cfc86f7b146108fb578063e8a3d48514610926578063e985e9c514610951578063f2fde38b1461098e57610251565b8063a035b1fe146107c0578063a07de775146107eb578063a22cb46514610816578063b2e88d001461083f578063b88d4fde1461086857610251565b80638da5cb5b116100fd5780638da5cb5b146106d95780639097548d146107045780639106d7ba1461074157806391b7f5ed1461076c57806395d89b411461079557610251565b80636b81114d1461062757806370a0823114610652578063715018a61461068f5780638456cb59146106a65780638832e6e3146106bd57610251565b806338af3eed116101d257806346f0975a1161019657806346f0975a146104f1578063484b973c1461051c5780634f6ccce7146105455780635c975abb146105825780636102de98146105ad5780636352211e146105ea57610251565b806338af3eed146104325780633add6ae31461045d5780633c5d3de5146104885780633f4ba83a146104b157806342842e0e146104c857610251565b80631c31f710116102195780631c31f7101461034f57806323b872dd14610378578063252e3ab9146103a15780632f745c59146103cc57806330176e131461040957610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063095ea7b3146102fb57806318160ddd14610324575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613aeb565b6109b7565b60405161028a9190613b33565b60405180910390f35b34801561029f57600080fd5b506102a86109c9565b6040516102b59190613be7565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e09190613c3f565b610a5b565b6040516102f29190613cad565b60405180910390f35b34801561030757600080fd5b50610322600480360381019061031d9190613cf4565b610ae0565b005b34801561033057600080fd5b50610339610bf8565b6040516103469190613d43565b60405180910390f35b34801561035b57600080fd5b5061037660048036038101906103719190613d9c565b610c05565b005b34801561038457600080fd5b5061039f600480360381019061039a9190613dc9565b610cc5565b005b3480156103ad57600080fd5b506103b6610d25565b6040516103c39190613b33565b60405180910390f35b3480156103d857600080fd5b506103f360048036038101906103ee9190613cf4565b610d38565b6040516104009190613d43565b60405180910390f35b34801561041557600080fd5b50610430600480360381019061042b9190613e81565b610ddd565b005b34801561043e57600080fd5b50610447610e6f565b6040516104549190613edd565b60405180910390f35b34801561046957600080fd5b50610472610e95565b60405161047f9190613f57565b60405180910390f35b34801561049457600080fd5b506104af60048036038101906104aa9190613f9e565b610eb9565b005b3480156104bd57600080fd5b506104c6610f6d565b005b3480156104d457600080fd5b506104ef60048036038101906104ea9190613dc9565b610ff3565b005b3480156104fd57600080fd5b50610506611013565b6040516105139190613fff565b60405180910390f35b34801561052857600080fd5b50610543600480360381019061053e9190613cf4565b611037565b005b34801561055157600080fd5b5061056c60048036038101906105679190613c3f565b611142565b6040516105799190613d43565b60405180910390f35b34801561058e57600080fd5b506105976111b3565b6040516105a49190613b33565b60405180910390f35b3480156105b957600080fd5b506105d460048036038101906105cf919061401a565b6111ca565b6040516105e19190613b33565b60405180910390f35b3480156105f657600080fd5b50610611600480360381019061060c9190613c3f565b6112eb565b60405161061e9190613cad565b60405180910390f35b34801561063357600080fd5b5061063c61139d565b6040516106499190613d43565b60405180910390f35b34801561065e57600080fd5b506106796004803603810190610674919061405a565b6113a3565b6040516106869190613d43565b60405180910390f35b34801561069b57600080fd5b506106a461145b565b005b3480156106b257600080fd5b506106bb6114e3565b005b6106d760048036038101906106d291906140dd565b611569565b005b3480156106e557600080fd5b506106ee61161c565b6040516106fb9190613cad565b60405180910390f35b34801561071057600080fd5b5061072b60048036038101906107269190613c3f565b611646565b6040516107389190613d43565b60405180910390f35b34801561074d57600080fd5b5061075661165d565b6040516107639190613d43565b60405180910390f35b34801561077857600080fd5b50610793600480360381019061078e9190613c3f565b61166c565b005b3480156107a157600080fd5b506107aa6116f2565b6040516107b79190613be7565b60405180910390f35b3480156107cc57600080fd5b506107d5611784565b6040516107e29190613d43565b60405180910390f35b3480156107f757600080fd5b5061080061178a565b60405161080d9190613b33565b60405180910390f35b34801561082257600080fd5b5061083d60048036038101906108389190614151565b61179d565b005b34801561084b57600080fd5b5061086660048036038101906108619190614275565b61191e565b005b34801561087457600080fd5b5061088f600480360381019061088a9190614357565b6119c1565b005b34801561089d57600080fd5b506108a6611a23565b6040516108b5939291906143da565b60405180910390f35b3480156108ca57600080fd5b506108e560048036038101906108e09190613c3f565b611a3b565b6040516108f29190613be7565b60405180910390f35b34801561090757600080fd5b50610910611b6e565b60405161091d9190613be7565b60405180910390f35b34801561093257600080fd5b5061093b611bfc565b6040516109489190613be7565b60405180910390f35b34801561095d57600080fd5b506109786004803603810190610973919061401a565b611c8e565b6040516109859190613b33565b60405180910390f35b34801561099a57600080fd5b506109b560048036038101906109b0919061405a565b611cb3565b005b60006109c282611def565b9050919050565b6060600280546109d890614440565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0490614440565b8015610a515780601f10610a2657610100808354040283529160200191610a51565b820191906000526020600020905b815481529060010190602001808311610a3457829003601f168201915b5050505050905090565b6000610a6682611e69565b610aa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9c906144e4565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610aeb826112eb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5390614576565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b7b611ed5565b73ffffffffffffffffffffffffffffffffffffffff161480610baa5750610ba981610ba4611ed5565b611c8e565b5b610be9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be090614608565b60405180910390fd5b610bf38383611edd565b505050565b6000600a80549050905090565b610c0d611ed5565b73ffffffffffffffffffffffffffffffffffffffff16610c2b61161c565b73ffffffffffffffffffffffffffffffffffffffff1614610c81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7890614674565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610cd6610cd0611ed5565b82611f96565b610d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0c90614706565b60405180910390fd5b610d20838383612074565b505050565b601460019054906101000a900460ff1681565b6000610d43836113a3565b8210610d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7b90614798565b60405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610de5611ed5565b73ffffffffffffffffffffffffffffffffffffffff16610e0361161c565b73ffffffffffffffffffffffffffffffffffffffff1614610e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5090614674565b60405180910390fd5b818160169190610e6a9291906139dc565b505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b610ec1611ed5565b73ffffffffffffffffffffffffffffffffffffffff16610edf61161c565b73ffffffffffffffffffffffffffffffffffffffff1614610f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2c90614674565b60405180910390fd5b80601460006101000a81548160ff02191690831515021790555081601460016101000a81548160ff0219169083151502179055505050565b610f75611ed5565b73ffffffffffffffffffffffffffffffffffffffff16610f9361161c565b73ffffffffffffffffffffffffffffffffffffffff1614610fe9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe090614674565b60405180910390fd5b610ff16122d0565b565b61100e838383604051806020016040528060008152506119c1565b505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b61103f611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661105d61161c565b73ffffffffffffffffffffffffffffffffffffffff16146110b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110aa90614674565b60405180910390fd5b60155481111580156110dc57506110c8610bf8565b600e600001546110d891906147e7565b8111155b61111b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111290614867565b60405180910390fd5b806015600082825461112d91906147e7565b9250508190555061113e8282612372565b5050565b600061114c610bf8565b821061118d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611184906148f9565b60405180910390fd5b600a82815481106111a1576111a0614919565b5b90600052602060002001549050919050565b6000600c60149054906101000a900460ff16905090565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156112e257508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161127a9190613cad565b60206040518083038186803b15801561129257600080fd5b505afa1580156112a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ca9190614986565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6000806004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138b90614a25565b60405180910390fd5b80915050919050565b60155481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611414576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140b90614ab7565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611463611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661148161161c565b73ffffffffffffffffffffffffffffffffffffffff16146114d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ce90614674565b60405180910390fd5b6114e16000612442565b565b6114eb611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661150961161c565b73ffffffffffffffffffffffffffffffffffffffff161461155f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155690614674565b60405180910390fd5b611567612508565b565b601460019054906101000a900460ff161561160c577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ab57392b8584846040518463ffffffff1660e01b81526004016115db93929190614b15565b60006040518083038186803b1580156115f357600080fd5b505afa158015611607573d6000803e3d6000fd5b505050505b61161684846125ab565b50505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000601354826116569190614b47565b9050919050565b6000611667610bf8565b905090565b611674611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661169261161c565b73ffffffffffffffffffffffffffffffffffffffff16146116e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116df90614674565b60405180910390fd5b8060138190555050565b60606003805461170190614440565b80601f016020809104026020016040519081016040528092919081815260200182805461172d90614440565b801561177a5780601f1061174f5761010080835404028352916020019161177a565b820191906000526020600020905b81548152906001019060200180831161175d57829003601f168201915b5050505050905090565b60135481565b601460009054906101000a900460ff1681565b6117a5611ed5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180a90614bed565b60405180910390fd5b8060076000611820611ed5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118cd611ed5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119129190613b33565b60405180910390a35050565b611926611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661194461161c565b73ffffffffffffffffffffffffffffffffffffffff161461199a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199190614674565b60405180910390fd5b80600e60008201518160000155602082015181600101556040820151816002015590505050565b6119d26119cc611ed5565b83611f96565b611a11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0890614706565b60405180910390fd5b611a1d84848484612bec565b50505050565b600e8060000154908060010154908060020154905083565b606081611a4781611e69565b611a86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7d90614c7f565b60405180910390fd5b6016611a9184612c48565b611b457f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16639c7ad103876040518263ffffffff1660e01b8152600401611aed9190613d43565b60206040518083038186803b158015611b0557600080fd5b505afa158015611b19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3d9190614cd8565b60ff16612c48565b604051602001611b5793929190614eb9565b604051602081830303815290604052915050919050565b60168054611b7b90614440565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba790614440565b8015611bf45780601f10611bc957610100808354040283529160200191611bf4565b820191906000526020600020905b815481529060010190602001808311611bd757829003601f168201915b505050505081565b606060008054611c0b90614440565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3790614440565b8015611c845780601f10611c5957610100808354040283529160200191611c84565b820191906000526020600020905b815481529060010190602001808311611c6757829003601f168201915b5050505050905090565b6000611c9a8383612da9565b80611cab5750611caa83836111ca565b5b905092915050565b611cbb611ed5565b73ffffffffffffffffffffffffffffffffffffffff16611cd961161c565b73ffffffffffffffffffffffffffffffffffffffff1614611d2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2690614674565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9690614f7d565b60405180910390fd5b611da881612442565b50565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e625750611e6182612e3d565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611f50836112eb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611fa182611e69565b611fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd79061500f565b60405180910390fd5b6000611feb836112eb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061205a57508373ffffffffffffffffffffffffffffffffffffffff1661204284610a5b565b73ffffffffffffffffffffffffffffffffffffffff16145b8061206b575061206a8185611c8e565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612094826112eb565b73ffffffffffffffffffffffffffffffffffffffff16146120ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e1906150a1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561215a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215190615133565b60405180910390fd5b612165838383612f1f565b612170600082611edd565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121c091906147e7565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122179190615153565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6122d86111b3565b612317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230e906151f5565b60405180910390fd5b6000600c60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61235b611ed5565b6040516123689190613cad565b60405180910390a1565b60005b818110156123a15761238e83612389610bf8565b612f2f565b808061239990615215565b915050612375565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16633de90acf82601460009054906101000a900460ff166040518363ffffffff1660e01b815260040161240c92919061525e565b600060405180830381600087803b15801561242657600080fd5b505af115801561243a573d6000803e3d6000fd5b505050505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6125106111b3565b15612550576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612547906152d3565b60405180910390fd5b6001600c60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612594611ed5565b6040516125a19190613cad565b60405180910390a1565b6002600d5414156125f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e89061533f565b60405180910390fd5b6002600d819055506126016111b3565b15612641576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612638906152d3565b60405180910390fd5b600061265282600e60020154612f4d565b905061269481846040518060400160405280600b81526020017f4275796572206c696d6974000000000000000000000000000000000000000000815250612f66565b905060008373ffffffffffffffffffffffffffffffffffffffff166126b7611ed5565b73ffffffffffffffffffffffffffffffffffffffff161415905060006126db611ed5565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161415801561274257508473ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614155b905081156127945761279183612756611ed5565b6040518060400160405280600c81526020017f53656e646572206c696d69740000000000000000000000000000000000000000815250612f66565b92505b80156127dd576127da83326040518060400160405280600c81526020017f4f726967696e206c696d69740000000000000000000000000000000000000000815250612f66565b92505b6127fe836127e961165d565b600e600001546127f991906147e7565b612f4d565b925060008311612843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283a906153ab565b60405180910390fd5b600061284e84611646565b9050803410156128cb57612870633b9aca008261286b91906153fa565b612c48565b60405160200161288091906154c3565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c29190613be7565b60405180910390fd5b83601260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461291a9190615153565b925050819055508215612985578360126000612934611ed5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461297d9190615153565b925050819055505b81156129e25783601260003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129da9190615153565b925050819055505b6129ec8685612372565b6000811115612ab357612a4081601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661303490919063ffffffff16565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f01f51b99bd1c3cca301836178e5dee13aadfe44eff06dc3ddcbf3c9d058454f88583604051612aaa9291906154f0565b60405180910390a25b80341115612bdc576000612ac5611ed5565b905060008234612ad591906147e7565b90506000808373ffffffffffffffffffffffffffffffffffffffff1683604051612afe9061554a565b60006040518083038185875af1925050503d8060008114612b3b576040519150601f19603f3d011682016040523d82523d6000602084013e612b40565b606091505b5091509150818190612b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7f9190613be7565b60405180910390fd5b508373ffffffffffffffffffffffffffffffffffffffff167fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d84604051612bcf9190613d43565b60405180910390a2505050505b505050506001600d819055505050565b612bf7848484612074565b612c0384848484613128565b612c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c39906155d1565b60405180910390fd5b50505050565b60606000821415612c90576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612da4565b600082905060005b60008214612cc2578080612cab90615215565b915050600a82612cbb91906153fa565b9150612c98565b60008167ffffffffffffffff811115612cde57612cdd614196565b5b6040519080825280601f01601f191660200182016040528015612d105781602001600182028036833780820191505090505b5090505b60008514612d9d57600182612d2991906147e7565b9150600a85612d3891906155f1565b6030612d449190615153565b60f81b818381518110612d5a57612d59614919565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d9691906153fa565b9450612d14565b8093505050505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612f0857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612f185750612f17826132bf565b5b9050919050565b612f2a838383613329565b505050565b612f49828260405180602001604052806000815250613381565b5050565b6000818310612f5c5781612f5e565b825b905092915050565b600080601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600e60010154612fb991906147e7565b905060008114156130205782604051602001612fd5919061566e565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130179190613be7565b60405180910390fd5b61302a8582612f4d565b9150509392505050565b80471015613077576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306e906156dc565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161309d9061554a565b60006040518083038185875af1925050503d80600081146130da576040519150601f19603f3d011682016040523d82523d6000602084013e6130df565b606091505b5050905080613123576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311a9061576e565b60405180910390fd5b505050565b60006131498473ffffffffffffffffffffffffffffffffffffffff166133dc565b156132b2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613172611ed5565b8786866040518563ffffffff1660e01b815260040161319494939291906157d2565b602060405180830381600087803b1580156131ae57600080fd5b505af19250505080156131df57506040513d601f19601f820116820180604052508101906131dc9190615833565b60015b613262573d806000811461320f576040519150601f19603f3d011682016040523d82523d6000602084013e613214565b606091505b5060008151141561325a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613251906155d1565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132b7565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6133348383836133ef565b61333c6111b3565b1561337c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613373906158d2565b60405180910390fd5b505050565b61338b8383613503565b6133986000848484613128565b6133d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133ce906155d1565b60405180910390fd5b505050565b600080823b905060008111915050919050565b6133fa8383836136d1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561343d57613438816136d6565b61347c565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461347b5761347a838261371f565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156134bf576134ba8161388c565b6134fe565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146134fd576134fc828261395d565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161356a9061593e565b60405180910390fd5b61357c81611e69565b156135bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135b3906159aa565b60405180910390fd5b6135c860008383612f1f565b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136189190615153565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b600a80549050600b600083815260200190815260200160002081905550600a81908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161372c846113a3565b61373691906147e7565b905060006009600084815260200190815260200160002054905081811461381b576000600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816009600083815260200190815260200160002081905550505b6009600084815260200190815260200160002060009055600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600a805490506138a091906147e7565b90506000600b60008481526020019081526020016000205490506000600a83815481106138d0576138cf614919565b5b9060005260206000200154905080600a83815481106138f2576138f1614919565b5b906000526020600020018190555081600b600083815260200190815260200160002081905550600b600085815260200190815260200160002060009055600a805480613941576139406159ca565b5b6001900381819060005260206000200160009055905550505050565b6000613968836113a3565b905081600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806009600084815260200190815260200160002081905550505050565b8280546139e890614440565b90600052602060002090601f016020900481019282613a0a5760008555613a51565b82601f10613a2357803560ff1916838001178555613a51565b82800160010185558215613a51579182015b82811115613a50578235825591602001919060010190613a35565b5b509050613a5e9190613a62565b5090565b5b80821115613a7b576000816000905550600101613a63565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613ac881613a93565b8114613ad357600080fd5b50565b600081359050613ae581613abf565b92915050565b600060208284031215613b0157613b00613a89565b5b6000613b0f84828501613ad6565b91505092915050565b60008115159050919050565b613b2d81613b18565b82525050565b6000602082019050613b486000830184613b24565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b88578082015181840152602081019050613b6d565b83811115613b97576000848401525b50505050565b6000601f19601f8301169050919050565b6000613bb982613b4e565b613bc38185613b59565b9350613bd3818560208601613b6a565b613bdc81613b9d565b840191505092915050565b60006020820190508181036000830152613c018184613bae565b905092915050565b6000819050919050565b613c1c81613c09565b8114613c2757600080fd5b50565b600081359050613c3981613c13565b92915050565b600060208284031215613c5557613c54613a89565b5b6000613c6384828501613c2a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c9782613c6c565b9050919050565b613ca781613c8c565b82525050565b6000602082019050613cc26000830184613c9e565b92915050565b613cd181613c8c565b8114613cdc57600080fd5b50565b600081359050613cee81613cc8565b92915050565b60008060408385031215613d0b57613d0a613a89565b5b6000613d1985828601613cdf565b9250506020613d2a85828601613c2a565b9150509250929050565b613d3d81613c09565b82525050565b6000602082019050613d586000830184613d34565b92915050565b6000613d6982613c6c565b9050919050565b613d7981613d5e565b8114613d8457600080fd5b50565b600081359050613d9681613d70565b92915050565b600060208284031215613db257613db1613a89565b5b6000613dc084828501613d87565b91505092915050565b600080600060608486031215613de257613de1613a89565b5b6000613df086828701613cdf565b9350506020613e0186828701613cdf565b9250506040613e1286828701613c2a565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f840112613e4157613e40613e1c565b5b8235905067ffffffffffffffff811115613e5e57613e5d613e21565b5b602083019150836001820283011115613e7a57613e79613e26565b5b9250929050565b60008060208385031215613e9857613e97613a89565b5b600083013567ffffffffffffffff811115613eb657613eb5613a8e565b5b613ec285828601613e2b565b92509250509250929050565b613ed781613d5e565b82525050565b6000602082019050613ef26000830184613ece565b92915050565b6000819050919050565b6000613f1d613f18613f1384613c6c565b613ef8565b613c6c565b9050919050565b6000613f2f82613f02565b9050919050565b6000613f4182613f24565b9050919050565b613f5181613f36565b82525050565b6000602082019050613f6c6000830184613f48565b92915050565b613f7b81613b18565b8114613f8657600080fd5b50565b600081359050613f9881613f72565b92915050565b60008060408385031215613fb557613fb4613a89565b5b6000613fc385828601613f89565b9250506020613fd485828601613f89565b9150509250929050565b6000613fe982613f24565b9050919050565b613ff981613fde565b82525050565b60006020820190506140146000830184613ff0565b92915050565b6000806040838503121561403157614030613a89565b5b600061403f85828601613cdf565b925050602061405085828601613cdf565b9150509250929050565b6000602082840312156140705761406f613a89565b5b600061407e84828501613cdf565b91505092915050565b60008083601f84011261409d5761409c613e1c565b5b8235905067ffffffffffffffff8111156140ba576140b9613e21565b5b6020830191508360018202830111156140d6576140d5613e26565b5b9250929050565b600080600080606085870312156140f7576140f6613a89565b5b600061410587828801613cdf565b945050602061411687828801613c2a565b935050604085013567ffffffffffffffff81111561413757614136613a8e565b5b61414387828801614087565b925092505092959194509250565b6000806040838503121561416857614167613a89565b5b600061417685828601613cdf565b925050602061418785828601613f89565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6141ce82613b9d565b810181811067ffffffffffffffff821117156141ed576141ec614196565b5b80604052505050565b6000614200613a7f565b905061420c82826141c5565b919050565b60006060828403121561422757614226614191565b5b61423160606141f6565b9050600061424184828501613c2a565b600083015250602061425584828501613c2a565b602083015250604061426984828501613c2a565b60408301525092915050565b60006060828403121561428b5761428a613a89565b5b600061429984828501614211565b91505092915050565b600080fd5b600067ffffffffffffffff8211156142c2576142c1614196565b5b6142cb82613b9d565b9050602081019050919050565b82818337600083830152505050565b60006142fa6142f5846142a7565b6141f6565b905082815260208101848484011115614316576143156142a2565b5b6143218482856142d8565b509392505050565b600082601f83011261433e5761433d613e1c565b5b813561434e8482602086016142e7565b91505092915050565b6000806000806080858703121561437157614370613a89565b5b600061437f87828801613cdf565b945050602061439087828801613cdf565b93505060406143a187828801613c2a565b925050606085013567ffffffffffffffff8111156143c2576143c1613a8e565b5b6143ce87828801614329565b91505092959194509250565b60006060820190506143ef6000830186613d34565b6143fc6020830185613d34565b6144096040830184613d34565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061445857607f821691505b6020821081141561446c5761446b614411565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006144ce602c83613b59565b91506144d982614472565b604082019050919050565b600060208201905081810360008301526144fd816144c1565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614560602183613b59565b915061456b82614504565b604082019050919050565b6000602082019050818103600083015261458f81614553565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006145f2603883613b59565b91506145fd82614596565b604082019050919050565b60006020820190508181036000830152614621816145e5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061465e602083613b59565b915061466982614628565b602082019050919050565b6000602082019050818103600083015261468d81614651565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006146f0603183613b59565b91506146fb82614694565b604082019050919050565b6000602082019050818103600083015261471f816146e3565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614782602b83613b59565b915061478d82614726565b604082019050919050565b600060208201905081810360008301526147b181614775565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147f282613c09565b91506147fd83613c09565b9250828210156148105761480f6147b8565b5b828203905092915050565b7f4f776e65722071756f7461207265616368656400000000000000000000000000600082015250565b6000614851601383613b59565b915061485c8261481b565b602082019050919050565b6000602082019050818103600083015261488081614844565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b60006148e3602c83613b59565b91506148ee82614887565b604082019050919050565b60006020820190508181036000830152614912816148d6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061495382613c8c565b9050919050565b61496381614948565b811461496e57600080fd5b50565b6000815190506149808161495a565b92915050565b60006020828403121561499c5761499b613a89565b5b60006149aa84828501614971565b91505092915050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614a0f602983613b59565b9150614a1a826149b3565b604082019050919050565b60006020820190508181036000830152614a3e81614a02565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614aa1602a83613b59565b9150614aac82614a45565b604082019050919050565b60006020820190508181036000830152614ad081614a94565b9050919050565b600082825260208201905092915050565b6000614af48385614ad7565b9350614b018385846142d8565b614b0a83613b9d565b840190509392505050565b6000604082019050614b2a6000830186613c9e565b8181036020830152614b3d818486614ae8565b9050949350505050565b6000614b5282613c09565b9150614b5d83613c09565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b9657614b956147b8565b5b828202905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614bd7601983613b59565b9150614be282614ba1565b602082019050919050565b60006020820190508181036000830152614c0681614bca565b9050919050565b7f455243373231436f6d6d6f6e3a20546f6b656e20646f65736e2774206578697360008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614c69602183613b59565b9150614c7482614c0d565b604082019050919050565b60006020820190508181036000830152614c9881614c5c565b9050919050565b600060ff82169050919050565b614cb581614c9f565b8114614cc057600080fd5b50565b600081519050614cd281614cac565b92915050565b600060208284031215614cee57614ced613a89565b5b6000614cfc84828501614cc3565b91505092915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614d3281614440565b614d3c8186614d05565b94506001821660008114614d575760018114614d6857614d9b565b60ff19831686528186019350614d9b565b614d7185614d10565b60005b83811015614d9357815481890152600182019150602081019050614d74565b838801955050505b50505092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614dda600183614d05565b9150614de582614da4565b600182019050919050565b6000614dfb82613b4e565b614e058185614d05565b9350614e15818560208601613b6a565b80840191505092915050565b7f5f00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614e57600183614d05565b9150614e6282614e21565b600182019050919050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614ea3600583614d05565b9150614eae82614e6d565b600582019050919050565b6000614ec58286614d25565b9150614ed082614dcd565b9150614edc8285614df0565b9150614ee782614e4a565b9150614ef38284614df0565b9150614efe82614e96565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f67602683613b59565b9150614f7282614f0b565b604082019050919050565b60006020820190508181036000830152614f9681614f5a565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614ff9602c83613b59565b915061500482614f9d565b604082019050919050565b6000602082019050818103600083015261502881614fec565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b600061508b602983613b59565b91506150968261502f565b604082019050919050565b600060208201905081810360008301526150ba8161507e565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061511d602483613b59565b9150615128826150c1565b604082019050919050565b6000602082019050818103600083015261514c81615110565b9050919050565b600061515e82613c09565b915061516983613c09565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561519e5761519d6147b8565b5b828201905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006151df601483613b59565b91506151ea826151a9565b602082019050919050565b6000602082019050818103600083015261520e816151d2565b9050919050565b600061522082613c09565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615253576152526147b8565b5b600182019050919050565b60006040820190506152736000830185613d34565b6152806020830184613b24565b9392505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006152bd601083613b59565b91506152c882615287565b602082019050919050565b600060208201905081810360008301526152ec816152b0565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615329601f83613b59565b9150615334826152f3565b602082019050919050565b600060208201905081810360008301526153588161531c565b9050919050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b6000615395600883613b59565b91506153a08261535f565b602082019050919050565b600060208201905081810360008301526153c481615388565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061540582613c09565b915061541083613c09565b9250826154205761541f6153cb565b5b828204905092915050565b7f436f737473200000000000000000000000000000000000000000000000000000600082015250565b6000615461600683614d05565b915061546c8261542b565b600682019050919050565b7f2047576569000000000000000000000000000000000000000000000000000000600082015250565b60006154ad600583614d05565b91506154b882615477565b600582019050919050565b60006154ce82615454565b91506154da8284614df0565b91506154e5826154a0565b915081905092915050565b60006040820190506155056000830185613d34565b6155126020830184613d34565b9392505050565b600081905092915050565b50565b6000615534600083615519565b915061553f82615524565b600082019050919050565b600061555582615527565b9150819050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006155bb603283613b59565b91506155c68261555f565b604082019050919050565b600060208201905081810360008301526155ea816155ae565b9050919050565b60006155fc82613c09565b915061560783613c09565b925082615617576156166153cb565b5b828206905092915050565b7f53656c6c65723a20000000000000000000000000000000000000000000000000600082015250565b6000615658600883614d05565b915061566382615622565b600882019050919050565b60006156798261564b565b91506156858284614df0565b915081905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006156c6601d83613b59565b91506156d182615690565b602082019050919050565b600060208201905081810360008301526156f5816156b9565b9050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615758603a83613b59565b9150615763826156fc565b604082019050919050565b600060208201905081810360008301526157878161574b565b9050919050565b600081519050919050565b60006157a48261578e565b6157ae8185614ad7565b93506157be818560208601613b6a565b6157c781613b9d565b840191505092915050565b60006080820190506157e76000830187613c9e565b6157f46020830186613c9e565b6158016040830185613d34565b81810360608301526158138184615799565b905095945050505050565b60008151905061582d81613abf565b92915050565b60006020828403121561584957615848613a89565b5b60006158578482850161581e565b91505092915050565b7f4552433732315061757361626c653a20746f6b656e207472616e73666572207760008201527f68696c6520706175736564000000000000000000000000000000000000000000602082015250565b60006158bc602b83613b59565b91506158c782615860565b604082019050919050565b600060208201905081810360008301526158eb816158af565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615928602083613b59565b9150615933826158f2565b602082019050919050565b600060208201905081810360008301526159578161591b565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615994601c83613b59565b915061599f8261595e565b602082019050919050565b600060208201905081810360008301526159c381615987565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212205c8c6d1a8b1364a447ac707d075582872ed5521c0383f281692030bed24f5c7d64736f6c6343000809003360a0604052601e600360006101000a81548163ffffffff021916908363ffffffff160217905550600a600360046101000a81548163ffffffff021916908363ffffffff1602179055503480156200005557600080fd5b50620000766200006a620000b060201b60201c565b620000b860201b60201c565b3373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250506200017c565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6080516125c2620001ad600039600081816102fd0152818161032101528181611123015261120001526125c26000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c80638e8c056711610097578063aef087ef11610066578063aef087ef1461028b578063d8af116a146102a7578063dbf13e8e146102c3578063f2fde38b146102df57610100565b80638e8c05671461020557806398b25d65146102215780639c7ad1031461023f578063a78a25041461026f57610100565b80636adcf5ee116100d35780636adcf5ee146101a3578063715018a6146101bf578063733ea823146101c95780638da5cb5b146101e757610100565b80633b81614a146101055780633de90acf146101235780634f64b2be1461013f578063516d243514610173575b600080fd5b61010d6102fb565b60405161011a9190611622565b60405180910390f35b61013d600480360381019061013891906116bf565b61031f565b005b610159600480360381019061015491906116ff565b610530565b60405161016a959493929190611787565b60405180910390f35b61018d600480360381019061018891906116ff565b6105ba565b60405161019a91906117f9565b60405180910390f35b6101bd60048036038101906101b89190611840565b61069c565b005b6101c761088f565b005b6101d1610917565b6040516101de91906117f9565b60405180910390f35b6101ef61092d565b6040516101fc91906118a1565b60405180910390f35b61021f600480360381019061021a9190611a41565b610956565b005b610229610a4a565b60405161023691906117f9565b60405180910390f35b610259600480360381019061025491906116ff565b610a60565b6040516102669190611a9d565b60405180910390f35b61028960048036038101906102849190611bfc565b610aa3565b005b6102a560048036038101906102a091906116ff565b610c0e565b005b6102c160048036038101906102bc91906116ff565b610d66565b005b6102dd60048036038101906102d89190611c45565b610d81565b005b6102f960048036038101906102f49190611cc4565b610e0f565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103a490611d4e565b60405180910390fd5b6000816103bb5760006103dd565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe25b905060005b8381101561052a5760016040518060a00160405280600060ff168152602001600060ff1681526020014267ffffffffffffffff1681526020018460070b8152602001600060ff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548160ff021916908360ff16021790555060208201518160000160016101000a81548160ff021916908360ff16021790555060408201518160000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550606082015181600001600a6101000a81548167ffffffffffffffff021916908360070b67ffffffffffffffff16021790555060808201518160000160126101000a81548160ff021916908360ff1602179055505050808061052290611d9d565b9150506103e2565b50505050565b6001818154811061054057600080fd5b906000526020600020016000915090508060000160009054906101000a900460ff16908060000160019054906101000a900460ff16908060000160029054906101000a900467ffffffffffffffff169080600001600a9054906101000a900460070b908060000160129054906101000a900460ff16905085565b6000816105c681610f07565b6000600184815481106105dc576105db611de6565b5b90600052602060002001905060006002600086815260200190815260200160002060009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161161062e576001610630565b815b9050600081620151808560000160029054906101000a900467ffffffffffffffff164261065d9190611e15565b6106679190611e78565b6106719190611ea9565b905083600001600a9054906101000a900460070b816106909190611eeb565b95505050505050919050565b816106a681610f07565b6000600184815481106106bc576106bb611de6565b5b906000526020600020019050600160066106d69190611f67565b60ff168160000160019054906101000a900460ff1660ff1614156107455760008443604051602001610709929190611fbc565b604051602081830303815290604052805190602001209050600060078260001c1614156107435761073c85600186610f51565b505061088a565b505b8060000160019054906101000a900460ff1660ff168360ff16111561079f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161079690612034565b60405180910390fd5b8060000160009054906101000a900460ff1660ff168360ff1614156107f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107f0906120a0565b60405180910390fd5b61081584600360049054906101000a900463ffffffff16611100565b828160000160006101000a81548160ff021916908360ff16021790555060008160000160126101000a81548160ff021916908360ff160217905550837f02446ab2b6cc7f5d9e9c6c5a0f49dbea02d2ccc8339d4f2d3af686bec151359e846040516108809190611a9d565b60405180910390a2505b505050565b6108976113c3565b73ffffffffffffffffffffffffffffffffffffffff166108b561092d565b73ffffffffffffffffffffffffffffffffffffffff161461090b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109029061210c565b60405180910390fd5b61091560006113cb565b565b600360049054906101000a900463ffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61095e6113c3565b73ffffffffffffffffffffffffffffffffffffffff1661097c61092d565b73ffffffffffffffffffffffffffffffffffffffff16146109d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c99061210c565b60405180910390fd5b60005b8151811015610a455782600260008484815181106109f6576109f5611de6565b5b6020026020010151815260200190815260200160002060006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508080610a3d90611d9d565b9150506109d5565b505050565b600360009054906101000a900463ffffffff1681565b600081610a6c81610f07565b60018381548110610a8057610a7f611de6565b5b9060005260206000200160000160009054906101000a900460ff16915050919050565b610aab6113c3565b73ffffffffffffffffffffffffffffffffffffffff16610ac961092d565b73ffffffffffffffffffffffffffffffffffffffff1614610b1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b169061210c565b60405180910390fd5b60005b8151811015610c0a57610b52828281518110610b4157610b40611de6565b5b602002602001015160000151610f07565b818181518110610b6557610b64611de6565b5b60200260200101516020015160030b6001838381518110610b8957610b88611de6565b5b60200260200101516000015181548110610ba657610ba5611de6565b5b90600052602060002001600001600a8282829054906101000a900460070b610bce9190611eeb565b92506101000a81548167ffffffffffffffff021916908360070b67ffffffffffffffff1602179055508080610c0290611d9d565b915050610b22565b5050565b80610c1881610f07565b600060018381548110610c2e57610c2d611de6565b5b90600052602060002001905080600001600181819054906101000a900460ff1680929190610c5b9061212c565b91906101000a81548160ff021916908360ff16021790555050600660ff168160000160019054906101000a900460ff1660ff1610610cce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc5906121a2565b60405180910390fd5b610cea83600360009054906101000a900463ffffffff16611100565b8060000160019054906101000a900460ff168160000160006101000a81548160ff021916908360ff160217905550827fc74a2c5ba544da046f7e41388ef87fb2a57a00591bd50ec6a9b1b539f3f4d63e8260000160019054906101000a900460ff16604051610d599190611a9d565b60405180910390a2505050565b80610d7081610f07565b610d7d82600060ff610f51565b5050565b82610d8b81610f07565b82610d9581610f07565b610d9f8584611100565b8260030b60018581548110610db757610db6611de6565b5b90600052602060002001600001600a8282829054906101000a900460070b610ddf9190611eeb565b92506101000a81548167ffffffffffffffff021916908360070b67ffffffffffffffff1602179055505050505050565b610e176113c3565b73ffffffffffffffffffffffffffffffffffffffff16610e3561092d565b73ffffffffffffffffffffffffffffffffffffffff1614610e8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e829061210c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef290612234565b60405180910390fd5b610f04816113cb565b50565b6001805490508110610f4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f45906122a0565b60405180910390fd5b50565b600060018481548110610f6757610f66611de6565b5b90600052602060002001905060008160000160019054906101000a900460ff1660ff1611610fca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc19061230c565b60405180910390fd5b610fe684600360049054906101000a900463ffffffff16611100565b60006110198543604051602001610ffe929190611fbc565b6040516020818303038152906040528051906020012061148f565b90506000600660ff1690505b600660ff168110158061104b57508260000160009054906101000a900460ff1660ff1681145b8061105857508360ff1681145b15611078576110716003836114ae90919063ffffffff16565b9050611025565b808360000160006101000a81548160ff021916908360ff160217905550846110a15760006110a4565b60015b8360000160126101000a81548160ff021916908360ff160217905550857f02446ab2b6cc7f5d9e9c6c5a0f49dbea02d2ccc8339d4f2d3af686bec151359e826040516110f09190611a9d565b60405180910390a2505050505050565b8161110a81610f07565b3373ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161117a919061233b565b60206040518083038186803b15801561119257600080fd5b505afa1580156111a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ca919061236b565b73ffffffffffffffffffffffffffffffffffffffff1614806112bf57503373ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663081812fc836040518263ffffffff1660e01b8152600401611257919061233b565b60206040518083038186803b15801561126f57600080fd5b505afa158015611283573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112a7919061236b565b73ffffffffffffffffffffffffffffffffffffffff16145b6112fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112f5906123e4565b60405180910390fd5b8163ffffffff1661130e846105ba565b63ffffffff161015611355576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134c90612450565b60405180910390fd5b8160030b6001848154811061136d5761136c611de6565b5b90600052602060002001600001600a8282829054906101000a900460070b6113959190612470565b92506101000a81548167ffffffffffffffff021916908360070b67ffffffffffffffff160217905550505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60006040519050608081016040528181526114a981611559565b919050565b60006101008211156114f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ec90612538565b60405180910390fd5b60006060840151905082811115611518576115108484611579565b915050611553565b600081846115269190612558565b90506115328583611579565b925082811b925061154285611559565b61154c8582611579565b8317925050505b92915050565b604081206040820152610100606082015260208101805160010181525050565b6000604083018051600180851b038116925080841c82526060850184815103815250505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006115e86115e36115de846115a3565b6115c3565b6115a3565b9050919050565b60006115fa826115cd565b9050919050565b600061160c826115ef565b9050919050565b61161c81611601565b82525050565b60006020820190506116376000830184611613565b92915050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b61166481611651565b811461166f57600080fd5b50565b6000813590506116818161165b565b92915050565b60008115159050919050565b61169c81611687565b81146116a757600080fd5b50565b6000813590506116b981611693565b92915050565b600080604083850312156116d6576116d5611647565b5b60006116e485828601611672565b92505060206116f5858286016116aa565b9150509250929050565b60006020828403121561171557611714611647565b5b600061172384828501611672565b91505092915050565b600060ff82169050919050565b6117428161172c565b82525050565b600067ffffffffffffffff82169050919050565b61176581611748565b82525050565b60008160070b9050919050565b6117818161176b565b82525050565b600060a08201905061179c6000830188611739565b6117a96020830187611739565b6117b6604083018661175c565b6117c36060830185611778565b6117d06080830184611739565b9695505050505050565b600063ffffffff82169050919050565b6117f3816117da565b82525050565b600060208201905061180e60008301846117ea565b92915050565b61181d8161172c565b811461182857600080fd5b50565b60008135905061183a81611814565b92915050565b6000806040838503121561185757611856611647565b5b600061186585828601611672565b92505060206118768582860161182b565b9150509250929050565b600061188b826115a3565b9050919050565b61189b81611880565b82525050565b60006020820190506118b66000830184611892565b92915050565b6118c581611748565b81146118d057600080fd5b50565b6000813590506118e2816118bc565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611936826118ed565b810181811067ffffffffffffffff82111715611955576119546118fe565b5b80604052505050565b600061196861163d565b9050611974828261192d565b919050565b600067ffffffffffffffff821115611994576119936118fe565b5b602082029050602081019050919050565b600080fd5b60006119bd6119b884611979565b61195e565b905080838252602082019050602084028301858111156119e0576119df6119a5565b5b835b81811015611a0957806119f58882611672565b8452602084019350506020810190506119e2565b5050509392505050565b600082601f830112611a2857611a276118e8565b5b8135611a388482602086016119aa565b91505092915050565b60008060408385031215611a5857611a57611647565b5b6000611a66858286016118d3565b925050602083013567ffffffffffffffff811115611a8757611a8661164c565b5b611a9385828601611a13565b9150509250929050565b6000602082019050611ab26000830184611739565b92915050565b600067ffffffffffffffff821115611ad357611ad26118fe565b5b602082029050602081019050919050565b600080fd5b611af2816117da565b8114611afd57600080fd5b50565b600081359050611b0f81611ae9565b92915050565b600060408284031215611b2b57611b2a611ae4565b5b611b35604061195e565b90506000611b4584828501611672565b6000830152506020611b5984828501611b00565b60208301525092915050565b6000611b78611b7384611ab8565b61195e565b90508083825260208201905060408402830185811115611b9b57611b9a6119a5565b5b835b81811015611bc45780611bb08882611b15565b845260208401935050604081019050611b9d565b5050509392505050565b600082601f830112611be357611be26118e8565b5b8135611bf3848260208601611b65565b91505092915050565b600060208284031215611c1257611c11611647565b5b600082013567ffffffffffffffff811115611c3057611c2f61164c565b5b611c3c84828501611bce565b91505092915050565b600080600060608486031215611c5e57611c5d611647565b5b6000611c6c86828701611672565b9350506020611c7d86828701611672565b9250506040611c8e86828701611b00565b9150509250925092565b611ca181611880565b8114611cac57600080fd5b50565b600081359050611cbe81611c98565b92915050565b600060208284031215611cda57611cd9611647565b5b6000611ce884828501611caf565b91505092915050565b600082825260208201905092915050565b7f4f6e6c7920476c69746368794269746368657320636f6e747261637400000000600082015250565b6000611d38601c83611cf1565b9150611d4382611d02565b602082019050919050565b60006020820190508181036000830152611d6781611d2b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611da882611651565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611ddb57611dda611d6e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000611e2082611748565b9150611e2b83611748565b925082821015611e3e57611e3d611d6e565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611e8382611748565b9150611e8e83611748565b925082611e9e57611e9d611e49565b5b828204905092915050565b6000611eb482611748565b9150611ebf83611748565b92508167ffffffffffffffff0483118215151615611ee057611edf611d6e565b5b828202905092915050565b6000611ef68261176b565b9150611f018361176b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffff800000000000000001821260008412151615611f3c57611f3b611d6e565b5b82677fffffffffffffff018213600084121615611f5c57611f5b611d6e565b5b828203905092915050565b6000611f728261172c565b9150611f7d8361172c565b925082821015611f9057611f8f611d6e565b5b828203905092915050565b6000819050919050565b611fb6611fb182611651565b611f9b565b82525050565b6000611fc88285611fa5565b602082019150611fd88284611fa5565b6020820191508190509392505050565b7f56657273696f6e206e6f742072657665616c6564000000000000000000000000600082015250565b600061201e601483611cf1565b915061202982611fe8565b602082019050919050565b6000602082019050818103600083015261204d81612011565b9050919050565b7f416c7265616479206f6e2076657273696f6e0000000000000000000000000000600082015250565b600061208a601283611cf1565b915061209582612054565b602082019050919050565b600060208201905081810360008301526120b98161207d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006120f6602083611cf1565b9150612101826120c0565b602082019050919050565b60006020820190508181036000830152612125816120e9565b9050919050565b60006121378261172c565b915060ff82141561214b5761214a611d6e565b5b600182019050919050565b7f416c6c2072657665616c65640000000000000000000000000000000000000000600082015250565b600061218c600c83611cf1565b915061219782612156565b602082019050919050565b600060208201905081810360008301526121bb8161217f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061221e602683611cf1565b9150612229826121c2565b604082019050919050565b6000602082019050818103600083015261224d81612211565b9050919050565b7f546f6b656e20646f65736e277420657869737400000000000000000000000000600082015250565b600061228a601383611cf1565b915061229582612254565b602082019050919050565b600060208201905081810360008301526122b98161227d565b9050919050565b7f496e73756666696369656e742072657665616c73000000000000000000000000600082015250565b60006122f6601483611cf1565b9150612301826122c0565b602082019050919050565b60006020820190508181036000830152612325816122e9565b9050919050565b61233581611651565b82525050565b6000602082019050612350600083018461232c565b92915050565b60008151905061236581611c98565b92915050565b60006020828403121561238157612380611647565b5b600061238f84828501612356565b91505092915050565b7f4e6f7420617070726f766564206e6f72206f776e657200000000000000000000600082015250565b60006123ce601683611cf1565b91506123d982612398565b602082019050919050565b600060208201905081810360008301526123fd816123c1565b9050919050565b7f496e73756666696369656e7420616c6c6f77616e636500000000000000000000600082015250565b600061243a601683611cf1565b915061244582612404565b602082019050919050565b600060208201905081810360008301526124698161242d565b9050919050565b600061247b8261176b565b91506124868361176b565b925081677fffffffffffffff038313600083121516156124a9576124a8611d6e565b5b817fffffffffffffffffffffffffffffffffffffffffffffffff80000000000000000383126000831216156124e1576124e0611d6e565b5b828201905092915050565b7f50524e473a206d61782032353620626974730000000000000000000000000000600082015250565b6000612522601283611cf1565b915061252d826124ec565b602082019050919050565b6000602082019050818103600083015261255181612515565b9050919050565b600061256382611651565b915061256e83611651565b92508282101561258157612580611d6e565b5b82820390509291505056fea2646970667358221220dce1279fecd59e18fea9f80b139897fbd7c52fe753de359fdd33a71dc87880b764736f6c6343000809003360806040523480156200001157600080fd5b50604051620018363803806200183683398181016040528101906200003791906200044a565b620000576200004b620000bb60201b60201c565b620000c360201b60201c565b60005b8151811015620000b3576200009c8282815181106200007e576200007d6200049b565b5b602002602001015160016200018760201b620003ed1790919060201c565b508080620000aa9062000503565b9150506200005a565b505062000551565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000620001b7836000018373ffffffffffffffffffffffffffffffffffffffff1660001b620001bf60201b60201c565b905092915050565b6000620001d383836200023960201b60201c565b6200022e57826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905062000233565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b6000604051905090565b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620002c08262000275565b810181811067ffffffffffffffff82111715620002e257620002e162000286565b5b80604052505050565b6000620002f76200025c565b9050620003058282620002b5565b919050565b600067ffffffffffffffff82111562000328576200032762000286565b5b602082029050602081019050919050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200036b826200033e565b9050919050565b6200037d816200035e565b81146200038957600080fd5b50565b6000815190506200039d8162000372565b92915050565b6000620003ba620003b4846200030a565b620002eb565b90508083825260208201905060208402830185811115620003e057620003df62000339565b5b835b818110156200040d5780620003f888826200038c565b845260208401935050602081019050620003e2565b5050509392505050565b600082601f8301126200042f576200042e62000270565b5b815162000441848260208601620003a3565b91505092915050565b60006020828403121562000463576200046262000266565b5b600082015167ffffffffffffffff8111156200048457620004836200026b565b5b620004928482850162000417565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b60006200051082620004f9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415620005465762000545620004ca565b5b600182019050919050565b6112d580620005616000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80630e316ab714610067578063715018a6146100835780638da5cb5b1461008d578063ab57392b146100ab578063eb12d61e146100c7578063f2fde38b146100e3575b600080fd5b610081600480360381019061007c9190610c0f565b6100ff565b005b61008b610193565b005b61009561021b565b6040516100a29190610c4b565b60405180910390f35b6100c560048036038101906100c09190610ccb565b610244565b005b6100e160048036038101906100dc9190610c0f565b610261565b005b6100fd60048036038101906100f89190610c0f565b6102f5565b005b61010761041d565b73ffffffffffffffffffffffffffffffffffffffff1661012561021b565b73ffffffffffffffffffffffffffffffffffffffff161461017b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161017290610d88565b60405180910390fd5b61018f81600161042590919063ffffffff16565b5050565b61019b61041d565b73ffffffffffffffffffffffffffffffffffffffff166101b961021b565b73ffffffffffffffffffffffffffffffffffffffff161461020f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161020690610d88565b60405180910390fd5b6102196000610455565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61025c8383836001610519909392919063ffffffff16565b505050565b61026961041d565b73ffffffffffffffffffffffffffffffffffffffff1661028761021b565b73ffffffffffffffffffffffffffffffffffffffff16146102dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102d490610d88565b60405180910390fd5b6102f18160016103ed90919063ffffffff16565b5050565b6102fd61041d565b73ffffffffffffffffffffffffffffffffffffffff1661031b61021b565b73ffffffffffffffffffffffffffffffffffffffff1614610371576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161036890610d88565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156103e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103d890610e1a565b60405180910390fd5b6103ea81610455565b50565b6000610415836000018373ffffffffffffffffffffffffffffffffffffffff1660001b610551565b905092915050565b600033905090565b600061044d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6105c1565b905092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61054b848460405160200161052e9190610e82565b6040516020818303038152906040528051906020012084846106d5565b50505050565b600061055d838361077a565b6105b65782600001829080600181540180825580915050600190039060005260206000200160009091909190915055826000018054905083600101600084815260200190815260200160002081905550600190506105bb565b600090505b92915050565b600080836001016000848152602001908152602001600020549050600081146106c95760006001826105f39190610ed6565b905060006001866000018054905061060b9190610ed6565b905081811461067a57600086600001828154811061062c5761062b610f0a565b5b90600052602060002001549050808760000184815481106106505761064f610f0a565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b8560000180548061068e5761068d610f39565b5b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506106cf565b60009150505b92915050565b6107356107268484848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061079d565b856107c490919063ffffffff16565b610774576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076b90610fda565b60405180910390fd5b50505050565b600080836001016000848152602001908152602001600020541415905092915050565b60008060006107ac85856107f4565b915091506107b981610877565b819250505092915050565b60006107ec836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61077a565b905092915050565b6000806041835114156108365760008060006020860151925060408601519150606086015160001a905061082a87828585610a4c565b94509450505050610870565b60408351141561086757600080602085015191506040850151905061085c868383610b59565b935093505050610870565b60006002915091505b9250929050565b6000600481111561088b5761088a610ffa565b5b81600481111561089e5761089d610ffa565b5b14156108a957610a49565b600160048111156108bd576108bc610ffa565b5b8160048111156108d0576108cf610ffa565b5b1415610911576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090890611075565b60405180910390fd5b6002600481111561092557610924610ffa565b5b81600481111561093857610937610ffa565b5b1415610979576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610970906110e1565b60405180910390fd5b6003600481111561098d5761098c610ffa565b5b8160048111156109a05761099f610ffa565b5b14156109e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d890611173565b60405180910390fd5b6004808111156109f4576109f3610ffa565b5b816004811115610a0757610a06610ffa565b5b1415610a48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3f90611205565b60405180910390fd5b5b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115610a87576000600391509150610b50565b601b8560ff1614158015610a9f5750601c8560ff1614155b15610ab1576000600491509150610b50565b600060018787878760405160008152602001604052604051610ad6949392919061125a565b6020604051602081039080840390855afa158015610af8573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610b4757600060019250925050610b50565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c019050610b9987828885610a4c565b935093505050935093915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610bdc82610bb1565b9050919050565b610bec81610bd1565b8114610bf757600080fd5b50565b600081359050610c0981610be3565b92915050565b600060208284031215610c2557610c24610ba7565b5b6000610c3384828501610bfa565b91505092915050565b610c4581610bd1565b82525050565b6000602082019050610c606000830184610c3c565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610c8b57610c8a610c66565b5b8235905067ffffffffffffffff811115610ca857610ca7610c6b565b5b602083019150836001820283011115610cc457610cc3610c70565b5b9250929050565b600080600060408486031215610ce457610ce3610ba7565b5b6000610cf286828701610bfa565b935050602084013567ffffffffffffffff811115610d1357610d12610bac565b5b610d1f86828701610c75565b92509250509250925092565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610d72602083610d2b565b9150610d7d82610d3c565b602082019050919050565b60006020820190508181036000830152610da181610d65565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610e04602683610d2b565b9150610e0f82610da8565b604082019050919050565b60006020820190508181036000830152610e3381610df7565b9050919050565b60008160601b9050919050565b6000610e5282610e3a565b9050919050565b6000610e6482610e47565b9050919050565b610e7c610e7782610bd1565b610e59565b82525050565b6000610e8e8284610e6b565b60148201915081905092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610ee182610e9d565b9150610eec83610e9d565b925082821015610eff57610efe610ea7565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f5369676e6174757265436865636b65723a20496e76616c6964207369676e617460008201527f7572650000000000000000000000000000000000000000000000000000000000602082015250565b6000610fc4602383610d2b565b9150610fcf82610f68565b604082019050919050565b60006020820190508181036000830152610ff381610fb7565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f45434453413a20696e76616c6964207369676e61747572650000000000000000600082015250565b600061105f601883610d2b565b915061106a82611029565b602082019050919050565b6000602082019050818103600083015261108e81611052565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265206c656e67746800600082015250565b60006110cb601f83610d2b565b91506110d682611095565b602082019050919050565b600060208201905081810360008301526110fa816110be565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b600061115d602283610d2b565b915061116882611101565b604082019050919050565b6000602082019050818103600083015261118c81611150565b9050919050565b7f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008201527f7565000000000000000000000000000000000000000000000000000000000000602082015250565b60006111ef602283610d2b565b91506111fa82611193565b604082019050919050565b6000602082019050818103600083015261121e816111e2565b9050919050565b6000819050919050565b61123881611225565b82525050565b600060ff82169050919050565b6112548161123e565b82525050565b600060808201905061126f600083018761122f565b61127c602083018661124b565b611289604083018561122f565b611296606083018461122f565b9594505050505056fea2646970667358221220c7cfaac8fbc04435eaac761c2a2a896f08909535181da3ce8ca671fbade422e964736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000012000000000000000000000000048cef97cb152ec9383b13fc24eb00a0c6ddba641000000000000000000000000000000000000000000000000000000000000000f476c6974636879204269746368657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002474200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000003a0d9de7fce5c5fa24da699b7a78b875b1cf720d
Deployed Bytecode
0x6080604052600436106102515760003560e01c80636b81114d11610139578063a035b1fe116100b6578063bb69b7ef1161007a578063bb69b7ef14610891578063c87b56dd146108be578063cfc86f7b146108fb578063e8a3d48514610926578063e985e9c514610951578063f2fde38b1461098e57610251565b8063a035b1fe146107c0578063a07de775146107eb578063a22cb46514610816578063b2e88d001461083f578063b88d4fde1461086857610251565b80638da5cb5b116100fd5780638da5cb5b146106d95780639097548d146107045780639106d7ba1461074157806391b7f5ed1461076c57806395d89b411461079557610251565b80636b81114d1461062757806370a0823114610652578063715018a61461068f5780638456cb59146106a65780638832e6e3146106bd57610251565b806338af3eed116101d257806346f0975a1161019657806346f0975a146104f1578063484b973c1461051c5780634f6ccce7146105455780635c975abb146105825780636102de98146105ad5780636352211e146105ea57610251565b806338af3eed146104325780633add6ae31461045d5780633c5d3de5146104885780633f4ba83a146104b157806342842e0e146104c857610251565b80631c31f710116102195780631c31f7101461034f57806323b872dd14610378578063252e3ab9146103a15780632f745c59146103cc57806330176e131461040957610251565b806301ffc9a71461025657806306fdde0314610293578063081812fc146102be578063095ea7b3146102fb57806318160ddd14610324575b600080fd5b34801561026257600080fd5b5061027d60048036038101906102789190613aeb565b6109b7565b60405161028a9190613b33565b60405180910390f35b34801561029f57600080fd5b506102a86109c9565b6040516102b59190613be7565b60405180910390f35b3480156102ca57600080fd5b506102e560048036038101906102e09190613c3f565b610a5b565b6040516102f29190613cad565b60405180910390f35b34801561030757600080fd5b50610322600480360381019061031d9190613cf4565b610ae0565b005b34801561033057600080fd5b50610339610bf8565b6040516103469190613d43565b60405180910390f35b34801561035b57600080fd5b5061037660048036038101906103719190613d9c565b610c05565b005b34801561038457600080fd5b5061039f600480360381019061039a9190613dc9565b610cc5565b005b3480156103ad57600080fd5b506103b6610d25565b6040516103c39190613b33565b60405180910390f35b3480156103d857600080fd5b506103f360048036038101906103ee9190613cf4565b610d38565b6040516104009190613d43565b60405180910390f35b34801561041557600080fd5b50610430600480360381019061042b9190613e81565b610ddd565b005b34801561043e57600080fd5b50610447610e6f565b6040516104549190613edd565b60405180910390f35b34801561046957600080fd5b50610472610e95565b60405161047f9190613f57565b60405180910390f35b34801561049457600080fd5b506104af60048036038101906104aa9190613f9e565b610eb9565b005b3480156104bd57600080fd5b506104c6610f6d565b005b3480156104d457600080fd5b506104ef60048036038101906104ea9190613dc9565b610ff3565b005b3480156104fd57600080fd5b50610506611013565b6040516105139190613fff565b60405180910390f35b34801561052857600080fd5b50610543600480360381019061053e9190613cf4565b611037565b005b34801561055157600080fd5b5061056c60048036038101906105679190613c3f565b611142565b6040516105799190613d43565b60405180910390f35b34801561058e57600080fd5b506105976111b3565b6040516105a49190613b33565b60405180910390f35b3480156105b957600080fd5b506105d460048036038101906105cf919061401a565b6111ca565b6040516105e19190613b33565b60405180910390f35b3480156105f657600080fd5b50610611600480360381019061060c9190613c3f565b6112eb565b60405161061e9190613cad565b60405180910390f35b34801561063357600080fd5b5061063c61139d565b6040516106499190613d43565b60405180910390f35b34801561065e57600080fd5b506106796004803603810190610674919061405a565b6113a3565b6040516106869190613d43565b60405180910390f35b34801561069b57600080fd5b506106a461145b565b005b3480156106b257600080fd5b506106bb6114e3565b005b6106d760048036038101906106d291906140dd565b611569565b005b3480156106e557600080fd5b506106ee61161c565b6040516106fb9190613cad565b60405180910390f35b34801561071057600080fd5b5061072b60048036038101906107269190613c3f565b611646565b6040516107389190613d43565b60405180910390f35b34801561074d57600080fd5b5061075661165d565b6040516107639190613d43565b60405180910390f35b34801561077857600080fd5b50610793600480360381019061078e9190613c3f565b61166c565b005b3480156107a157600080fd5b506107aa6116f2565b6040516107b79190613be7565b60405180910390f35b3480156107cc57600080fd5b506107d5611784565b6040516107e29190613d43565b60405180910390f35b3480156107f757600080fd5b5061080061178a565b60405161080d9190613b33565b60405180910390f35b34801561082257600080fd5b5061083d60048036038101906108389190614151565b61179d565b005b34801561084b57600080fd5b5061086660048036038101906108619190614275565b61191e565b005b34801561087457600080fd5b5061088f600480360381019061088a9190614357565b6119c1565b005b34801561089d57600080fd5b506108a6611a23565b6040516108b5939291906143da565b60405180910390f35b3480156108ca57600080fd5b506108e560048036038101906108e09190613c3f565b611a3b565b6040516108f29190613be7565b60405180910390f35b34801561090757600080fd5b50610910611b6e565b60405161091d9190613be7565b60405180910390f35b34801561093257600080fd5b5061093b611bfc565b6040516109489190613be7565b60405180910390f35b34801561095d57600080fd5b506109786004803603810190610973919061401a565b611c8e565b6040516109859190613b33565b60405180910390f35b34801561099a57600080fd5b506109b560048036038101906109b0919061405a565b611cb3565b005b60006109c282611def565b9050919050565b6060600280546109d890614440565b80601f0160208091040260200160405190810160405280929190818152602001828054610a0490614440565b8015610a515780601f10610a2657610100808354040283529160200191610a51565b820191906000526020600020905b815481529060010190602001808311610a3457829003601f168201915b5050505050905090565b6000610a6682611e69565b610aa5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9c906144e4565b60405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610aeb826112eb565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b5c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5390614576565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b7b611ed5565b73ffffffffffffffffffffffffffffffffffffffff161480610baa5750610ba981610ba4611ed5565b611c8e565b5b610be9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610be090614608565b60405180910390fd5b610bf38383611edd565b505050565b6000600a80549050905090565b610c0d611ed5565b73ffffffffffffffffffffffffffffffffffffffff16610c2b61161c565b73ffffffffffffffffffffffffffffffffffffffff1614610c81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7890614674565b60405180910390fd5b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610cd6610cd0611ed5565b82611f96565b610d15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0c90614706565b60405180910390fd5b610d20838383612074565b505050565b601460019054906101000a900460ff1681565b6000610d43836113a3565b8210610d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7b90614798565b60405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610de5611ed5565b73ffffffffffffffffffffffffffffffffffffffff16610e0361161c565b73ffffffffffffffffffffffffffffffffffffffff1614610e59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5090614674565b60405180910390fd5b818160169190610e6a9291906139dc565b505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7f00000000000000000000000026347a4110238bd3fda7f78b1c2fc52f0c923f5c81565b610ec1611ed5565b73ffffffffffffffffffffffffffffffffffffffff16610edf61161c565b73ffffffffffffffffffffffffffffffffffffffff1614610f35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2c90614674565b60405180910390fd5b80601460006101000a81548160ff02191690831515021790555081601460016101000a81548160ff0219169083151502179055505050565b610f75611ed5565b73ffffffffffffffffffffffffffffffffffffffff16610f9361161c565b73ffffffffffffffffffffffffffffffffffffffff1614610fe9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe090614674565b60405180910390fd5b610ff16122d0565b565b61100e838383604051806020016040528060008152506119c1565b505050565b7f00000000000000000000000082de3c033cc8e60553b64f9e43ee200e3616599e81565b61103f611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661105d61161c565b73ffffffffffffffffffffffffffffffffffffffff16146110b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110aa90614674565b60405180910390fd5b60155481111580156110dc57506110c8610bf8565b600e600001546110d891906147e7565b8111155b61111b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111290614867565b60405180910390fd5b806015600082825461112d91906147e7565b9250508190555061113e8282612372565b5050565b600061114c610bf8565b821061118d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611184906148f9565b60405180910390fd5b600a82815481106111a1576111a0614919565b5b90600052602060002001549050919050565b6000600c60149054906101000a900460ff16905090565b600080600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156112e257508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1663c4552791866040518263ffffffff1660e01b815260040161127a9190613cad565b60206040518083038186803b15801561129257600080fd5b505afa1580156112a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ca9190614986565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b6000806004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161138b90614a25565b60405180910390fd5b80915050919050565b60155481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611414576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140b90614ab7565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611463611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661148161161c565b73ffffffffffffffffffffffffffffffffffffffff16146114d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ce90614674565b60405180910390fd5b6114e16000612442565b565b6114eb611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661150961161c565b73ffffffffffffffffffffffffffffffffffffffff161461155f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155690614674565b60405180910390fd5b611567612508565b565b601460019054906101000a900460ff161561160c577f00000000000000000000000082de3c033cc8e60553b64f9e43ee200e3616599e73ffffffffffffffffffffffffffffffffffffffff1663ab57392b8584846040518463ffffffff1660e01b81526004016115db93929190614b15565b60006040518083038186803b1580156115f357600080fd5b505afa158015611607573d6000803e3d6000fd5b505050505b61161684846125ab565b50505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000601354826116569190614b47565b9050919050565b6000611667610bf8565b905090565b611674611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661169261161c565b73ffffffffffffffffffffffffffffffffffffffff16146116e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116df90614674565b60405180910390fd5b8060138190555050565b60606003805461170190614440565b80601f016020809104026020016040519081016040528092919081815260200182805461172d90614440565b801561177a5780601f1061174f5761010080835404028352916020019161177a565b820191906000526020600020905b81548152906001019060200180831161175d57829003601f168201915b5050505050905090565b60135481565b601460009054906101000a900460ff1681565b6117a5611ed5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611813576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161180a90614bed565b60405180910390fd5b8060076000611820611ed5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166118cd611ed5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516119129190613b33565b60405180910390a35050565b611926611ed5565b73ffffffffffffffffffffffffffffffffffffffff1661194461161c565b73ffffffffffffffffffffffffffffffffffffffff161461199a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199190614674565b60405180910390fd5b80600e60008201518160000155602082015181600101556040820151816002015590505050565b6119d26119cc611ed5565b83611f96565b611a11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0890614706565b60405180910390fd5b611a1d84848484612bec565b50505050565b600e8060000154908060010154908060020154905083565b606081611a4781611e69565b611a86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7d90614c7f565b60405180910390fd5b6016611a9184612c48565b611b457f00000000000000000000000026347a4110238bd3fda7f78b1c2fc52f0c923f5c73ffffffffffffffffffffffffffffffffffffffff16639c7ad103876040518263ffffffff1660e01b8152600401611aed9190613d43565b60206040518083038186803b158015611b0557600080fd5b505afa158015611b19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3d9190614cd8565b60ff16612c48565b604051602001611b5793929190614eb9565b604051602081830303815290604052915050919050565b60168054611b7b90614440565b80601f0160208091040260200160405190810160405280929190818152602001828054611ba790614440565b8015611bf45780601f10611bc957610100808354040283529160200191611bf4565b820191906000526020600020905b815481529060010190602001808311611bd757829003601f168201915b505050505081565b606060008054611c0b90614440565b80601f0160208091040260200160405190810160405280929190818152602001828054611c3790614440565b8015611c845780601f10611c5957610100808354040283529160200191611c84565b820191906000526020600020905b815481529060010190602001808311611c6757829003601f168201915b5050505050905090565b6000611c9a8383612da9565b80611cab5750611caa83836111ca565b5b905092915050565b611cbb611ed5565b73ffffffffffffffffffffffffffffffffffffffff16611cd961161c565b73ffffffffffffffffffffffffffffffffffffffff1614611d2f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d2690614674565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d9f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9690614f7d565b60405180910390fd5b611da881612442565b50565b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611e625750611e6182612e3d565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166004600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611f50836112eb565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611fa182611e69565b611fe0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fd79061500f565b60405180910390fd5b6000611feb836112eb565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061205a57508373ffffffffffffffffffffffffffffffffffffffff1661204284610a5b565b73ffffffffffffffffffffffffffffffffffffffff16145b8061206b575061206a8185611c8e565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612094826112eb565b73ffffffffffffffffffffffffffffffffffffffff16146120ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120e1906150a1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561215a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161215190615133565b60405180910390fd5b612165838383612f1f565b612170600082611edd565b6001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121c091906147e7565b925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546122179190615153565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6122d86111b3565b612317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161230e906151f5565b60405180910390fd5b6000600c60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61235b611ed5565b6040516123689190613cad565b60405180910390a1565b60005b818110156123a15761238e83612389610bf8565b612f2f565b808061239990615215565b915050612375565b507f00000000000000000000000026347a4110238bd3fda7f78b1c2fc52f0c923f5c73ffffffffffffffffffffffffffffffffffffffff16633de90acf82601460009054906101000a900460ff166040518363ffffffff1660e01b815260040161240c92919061525e565b600060405180830381600087803b15801561242657600080fd5b505af115801561243a573d6000803e3d6000fd5b505050505050565b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6125106111b3565b15612550576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612547906152d3565b60405180910390fd5b6001600c60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612594611ed5565b6040516125a19190613cad565b60405180910390a1565b6002600d5414156125f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e89061533f565b60405180910390fd5b6002600d819055506126016111b3565b15612641576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612638906152d3565b60405180910390fd5b600061265282600e60020154612f4d565b905061269481846040518060400160405280600b81526020017f4275796572206c696d6974000000000000000000000000000000000000000000815250612f66565b905060008373ffffffffffffffffffffffffffffffffffffffff166126b7611ed5565b73ffffffffffffffffffffffffffffffffffffffff161415905060006126db611ed5565b73ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161415801561274257508473ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614155b905081156127945761279183612756611ed5565b6040518060400160405280600c81526020017f53656e646572206c696d69740000000000000000000000000000000000000000815250612f66565b92505b80156127dd576127da83326040518060400160405280600c81526020017f4f726967696e206c696d69740000000000000000000000000000000000000000815250612f66565b92505b6127fe836127e961165d565b600e600001546127f991906147e7565b612f4d565b925060008311612843576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161283a906153ab565b60405180910390fd5b600061284e84611646565b9050803410156128cb57612870633b9aca008261286b91906153fa565b612c48565b60405160200161288091906154c3565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128c29190613be7565b60405180910390fd5b83601260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461291a9190615153565b925050819055508215612985578360126000612934611ed5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461297d9190615153565b925050819055505b81156129e25783601260003273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546129da9190615153565b925050819055505b6129ec8685612372565b6000811115612ab357612a4081601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661303490919063ffffffff16565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f01f51b99bd1c3cca301836178e5dee13aadfe44eff06dc3ddcbf3c9d058454f88583604051612aaa9291906154f0565b60405180910390a25b80341115612bdc576000612ac5611ed5565b905060008234612ad591906147e7565b90506000808373ffffffffffffffffffffffffffffffffffffffff1683604051612afe9061554a565b60006040518083038185875af1925050503d8060008114612b3b576040519150601f19603f3d011682016040523d82523d6000602084013e612b40565b606091505b5091509150818190612b88576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7f9190613be7565b60405180910390fd5b508373ffffffffffffffffffffffffffffffffffffffff167fbb28353e4598c3b9199101a66e0989549b659a59a54d2c27fbb183f1932c8e6d84604051612bcf9190613d43565b60405180910390a2505050505b505050506001600d819055505050565b612bf7848484612074565b612c0384848484613128565b612c42576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c39906155d1565b60405180910390fd5b50505050565b60606000821415612c90576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612da4565b600082905060005b60008214612cc2578080612cab90615215565b915050600a82612cbb91906153fa565b9150612c98565b60008167ffffffffffffffff811115612cde57612cdd614196565b5b6040519080825280601f01601f191660200182016040528015612d105781602001600182028036833780820191505090505b5090505b60008514612d9d57600182612d2991906147e7565b9150600a85612d3891906155f1565b6030612d449190615153565b60f81b818381518110612d5a57612d59614919565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d9691906153fa565b9450612d14565b8093505050505b919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612f0857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612f185750612f17826132bf565b5b9050919050565b612f2a838383613329565b505050565b612f49828260405180602001604052806000815250613381565b5050565b6000818310612f5c5781612f5e565b825b905092915050565b600080601260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054600e60010154612fb991906147e7565b905060008114156130205782604051602001612fd5919061566e565b6040516020818303038152906040526040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130179190613be7565b60405180910390fd5b61302a8582612f4d565b9150509392505050565b80471015613077576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161306e906156dc565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161309d9061554a565b60006040518083038185875af1925050503d80600081146130da576040519150601f19603f3d011682016040523d82523d6000602084013e6130df565b606091505b5050905080613123576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161311a9061576e565b60405180910390fd5b505050565b60006131498473ffffffffffffffffffffffffffffffffffffffff166133dc565b156132b2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613172611ed5565b8786866040518563ffffffff1660e01b815260040161319494939291906157d2565b602060405180830381600087803b1580156131ae57600080fd5b505af19250505080156131df57506040513d601f19601f820116820180604052508101906131dc9190615833565b60015b613262573d806000811461320f576040519150601f19603f3d011682016040523d82523d6000602084013e613214565b606091505b5060008151141561325a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613251906155d1565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132b7565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6133348383836133ef565b61333c6111b3565b1561337c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613373906158d2565b60405180910390fd5b505050565b61338b8383613503565b6133986000848484613128565b6133d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133ce906155d1565b60405180910390fd5b505050565b600080823b905060008111915050919050565b6133fa8383836136d1565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561343d57613438816136d6565b61347c565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461347b5761347a838261371f565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156134bf576134ba8161388c565b6134fe565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146134fd576134fc828261395d565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161356a9061593e565b60405180910390fd5b61357c81611e69565b156135bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135b3906159aa565b60405180910390fd5b6135c860008383612f1f565b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136189190615153565b92505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b505050565b600a80549050600b600083815260200190815260200160002081905550600a81908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161372c846113a3565b61373691906147e7565b905060006009600084815260200190815260200160002054905081811461381b576000600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816009600083815260200190815260200160002081905550505b6009600084815260200190815260200160002060009055600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600a805490506138a091906147e7565b90506000600b60008481526020019081526020016000205490506000600a83815481106138d0576138cf614919565b5b9060005260206000200154905080600a83815481106138f2576138f1614919565b5b906000526020600020018190555081600b600083815260200190815260200160002081905550600b600085815260200190815260200160002060009055600a805480613941576139406159ca565b5b6001900381819060005260206000200160009055905550505050565b6000613968836113a3565b905081600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806009600084815260200190815260200160002081905550505050565b8280546139e890614440565b90600052602060002090601f016020900481019282613a0a5760008555613a51565b82601f10613a2357803560ff1916838001178555613a51565b82800160010185558215613a51579182015b82811115613a50578235825591602001919060010190613a35565b5b509050613a5e9190613a62565b5090565b5b80821115613a7b576000816000905550600101613a63565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613ac881613a93565b8114613ad357600080fd5b50565b600081359050613ae581613abf565b92915050565b600060208284031215613b0157613b00613a89565b5b6000613b0f84828501613ad6565b91505092915050565b60008115159050919050565b613b2d81613b18565b82525050565b6000602082019050613b486000830184613b24565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b88578082015181840152602081019050613b6d565b83811115613b97576000848401525b50505050565b6000601f19601f8301169050919050565b6000613bb982613b4e565b613bc38185613b59565b9350613bd3818560208601613b6a565b613bdc81613b9d565b840191505092915050565b60006020820190508181036000830152613c018184613bae565b905092915050565b6000819050919050565b613c1c81613c09565b8114613c2757600080fd5b50565b600081359050613c3981613c13565b92915050565b600060208284031215613c5557613c54613a89565b5b6000613c6384828501613c2a565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c9782613c6c565b9050919050565b613ca781613c8c565b82525050565b6000602082019050613cc26000830184613c9e565b92915050565b613cd181613c8c565b8114613cdc57600080fd5b50565b600081359050613cee81613cc8565b92915050565b60008060408385031215613d0b57613d0a613a89565b5b6000613d1985828601613cdf565b9250506020613d2a85828601613c2a565b9150509250929050565b613d3d81613c09565b82525050565b6000602082019050613d586000830184613d34565b92915050565b6000613d6982613c6c565b9050919050565b613d7981613d5e565b8114613d8457600080fd5b50565b600081359050613d9681613d70565b92915050565b600060208284031215613db257613db1613a89565b5b6000613dc084828501613d87565b91505092915050565b600080600060608486031215613de257613de1613a89565b5b6000613df086828701613cdf565b9350506020613e0186828701613cdf565b9250506040613e1286828701613c2a565b9150509250925092565b600080fd5b600080fd5b600080fd5b60008083601f840112613e4157613e40613e1c565b5b8235905067ffffffffffffffff811115613e5e57613e5d613e21565b5b602083019150836001820283011115613e7a57613e79613e26565b5b9250929050565b60008060208385031215613e9857613e97613a89565b5b600083013567ffffffffffffffff811115613eb657613eb5613a8e565b5b613ec285828601613e2b565b92509250509250929050565b613ed781613d5e565b82525050565b6000602082019050613ef26000830184613ece565b92915050565b6000819050919050565b6000613f1d613f18613f1384613c6c565b613ef8565b613c6c565b9050919050565b6000613f2f82613f02565b9050919050565b6000613f4182613f24565b9050919050565b613f5181613f36565b82525050565b6000602082019050613f6c6000830184613f48565b92915050565b613f7b81613b18565b8114613f8657600080fd5b50565b600081359050613f9881613f72565b92915050565b60008060408385031215613fb557613fb4613a89565b5b6000613fc385828601613f89565b9250506020613fd485828601613f89565b9150509250929050565b6000613fe982613f24565b9050919050565b613ff981613fde565b82525050565b60006020820190506140146000830184613ff0565b92915050565b6000806040838503121561403157614030613a89565b5b600061403f85828601613cdf565b925050602061405085828601613cdf565b9150509250929050565b6000602082840312156140705761406f613a89565b5b600061407e84828501613cdf565b91505092915050565b60008083601f84011261409d5761409c613e1c565b5b8235905067ffffffffffffffff8111156140ba576140b9613e21565b5b6020830191508360018202830111156140d6576140d5613e26565b5b9250929050565b600080600080606085870312156140f7576140f6613a89565b5b600061410587828801613cdf565b945050602061411687828801613c2a565b935050604085013567ffffffffffffffff81111561413757614136613a8e565b5b61414387828801614087565b925092505092959194509250565b6000806040838503121561416857614167613a89565b5b600061417685828601613cdf565b925050602061418785828601613f89565b9150509250929050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6141ce82613b9d565b810181811067ffffffffffffffff821117156141ed576141ec614196565b5b80604052505050565b6000614200613a7f565b905061420c82826141c5565b919050565b60006060828403121561422757614226614191565b5b61423160606141f6565b9050600061424184828501613c2a565b600083015250602061425584828501613c2a565b602083015250604061426984828501613c2a565b60408301525092915050565b60006060828403121561428b5761428a613a89565b5b600061429984828501614211565b91505092915050565b600080fd5b600067ffffffffffffffff8211156142c2576142c1614196565b5b6142cb82613b9d565b9050602081019050919050565b82818337600083830152505050565b60006142fa6142f5846142a7565b6141f6565b905082815260208101848484011115614316576143156142a2565b5b6143218482856142d8565b509392505050565b600082601f83011261433e5761433d613e1c565b5b813561434e8482602086016142e7565b91505092915050565b6000806000806080858703121561437157614370613a89565b5b600061437f87828801613cdf565b945050602061439087828801613cdf565b93505060406143a187828801613c2a565b925050606085013567ffffffffffffffff8111156143c2576143c1613a8e565b5b6143ce87828801614329565b91505092959194509250565b60006060820190506143ef6000830186613d34565b6143fc6020830185613d34565b6144096040830184613d34565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061445857607f821691505b6020821081141561446c5761446b614411565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b60006144ce602c83613b59565b91506144d982614472565b604082019050919050565b600060208201905081810360008301526144fd816144c1565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614560602183613b59565b915061456b82614504565b604082019050919050565b6000602082019050818103600083015261458f81614553565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b60006145f2603883613b59565b91506145fd82614596565b604082019050919050565b60006020820190508181036000830152614621816145e5565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061465e602083613b59565b915061466982614628565b602082019050919050565b6000602082019050818103600083015261468d81614651565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b60006146f0603183613b59565b91506146fb82614694565b604082019050919050565b6000602082019050818103600083015261471f816146e3565b9050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000614782602b83613b59565b915061478d82614726565b604082019050919050565b600060208201905081810360008301526147b181614775565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006147f282613c09565b91506147fd83613c09565b9250828210156148105761480f6147b8565b5b828203905092915050565b7f4f776e65722071756f7461207265616368656400000000000000000000000000600082015250565b6000614851601383613b59565b915061485c8261481b565b602082019050919050565b6000602082019050818103600083015261488081614844565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b60006148e3602c83613b59565b91506148ee82614887565b604082019050919050565b60006020820190508181036000830152614912816148d6565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061495382613c8c565b9050919050565b61496381614948565b811461496e57600080fd5b50565b6000815190506149808161495a565b92915050565b60006020828403121561499c5761499b613a89565b5b60006149aa84828501614971565b91505092915050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000614a0f602983613b59565b9150614a1a826149b3565b604082019050919050565b60006020820190508181036000830152614a3e81614a02565b9050919050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000614aa1602a83613b59565b9150614aac82614a45565b604082019050919050565b60006020820190508181036000830152614ad081614a94565b9050919050565b600082825260208201905092915050565b6000614af48385614ad7565b9350614b018385846142d8565b614b0a83613b9d565b840190509392505050565b6000604082019050614b2a6000830186613c9e565b8181036020830152614b3d818486614ae8565b9050949350505050565b6000614b5282613c09565b9150614b5d83613c09565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614b9657614b956147b8565b5b828202905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614bd7601983613b59565b9150614be282614ba1565b602082019050919050565b60006020820190508181036000830152614c0681614bca565b9050919050565b7f455243373231436f6d6d6f6e3a20546f6b656e20646f65736e2774206578697360008201527f7400000000000000000000000000000000000000000000000000000000000000602082015250565b6000614c69602183613b59565b9150614c7482614c0d565b604082019050919050565b60006020820190508181036000830152614c9881614c5c565b9050919050565b600060ff82169050919050565b614cb581614c9f565b8114614cc057600080fd5b50565b600081519050614cd281614cac565b92915050565b600060208284031215614cee57614ced613a89565b5b6000614cfc84828501614cc3565b91505092915050565b600081905092915050565b60008190508160005260206000209050919050565b60008154614d3281614440565b614d3c8186614d05565b94506001821660008114614d575760018114614d6857614d9b565b60ff19831686528186019350614d9b565b614d7185614d10565b60005b83811015614d9357815481890152600182019150602081019050614d74565b838801955050505b50505092915050565b7f2f00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614dda600183614d05565b9150614de582614da4565b600182019050919050565b6000614dfb82613b4e565b614e058185614d05565b9350614e15818560208601613b6a565b80840191505092915050565b7f5f00000000000000000000000000000000000000000000000000000000000000600082015250565b6000614e57600183614d05565b9150614e6282614e21565b600182019050919050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614ea3600583614d05565b9150614eae82614e6d565b600582019050919050565b6000614ec58286614d25565b9150614ed082614dcd565b9150614edc8285614df0565b9150614ee782614e4a565b9150614ef38284614df0565b9150614efe82614e96565b9150819050949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f67602683613b59565b9150614f7282614f0b565b604082019050919050565b60006020820190508181036000830152614f9681614f5a565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614ff9602c83613b59565b915061500482614f9d565b604082019050919050565b6000602082019050818103600083015261502881614fec565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b600061508b602983613b59565b91506150968261502f565b604082019050919050565b600060208201905081810360008301526150ba8161507e565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061511d602483613b59565b9150615128826150c1565b604082019050919050565b6000602082019050818103600083015261514c81615110565b9050919050565b600061515e82613c09565b915061516983613c09565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561519e5761519d6147b8565b5b828201905092915050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b60006151df601483613b59565b91506151ea826151a9565b602082019050919050565b6000602082019050818103600083015261520e816151d2565b9050919050565b600061522082613c09565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615253576152526147b8565b5b600182019050919050565b60006040820190506152736000830185613d34565b6152806020830184613b24565b9392505050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006152bd601083613b59565b91506152c882615287565b602082019050919050565b600060208201905081810360008301526152ec816152b0565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000615329601f83613b59565b9150615334826152f3565b602082019050919050565b600060208201905081810360008301526153588161531c565b9050919050565b7f536f6c64206f7574000000000000000000000000000000000000000000000000600082015250565b6000615395600883613b59565b91506153a08261535f565b602082019050919050565b600060208201905081810360008301526153c481615388565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061540582613c09565b915061541083613c09565b9250826154205761541f6153cb565b5b828204905092915050565b7f436f737473200000000000000000000000000000000000000000000000000000600082015250565b6000615461600683614d05565b915061546c8261542b565b600682019050919050565b7f2047576569000000000000000000000000000000000000000000000000000000600082015250565b60006154ad600583614d05565b91506154b882615477565b600582019050919050565b60006154ce82615454565b91506154da8284614df0565b91506154e5826154a0565b915081905092915050565b60006040820190506155056000830185613d34565b6155126020830184613d34565b9392505050565b600081905092915050565b50565b6000615534600083615519565b915061553f82615524565b600082019050919050565b600061555582615527565b9150819050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b60006155bb603283613b59565b91506155c68261555f565b604082019050919050565b600060208201905081810360008301526155ea816155ae565b9050919050565b60006155fc82613c09565b915061560783613c09565b925082615617576156166153cb565b5b828206905092915050565b7f53656c6c65723a20000000000000000000000000000000000000000000000000600082015250565b6000615658600883614d05565b915061566382615622565b600882019050919050565b60006156798261564b565b91506156858284614df0565b915081905092915050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b60006156c6601d83613b59565b91506156d182615690565b602082019050919050565b600060208201905081810360008301526156f5816156b9565b9050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000615758603a83613b59565b9150615763826156fc565b604082019050919050565b600060208201905081810360008301526157878161574b565b9050919050565b600081519050919050565b60006157a48261578e565b6157ae8185614ad7565b93506157be818560208601613b6a565b6157c781613b9d565b840191505092915050565b60006080820190506157e76000830187613c9e565b6157f46020830186613c9e565b6158016040830185613d34565b81810360608301526158138184615799565b905095945050505050565b60008151905061582d81613abf565b92915050565b60006020828403121561584957615848613a89565b5b60006158578482850161581e565b91505092915050565b7f4552433732315061757361626c653a20746f6b656e207472616e73666572207760008201527f68696c6520706175736564000000000000000000000000000000000000000000602082015250565b60006158bc602b83613b59565b91506158c782615860565b604082019050919050565b600060208201905081810360008301526158eb816158af565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615928602083613b59565b9150615933826158f2565b602082019050919050565b600060208201905081810360008301526159578161591b565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615994601c83613b59565b915061599f8261595e565b602082019050919050565b600060208201905081810360008301526159c381615987565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea26469706673582212205c8c6d1a8b1364a447ac707d075582872ed5521c0383f281692030bed24f5c7d64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1000000000000000000000000000000000000000000000000000000000000012000000000000000000000000048cef97cb152ec9383b13fc24eb00a0c6ddba641000000000000000000000000000000000000000000000000000000000000000f476c6974636879204269746368657300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002474200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000003a0d9de7fce5c5fa24da699b7a78b875b1cf720d
-----Decoded View---------------
Arg [0] : name (string): Glitchy Bitches
Arg [1] : symbol (string): GB
Arg [2] : openSeaProxyRegistry (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [3] : _signers (address[]): 0x3A0d9dE7fCe5c5FA24dA699B7A78B875b1cf720d
Arg [4] : beneficiary (address): 0x48CeF97cb152eC9383B13fc24eB00A0c6DDBA641
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 00000000000000000000000048cef97cb152ec9383b13fc24eb00a0c6ddba641
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [6] : 476c697463687920426974636865730000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [8] : 4742000000000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 0000000000000000000000003a0d9de7fce5c5fa24da699b7a78b875b1cf720d
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.