ERC-721
Overview
Max Total Supply
0 EMOSPP
Holders
24
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 EMOSPPLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
EmpropsTokenContract
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "operator-filter-registry/src/DefaultOperatorFilterer.sol"; import "@manifoldxyz/royalty-registry-solidity/contracts/overrides/RoyaltyOverrideCore.sol"; import "@manifoldxyz/royalty-registry-solidity/contracts/specs/IEIP2981.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; contract EmpropsTokenContract is ERC721, Ownable, DefaultOperatorFilterer, EIP2981RoyaltyOverrideCore { using Counters for Counters.Counter; Counters.Counter public _mintCount; string public baseTokenURI; address public minter; uint64 public maxSupply; mapping(uint256 => string) public dm; constructor( string memory name, string memory symbol, uint64 newMaxSupply ) ERC721(name, symbol) { maxSupply = newMaxSupply; } // OVERRIDES function _baseURI() internal view virtual override returns (string memory) { return baseTokenURI; } function tokenURI( uint256 tokenId ) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); if (bytes(dm[tokenId]).length > 0) { return dm[tokenId]; } return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId))) : ""; } // MESSAGES function lockMetadata(uint256 tokenId, string memory metadataLink) public { require( _ownerOf(tokenId) == msg.sender, "ERC721: sender is not the owner" ); dm[tokenId] = metadataLink; } function updateMaxSupply(uint64 newMaxSupply) public onlyOwner { maxSupply = newMaxSupply; } function setBaseTokenURI(string memory newBaseUri) public onlyOwner { baseTokenURI = newBaseUri; } function setMinter(address newMinter) public onlyOwner { minter = newMinter; } function mint( address owner, uint256 tokenId, address author, uint16 bps ) public { require(msg.sender == minter, "Invalid sender, only minter may mint"); require(_mintCount.current() + 1 <= maxSupply, "Max supply exceeded"); _mint(owner, tokenId); // Increment counter _mintCount.increment(); // Set royalties TokenRoyaltyConfig[] memory royaltyConfigs = new TokenRoyaltyConfig[]( 1 ); royaltyConfigs[0] = TokenRoyaltyConfig(tokenId, author, bps); _setTokenRoyalties(royaltyConfigs); } // ROYALTIES function setTokenRoyalties( TokenRoyaltyConfig[] calldata royaltyConfigs ) external override onlyOwner { _setTokenRoyalties(royaltyConfigs); } function setDefaultRoyalty( TokenRoyalty calldata royalty ) external override onlyOwner { _setDefaultRoyalty(royalty); } function supportsInterface( bytes4 interfaceId ) public view virtual override(ERC721, EIP2981RoyaltyOverrideCore) returns (bool) { return ERC721.supportsInterface(interfaceId) || EIP2981RoyaltyOverrideCore.supportsInterface(interfaceId); } // Queries function getTokensOf( address _owner, uint256 _collectionId, uint256 _maxSupply ) public view returns (uint256[] memory) { uint256 oneMillion = 1000000; uint256 ownerTokenCount = balanceOf(_owner); uint256[] memory ownerTokens = new uint256[](ownerTokenCount); uint256 ownerTokenIdx = 0; uint256 maxTokenAvailable = (_collectionId * oneMillion) + _maxSupply; for ( uint256 tokenIdx = _collectionId * oneMillion; tokenIdx <= maxTokenAvailable; tokenIdx++ ) { if (_ownerOf(tokenIdx) == _owner) { ownerTokens[ownerTokenIdx] = tokenIdx; ownerTokenIdx++; } } return ownerTokens; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol"; /** * @title OperatorFilterer * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another * registrant's entries in the OperatorFilterRegistry. * @dev This smart contract is meant to be inherited by token contracts so they can use the following: * - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods. * - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods. */ abstract contract OperatorFilterer { error OperatorNotAllowed(address operator); IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY = IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E); constructor(address subscriptionOrRegistrantToCopy, bool subscribe) { // If an inheriting token contract is deployed to a network without the registry deployed, the modifier // will not revert, but the contract will need to be registered with the registry once it is deployed in // order for the modifier to filter addresses. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (subscribe) { OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy); } else { if (subscriptionOrRegistrantToCopy != address(0)) { OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy); } else { OPERATOR_FILTER_REGISTRY.register(address(this)); } } } } modifier onlyAllowedOperator(address from) virtual { // Allow spending tokens from addresses with balance // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred // from an EOA. if (from != msg.sender) { _checkFilterOperator(msg.sender); } _; } modifier onlyAllowedOperatorApproval(address operator) virtual { _checkFilterOperator(operator); _; } function _checkFilterOperator(address operator) internal view virtual { // Check registry code length to facilitate testing in environments without a deployed registry. if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) { if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) { revert OperatorNotAllowed(operator); } } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; interface IOperatorFilterRegistry { function isOperatorAllowed(address registrant, address operator) external view returns (bool); function register(address registrant) external; function registerAndSubscribe(address registrant, address subscription) external; function registerAndCopyEntries(address registrant, address registrantToCopy) external; function unregister(address addr) external; function updateOperator(address registrant, address operator, bool filtered) external; function updateOperators(address registrant, address[] calldata operators, bool filtered) external; function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external; function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external; function subscribe(address registrant, address registrantToSubscribe) external; function unsubscribe(address registrant, bool copyExistingEntries) external; function subscriptionOf(address addr) external returns (address registrant); function subscribers(address registrant) external returns (address[] memory); function subscriberAt(address registrant, uint256 index) external returns (address); function copyEntriesOf(address registrant, address registrantToCopy) external; function isOperatorFiltered(address registrant, address operator) external returns (bool); function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool); function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool); function filteredOperators(address addr) external returns (address[] memory); function filteredCodeHashes(address addr) external returns (bytes32[] memory); function filteredOperatorAt(address registrant, uint256 index) external returns (address); function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32); function isRegistered(address addr) external returns (bool); function codeHashOf(address addr) external returns (bytes32); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.13; import {OperatorFilterer} from "./OperatorFilterer.sol"; /** * @title DefaultOperatorFilterer * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription. */ abstract contract DefaultOperatorFilterer is OperatorFilterer { address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol) // This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. 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. * * [WARNING] * ==== * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure * unusable. * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. * * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an * array of EnumerableSet. * ==== */ 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) { bytes32[] memory store = _values(set._inner); bytes32[] memory result; /// @solidity memory-safe-assembly assembly { result := store } return result; } // 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; /// @solidity memory-safe-assembly 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 in 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; /// @solidity memory-safe-assembly assembly { result := store } return result; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv( uint256 x, uint256 y, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv( uint256 x, uint256 y, uint256 denominator, Rounding rounding ) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10**64) { value /= 10**64; result += 64; } if (value >= 10**32) { value /= 10**32; result += 32; } if (value >= 10**16) { value /= 10**16; result += 16; } if (value >= 10**8) { value /= 10**8; result += 8; } if (value >= 10**4) { value /= 10**4; result += 4; } if (value >= 10**2) { value /= 10**2; result += 2; } if (value >= 10**1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); 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) { _requireMinted(tokenId); 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 overridden 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 token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or 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: caller is not token owner or 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 the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @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 _ownerOf(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) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @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 from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @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 { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256, /* firstTokenId */ uint256 batchSize ) internal virtual { if (batchSize > 1) { if (from != address(0)) { _balances[from] -= batchSize; } if (to != address(0)) { _balances[to] += batchSize; } } } /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 firstTokenId, uint256 batchSize ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * EIP-2981 */ interface IEIP2981 { /** * bytes4(keccak256("royaltyInfo(uint256,uint256)")) == 0x2a55205a * * => 0x2a55205a = 0x2a55205a */ function royaltyInfo(uint256 tokenId, uint256 value) external view returns (address, uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "./IRoyaltyOverride.sol"; import "../specs/IEIP2981.sol"; /** * Simple EIP2981 reference override implementation */ abstract contract EIP2981RoyaltyOverrideCore is IEIP2981, IEIP2981RoyaltyOverride, ERC165 { using EnumerableSet for EnumerableSet.UintSet; TokenRoyalty public defaultRoyalty; mapping(uint256 => TokenRoyalty) private _tokenRoyalties; EnumerableSet.UintSet private _tokensWithRoyalties; function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IEIP2981).interfaceId || interfaceId == type(IEIP2981RoyaltyOverride).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Sets token royalties. When you override this in the implementation contract * ensure that you access restrict it to the contract owner or admin */ function _setTokenRoyalties(TokenRoyaltyConfig[] memory royaltyConfigs) internal { for (uint i = 0; i < royaltyConfigs.length; i++) { TokenRoyaltyConfig memory royaltyConfig = royaltyConfigs[i]; require(royaltyConfig.bps < 10000, "Invalid bps"); if (royaltyConfig.recipient == address(0)) { delete _tokenRoyalties[royaltyConfig.tokenId]; _tokensWithRoyalties.remove(royaltyConfig.tokenId); emit TokenRoyaltyRemoved(royaltyConfig.tokenId); } else { _tokenRoyalties[royaltyConfig.tokenId] = TokenRoyalty(royaltyConfig.recipient, royaltyConfig.bps); _tokensWithRoyalties.add(royaltyConfig.tokenId); emit TokenRoyaltySet(royaltyConfig.tokenId, royaltyConfig.recipient, royaltyConfig.bps); } } } /** * @dev Sets default royalty. When you override this in the implementation contract * ensure that you access restrict it to the contract owner or admin */ function _setDefaultRoyalty(TokenRoyalty memory royalty) internal { require(royalty.bps < 10000, "Invalid bps"); defaultRoyalty = TokenRoyalty(royalty.recipient, royalty.bps); emit DefaultRoyaltySet(royalty.recipient, royalty.bps); } /** * @dev See {IEIP2981RoyaltyOverride-getTokenRoyaltiesCount}. */ function getTokenRoyaltiesCount() external override view returns(uint256) { return _tokensWithRoyalties.length(); } /** * @dev See {IEIP2981RoyaltyOverride-getTokenRoyaltyByIndex}. */ function getTokenRoyaltyByIndex(uint256 index) external override view returns(TokenRoyaltyConfig memory) { uint256 tokenId = _tokensWithRoyalties.at(index); TokenRoyalty memory royalty = _tokenRoyalties[tokenId]; return TokenRoyaltyConfig(tokenId, royalty.recipient, royalty.bps); } /** * @dev See {IEIP2981RoyaltyOverride-royaltyInfo}. */ function royaltyInfo(uint256 tokenId, uint256 value) public override view returns (address, uint256) { if (_tokenRoyalties[tokenId].recipient != address(0)) { return (_tokenRoyalties[tokenId].recipient, value*_tokenRoyalties[tokenId].bps/10000); } if (defaultRoyalty.recipient != address(0) && defaultRoyalty.bps != 0) { return (defaultRoyalty.recipient, value*defaultRoyalty.bps/10000); } return (address(0), 0); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * Simple EIP2981 reference override implementation */ interface IEIP2981RoyaltyOverride is IERC165 { event TokenRoyaltyRemoved(uint256 tokenId); event TokenRoyaltySet(uint256 tokenId, address recipient, uint16 bps); event DefaultRoyaltySet(address recipient, uint16 bps); struct TokenRoyalty { address recipient; uint16 bps; } struct TokenRoyaltyConfig { uint256 tokenId; address recipient; uint16 bps; } /** * @dev Set per token royalties. Passing a recipient of address(0) will delete any existing configuration */ function setTokenRoyalties(TokenRoyaltyConfig[] calldata royalties) external; /** * @dev Get the number of token specific overrides. Used to enumerate over all configurations */ function getTokenRoyaltiesCount() external view returns(uint256); /** * @dev Get a token royalty configuration by index. Use in conjunction with getTokenRoyaltiesCount to get all per token configurations */ function getTokenRoyaltyByIndex(uint256 index) external view returns(TokenRoyaltyConfig memory); /** * @dev Set a default royalty configuration. Will be used if no token specific configuration is set */ function setDefaultRoyalty(TokenRoyalty calldata royalty) external; }
{ "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":"uint64","name":"newMaxSupply","type":"uint64"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint16","name":"bps","type":"uint16"}],"name":"DefaultRoyaltySet","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":"uint256","name":"tokenId","type":"uint256"}],"name":"TokenRoyaltyRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint16","name":"bps","type":"uint16"}],"name":"TokenRoyaltySet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintCount","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRoyalty","outputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dm","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenRoyaltiesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTokenRoyaltyByIndex","outputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"internalType":"struct IEIP2981RoyaltyOverride.TokenRoyaltyConfig","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"uint256","name":"_collectionId","type":"uint256"},{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"getTokensOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"metadataLink","type":"string"}],"name":"lockMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"author","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"newBaseUri","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"internalType":"struct IEIP2981RoyaltyOverride.TokenRoyalty","name":"royalty","type":"tuple"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newMinter","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint16","name":"bps","type":"uint16"}],"internalType":"struct IEIP2981RoyaltyOverride.TokenRoyaltyConfig[]","name":"royaltyConfigs","type":"tuple[]"}],"name":"setTokenRoyalties","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"uint64","name":"newMaxSupply","type":"uint64"}],"name":"updateMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200559638038062005596833981810160405281019062000037919062000565565b733cc6cdda760b79bafa08df41ecfa224f810dceb66001848481600090816200006191906200084a565b5080600190816200007391906200084a565b505050620000966200008a620002bf60201b60201c565b620002c760201b60201c565b60006daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff163b11156200028b57801562000151576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16637d3e3dbe30846040518363ffffffff1660e01b81526004016200011792919062000976565b600060405180830381600087803b1580156200013257600080fd5b505af115801562000147573d6000803e3d6000fd5b505050506200028a565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146200020b576daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff1663a0af290330846040518363ffffffff1660e01b8152600401620001d192919062000976565b600060405180830381600087803b158015620001ec57600080fd5b505af115801562000201573d6000803e3d6000fd5b5050505062000289565b6daaeb6d7670e522a718067333cd4e73ffffffffffffffffffffffffffffffffffffffff16634420e486306040518263ffffffff1660e01b8152600401620002549190620009a3565b600060405180830381600087803b1580156200026f57600080fd5b505af115801562000284573d6000803e3d6000fd5b505050505b5b5b505080600d60146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050620009c0565b600033905090565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003f682620003ab565b810181811067ffffffffffffffff82111715620004185762000417620003bc565b5b80604052505050565b60006200042d6200038d565b90506200043b8282620003eb565b919050565b600067ffffffffffffffff8211156200045e576200045d620003bc565b5b6200046982620003ab565b9050602081019050919050565b60005b838110156200049657808201518184015260208101905062000479565b60008484015250505050565b6000620004b9620004b38462000440565b62000421565b905082815260208101848484011115620004d857620004d7620003a6565b5b620004e584828562000476565b509392505050565b600082601f830112620005055762000504620003a1565b5b815162000517848260208601620004a2565b91505092915050565b600067ffffffffffffffff82169050919050565b6200053f8162000520565b81146200054b57600080fd5b50565b6000815190506200055f8162000534565b92915050565b60008060006060848603121562000581576200058062000397565b5b600084015167ffffffffffffffff811115620005a257620005a16200039c565b5b620005b086828701620004ed565b935050602084015167ffffffffffffffff811115620005d457620005d36200039c565b5b620005e286828701620004ed565b9250506040620005f5868287016200054e565b9150509250925092565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200065257607f821691505b6020821081036200066857620006676200060a565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b600060088302620006d27fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000693565b620006de868362000693565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b60006200072b620007256200071f84620006f6565b62000700565b620006f6565b9050919050565b6000819050919050565b62000747836200070a565b6200075f620007568262000732565b848454620006a0565b825550505050565b600090565b6200077662000767565b620007838184846200073c565b505050565b5b81811015620007ab576200079f6000826200076c565b60018101905062000789565b5050565b601f821115620007fa57620007c4816200066e565b620007cf8462000683565b81016020851015620007df578190505b620007f7620007ee8562000683565b83018262000788565b50505b505050565b600082821c905092915050565b60006200081f60001984600802620007ff565b1980831691505092915050565b60006200083a83836200080c565b9150826002028217905092915050565b6200085582620005ff565b67ffffffffffffffff811115620008715762000870620003bc565b5b6200087d825462000639565b6200088a828285620007af565b600060209050601f831160018114620008c25760008415620008ad578287015190505b620008b985826200082c565b86555062000929565b601f198416620008d2866200066e565b60005b82811015620008fc57848901518255600182019150602085019450602081019050620008d5565b868310156200091c578489015162000918601f8916826200080c565b8355505b6001600288020188555050505b505050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006200095e8262000931565b9050919050565b620009708162000951565b82525050565b60006040820190506200098d600083018562000965565b6200099c602083018462000965565b9392505050565b6000602082019050620009ba600083018462000965565b92915050565b614bc680620009d06000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a578063b88d4fde116100ad578063e985e9c51161007c578063e985e9c5146105db578063ef60ceaf1461060b578063f148b4b214610627578063f2fde38b14610657578063fca3b5aa1461067357610206565b8063b88d4fde14610553578063c87b56dd1461056f578063d547cfb71461059f578063d5abeb01146105bd57610206565b806387dce435116100e957806387dce435146104df5780638da5cb5b146104fb57806395d89b4114610519578063a22cb4651461053757610206565b806370a0823114610468578063715018a6146104985780637885fdc7146104a25780637e980342146104c157610206565b80632f6196b71161019d57806341f434341161016c57806341f43434146103b257806342842e0e146103d05780635136dcc7146103ec5780636352211e1461040857806366a3adbd1461043857610206565b80632f6196b71461034057806330176e131461035c5780633cc8402c146103785780633d7b313e1461039457610206565b8063081812fc116101d9578063081812fc146102a7578063095ea7b3146102d757806323b872dd146102f35780632a55205a1461030f57610206565b806301ffc9a71461020b5780630653aca51461023b57806306fdde031461026b5780630754617214610289575b600080fd5b6102256004803603810190610220919061303b565b61068f565b6040516102329190613083565b60405180910390f35b610255600480360381019061025091906130d4565b6106b1565b60405161026291906131b0565b60405180910390f35b6102736107af565b604051610280919061325b565b60405180910390f35b610291610841565b60405161029e919061328c565b60405180910390f35b6102c160048036038101906102bc91906130d4565b610867565b6040516102ce919061328c565b60405180910390f35b6102f160048036038101906102ec91906132d3565b6108ad565b005b61030d60048036038101906103089190613313565b6109c4565b005b61032960048036038101906103249190613366565b610a24565b6040516103379291906133b5565b60405180910390f35b61035a6004803603810190610355919061340a565b610bff565b005b610376600480360381019061037191906135a6565b610dd8565b005b610392600480360381019061038d919061362f565b610df3565b005b61039c610e27565b6040516103a9919061365c565b60405180910390f35b6103ba610e33565b6040516103c791906136d6565b60405180910390f35b6103ea60048036038101906103e59190613313565b610e45565b005b61040660048036038101906104019190613751565b610e65565b005b610422600480360381019061041d91906130d4565b610ed0565b60405161042f919061328c565b60405180910390f35b610452600480360381019061044d919061379e565b610f56565b60405161045f91906138a0565b60405180910390f35b610482600480360381019061047d91906138c2565b61107b565b60405161048f919061365c565b60405180910390f35b6104a0611132565b005b6104aa611146565b6040516104b89291906138fe565b60405180910390f35b6104c9611186565b6040516104d6919061365c565b60405180910390f35b6104f960048036038101906104f49190613927565b611197565b005b610503611232565b604051610510919061328c565b60405180910390f35b61052161125c565b60405161052e919061325b565b60405180910390f35b610551600480360381019061054c91906139af565b6112ee565b005b61056d60048036038101906105689190613a90565b611304565b005b610589600480360381019061058491906130d4565b611366565b604051610596919061325b565b60405180910390f35b6105a761149b565b6040516105b4919061325b565b60405180910390f35b6105c5611529565b6040516105d29190613b22565b60405180910390f35b6105f560048036038101906105f09190613b3d565b611543565b6040516106029190613083565b60405180910390f35b61062560048036038101906106209190613ba1565b6115d7565b005b610641600480360381019061063c91906130d4565b6115fb565b60405161064e919061325b565b60405180910390f35b610671600480360381019061066c91906138c2565b61169b565b005b61068d600480360381019061068891906138c2565b61171e565b005b600061069a8261176a565b806106aa57506106a98261184c565b5b9050919050565b6106b9612f94565b60006106cf83600961192e90919063ffffffff16565b90506000600860008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900461ffff1661ffff1661ffff168152505090506040518060600160405280838152602001826000015173ffffffffffffffffffffffffffffffffffffffff168152602001826020015161ffff1681525092505050919050565b6060600080546107be90613bfd565b80601f01602080910402602001604051908101604052809291908181526020018280546107ea90613bfd565b80156108375780601f1061080c57610100808354040283529160200191610837565b820191906000526020600020905b81548152906001019060200180831161081a57829003601f168201915b5050505050905090565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061087282611948565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108b882610ed0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091f90613ca0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610947611993565b73ffffffffffffffffffffffffffffffffffffffff161480610976575061097581610970611993565b611543565b5b6109b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ac90613d32565b60405180910390fd5b6109bf838361199b565b505050565b6109d56109cf611993565b82611a54565b610a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0b90613dc4565b60405180910390fd5b610a1f838383611ae9565b505050565b600080600073ffffffffffffffffffffffffffffffffffffffff166008600086815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b12576008600085815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106008600087815260200190815260200160002060000160149054906101000a900461ffff1661ffff1685610aff9190613e13565b610b099190613e84565b91509150610bf8565b600073ffffffffffffffffffffffffffffffffffffffff16600760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015610b8c57506000600760000160149054906101000a900461ffff1661ffff1614155b15610bf057600760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710600760000160149054906101000a900461ffff1661ffff1685610bdd9190613e13565b610be79190613e84565b91509150610bf8565b600080915091505b9250929050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8690613f27565b60405180910390fd5b600d60149054906101000a900467ffffffffffffffff1667ffffffffffffffff166001610cbc600b611de2565b610cc69190613f47565b1115610d07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfe90613fc7565b60405180910390fd5b610d118484611df0565b610d1b600b61200d565b6000600167ffffffffffffffff811115610d3857610d3761347b565b5b604051908082528060200260200182016040528015610d7157816020015b610d5e612f94565b815260200190600190039081610d565790505b50905060405180606001604052808581526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018361ffff1681525081600081518110610dbd57610dbc613fe7565b5b6020026020010181905250610dd181612023565b5050505050565b610de06122b5565b80600c9081610def91906141b8565b5050565b610dfb6122b5565b80600d60146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b600b8060000154905081565b6daaeb6d7670e522a718067333cd4e81565b610e6083838360405180602001604052806000815250611304565b505050565b610e6d6122b5565b610ecc8282808060200260200160405190810160405280939291908181526020016000905b82821015610ec257848483905060600201803603810190610eb391906142f3565b81526020019060010190610e92565b5050505050612023565b5050565b600080610edc83612333565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f449061436c565b60405180910390fd5b80915050919050565b60606000620f424090506000610f6b8661107b565b905060008167ffffffffffffffff811115610f8957610f8861347b565b5b604051908082528060200260200182016040528015610fb75781602001602082028036833780820191505090505b509050600080868589610fca9190613e13565b610fd49190613f47565b905060008589610fe49190613e13565b90505b81811161106b578973ffffffffffffffffffffffffffffffffffffffff1661100e82612333565b73ffffffffffffffffffffffffffffffffffffffff1603611058578084848151811061103d5761103c613fe7565b5b60200260200101818152505082806110549061438c565b9350505b80806110639061438c565b915050610fe7565b5082955050505050509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e290614446565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61113a6122b5565b6111446000612370565b565b60078060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900461ffff16905082565b60006111926009612436565b905090565b3373ffffffffffffffffffffffffffffffffffffffff166111b783612333565b73ffffffffffffffffffffffffffffffffffffffff161461120d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611204906144b2565b60405180910390fd5b80600e6000848152602001908152602001600020908161122d91906141b8565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461126b90613bfd565b80601f016020809104026020016040519081016040528092919081815260200182805461129790613bfd565b80156112e45780601f106112b9576101008083540402835291602001916112e4565b820191906000526020600020905b8154815290600101906020018083116112c757829003601f168201915b5050505050905090565b6113006112f9611993565b838361244b565b5050565b61131561130f611993565b83611a54565b611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b90613dc4565b60405180910390fd5b611360848484846125b7565b50505050565b606061137182611948565b600061137b612613565b90506000600e6000858152602001908152602001600020805461139d90613bfd565b9050111561144957600e600084815260200190815260200160002080546113c390613bfd565b80601f01602080910402602001604051908101604052809291908181526020018280546113ef90613bfd565b801561143c5780601f106114115761010080835404028352916020019161143c565b820191906000526020600020905b81548152906001019060200180831161141f57829003601f168201915b5050505050915050611496565b60008151116114675760405180602001604052806000815250611492565b80611471846126a5565b60405160200161148292919061450e565b6040516020818303038152906040525b9150505b919050565b600c80546114a890613bfd565b80601f01602080910402602001604051908101604052809291908181526020018280546114d490613bfd565b80156115215780601f106114f657610100808354040283529160200191611521565b820191906000526020600020905b81548152906001019060200180831161150457829003601f168201915b505050505081565b600d60149054906101000a900467ffffffffffffffff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6115df6122b5565b6115f8818036038101906115f39190614582565b612773565b50565b600e602052806000526040600020600091509050805461161a90613bfd565b80601f016020809104026020016040519081016040528092919081815260200182805461164690613bfd565b80156116935780601f1061166857610100808354040283529160200191611693565b820191906000526020600020905b81548152906001019060200180831161167657829003601f168201915b505050505081565b6116a36122b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170990614621565b60405180910390fd5b61171b81612370565b50565b6117266122b5565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061183557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806118455750611844826128a9565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061191757507fc69dbd8f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061192757506119268261176a565b5b9050919050565b600061193d8360000183612913565b60001c905092915050565b6119518161293e565b611990576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119879061436c565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611a0e83610ed0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611a6083610ed0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611aa25750611aa18185611543565b5b80611ae057508373ffffffffffffffffffffffffffffffffffffffff16611ac884610867565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611b0982610ed0565b73ffffffffffffffffffffffffffffffffffffffff1614611b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b56906146b3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc590614745565b60405180910390fd5b611bdb838383600161297f565b8273ffffffffffffffffffffffffffffffffffffffff16611bfb82610ed0565b73ffffffffffffffffffffffffffffffffffffffff1614611c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c48906146b3565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ddd8383836001612aa5565b505050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e56906147b1565b60405180910390fd5b611e688161293e565b15611ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9f9061481d565b60405180910390fd5b611eb660008383600161297f565b611ebf8161293e565b15611eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef69061481d565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612009600083836001612aa5565b5050565b6001816000016000828254019250508190555050565b60005b81518110156122b157600082828151811061204457612043613fe7565b5b60200260200101519050612710816040015161ffff161061209a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209190614889565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16816020015173ffffffffffffffffffffffffffffffffffffffff1603612181576008600082600001518152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a81549061ffff0219169055505061214081600001516009612aab90919063ffffffff16565b507fa2870857763bd9ae76c957f869f16b31c18dd3bb4c7b4d3a4496dc5c57c657f98160000151604051612174919061365c565b60405180910390a161229d565b6040518060400160405280826020015173ffffffffffffffffffffffffffffffffffffffff168152602001826040015161ffff16815250600860008360000151815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555090505061225481600001516009612ac590919063ffffffff16565b507f389b70fb0887f01e83784eb1c4c589f740eca53b00ed0f45e41db5d079719abb816000015182602001518360400151604051612294939291906148a9565b60405180910390a15b5080806122a99061438c565b915050612026565b5050565b6122bd611993565b73ffffffffffffffffffffffffffffffffffffffff166122db611232565b73ffffffffffffffffffffffffffffffffffffffff1614612331576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123289061492c565b60405180910390fd5b565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061244482600001612adf565b9050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b090614998565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125aa9190613083565b60405180910390a3505050565b6125c2848484611ae9565b6125ce84848484612af0565b61260d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260490614a2a565b60405180910390fd5b50505050565b6060600c805461262290613bfd565b80601f016020809104026020016040519081016040528092919081815260200182805461264e90613bfd565b801561269b5780601f106126705761010080835404028352916020019161269b565b820191906000526020600020905b81548152906001019060200180831161267e57829003601f168201915b5050505050905090565b6060600060016126b484612c77565b01905060008167ffffffffffffffff8111156126d3576126d261347b565b5b6040519080825280601f01601f1916602001820160405280156127055781602001600182028036833780820191505090505b509050600082602001820190505b600115612768578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161275c5761275b613e55565b5b04945060008503612713575b819350505050919050565b612710816020015161ffff16106127bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b690614889565b60405180910390fd5b6040518060400160405280826000015173ffffffffffffffffffffffffffffffffffffffff168152602001826020015161ffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548161ffff021916908361ffff1602179055509050507f2c5ea6e4103e78cb101e796fb2dace540362fc542cbff5145eaa24af7dd8fe418160000151826020015160405161289e9291906138fe565b60405180910390a150565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600082600001828154811061292b5761292a613fe7565b5b9060005260206000200154905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff1661296083612333565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6001811115612a9f57600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612a135780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a0b9190614a4a565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612a9e5780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a969190613f47565b925050819055505b5b50505050565b50505050565b6000612abd836000018360001b612dca565b905092915050565b6000612ad7836000018360001b612ede565b905092915050565b600081600001805490509050919050565b6000612b118473ffffffffffffffffffffffffffffffffffffffff16612f4e565b15612c6a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b3a611993565b8786866040518563ffffffff1660e01b8152600401612b5c9493929190614ad3565b6020604051808303816000875af1925050508015612b9857506040513d601f19601f82011682018060405250810190612b959190614b34565b60015b612c1a573d8060008114612bc8576040519150601f19603f3d011682016040523d82523d6000602084013e612bcd565b606091505b506000815103612c12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0990614a2a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c6f565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612cd5577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612ccb57612cca613e55565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612d12576d04ee2d6d415b85acef81000000008381612d0857612d07613e55565b5b0492506020810190505b662386f26fc100008310612d4157662386f26fc100008381612d3757612d36613e55565b5b0492506010810190505b6305f5e1008310612d6a576305f5e1008381612d6057612d5f613e55565b5b0492506008810190505b6127108310612d8f576127108381612d8557612d84613e55565b5b0492506004810190505b60648310612db25760648381612da857612da7613e55565b5b0492506002810190505b600a8310612dc1576001810190505b80915050919050565b60008083600101600084815260200190815260200160002054905060008114612ed2576000600182612dfc9190614a4a565b9050600060018660000180549050612e149190614a4a565b9050818114612e83576000866000018281548110612e3557612e34613fe7565b5b9060005260206000200154905080876000018481548110612e5957612e58613fe7565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612e9757612e96614b61565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612ed8565b60009150505b92915050565b6000612eea8383612f71565b612f43578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612f48565b600090505b92915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080836001016000848152602001908152602001600020541415905092915050565b604051806060016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600061ffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301881612fe3565b811461302357600080fd5b50565b6000813590506130358161300f565b92915050565b60006020828403121561305157613050612fd9565b5b600061305f84828501613026565b91505092915050565b60008115159050919050565b61307d81613068565b82525050565b60006020820190506130986000830184613074565b92915050565b6000819050919050565b6130b18161309e565b81146130bc57600080fd5b50565b6000813590506130ce816130a8565b92915050565b6000602082840312156130ea576130e9612fd9565b5b60006130f8848285016130bf565b91505092915050565b61310a8161309e565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061313b82613110565b9050919050565b61314b81613130565b82525050565b600061ffff82169050919050565b61316881613151565b82525050565b6060820160008201516131846000850182613101565b5060208201516131976020850182613142565b5060408201516131aa604085018261315f565b50505050565b60006060820190506131c5600083018461316e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156132055780820151818401526020810190506131ea565b60008484015250505050565b6000601f19601f8301169050919050565b600061322d826131cb565b61323781856131d6565b93506132478185602086016131e7565b61325081613211565b840191505092915050565b600060208201905081810360008301526132758184613222565b905092915050565b61328681613130565b82525050565b60006020820190506132a1600083018461327d565b92915050565b6132b081613130565b81146132bb57600080fd5b50565b6000813590506132cd816132a7565b92915050565b600080604083850312156132ea576132e9612fd9565b5b60006132f8858286016132be565b9250506020613309858286016130bf565b9150509250929050565b60008060006060848603121561332c5761332b612fd9565b5b600061333a868287016132be565b935050602061334b868287016132be565b925050604061335c868287016130bf565b9150509250925092565b6000806040838503121561337d5761337c612fd9565b5b600061338b858286016130bf565b925050602061339c858286016130bf565b9150509250929050565b6133af8161309e565b82525050565b60006040820190506133ca600083018561327d565b6133d760208301846133a6565b9392505050565b6133e781613151565b81146133f257600080fd5b50565b600081359050613404816133de565b92915050565b6000806000806080858703121561342457613423612fd9565b5b6000613432878288016132be565b9450506020613443878288016130bf565b9350506040613454878288016132be565b9250506060613465878288016133f5565b91505092959194509250565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134b382613211565b810181811067ffffffffffffffff821117156134d2576134d161347b565b5b80604052505050565b60006134e5612fcf565b90506134f182826134aa565b919050565b600067ffffffffffffffff8211156135115761351061347b565b5b61351a82613211565b9050602081019050919050565b82818337600083830152505050565b6000613549613544846134f6565b6134db565b90508281526020810184848401111561356557613564613476565b5b613570848285613527565b509392505050565b600082601f83011261358d5761358c613471565b5b813561359d848260208601613536565b91505092915050565b6000602082840312156135bc576135bb612fd9565b5b600082013567ffffffffffffffff8111156135da576135d9612fde565b5b6135e684828501613578565b91505092915050565b600067ffffffffffffffff82169050919050565b61360c816135ef565b811461361757600080fd5b50565b60008135905061362981613603565b92915050565b60006020828403121561364557613644612fd9565b5b60006136538482850161361a565b91505092915050565b600060208201905061367160008301846133a6565b92915050565b6000819050919050565b600061369c61369761369284613110565b613677565b613110565b9050919050565b60006136ae82613681565b9050919050565b60006136c0826136a3565b9050919050565b6136d0816136b5565b82525050565b60006020820190506136eb60008301846136c7565b92915050565b600080fd5b600080fd5b60008083601f84011261371157613710613471565b5b8235905067ffffffffffffffff81111561372e5761372d6136f1565b5b60208301915083606082028301111561374a576137496136f6565b5b9250929050565b6000806020838503121561376857613767612fd9565b5b600083013567ffffffffffffffff81111561378657613785612fde565b5b613792858286016136fb565b92509250509250929050565b6000806000606084860312156137b7576137b6612fd9565b5b60006137c5868287016132be565b93505060206137d6868287016130bf565b92505060406137e7868287016130bf565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006138298383613101565b60208301905092915050565b6000602082019050919050565b600061384d826137f1565b61385781856137fc565b93506138628361380d565b8060005b8381101561389357815161387a888261381d565b975061388583613835565b925050600181019050613866565b5085935050505092915050565b600060208201905081810360008301526138ba8184613842565b905092915050565b6000602082840312156138d8576138d7612fd9565b5b60006138e6848285016132be565b91505092915050565b6138f881613151565b82525050565b6000604082019050613913600083018561327d565b61392060208301846138ef565b9392505050565b6000806040838503121561393e5761393d612fd9565b5b600061394c858286016130bf565b925050602083013567ffffffffffffffff81111561396d5761396c612fde565b5b61397985828601613578565b9150509250929050565b61398c81613068565b811461399757600080fd5b50565b6000813590506139a981613983565b92915050565b600080604083850312156139c6576139c5612fd9565b5b60006139d4858286016132be565b92505060206139e58582860161399a565b9150509250929050565b600067ffffffffffffffff821115613a0a57613a0961347b565b5b613a1382613211565b9050602081019050919050565b6000613a33613a2e846139ef565b6134db565b905082815260208101848484011115613a4f57613a4e613476565b5b613a5a848285613527565b509392505050565b600082601f830112613a7757613a76613471565b5b8135613a87848260208601613a20565b91505092915050565b60008060008060808587031215613aaa57613aa9612fd9565b5b6000613ab8878288016132be565b9450506020613ac9878288016132be565b9350506040613ada878288016130bf565b925050606085013567ffffffffffffffff811115613afb57613afa612fde565b5b613b0787828801613a62565b91505092959194509250565b613b1c816135ef565b82525050565b6000602082019050613b376000830184613b13565b92915050565b60008060408385031215613b5457613b53612fd9565b5b6000613b62858286016132be565b9250506020613b73858286016132be565b9150509250929050565b600080fd5b600060408284031215613b9857613b97613b7d565b5b81905092915050565b600060408284031215613bb757613bb6612fd9565b5b6000613bc584828501613b82565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c1557607f821691505b602082108103613c2857613c27613bce565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613c8a6021836131d6565b9150613c9582613c2e565b604082019050919050565b60006020820190508181036000830152613cb981613c7d565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000613d1c603d836131d6565b9150613d2782613cc0565b604082019050919050565b60006020820190508181036000830152613d4b81613d0f565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000613dae602d836131d6565b9150613db982613d52565b604082019050919050565b60006020820190508181036000830152613ddd81613da1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e1e8261309e565b9150613e298361309e565b9250828202613e378161309e565b91508282048414831517613e4e57613e4d613de4565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e8f8261309e565b9150613e9a8361309e565b925082613eaa57613ea9613e55565b5b828204905092915050565b7f496e76616c69642073656e6465722c206f6e6c79206d696e746572206d61792060008201527f6d696e7400000000000000000000000000000000000000000000000000000000602082015250565b6000613f116024836131d6565b9150613f1c82613eb5565b604082019050919050565b60006020820190508181036000830152613f4081613f04565b9050919050565b6000613f528261309e565b9150613f5d8361309e565b9250828201905080821115613f7557613f74613de4565b5b92915050565b7f4d617820737570706c7920657863656564656400000000000000000000000000600082015250565b6000613fb16013836131d6565b9150613fbc82613f7b565b602082019050919050565b60006020820190508181036000830152613fe081613fa4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026140787fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261403b565b614082868361403b565b95508019841693508086168417925050509392505050565b60006140b56140b06140ab8461309e565b613677565b61309e565b9050919050565b6000819050919050565b6140cf8361409a565b6140e36140db826140bc565b848454614048565b825550505050565b600090565b6140f86140eb565b6141038184846140c6565b505050565b5b818110156141275761411c6000826140f0565b600181019050614109565b5050565b601f82111561416c5761413d81614016565b6141468461402b565b81016020851015614155578190505b6141696141618561402b565b830182614108565b50505b505050565b600082821c905092915050565b600061418f60001984600802614171565b1980831691505092915050565b60006141a8838361417e565b9150826002028217905092915050565b6141c1826131cb565b67ffffffffffffffff8111156141da576141d961347b565b5b6141e48254613bfd565b6141ef82828561412b565b600060209050601f8311600181146142225760008415614210578287015190505b61421a858261419c565b865550614282565b601f19841661423086614016565b60005b8281101561425857848901518255600182019150602085019450602081019050614233565b868310156142755784890151614271601f89168261417e565b8355505b6001600288020188555050505b505050505050565b600080fd5b6000606082840312156142a5576142a461428a565b5b6142af60606134db565b905060006142bf848285016130bf565b60008301525060206142d3848285016132be565b60208301525060406142e7848285016133f5565b60408301525092915050565b60006060828403121561430957614308612fd9565b5b60006143178482850161428f565b91505092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006143566018836131d6565b915061436182614320565b602082019050919050565b6000602082019050818103600083015261438581614349565b9050919050565b60006143978261309e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036143c9576143c8613de4565b5b600182019050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006144306029836131d6565b915061443b826143d4565b604082019050919050565b6000602082019050818103600083015261445f81614423565b9050919050565b7f4552433732313a2073656e646572206973206e6f7420746865206f776e657200600082015250565b600061449c601f836131d6565b91506144a782614466565b602082019050919050565b600060208201905081810360008301526144cb8161448f565b9050919050565b600081905092915050565b60006144e8826131cb565b6144f281856144d2565b93506145028185602086016131e7565b80840191505092915050565b600061451a82856144dd565b915061452682846144dd565b91508190509392505050565b6000604082840312156145485761454761428a565b5b61455260406134db565b90506000614562848285016132be565b6000830152506020614576848285016133f5565b60208301525092915050565b60006040828403121561459857614597612fd9565b5b60006145a684828501614532565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061460b6026836131d6565b9150614616826145af565b604082019050919050565b6000602082019050818103600083015261463a816145fe565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061469d6025836131d6565b91506146a882614641565b604082019050919050565b600060208201905081810360008301526146cc81614690565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061472f6024836131d6565b915061473a826146d3565b604082019050919050565b6000602082019050818103600083015261475e81614722565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061479b6020836131d6565b91506147a682614765565b602082019050919050565b600060208201905081810360008301526147ca8161478e565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614807601c836131d6565b9150614812826147d1565b602082019050919050565b60006020820190508181036000830152614836816147fa565b9050919050565b7f496e76616c696420627073000000000000000000000000000000000000000000600082015250565b6000614873600b836131d6565b915061487e8261483d565b602082019050919050565b600060208201905081810360008301526148a281614866565b9050919050565b60006060820190506148be60008301866133a6565b6148cb602083018561327d565b6148d860408301846138ef565b949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006149166020836131d6565b9150614921826148e0565b602082019050919050565b6000602082019050818103600083015261494581614909565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006149826019836131d6565b915061498d8261494c565b602082019050919050565b600060208201905081810360008301526149b181614975565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614a146032836131d6565b9150614a1f826149b8565b604082019050919050565b60006020820190508181036000830152614a4381614a07565b9050919050565b6000614a558261309e565b9150614a608361309e565b9250828203905081811115614a7857614a77613de4565b5b92915050565b600081519050919050565b600082825260208201905092915050565b6000614aa582614a7e565b614aaf8185614a89565b9350614abf8185602086016131e7565b614ac881613211565b840191505092915050565b6000608082019050614ae8600083018761327d565b614af5602083018661327d565b614b0260408301856133a6565b8181036060830152614b148184614a9a565b905095945050505050565b600081519050614b2e8161300f565b92915050565b600060208284031215614b4a57614b49612fd9565b5b6000614b5884828501614b1f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122062c8e2841170a4c2aff08f5e01b684213f9e4a5e78acf956ab7df1705a5bbe4d64736f6c63430008110033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000154f70656e53747564696f20506174726f6e5061737300000000000000000000000000000000000000000000000000000000000000000000000000000000000006454d4f5350500000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102065760003560e01c806370a082311161011a578063b88d4fde116100ad578063e985e9c51161007c578063e985e9c5146105db578063ef60ceaf1461060b578063f148b4b214610627578063f2fde38b14610657578063fca3b5aa1461067357610206565b8063b88d4fde14610553578063c87b56dd1461056f578063d547cfb71461059f578063d5abeb01146105bd57610206565b806387dce435116100e957806387dce435146104df5780638da5cb5b146104fb57806395d89b4114610519578063a22cb4651461053757610206565b806370a0823114610468578063715018a6146104985780637885fdc7146104a25780637e980342146104c157610206565b80632f6196b71161019d57806341f434341161016c57806341f43434146103b257806342842e0e146103d05780635136dcc7146103ec5780636352211e1461040857806366a3adbd1461043857610206565b80632f6196b71461034057806330176e131461035c5780633cc8402c146103785780633d7b313e1461039457610206565b8063081812fc116101d9578063081812fc146102a7578063095ea7b3146102d757806323b872dd146102f35780632a55205a1461030f57610206565b806301ffc9a71461020b5780630653aca51461023b57806306fdde031461026b5780630754617214610289575b600080fd5b6102256004803603810190610220919061303b565b61068f565b6040516102329190613083565b60405180910390f35b610255600480360381019061025091906130d4565b6106b1565b60405161026291906131b0565b60405180910390f35b6102736107af565b604051610280919061325b565b60405180910390f35b610291610841565b60405161029e919061328c565b60405180910390f35b6102c160048036038101906102bc91906130d4565b610867565b6040516102ce919061328c565b60405180910390f35b6102f160048036038101906102ec91906132d3565b6108ad565b005b61030d60048036038101906103089190613313565b6109c4565b005b61032960048036038101906103249190613366565b610a24565b6040516103379291906133b5565b60405180910390f35b61035a6004803603810190610355919061340a565b610bff565b005b610376600480360381019061037191906135a6565b610dd8565b005b610392600480360381019061038d919061362f565b610df3565b005b61039c610e27565b6040516103a9919061365c565b60405180910390f35b6103ba610e33565b6040516103c791906136d6565b60405180910390f35b6103ea60048036038101906103e59190613313565b610e45565b005b61040660048036038101906104019190613751565b610e65565b005b610422600480360381019061041d91906130d4565b610ed0565b60405161042f919061328c565b60405180910390f35b610452600480360381019061044d919061379e565b610f56565b60405161045f91906138a0565b60405180910390f35b610482600480360381019061047d91906138c2565b61107b565b60405161048f919061365c565b60405180910390f35b6104a0611132565b005b6104aa611146565b6040516104b89291906138fe565b60405180910390f35b6104c9611186565b6040516104d6919061365c565b60405180910390f35b6104f960048036038101906104f49190613927565b611197565b005b610503611232565b604051610510919061328c565b60405180910390f35b61052161125c565b60405161052e919061325b565b60405180910390f35b610551600480360381019061054c91906139af565b6112ee565b005b61056d60048036038101906105689190613a90565b611304565b005b610589600480360381019061058491906130d4565b611366565b604051610596919061325b565b60405180910390f35b6105a761149b565b6040516105b4919061325b565b60405180910390f35b6105c5611529565b6040516105d29190613b22565b60405180910390f35b6105f560048036038101906105f09190613b3d565b611543565b6040516106029190613083565b60405180910390f35b61062560048036038101906106209190613ba1565b6115d7565b005b610641600480360381019061063c91906130d4565b6115fb565b60405161064e919061325b565b60405180910390f35b610671600480360381019061066c91906138c2565b61169b565b005b61068d600480360381019061068891906138c2565b61171e565b005b600061069a8261176a565b806106aa57506106a98261184c565b5b9050919050565b6106b9612f94565b60006106cf83600961192e90919063ffffffff16565b90506000600860008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900461ffff1661ffff1661ffff168152505090506040518060600160405280838152602001826000015173ffffffffffffffffffffffffffffffffffffffff168152602001826020015161ffff1681525092505050919050565b6060600080546107be90613bfd565b80601f01602080910402602001604051908101604052809291908181526020018280546107ea90613bfd565b80156108375780601f1061080c57610100808354040283529160200191610837565b820191906000526020600020905b81548152906001019060200180831161081a57829003601f168201915b5050505050905090565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600061087282611948565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006108b882610ed0565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091f90613ca0565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610947611993565b73ffffffffffffffffffffffffffffffffffffffff161480610976575061097581610970611993565b611543565b5b6109b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ac90613d32565b60405180910390fd5b6109bf838361199b565b505050565b6109d56109cf611993565b82611a54565b610a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0b90613dc4565b60405180910390fd5b610a1f838383611ae9565b505050565b600080600073ffffffffffffffffffffffffffffffffffffffff166008600086815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610b12576008600085815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166127106008600087815260200190815260200160002060000160149054906101000a900461ffff1661ffff1685610aff9190613e13565b610b099190613e84565b91509150610bf8565b600073ffffffffffffffffffffffffffffffffffffffff16600760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614158015610b8c57506000600760000160149054906101000a900461ffff1661ffff1614155b15610bf057600760000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612710600760000160149054906101000a900461ffff1661ffff1685610bdd9190613e13565b610be79190613e84565b91509150610bf8565b600080915091505b9250929050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8690613f27565b60405180910390fd5b600d60149054906101000a900467ffffffffffffffff1667ffffffffffffffff166001610cbc600b611de2565b610cc69190613f47565b1115610d07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfe90613fc7565b60405180910390fd5b610d118484611df0565b610d1b600b61200d565b6000600167ffffffffffffffff811115610d3857610d3761347b565b5b604051908082528060200260200182016040528015610d7157816020015b610d5e612f94565b815260200190600190039081610d565790505b50905060405180606001604052808581526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018361ffff1681525081600081518110610dbd57610dbc613fe7565b5b6020026020010181905250610dd181612023565b5050505050565b610de06122b5565b80600c9081610def91906141b8565b5050565b610dfb6122b5565b80600d60146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b600b8060000154905081565b6daaeb6d7670e522a718067333cd4e81565b610e6083838360405180602001604052806000815250611304565b505050565b610e6d6122b5565b610ecc8282808060200260200160405190810160405280939291908181526020016000905b82821015610ec257848483905060600201803603810190610eb391906142f3565b81526020019060010190610e92565b5050505050612023565b5050565b600080610edc83612333565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610f4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f449061436c565b60405180910390fd5b80915050919050565b60606000620f424090506000610f6b8661107b565b905060008167ffffffffffffffff811115610f8957610f8861347b565b5b604051908082528060200260200182016040528015610fb75781602001602082028036833780820191505090505b509050600080868589610fca9190613e13565b610fd49190613f47565b905060008589610fe49190613e13565b90505b81811161106b578973ffffffffffffffffffffffffffffffffffffffff1661100e82612333565b73ffffffffffffffffffffffffffffffffffffffff1603611058578084848151811061103d5761103c613fe7565b5b60200260200101818152505082806110549061438c565b9350505b80806110639061438c565b915050610fe7565b5082955050505050509392505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036110eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e290614446565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61113a6122b5565b6111446000612370565b565b60078060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900461ffff16905082565b60006111926009612436565b905090565b3373ffffffffffffffffffffffffffffffffffffffff166111b783612333565b73ffffffffffffffffffffffffffffffffffffffff161461120d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611204906144b2565b60405180910390fd5b80600e6000848152602001908152602001600020908161122d91906141b8565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461126b90613bfd565b80601f016020809104026020016040519081016040528092919081815260200182805461129790613bfd565b80156112e45780601f106112b9576101008083540402835291602001916112e4565b820191906000526020600020905b8154815290600101906020018083116112c757829003601f168201915b5050505050905090565b6113006112f9611993565b838361244b565b5050565b61131561130f611993565b83611a54565b611354576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134b90613dc4565b60405180910390fd5b611360848484846125b7565b50505050565b606061137182611948565b600061137b612613565b90506000600e6000858152602001908152602001600020805461139d90613bfd565b9050111561144957600e600084815260200190815260200160002080546113c390613bfd565b80601f01602080910402602001604051908101604052809291908181526020018280546113ef90613bfd565b801561143c5780601f106114115761010080835404028352916020019161143c565b820191906000526020600020905b81548152906001019060200180831161141f57829003601f168201915b5050505050915050611496565b60008151116114675760405180602001604052806000815250611492565b80611471846126a5565b60405160200161148292919061450e565b6040516020818303038152906040525b9150505b919050565b600c80546114a890613bfd565b80601f01602080910402602001604051908101604052809291908181526020018280546114d490613bfd565b80156115215780601f106114f657610100808354040283529160200191611521565b820191906000526020600020905b81548152906001019060200180831161150457829003601f168201915b505050505081565b600d60149054906101000a900467ffffffffffffffff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6115df6122b5565b6115f8818036038101906115f39190614582565b612773565b50565b600e602052806000526040600020600091509050805461161a90613bfd565b80601f016020809104026020016040519081016040528092919081815260200182805461164690613bfd565b80156116935780601f1061166857610100808354040283529160200191611693565b820191906000526020600020905b81548152906001019060200180831161167657829003601f168201915b505050505081565b6116a36122b5565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611712576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170990614621565b60405180910390fd5b61171b81612370565b50565b6117266122b5565b80600d60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061183557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806118455750611844826128a9565b5b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061191757507fc69dbd8f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061192757506119268261176a565b5b9050919050565b600061193d8360000183612913565b60001c905092915050565b6119518161293e565b611990576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119879061436c565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611a0e83610ed0565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611a6083610ed0565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611aa25750611aa18185611543565b5b80611ae057508373ffffffffffffffffffffffffffffffffffffffff16611ac884610867565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611b0982610ed0565b73ffffffffffffffffffffffffffffffffffffffff1614611b5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b56906146b3565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611bce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc590614745565b60405180910390fd5b611bdb838383600161297f565b8273ffffffffffffffffffffffffffffffffffffffff16611bfb82610ed0565b73ffffffffffffffffffffffffffffffffffffffff1614611c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c48906146b3565b60405180910390fd5b6004600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611ddd8383836001612aa5565b505050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e56906147b1565b60405180910390fd5b611e688161293e565b15611ea8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9f9061481d565b60405180910390fd5b611eb660008383600161297f565b611ebf8161293e565b15611eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef69061481d565b60405180910390fd5b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612009600083836001612aa5565b5050565b6001816000016000828254019250508190555050565b60005b81518110156122b157600082828151811061204457612043613fe7565b5b60200260200101519050612710816040015161ffff161061209a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209190614889565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16816020015173ffffffffffffffffffffffffffffffffffffffff1603612181576008600082600001518152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a81549061ffff0219169055505061214081600001516009612aab90919063ffffffff16565b507fa2870857763bd9ae76c957f869f16b31c18dd3bb4c7b4d3a4496dc5c57c657f98160000151604051612174919061365c565b60405180910390a161229d565b6040518060400160405280826020015173ffffffffffffffffffffffffffffffffffffffff168152602001826040015161ffff16815250600860008360000151815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555090505061225481600001516009612ac590919063ffffffff16565b507f389b70fb0887f01e83784eb1c4c589f740eca53b00ed0f45e41db5d079719abb816000015182602001518360400151604051612294939291906148a9565b60405180910390a15b5080806122a99061438c565b915050612026565b5050565b6122bd611993565b73ffffffffffffffffffffffffffffffffffffffff166122db611232565b73ffffffffffffffffffffffffffffffffffffffff1614612331576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123289061492c565b60405180910390fd5b565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600061244482600001612adf565b9050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036124b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b090614998565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125aa9190613083565b60405180910390a3505050565b6125c2848484611ae9565b6125ce84848484612af0565b61260d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260490614a2a565b60405180910390fd5b50505050565b6060600c805461262290613bfd565b80601f016020809104026020016040519081016040528092919081815260200182805461264e90613bfd565b801561269b5780601f106126705761010080835404028352916020019161269b565b820191906000526020600020905b81548152906001019060200180831161267e57829003601f168201915b5050505050905090565b6060600060016126b484612c77565b01905060008167ffffffffffffffff8111156126d3576126d261347b565b5b6040519080825280601f01601f1916602001820160405280156127055781602001600182028036833780820191505090505b509050600082602001820190505b600115612768578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161275c5761275b613e55565b5b04945060008503612713575b819350505050919050565b612710816020015161ffff16106127bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127b690614889565b60405180910390fd5b6040518060400160405280826000015173ffffffffffffffffffffffffffffffffffffffff168152602001826020015161ffff16815250600760008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548161ffff021916908361ffff1602179055509050507f2c5ea6e4103e78cb101e796fb2dace540362fc542cbff5145eaa24af7dd8fe418160000151826020015160405161289e9291906138fe565b60405180910390a150565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600082600001828154811061292b5761292a613fe7565b5b9060005260206000200154905092915050565b60008073ffffffffffffffffffffffffffffffffffffffff1661296083612333565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b6001811115612a9f57600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612a135780600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a0b9190614a4a565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612a9e5780600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a969190613f47565b925050819055505b5b50505050565b50505050565b6000612abd836000018360001b612dca565b905092915050565b6000612ad7836000018360001b612ede565b905092915050565b600081600001805490509050919050565b6000612b118473ffffffffffffffffffffffffffffffffffffffff16612f4e565b15612c6a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612b3a611993565b8786866040518563ffffffff1660e01b8152600401612b5c9493929190614ad3565b6020604051808303816000875af1925050508015612b9857506040513d601f19601f82011682018060405250810190612b959190614b34565b60015b612c1a573d8060008114612bc8576040519150601f19603f3d011682016040523d82523d6000602084013e612bcd565b606091505b506000815103612c12576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0990614a2a565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612c6f565b600190505b949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612cd5577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612ccb57612cca613e55565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310612d12576d04ee2d6d415b85acef81000000008381612d0857612d07613e55565b5b0492506020810190505b662386f26fc100008310612d4157662386f26fc100008381612d3757612d36613e55565b5b0492506010810190505b6305f5e1008310612d6a576305f5e1008381612d6057612d5f613e55565b5b0492506008810190505b6127108310612d8f576127108381612d8557612d84613e55565b5b0492506004810190505b60648310612db25760648381612da857612da7613e55565b5b0492506002810190505b600a8310612dc1576001810190505b80915050919050565b60008083600101600084815260200190815260200160002054905060008114612ed2576000600182612dfc9190614a4a565b9050600060018660000180549050612e149190614a4a565b9050818114612e83576000866000018281548110612e3557612e34613fe7565b5b9060005260206000200154905080876000018481548110612e5957612e58613fe7565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480612e9757612e96614b61565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050612ed8565b60009150505b92915050565b6000612eea8383612f71565b612f43578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612f48565b600090505b92915050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080836001016000848152602001908152602001600020541415905092915050565b604051806060016040528060008152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600061ffff1681525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61301881612fe3565b811461302357600080fd5b50565b6000813590506130358161300f565b92915050565b60006020828403121561305157613050612fd9565b5b600061305f84828501613026565b91505092915050565b60008115159050919050565b61307d81613068565b82525050565b60006020820190506130986000830184613074565b92915050565b6000819050919050565b6130b18161309e565b81146130bc57600080fd5b50565b6000813590506130ce816130a8565b92915050565b6000602082840312156130ea576130e9612fd9565b5b60006130f8848285016130bf565b91505092915050565b61310a8161309e565b82525050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061313b82613110565b9050919050565b61314b81613130565b82525050565b600061ffff82169050919050565b61316881613151565b82525050565b6060820160008201516131846000850182613101565b5060208201516131976020850182613142565b5060408201516131aa604085018261315f565b50505050565b60006060820190506131c5600083018461316e565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156132055780820151818401526020810190506131ea565b60008484015250505050565b6000601f19601f8301169050919050565b600061322d826131cb565b61323781856131d6565b93506132478185602086016131e7565b61325081613211565b840191505092915050565b600060208201905081810360008301526132758184613222565b905092915050565b61328681613130565b82525050565b60006020820190506132a1600083018461327d565b92915050565b6132b081613130565b81146132bb57600080fd5b50565b6000813590506132cd816132a7565b92915050565b600080604083850312156132ea576132e9612fd9565b5b60006132f8858286016132be565b9250506020613309858286016130bf565b9150509250929050565b60008060006060848603121561332c5761332b612fd9565b5b600061333a868287016132be565b935050602061334b868287016132be565b925050604061335c868287016130bf565b9150509250925092565b6000806040838503121561337d5761337c612fd9565b5b600061338b858286016130bf565b925050602061339c858286016130bf565b9150509250929050565b6133af8161309e565b82525050565b60006040820190506133ca600083018561327d565b6133d760208301846133a6565b9392505050565b6133e781613151565b81146133f257600080fd5b50565b600081359050613404816133de565b92915050565b6000806000806080858703121561342457613423612fd9565b5b6000613432878288016132be565b9450506020613443878288016130bf565b9350506040613454878288016132be565b9250506060613465878288016133f5565b91505092959194509250565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6134b382613211565b810181811067ffffffffffffffff821117156134d2576134d161347b565b5b80604052505050565b60006134e5612fcf565b90506134f182826134aa565b919050565b600067ffffffffffffffff8211156135115761351061347b565b5b61351a82613211565b9050602081019050919050565b82818337600083830152505050565b6000613549613544846134f6565b6134db565b90508281526020810184848401111561356557613564613476565b5b613570848285613527565b509392505050565b600082601f83011261358d5761358c613471565b5b813561359d848260208601613536565b91505092915050565b6000602082840312156135bc576135bb612fd9565b5b600082013567ffffffffffffffff8111156135da576135d9612fde565b5b6135e684828501613578565b91505092915050565b600067ffffffffffffffff82169050919050565b61360c816135ef565b811461361757600080fd5b50565b60008135905061362981613603565b92915050565b60006020828403121561364557613644612fd9565b5b60006136538482850161361a565b91505092915050565b600060208201905061367160008301846133a6565b92915050565b6000819050919050565b600061369c61369761369284613110565b613677565b613110565b9050919050565b60006136ae82613681565b9050919050565b60006136c0826136a3565b9050919050565b6136d0816136b5565b82525050565b60006020820190506136eb60008301846136c7565b92915050565b600080fd5b600080fd5b60008083601f84011261371157613710613471565b5b8235905067ffffffffffffffff81111561372e5761372d6136f1565b5b60208301915083606082028301111561374a576137496136f6565b5b9250929050565b6000806020838503121561376857613767612fd9565b5b600083013567ffffffffffffffff81111561378657613785612fde565b5b613792858286016136fb565b92509250509250929050565b6000806000606084860312156137b7576137b6612fd9565b5b60006137c5868287016132be565b93505060206137d6868287016130bf565b92505060406137e7868287016130bf565b9150509250925092565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60006138298383613101565b60208301905092915050565b6000602082019050919050565b600061384d826137f1565b61385781856137fc565b93506138628361380d565b8060005b8381101561389357815161387a888261381d565b975061388583613835565b925050600181019050613866565b5085935050505092915050565b600060208201905081810360008301526138ba8184613842565b905092915050565b6000602082840312156138d8576138d7612fd9565b5b60006138e6848285016132be565b91505092915050565b6138f881613151565b82525050565b6000604082019050613913600083018561327d565b61392060208301846138ef565b9392505050565b6000806040838503121561393e5761393d612fd9565b5b600061394c858286016130bf565b925050602083013567ffffffffffffffff81111561396d5761396c612fde565b5b61397985828601613578565b9150509250929050565b61398c81613068565b811461399757600080fd5b50565b6000813590506139a981613983565b92915050565b600080604083850312156139c6576139c5612fd9565b5b60006139d4858286016132be565b92505060206139e58582860161399a565b9150509250929050565b600067ffffffffffffffff821115613a0a57613a0961347b565b5b613a1382613211565b9050602081019050919050565b6000613a33613a2e846139ef565b6134db565b905082815260208101848484011115613a4f57613a4e613476565b5b613a5a848285613527565b509392505050565b600082601f830112613a7757613a76613471565b5b8135613a87848260208601613a20565b91505092915050565b60008060008060808587031215613aaa57613aa9612fd9565b5b6000613ab8878288016132be565b9450506020613ac9878288016132be565b9350506040613ada878288016130bf565b925050606085013567ffffffffffffffff811115613afb57613afa612fde565b5b613b0787828801613a62565b91505092959194509250565b613b1c816135ef565b82525050565b6000602082019050613b376000830184613b13565b92915050565b60008060408385031215613b5457613b53612fd9565b5b6000613b62858286016132be565b9250506020613b73858286016132be565b9150509250929050565b600080fd5b600060408284031215613b9857613b97613b7d565b5b81905092915050565b600060408284031215613bb757613bb6612fd9565b5b6000613bc584828501613b82565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613c1557607f821691505b602082108103613c2857613c27613bce565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613c8a6021836131d6565b9150613c9582613c2e565b604082019050919050565b60006020820190508181036000830152613cb981613c7d565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b6000613d1c603d836131d6565b9150613d2782613cc0565b604082019050919050565b60006020820190508181036000830152613d4b81613d0f565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b6000613dae602d836131d6565b9150613db982613d52565b604082019050919050565b60006020820190508181036000830152613ddd81613da1565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613e1e8261309e565b9150613e298361309e565b9250828202613e378161309e565b91508282048414831517613e4e57613e4d613de4565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e8f8261309e565b9150613e9a8361309e565b925082613eaa57613ea9613e55565b5b828204905092915050565b7f496e76616c69642073656e6465722c206f6e6c79206d696e746572206d61792060008201527f6d696e7400000000000000000000000000000000000000000000000000000000602082015250565b6000613f116024836131d6565b9150613f1c82613eb5565b604082019050919050565b60006020820190508181036000830152613f4081613f04565b9050919050565b6000613f528261309e565b9150613f5d8361309e565b9250828201905080821115613f7557613f74613de4565b5b92915050565b7f4d617820737570706c7920657863656564656400000000000000000000000000600082015250565b6000613fb16013836131d6565b9150613fbc82613f7b565b602082019050919050565b60006020820190508181036000830152613fe081613fa4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026140787fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8261403b565b614082868361403b565b95508019841693508086168417925050509392505050565b60006140b56140b06140ab8461309e565b613677565b61309e565b9050919050565b6000819050919050565b6140cf8361409a565b6140e36140db826140bc565b848454614048565b825550505050565b600090565b6140f86140eb565b6141038184846140c6565b505050565b5b818110156141275761411c6000826140f0565b600181019050614109565b5050565b601f82111561416c5761413d81614016565b6141468461402b565b81016020851015614155578190505b6141696141618561402b565b830182614108565b50505b505050565b600082821c905092915050565b600061418f60001984600802614171565b1980831691505092915050565b60006141a8838361417e565b9150826002028217905092915050565b6141c1826131cb565b67ffffffffffffffff8111156141da576141d961347b565b5b6141e48254613bfd565b6141ef82828561412b565b600060209050601f8311600181146142225760008415614210578287015190505b61421a858261419c565b865550614282565b601f19841661423086614016565b60005b8281101561425857848901518255600182019150602085019450602081019050614233565b868310156142755784890151614271601f89168261417e565b8355505b6001600288020188555050505b505050505050565b600080fd5b6000606082840312156142a5576142a461428a565b5b6142af60606134db565b905060006142bf848285016130bf565b60008301525060206142d3848285016132be565b60208301525060406142e7848285016133f5565b60408301525092915050565b60006060828403121561430957614308612fd9565b5b60006143178482850161428f565b91505092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b60006143566018836131d6565b915061436182614320565b602082019050919050565b6000602082019050818103600083015261438581614349565b9050919050565b60006143978261309e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036143c9576143c8613de4565b5b600182019050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006144306029836131d6565b915061443b826143d4565b604082019050919050565b6000602082019050818103600083015261445f81614423565b9050919050565b7f4552433732313a2073656e646572206973206e6f7420746865206f776e657200600082015250565b600061449c601f836131d6565b91506144a782614466565b602082019050919050565b600060208201905081810360008301526144cb8161448f565b9050919050565b600081905092915050565b60006144e8826131cb565b6144f281856144d2565b93506145028185602086016131e7565b80840191505092915050565b600061451a82856144dd565b915061452682846144dd565b91508190509392505050565b6000604082840312156145485761454761428a565b5b61455260406134db565b90506000614562848285016132be565b6000830152506020614576848285016133f5565b60208301525092915050565b60006040828403121561459857614597612fd9565b5b60006145a684828501614532565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061460b6026836131d6565b9150614616826145af565b604082019050919050565b6000602082019050818103600083015261463a816145fe565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061469d6025836131d6565b91506146a882614641565b604082019050919050565b600060208201905081810360008301526146cc81614690565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b600061472f6024836131d6565b915061473a826146d3565b604082019050919050565b6000602082019050818103600083015261475e81614722565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061479b6020836131d6565b91506147a682614765565b602082019050919050565b600060208201905081810360008301526147ca8161478e565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000614807601c836131d6565b9150614812826147d1565b602082019050919050565b60006020820190508181036000830152614836816147fa565b9050919050565b7f496e76616c696420627073000000000000000000000000000000000000000000600082015250565b6000614873600b836131d6565b915061487e8261483d565b602082019050919050565b600060208201905081810360008301526148a281614866565b9050919050565b60006060820190506148be60008301866133a6565b6148cb602083018561327d565b6148d860408301846138ef565b949350505050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006149166020836131d6565b9150614921826148e0565b602082019050919050565b6000602082019050818103600083015261494581614909565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b60006149826019836131d6565b915061498d8261494c565b602082019050919050565b600060208201905081810360008301526149b181614975565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614a146032836131d6565b9150614a1f826149b8565b604082019050919050565b60006020820190508181036000830152614a4381614a07565b9050919050565b6000614a558261309e565b9150614a608361309e565b9250828203905081811115614a7857614a77613de4565b5b92915050565b600081519050919050565b600082825260208201905092915050565b6000614aa582614a7e565b614aaf8185614a89565b9350614abf8185602086016131e7565b614ac881613211565b840191505092915050565b6000608082019050614ae8600083018761327d565b614af5602083018661327d565b614b0260408301856133a6565b8181036060830152614b148184614a9a565b905095945050505050565b600081519050614b2e8161300f565b92915050565b600060208284031215614b4a57614b49612fd9565b5b6000614b5884828501614b1f565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122062c8e2841170a4c2aff08f5e01b684213f9e4a5e78acf956ab7df1705a5bbe4d64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000001900000000000000000000000000000000000000000000000000000000000000154f70656e53747564696f20506174726f6e5061737300000000000000000000000000000000000000000000000000000000000000000000000000000000000006454d4f5350500000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): OpenStudio PatronPass
Arg [1] : symbol (string): EMOSPP
Arg [2] : newMaxSupply (uint64): 25
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000019
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000015
Arg [4] : 4f70656e53747564696f20506174726f6e506173730000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [6] : 454d4f5350500000000000000000000000000000000000000000000000000000
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.