ERC-721
Overview
Max Total Supply
0 MAMEM
Holders
10
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
47 MAMEMLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Mathare_Memories
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; /** * @title Mathare Memories * @notice This is a customized ERC-721 contract for Mathare_Memories. * @author Matto * @custom:security-contact [email protected] */ contract Mathare_Memories is ERC721Royalty, Ownable, ReentrancyGuard { using Strings for string; string public baseURI; string public description; bool public projectLocked; uint16 public maxSupply = 68; string public imageURIbase; string public audioURIbase; mapping(uint256 => string) public projectData; mapping(uint256 => uint256) public transferCountOf; address public auctionAddress; address public secondaryAddress; address public charityAddress; uint96 public royaltyBPS; constructor() ERC721("Mathare Memories", "MAMEM") {} /** * RECEIVING FUNCTIONS * @notice These functions are required for the contract to be able to * receive Ether. * @dev The receive() function receives Ether when msg.data is empty. * The fallback() function receives Ether when msg.data is not empty. */ receive() external payable {} fallback() external payable {} /** * CUSTOM EVENTS * @notice These events are emitted by the 'writeProjectData' function. * @dev These will be monitored by the custom backend. They will trigger * updating the API with data stored in projectData, as well as data returned * by the scriptInputsOf() function. * * ProjectData Event * @notice This is emitted whenever writeProjectData is successfully called. * @dev indexed keyword is added to scriptIndex for searchability. * @param scriptIndex is index in the mapping that is being updated. * @param oldScript is the data being replaced, potentially "". * @param newScript is the new data stored to chain. */ event ProjectData( uint256 indexed scriptIndex, string oldScript, string newScript ); /** * OVERRIDES * @notice These functions are declared as overrides because functions of the * same name exist in imported contracts. * @dev 'super._transfer' calls the overridden function. * * @notice _baseURI is an internal function that returns a state value. * @dev This override is needed when using a custom baseURI. * @return baseURI, which is a state value. */ function _baseURI() internal view override returns (string memory) { return baseURI; } /** * @notice _transfer override adds logic to track transfer counts as well as * the prior owner. * @dev This override updates mappings and then calls the overridden function. * @param _from is the address the token is being sent from. * @param _to is the address the token is being sent to. * @param _tokenId is the token being transferred. */ function _transfer( address _from, address _to, uint256 _tokenId ) internal virtual override { transferCountOf[_tokenId]++; super._transfer(_from, _to, _tokenId); } /** * MINTING * @notice This function mints all tokens to the contract owner's wallet */ function mintAllTokens() external onlyOwner { require(auctionAddress != address(0)); for (uint i = 1; i <= maxSupply; i++) { _safeMint(auctionAddress, i); } } /** * CUSTOM * @notice These are custom functions for Mathare_Memories. * * @notice writeProjectData allows storage of the generative script on-chain. * @dev This will store the generative script needed to reproduce Mathare_Memories * tokens, along with other information and instructions. Vanilla JavaScript * and p5.js v1.0.0 are other dependencies. * @param index identifies where the script data should be stored. * @param newScript is the new script data. */ function writeProjectData( uint256 index, string memory newScript ) external onlyOwner { require(!projectLocked); emit ProjectData(index, projectData[index], newScript); projectData[index] = newScript; } /** * @notice scriptInputsOf returns the input data necessary for the generative * script to create/recreate a Mathare_Memories token. * @dev For any given token, this function returns all the on-chain data that * is needed to be inputted into the generative script to deterministically * reproduce both the token's artwork and metadata. * @param tokenId is the token whose inputs will be returned. * @return scriptInputs are returned in JSON format. */ function scriptInputsOf( uint256 tokenId ) external view returns (string memory) { return string( abi.encodePacked( '{"token_id":"', Strings.toString(tokenId), '","transfer_count":"', Strings.toString(transferCountOf[tokenId]), '","imageURI_base":"', imageURIbase, '","audioURI_base":"', audioURIbase, '"}' ) ); } /** * CONTROLS * @notice These are contract-level controls. * @dev all should use the onlyOwner modifier. * * @notice lockScripts freezes the projectData storage. * @dev The project must be fully minted before this function is callable. */ function lockScripts() external onlyOwner { projectLocked = true; } /** * @notice setMediaURIs updates the media URI strings. * @dev This function allows changes to URIs for the token media. * @param _imageURIbase is the new image URI base. * @param _audioURIbase is the new audio URI base. */ function setMediaURIs( string memory _imageURIbase, string memory _audioURIbase ) external onlyOwner { imageURIbase = _imageURIbase; audioURIbase = _audioURIbase; } /** * @notice setAuctionAddress updates the auction address. * @dev This function allows changes to the address tokens are minted to. * This address will conduct the auctions and transfer funds to the charity. * @param _auctionAddress is the new payments address. */ function setAuctionAddress( address _auctionAddress ) external onlyOwner { auctionAddress = _auctionAddress; } /** * @notice setCharityAddress updates the charity address. * @dev This function allows changes to the address royalty funds are sent to. * @param _charityAddress is the new charity address. */ function setCharityAddress( address _charityAddress ) external onlyOwner { charityAddress = _charityAddress; } /** * @notice setSecondaryData updates the royalty address and BPS for the project. * @dev This function allows changes to the payments address and secondary sale * royalty amount. After setting values, _setDefaultRoyalty is called in * order to update the imported EIP-2981 contract functions. * @param _secondaryAddress is the new payments address. * @param _royaltyBPS is the new projet royalty amount, measured in * base percentage points. */ function setSecondaryData( address _secondaryAddress, uint96 _royaltyBPS ) external onlyOwner { secondaryAddress = _secondaryAddress; royaltyBPS = _royaltyBPS; _setDefaultRoyalty(secondaryAddress, _royaltyBPS); } /** * @notice setDescription updates the on-chain description. * @dev This is separate from other update functions because the description * size may be large and thus expensive to update. * @param _description is the new description. Quotation marks are not needed. */ function setDescription( string memory _description ) external onlyOwner { description = _description; } /** * @notice setURI sets/updates the project's baseURI. * @dev baseURI is appended with tokenId and is returned in tokenURI calls. * @dev _newBaseURI is used instead of _baseURI because an override function * with that name already exists. * @param _newBaseURI is the API endpoint base for tokenURI calls. */ function setURI( string memory _newBaseURI ) external onlyOwner { baseURI = _newBaseURI; } /** * FUND ACCESS * @dev this function allows three addresses to call the withdrawal function: * contract owner, charity, and auctioner. * * @notice withdraw is used to send funds to the charity address. * @dev Withdraw cannot be called if the charity addresses is not set. * If a receiving address is a contract using callbacks, the withdraw function * could run out of gas. Update the receiving address if necessary. */ function withdraw() external { require(msg.sender == owner() || msg.sender == charityAddress || msg.sender == auctionAddress); require(charityAddress != address(0)); payable(charityAddress).transfer(address(this).balance); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../common/ERC2981.sol"; import "../../../utils/introspection/ERC165.sol"; /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {ERC2981-_setDefaultRoyalty}, and/or individually for * specific token ids via {ERC2981-_setTokenRoyalty}. The latter takes precedence over the first. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } }
// 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/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.7.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; import "../../interfaces/IERC2981.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty( uint256 tokenId, address receiver, uint96 feeNumerator ) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: Invalid parameters"); _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (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 v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
// 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); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"scriptIndex","type":"uint256"},{"indexed":false,"internalType":"string","name":"oldScript","type":"string"},{"indexed":false,"internalType":"string","name":"newScript","type":"string"}],"name":"ProjectData","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"auctionAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"audioURIbase","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"charityAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","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":"imageURIbase","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockScripts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintAllTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectData","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"projectLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"royaltyBPS","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"scriptInputsOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondaryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_auctionAddress","type":"address"}],"name":"setAuctionAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_charityAddress","type":"address"}],"name":"setCharityAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_description","type":"string"}],"name":"setDescription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_imageURIbase","type":"string"},{"internalType":"string","name":"_audioURIbase","type":"string"}],"name":"setMediaURIs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_secondaryAddress","type":"address"},{"internalType":"uint96","name":"_royaltyBPS","type":"uint96"}],"name":"setSecondaryData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setURI","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":"uint256","name":"","type":"uint256"}],"name":"transferCountOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"string","name":"newScript","type":"string"}],"name":"writeProjectData","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60806040526044600c60016101000a81548161ffff021916908361ffff1602179055503480156200002f57600080fd5b506040518060400160405280601081526020017f4d617468617265204d656d6f72696573000000000000000000000000000000008152506040518060400160405280600581526020017f4d414d454d0000000000000000000000000000000000000000000000000000008152508160029080519060200190620000b4929190620001cc565b508060039080519060200190620000cd929190620001cc565b505050620000f0620000e4620000fe60201b60201c565b6200010660201b60201c565b6001600981905550620002e1565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001da906200027c565b90600052602060002090601f016020900481019282620001fe57600085556200024a565b82601f106200021957805160ff19168380011785556200024a565b828001600101855582156200024a579182015b82811115620002495782518255916020019190600101906200022c565b5b5090506200025991906200025d565b5090565b5b80821115620002785760008160009055506001016200025e565b5090565b600060028204905060018216806200029557607f821691505b60208210811415620002ac57620002ab620002b2565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6146a480620002f16000396000f3fe60806040526004361061023f5760003560e01c80637284e4161161012e578063afcf2fc4116100ab578063c87b56dd1161006f578063c87b56dd14610852578063d5abeb011461088f578063e985e9c5146108ba578063f1c08f9d146108f7578063f2fde38b1461092257610246565b8063afcf2fc41461077f578063b2d32f69146107aa578063b4462453146107d3578063b88d4fde146107fe578063b9c9d93a1461082757610246565b806393ac3638116100f257806393ac36381461069a57806393ae76cf146106c357806393ff4c811461070057806395d89b411461072b578063a22cb4651461075657610246565b80637284e416146105c757806377b9f9b1146105f25780638903f70c146106095780638da5cb5b1461064657806390c3f38f1461067157610246565b80633ccfd60b116101bc57806363a6e4eb1161018057806363a6e4eb1461050857806365d5da75146105315780636c0360eb1461054857806370a0823114610573578063715018a6146105b057610246565b80633ccfd60b1461043757806342842e0e1461044e5780635476ea9e146104775780635b3b4f77146104a25780636352211e146104cb57610246565b80630c9be46d116102035780630c9be46d1461033f57806323b872dd146103685780632a55205a146103915780632db4d811146103cf57806338caa88b1461040c57610246565b806301ffc9a71461024857806302fe53051461028557806306fdde03146102ae578063081812fc146102d9578063095ea7b31461031657610246565b3661024657005b005b34801561025457600080fd5b5061026f600480360381019061026a91906132b9565b61094b565b60405161027c9190613a6f565b60405180910390f35b34801561029157600080fd5b506102ac60048036038101906102a79190613313565b61095d565b005b3480156102ba57600080fd5b506102c361097f565b6040516102d09190613a8a565b60405180910390f35b3480156102e557600080fd5b5061030060048036038101906102fb91906133d4565b610a11565b60405161030d91906139df565b60405180910390f35b34801561032257600080fd5b5061033d60048036038101906103389190613239565b610a57565b005b34801561034b57600080fd5b50610366600480360381019061036191906130b6565b610b6f565b005b34801561037457600080fd5b5061038f600480360381019061038a9190613123565b610bbb565b005b34801561039d57600080fd5b506103b860048036038101906103b3919061345d565b610c1b565b6040516103c6929190613a46565b60405180910390f35b3480156103db57600080fd5b506103f660048036038101906103f191906133d4565b610e06565b6040516104039190613cde565b60405180910390f35b34801561041857600080fd5b50610421610e1e565b60405161042e9190613a8a565b60405180910390f35b34801561044357600080fd5b5061044c610eac565b005b34801561045a57600080fd5b5061047560048036038101906104709190613123565b611062565b005b34801561048357600080fd5b5061048c611082565b60405161049991906139df565b60405180910390f35b3480156104ae57600080fd5b506104c960048036038101906104c49190613279565b6110a8565b005b3480156104d757600080fd5b506104f260048036038101906104ed91906133d4565b611152565b6040516104ff91906139df565b60405180910390f35b34801561051457600080fd5b5061052f600480360381019061052a919061335c565b6111d9565b005b34801561053d57600080fd5b50610546611213565b005b34801561055457600080fd5b5061055d6112db565b60405161056a9190613a8a565b60405180910390f35b34801561057f57600080fd5b5061059a600480360381019061059591906130b6565b611369565b6040516105a79190613cde565b60405180910390f35b3480156105bc57600080fd5b506105c5611421565b005b3480156105d357600080fd5b506105dc611435565b6040516105e99190613a8a565b60405180910390f35b3480156105fe57600080fd5b506106076114c3565b005b34801561061557600080fd5b50610630600480360381019061062b91906133d4565b6114e8565b60405161063d9190613a8a565b60405180910390f35b34801561065257600080fd5b5061065b611588565b60405161066891906139df565b60405180910390f35b34801561067d57600080fd5b5061069860048036038101906106939190613313565b6115b2565b005b3480156106a657600080fd5b506106c160048036038101906106bc91906130b6565b6115d4565b005b3480156106cf57600080fd5b506106ea60048036038101906106e591906133d4565b611620565b6040516106f79190613a8a565b60405180910390f35b34801561070c57600080fd5b50610715611674565b6040516107229190613a6f565b60405180910390f35b34801561073757600080fd5b50610740611687565b60405161074d9190613a8a565b60405180910390f35b34801561076257600080fd5b5061077d600480360381019061077891906131f9565b611719565b005b34801561078b57600080fd5b5061079461172f565b6040516107a191906139df565b60405180910390f35b3480156107b657600080fd5b506107d160048036038101906107cc9190613401565b611755565b005b3480156107df57600080fd5b506107e86117ef565b6040516107f591906139df565b60405180910390f35b34801561080a57600080fd5b5061082560048036038101906108209190613176565b611815565b005b34801561083357600080fd5b5061083c611877565b6040516108499190613cf9565b60405180910390f35b34801561085e57600080fd5b50610879600480360381019061087491906133d4565b611895565b6040516108869190613a8a565b60405180910390f35b34801561089b57600080fd5b506108a46118fd565b6040516108b19190613cc3565b60405180910390f35b3480156108c657600080fd5b506108e160048036038101906108dc91906130e3565b611911565b6040516108ee9190613a6f565b60405180910390f35b34801561090357600080fd5b5061090c6119a5565b6040516109199190613a8a565b60405180910390f35b34801561092e57600080fd5b50610949600480360381019061094491906130b6565b611a33565b005b600061095682611ab7565b9050919050565b610965611b99565b80600a908051906020019061097b929190612eb5565b5050565b60606002805461098e90613fe4565b80601f01602080910402602001604051908101604052809291908181526020018280546109ba90613fe4565b8015610a075780601f106109dc57610100808354040283529160200191610a07565b820191906000526020600020905b8154815290600101906020018083116109ea57829003601f168201915b5050505050905090565b6000610a1c82611c17565b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a6282611152565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aca90613c43565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610af2611c62565b73ffffffffffffffffffffffffffffffffffffffff161480610b215750610b2081610b1b611c62565b611911565b5b610b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5790613c63565b60405180910390fd5b610b6a8383611c6a565b505050565b610b77611b99565b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610bcc610bc6611c62565b82611d23565b610c0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0290613ae3565b60405180910390fd5b610c16838383611db8565b505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610db15760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610dbb611df1565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610de79190613e7a565b610df19190613e49565b90508160000151819350935050509250929050565b60106020528060005260406000206000915090505481565b600d8054610e2b90613fe4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5790613fe4565b8015610ea45780601f10610e7957610100808354040283529160200191610ea4565b820191906000526020600020905b815481529060010190602001808311610e8757829003601f168201915b505050505081565b610eb4611588565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f3a5750601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80610f925750601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610f9b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610ff757600080fd5b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561105f573d6000803e3d6000fd5b50565b61107d83838360405180602001604052806000815250611815565b505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6110b0611b99565b81601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601360146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555061114e601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611dfb565b5050565b60008061115e83611f90565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c790613c23565b60405180910390fd5b80915050919050565b6111e1611b99565b81600d90805190602001906111f7929190612eb5565b5080600e908051906020019061120e929190612eb5565b505050565b61121b611b99565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561127757600080fd5b6000600190505b600c60019054906101000a900461ffff1661ffff1681116112d8576112c5601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611fcd565b80806112d090614047565b91505061127e565b50565b600a80546112e890613fe4565b80601f016020809104026020016040519081016040528092919081815260200182805461131490613fe4565b80156113615780601f1061133657610100808354040283529160200191611361565b820191906000526020600020905b81548152906001019060200180831161134457829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d190613bc3565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611429611b99565b6114336000611feb565b565b600b805461144290613fe4565b80601f016020809104026020016040519081016040528092919081815260200182805461146e90613fe4565b80156114bb5780601f10611490576101008083540402835291602001916114bb565b820191906000526020600020905b81548152906001019060200180831161149e57829003601f168201915b505050505081565b6114cb611b99565b6001600c60006101000a81548160ff021916908315150217905550565b600f602052806000526040600020600091509050805461150790613fe4565b80601f016020809104026020016040519081016040528092919081815260200182805461153390613fe4565b80156115805780601f1061155557610100808354040283529160200191611580565b820191906000526020600020905b81548152906001019060200180831161156357829003601f168201915b505050505081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6115ba611b99565b80600b90805190602001906115d0929190612eb5565b5050565b6115dc611b99565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606061162b826120b1565b61164760106000858152602001908152602001600020546120b1565b600d600e60405160200161165e949392919061396a565b6040516020818303038152906040529050919050565b600c60009054906101000a900460ff1681565b60606003805461169690613fe4565b80601f01602080910402602001604051908101604052809291908181526020018280546116c290613fe4565b801561170f5780601f106116e45761010080835404028352916020019161170f565b820191906000526020600020905b8154815290600101906020018083116116f257829003601f168201915b5050505050905090565b61172b611724611c62565b8383612189565b5050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61175d611b99565b600c60009054906101000a900460ff161561177757600080fd5b817f53d9dfb5a5d1618382bb802d3e0c09318c4177db3a09870a0d260b32243e39c4600f6000858152602001908152602001600020836040516117bb929190613aac565b60405180910390a280600f600084815260200190815260200160002090805190602001906117ea929190612eb5565b505050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611826611820611c62565b83611d23565b611865576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185c90613ae3565b60405180910390fd5b611871848484846122f6565b50505050565b601360149054906101000a90046bffffffffffffffffffffffff1681565b60606118a082611c17565b60006118aa612352565b905060008151116118ca57604051806020016040528060008152506118f5565b806118d4846120b1565b6040516020016118e5929190613946565b6040516020818303038152906040525b915050919050565b600c60019054906101000a900461ffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e80546119b290613fe4565b80601f01602080910402602001604051908101604052809291908181526020018280546119de90613fe4565b8015611a2b5780601f10611a0057610100808354040283529160200191611a2b565b820191906000526020600020905b815481529060010190602001808311611a0e57829003601f168201915b505050505081565b611a3b611b99565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa290613b23565b60405180910390fd5b611ab481611feb565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b8257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611b925750611b91826123e4565b5b9050919050565b611ba1611c62565b73ffffffffffffffffffffffffffffffffffffffff16611bbf611588565b73ffffffffffffffffffffffffffffffffffffffff1614611c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0c90613c03565b60405180910390fd5b565b611c208161245e565b611c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5690613c23565b60405180910390fd5b50565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611cdd83611152565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611d2f83611152565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d715750611d708185611911565b5b80611daf57508373ffffffffffffffffffffffffffffffffffffffff16611d9784610a11565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b601060008281526020019081526020016000206000815480929190611ddc90614047565b9190505550611dec83838361249f565b505050565b6000612710905090565b611e03611df1565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611e61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5890613c83565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec890613ca3565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611fe7828260405180602001604052806000815250612799565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6060600060016120c0846127f4565b01905060008167ffffffffffffffff8111156120df576120de61411d565b5b6040519080825280601f01601f1916602001820160405280156121115781602001600182028036833780820191505090505b509050600082602001820190505b60011561217e578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612168576121676140bf565b5b04945060008514156121795761217e565b61211f565b819350505050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ef90613ba3565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122e99190613a6f565b60405180910390a3505050565b612301848484611db8565b61230d84848484612947565b61234c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234390613b03565b60405180910390fd5b50505050565b6060600a805461236190613fe4565b80601f016020809104026020016040519081016040528092919081815260200182805461238d90613fe4565b80156123da5780601f106123af576101008083540402835291602001916123da565b820191906000526020600020905b8154815290600101906020018083116123bd57829003601f168201915b5050505050905090565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612457575061245682612ade565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff1661248083611f90565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b8273ffffffffffffffffffffffffffffffffffffffff166124bf82611152565b73ffffffffffffffffffffffffffffffffffffffff1614612515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250c90613b43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612585576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257c90613b83565b60405180910390fd5b6125928383836001612b48565b8273ffffffffffffffffffffffffffffffffffffffff166125b282611152565b73ffffffffffffffffffffffffffffffffffffffff1614612608576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ff90613b43565b60405180910390fd5b6006600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127948383836001612c6e565b505050565b6127a38383612c74565b6127b06000848484612947565b6127ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e690613b03565b60405180910390fd5b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612852577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612848576128476140bf565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061288f576d04ee2d6d415b85acef81000000008381612885576128846140bf565b5b0492506020810190505b662386f26fc1000083106128be57662386f26fc1000083816128b4576128b36140bf565b5b0492506010810190505b6305f5e10083106128e7576305f5e10083816128dd576128dc6140bf565b5b0492506008810190505b612710831061290c576127108381612902576129016140bf565b5b0492506004810190505b6064831061292f5760648381612925576129246140bf565b5b0492506002810190505b600a831061293e576001810190505b80915050919050565b60006129688473ffffffffffffffffffffffffffffffffffffffff16612e92565b15612ad1578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612991611c62565b8786866040518563ffffffff1660e01b81526004016129b394939291906139fa565b602060405180830381600087803b1580156129cd57600080fd5b505af19250505080156129fe57506040513d601f19601f820116820180604052508101906129fb91906132e6565b60015b612a81573d8060008114612a2e576040519150601f19603f3d011682016040523d82523d6000602084013e612a33565b606091505b50600081511415612a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7090613b03565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612ad6565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6001811115612c6857600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612bdc5780600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bd49190613ed4565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612c675780600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c5f9190613df3565b925050819055505b5b50505050565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ce4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cdb90613be3565b60405180910390fd5b612ced8161245e565b15612d2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2490613b63565b60405180910390fd5b612d3b600083836001612b48565b612d448161245e565b15612d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d7b90613b63565b60405180910390fd5b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e8e600083836001612c6e565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612ec190613fe4565b90600052602060002090601f016020900481019282612ee35760008555612f2a565b82601f10612efc57805160ff1916838001178555612f2a565b82800160010185558215612f2a579182015b82811115612f29578251825591602001919060010190612f0e565b5b509050612f379190612f3b565b5090565b5b80821115612f54576000816000905550600101612f3c565b5090565b6000612f6b612f6684613d39565b613d14565b905082815260208101848484011115612f8757612f86614151565b5b612f92848285613fa2565b509392505050565b6000612fad612fa884613d6a565b613d14565b905082815260208101848484011115612fc957612fc8614151565b5b612fd4848285613fa2565b509392505050565b600081359050612feb816145fb565b92915050565b60008135905061300081614612565b92915050565b60008135905061301581614629565b92915050565b60008151905061302a81614629565b92915050565b600082601f8301126130455761304461414c565b5b8135613055848260208601612f58565b91505092915050565b600082601f8301126130735761307261414c565b5b8135613083848260208601612f9a565b91505092915050565b60008135905061309b81614640565b92915050565b6000813590506130b081614657565b92915050565b6000602082840312156130cc576130cb61415b565b5b60006130da84828501612fdc565b91505092915050565b600080604083850312156130fa576130f961415b565b5b600061310885828601612fdc565b925050602061311985828601612fdc565b9150509250929050565b60008060006060848603121561313c5761313b61415b565b5b600061314a86828701612fdc565b935050602061315b86828701612fdc565b925050604061316c8682870161308c565b9150509250925092565b600080600080608085870312156131905761318f61415b565b5b600061319e87828801612fdc565b94505060206131af87828801612fdc565b93505060406131c08782880161308c565b925050606085013567ffffffffffffffff8111156131e1576131e0614156565b5b6131ed87828801613030565b91505092959194509250565b600080604083850312156132105761320f61415b565b5b600061321e85828601612fdc565b925050602061322f85828601612ff1565b9150509250929050565b600080604083850312156132505761324f61415b565b5b600061325e85828601612fdc565b925050602061326f8582860161308c565b9150509250929050565b600080604083850312156132905761328f61415b565b5b600061329e85828601612fdc565b92505060206132af858286016130a1565b9150509250929050565b6000602082840312156132cf576132ce61415b565b5b60006132dd84828501613006565b91505092915050565b6000602082840312156132fc576132fb61415b565b5b600061330a8482850161301b565b91505092915050565b6000602082840312156133295761332861415b565b5b600082013567ffffffffffffffff81111561334757613346614156565b5b6133538482850161305e565b91505092915050565b600080604083850312156133735761337261415b565b5b600083013567ffffffffffffffff81111561339157613390614156565b5b61339d8582860161305e565b925050602083013567ffffffffffffffff8111156133be576133bd614156565b5b6133ca8582860161305e565b9150509250929050565b6000602082840312156133ea576133e961415b565b5b60006133f88482850161308c565b91505092915050565b600080604083850312156134185761341761415b565b5b60006134268582860161308c565b925050602083013567ffffffffffffffff81111561344757613446614156565b5b6134538582860161305e565b9150509250929050565b600080604083850312156134745761347361415b565b5b60006134828582860161308c565b92505060206134938582860161308c565b9150509250929050565b6134a681613f08565b82525050565b6134b581613f1a565b82525050565b60006134c682613db0565b6134d08185613dc6565b93506134e0818560208601613fb1565b6134e981614160565b840191505092915050565b60006134ff82613dbb565b6135098185613dd7565b9350613519818560208601613fb1565b61352281614160565b840191505092915050565b600061353882613dbb565b6135428185613de8565b9350613552818560208601613fb1565b80840191505092915050565b6000815461356b81613fe4565b6135758186613dd7565b9450600182166000811461359057600181146135a2576135d5565b60ff19831686526020860193506135d5565b6135ab85613d9b565b60005b838110156135cd578154818901526001820191506020810190506135ae565b808801955050505b50505092915050565b600081546135eb81613fe4565b6135f58186613de8565b94506001821660008114613610576001811461362157613654565b60ff19831686528186019350613654565b61362a85613d9b565b60005b8381101561364c5781548189015260018201915060208101905061362d565b838801955050505b50505092915050565b600061366a602d83613dd7565b915061367582614171565b604082019050919050565b600061368d603283613dd7565b9150613698826141c0565b604082019050919050565b60006136b0602683613dd7565b91506136bb8261420f565b604082019050919050565b60006136d3602583613dd7565b91506136de8261425e565b604082019050919050565b60006136f6601c83613dd7565b9150613701826142ad565b602082019050919050565b6000613719602483613dd7565b9150613724826142d6565b604082019050919050565b600061373c601983613dd7565b915061374782614325565b602082019050919050565b600061375f602983613dd7565b915061376a8261434e565b604082019050919050565b6000613782600283613de8565b915061378d8261439d565b600282019050919050565b60006137a5602083613dd7565b91506137b0826143c6565b602082019050919050565b60006137c8602083613dd7565b91506137d3826143ef565b602082019050919050565b60006137eb601883613dd7565b91506137f682614418565b602082019050919050565b600061380e602183613dd7565b915061381982614441565b604082019050919050565b6000613831601483613de8565b915061383c82614490565b601482019050919050565b6000613854603d83613dd7565b915061385f826144b9565b604082019050919050565b6000613877601383613de8565b915061388282614508565b601382019050919050565b600061389a600d83613de8565b91506138a582614531565b600d82019050919050565b60006138bd602a83613dd7565b91506138c88261455a565b604082019050919050565b60006138e0601383613de8565b91506138eb826145a9565b601382019050919050565b6000613903601983613dd7565b915061390e826145d2565b602082019050919050565b61392281613f52565b82525050565b61393181613f80565b82525050565b61394081613f8a565b82525050565b6000613952828561352d565b915061395e828461352d565b91508190509392505050565b60006139758261388d565b9150613981828761352d565b915061398c82613824565b9150613998828661352d565b91506139a3826138d3565b91506139af82856135de565b91506139ba8261386a565b91506139c682846135de565b91506139d182613775565b915081905095945050505050565b60006020820190506139f4600083018461349d565b92915050565b6000608082019050613a0f600083018761349d565b613a1c602083018661349d565b613a296040830185613928565b8181036060830152613a3b81846134bb565b905095945050505050565b6000604082019050613a5b600083018561349d565b613a686020830184613928565b9392505050565b6000602082019050613a8460008301846134ac565b92915050565b60006020820190508181036000830152613aa481846134f4565b905092915050565b60006040820190508181036000830152613ac6818561355e565b90508181036020830152613ada81846134f4565b90509392505050565b60006020820190508181036000830152613afc8161365d565b9050919050565b60006020820190508181036000830152613b1c81613680565b9050919050565b60006020820190508181036000830152613b3c816136a3565b9050919050565b60006020820190508181036000830152613b5c816136c6565b9050919050565b60006020820190508181036000830152613b7c816136e9565b9050919050565b60006020820190508181036000830152613b9c8161370c565b9050919050565b60006020820190508181036000830152613bbc8161372f565b9050919050565b60006020820190508181036000830152613bdc81613752565b9050919050565b60006020820190508181036000830152613bfc81613798565b9050919050565b60006020820190508181036000830152613c1c816137bb565b9050919050565b60006020820190508181036000830152613c3c816137de565b9050919050565b60006020820190508181036000830152613c5c81613801565b9050919050565b60006020820190508181036000830152613c7c81613847565b9050919050565b60006020820190508181036000830152613c9c816138b0565b9050919050565b60006020820190508181036000830152613cbc816138f6565b9050919050565b6000602082019050613cd86000830184613919565b92915050565b6000602082019050613cf36000830184613928565b92915050565b6000602082019050613d0e6000830184613937565b92915050565b6000613d1e613d2f565b9050613d2a8282614016565b919050565b6000604051905090565b600067ffffffffffffffff821115613d5457613d5361411d565b5b613d5d82614160565b9050602081019050919050565b600067ffffffffffffffff821115613d8557613d8461411d565b5b613d8e82614160565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613dfe82613f80565b9150613e0983613f80565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613e3e57613e3d614090565b5b828201905092915050565b6000613e5482613f80565b9150613e5f83613f80565b925082613e6f57613e6e6140bf565b5b828204905092915050565b6000613e8582613f80565b9150613e9083613f80565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ec957613ec8614090565b5b828202905092915050565b6000613edf82613f80565b9150613eea83613f80565b925082821015613efd57613efc614090565b5b828203905092915050565b6000613f1382613f60565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015613fcf578082015181840152602081019050613fb4565b83811115613fde576000848401525b50505050565b60006002820490506001821680613ffc57607f821691505b602082108114156140105761400f6140ee565b5b50919050565b61401f82614160565b810181811067ffffffffffffffff8211171561403e5761403d61411d565b5b80604052505050565b600061405282613f80565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561408557614084614090565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f222c227472616e736665725f636f756e74223a22000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b7f222c22617564696f5552495f62617365223a2200000000000000000000000000600082015250565b7f7b22746f6b656e5f6964223a2200000000000000000000000000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f222c22696d6167655552495f62617365223a2200000000000000000000000000600082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b61460481613f08565b811461460f57600080fd5b50565b61461b81613f1a565b811461462657600080fd5b50565b61463281613f26565b811461463d57600080fd5b50565b61464981613f80565b811461465457600080fd5b50565b61466081613f8a565b811461466b57600080fd5b5056fea2646970667358221220d93562d3a793fd51a72f6e5d71f313338fff9350bb9369e54193bf2898ddaa8764736f6c63430008070033
Deployed Bytecode
0x60806040526004361061023f5760003560e01c80637284e4161161012e578063afcf2fc4116100ab578063c87b56dd1161006f578063c87b56dd14610852578063d5abeb011461088f578063e985e9c5146108ba578063f1c08f9d146108f7578063f2fde38b1461092257610246565b8063afcf2fc41461077f578063b2d32f69146107aa578063b4462453146107d3578063b88d4fde146107fe578063b9c9d93a1461082757610246565b806393ac3638116100f257806393ac36381461069a57806393ae76cf146106c357806393ff4c811461070057806395d89b411461072b578063a22cb4651461075657610246565b80637284e416146105c757806377b9f9b1146105f25780638903f70c146106095780638da5cb5b1461064657806390c3f38f1461067157610246565b80633ccfd60b116101bc57806363a6e4eb1161018057806363a6e4eb1461050857806365d5da75146105315780636c0360eb1461054857806370a0823114610573578063715018a6146105b057610246565b80633ccfd60b1461043757806342842e0e1461044e5780635476ea9e146104775780635b3b4f77146104a25780636352211e146104cb57610246565b80630c9be46d116102035780630c9be46d1461033f57806323b872dd146103685780632a55205a146103915780632db4d811146103cf57806338caa88b1461040c57610246565b806301ffc9a71461024857806302fe53051461028557806306fdde03146102ae578063081812fc146102d9578063095ea7b31461031657610246565b3661024657005b005b34801561025457600080fd5b5061026f600480360381019061026a91906132b9565b61094b565b60405161027c9190613a6f565b60405180910390f35b34801561029157600080fd5b506102ac60048036038101906102a79190613313565b61095d565b005b3480156102ba57600080fd5b506102c361097f565b6040516102d09190613a8a565b60405180910390f35b3480156102e557600080fd5b5061030060048036038101906102fb91906133d4565b610a11565b60405161030d91906139df565b60405180910390f35b34801561032257600080fd5b5061033d60048036038101906103389190613239565b610a57565b005b34801561034b57600080fd5b50610366600480360381019061036191906130b6565b610b6f565b005b34801561037457600080fd5b5061038f600480360381019061038a9190613123565b610bbb565b005b34801561039d57600080fd5b506103b860048036038101906103b3919061345d565b610c1b565b6040516103c6929190613a46565b60405180910390f35b3480156103db57600080fd5b506103f660048036038101906103f191906133d4565b610e06565b6040516104039190613cde565b60405180910390f35b34801561041857600080fd5b50610421610e1e565b60405161042e9190613a8a565b60405180910390f35b34801561044357600080fd5b5061044c610eac565b005b34801561045a57600080fd5b5061047560048036038101906104709190613123565b611062565b005b34801561048357600080fd5b5061048c611082565b60405161049991906139df565b60405180910390f35b3480156104ae57600080fd5b506104c960048036038101906104c49190613279565b6110a8565b005b3480156104d757600080fd5b506104f260048036038101906104ed91906133d4565b611152565b6040516104ff91906139df565b60405180910390f35b34801561051457600080fd5b5061052f600480360381019061052a919061335c565b6111d9565b005b34801561053d57600080fd5b50610546611213565b005b34801561055457600080fd5b5061055d6112db565b60405161056a9190613a8a565b60405180910390f35b34801561057f57600080fd5b5061059a600480360381019061059591906130b6565b611369565b6040516105a79190613cde565b60405180910390f35b3480156105bc57600080fd5b506105c5611421565b005b3480156105d357600080fd5b506105dc611435565b6040516105e99190613a8a565b60405180910390f35b3480156105fe57600080fd5b506106076114c3565b005b34801561061557600080fd5b50610630600480360381019061062b91906133d4565b6114e8565b60405161063d9190613a8a565b60405180910390f35b34801561065257600080fd5b5061065b611588565b60405161066891906139df565b60405180910390f35b34801561067d57600080fd5b5061069860048036038101906106939190613313565b6115b2565b005b3480156106a657600080fd5b506106c160048036038101906106bc91906130b6565b6115d4565b005b3480156106cf57600080fd5b506106ea60048036038101906106e591906133d4565b611620565b6040516106f79190613a8a565b60405180910390f35b34801561070c57600080fd5b50610715611674565b6040516107229190613a6f565b60405180910390f35b34801561073757600080fd5b50610740611687565b60405161074d9190613a8a565b60405180910390f35b34801561076257600080fd5b5061077d600480360381019061077891906131f9565b611719565b005b34801561078b57600080fd5b5061079461172f565b6040516107a191906139df565b60405180910390f35b3480156107b657600080fd5b506107d160048036038101906107cc9190613401565b611755565b005b3480156107df57600080fd5b506107e86117ef565b6040516107f591906139df565b60405180910390f35b34801561080a57600080fd5b5061082560048036038101906108209190613176565b611815565b005b34801561083357600080fd5b5061083c611877565b6040516108499190613cf9565b60405180910390f35b34801561085e57600080fd5b50610879600480360381019061087491906133d4565b611895565b6040516108869190613a8a565b60405180910390f35b34801561089b57600080fd5b506108a46118fd565b6040516108b19190613cc3565b60405180910390f35b3480156108c657600080fd5b506108e160048036038101906108dc91906130e3565b611911565b6040516108ee9190613a6f565b60405180910390f35b34801561090357600080fd5b5061090c6119a5565b6040516109199190613a8a565b60405180910390f35b34801561092e57600080fd5b50610949600480360381019061094491906130b6565b611a33565b005b600061095682611ab7565b9050919050565b610965611b99565b80600a908051906020019061097b929190612eb5565b5050565b60606002805461098e90613fe4565b80601f01602080910402602001604051908101604052809291908181526020018280546109ba90613fe4565b8015610a075780601f106109dc57610100808354040283529160200191610a07565b820191906000526020600020905b8154815290600101906020018083116109ea57829003601f168201915b5050505050905090565b6000610a1c82611c17565b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a6282611152565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ad3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aca90613c43565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610af2611c62565b73ffffffffffffffffffffffffffffffffffffffff161480610b215750610b2081610b1b611c62565b611911565b5b610b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5790613c63565b60405180910390fd5b610b6a8383611c6a565b505050565b610b77611b99565b80601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610bcc610bc6611c62565b82611d23565b610c0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0290613ae3565b60405180910390fd5b610c16838383611db8565b505050565b6000806000600160008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161415610db15760006040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000610dbb611df1565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff1686610de79190613e7a565b610df19190613e49565b90508160000151819350935050509250929050565b60106020528060005260406000206000915090505481565b600d8054610e2b90613fe4565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5790613fe4565b8015610ea45780601f10610e7957610100808354040283529160200191610ea4565b820191906000526020600020905b815481529060010190602001808311610e8757829003601f168201915b505050505081565b610eb4611588565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f3a5750601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b80610f925750601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610f9b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff16601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610ff757600080fd5b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561105f573d6000803e3d6000fd5b50565b61107d83838360405180602001604052806000815250611815565b505050565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6110b0611b99565b81601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601360146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555061114e601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611dfb565b5050565b60008061115e83611f90565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c790613c23565b60405180910390fd5b80915050919050565b6111e1611b99565b81600d90805190602001906111f7929190612eb5565b5080600e908051906020019061120e929190612eb5565b505050565b61121b611b99565b600073ffffffffffffffffffffffffffffffffffffffff16601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561127757600080fd5b6000600190505b600c60019054906101000a900461ffff1661ffff1681116112d8576112c5601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682611fcd565b80806112d090614047565b91505061127e565b50565b600a80546112e890613fe4565b80601f016020809104026020016040519081016040528092919081815260200182805461131490613fe4565b80156113615780601f1061133657610100808354040283529160200191611361565b820191906000526020600020905b81548152906001019060200180831161134457829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d190613bc3565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611429611b99565b6114336000611feb565b565b600b805461144290613fe4565b80601f016020809104026020016040519081016040528092919081815260200182805461146e90613fe4565b80156114bb5780601f10611490576101008083540402835291602001916114bb565b820191906000526020600020905b81548152906001019060200180831161149e57829003601f168201915b505050505081565b6114cb611b99565b6001600c60006101000a81548160ff021916908315150217905550565b600f602052806000526040600020600091509050805461150790613fe4565b80601f016020809104026020016040519081016040528092919081815260200182805461153390613fe4565b80156115805780601f1061155557610100808354040283529160200191611580565b820191906000526020600020905b81548152906001019060200180831161156357829003601f168201915b505050505081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6115ba611b99565b80600b90805190602001906115d0929190612eb5565b5050565b6115dc611b99565b80601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b606061162b826120b1565b61164760106000858152602001908152602001600020546120b1565b600d600e60405160200161165e949392919061396a565b6040516020818303038152906040529050919050565b600c60009054906101000a900460ff1681565b60606003805461169690613fe4565b80601f01602080910402602001604051908101604052809291908181526020018280546116c290613fe4565b801561170f5780601f106116e45761010080835404028352916020019161170f565b820191906000526020600020905b8154815290600101906020018083116116f257829003601f168201915b5050505050905090565b61172b611724611c62565b8383612189565b5050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61175d611b99565b600c60009054906101000a900460ff161561177757600080fd5b817f53d9dfb5a5d1618382bb802d3e0c09318c4177db3a09870a0d260b32243e39c4600f6000858152602001908152602001600020836040516117bb929190613aac565b60405180910390a280600f600084815260200190815260200160002090805190602001906117ea929190612eb5565b505050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611826611820611c62565b83611d23565b611865576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185c90613ae3565b60405180910390fd5b611871848484846122f6565b50505050565b601360149054906101000a90046bffffffffffffffffffffffff1681565b60606118a082611c17565b60006118aa612352565b905060008151116118ca57604051806020016040528060008152506118f5565b806118d4846120b1565b6040516020016118e5929190613946565b6040516020818303038152906040525b915050919050565b600c60019054906101000a900461ffff1681565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600e80546119b290613fe4565b80601f01602080910402602001604051908101604052809291908181526020018280546119de90613fe4565b8015611a2b5780601f10611a0057610100808354040283529160200191611a2b565b820191906000526020600020905b815481529060010190602001808311611a0e57829003601f168201915b505050505081565b611a3b611b99565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa290613b23565b60405180910390fd5b611ab481611feb565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611b8257507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611b925750611b91826123e4565b5b9050919050565b611ba1611c62565b73ffffffffffffffffffffffffffffffffffffffff16611bbf611588565b73ffffffffffffffffffffffffffffffffffffffff1614611c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0c90613c03565b60405180910390fd5b565b611c208161245e565b611c5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5690613c23565b60405180910390fd5b50565b600033905090565b816006600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611cdd83611152565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611d2f83611152565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611d715750611d708185611911565b5b80611daf57508373ffffffffffffffffffffffffffffffffffffffff16611d9784610a11565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b601060008281526020019081526020016000206000815480929190611ddc90614047565b9190505550611dec83838361249f565b505050565b6000612710905090565b611e03611df1565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611e61576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5890613c83565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ed1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec890613ca3565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff168152506000808201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b611fe7828260405180602001604052806000815250612799565b5050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6060600060016120c0846127f4565b01905060008167ffffffffffffffff8111156120df576120de61411d565b5b6040519080825280601f01601f1916602001820160405280156121115781602001600182028036833780820191505090505b509050600082602001820190505b60011561217e578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8581612168576121676140bf565b5b04945060008514156121795761217e565b61211f565b819350505050919050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156121f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ef90613ba3565b60405180910390fd5b80600760008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122e99190613a6f565b60405180910390a3505050565b612301848484611db8565b61230d84848484612947565b61234c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161234390613b03565b60405180910390fd5b50505050565b6060600a805461236190613fe4565b80601f016020809104026020016040519081016040528092919081815260200182805461238d90613fe4565b80156123da5780601f106123af576101008083540402835291602001916123da565b820191906000526020600020905b8154815290600101906020018083116123bd57829003601f168201915b5050505050905090565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612457575061245682612ade565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff1661248083611f90565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b8273ffffffffffffffffffffffffffffffffffffffff166124bf82611152565b73ffffffffffffffffffffffffffffffffffffffff1614612515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161250c90613b43565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612585576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161257c90613b83565b60405180910390fd5b6125928383836001612b48565b8273ffffffffffffffffffffffffffffffffffffffff166125b282611152565b73ffffffffffffffffffffffffffffffffffffffff1614612608576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ff90613b43565b60405180910390fd5b6006600082815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46127948383836001612c6e565b505050565b6127a38383612c74565b6127b06000848484612947565b6127ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127e690613b03565b60405180910390fd5b505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612852577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381612848576128476140bf565b5b0492506040810190505b6d04ee2d6d415b85acef8100000000831061288f576d04ee2d6d415b85acef81000000008381612885576128846140bf565b5b0492506020810190505b662386f26fc1000083106128be57662386f26fc1000083816128b4576128b36140bf565b5b0492506010810190505b6305f5e10083106128e7576305f5e10083816128dd576128dc6140bf565b5b0492506008810190505b612710831061290c576127108381612902576129016140bf565b5b0492506004810190505b6064831061292f5760648381612925576129246140bf565b5b0492506002810190505b600a831061293e576001810190505b80915050919050565b60006129688473ffffffffffffffffffffffffffffffffffffffff16612e92565b15612ad1578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612991611c62565b8786866040518563ffffffff1660e01b81526004016129b394939291906139fa565b602060405180830381600087803b1580156129cd57600080fd5b505af19250505080156129fe57506040513d601f19601f820116820180604052508101906129fb91906132e6565b60015b612a81573d8060008114612a2e576040519150601f19603f3d011682016040523d82523d6000602084013e612a33565b606091505b50600081511415612a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7090613b03565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612ad6565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6001811115612c6857600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612bdc5780600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bd49190613ed4565b925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612c675780600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c5f9190613df3565b925050819055505b5b50505050565b50505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ce4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cdb90613be3565b60405180910390fd5b612ced8161245e565b15612d2d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d2490613b63565b60405180910390fd5b612d3b600083836001612b48565b612d448161245e565b15612d84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d7b90613b63565b60405180910390fd5b6001600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e8e600083836001612c6e565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b828054612ec190613fe4565b90600052602060002090601f016020900481019282612ee35760008555612f2a565b82601f10612efc57805160ff1916838001178555612f2a565b82800160010185558215612f2a579182015b82811115612f29578251825591602001919060010190612f0e565b5b509050612f379190612f3b565b5090565b5b80821115612f54576000816000905550600101612f3c565b5090565b6000612f6b612f6684613d39565b613d14565b905082815260208101848484011115612f8757612f86614151565b5b612f92848285613fa2565b509392505050565b6000612fad612fa884613d6a565b613d14565b905082815260208101848484011115612fc957612fc8614151565b5b612fd4848285613fa2565b509392505050565b600081359050612feb816145fb565b92915050565b60008135905061300081614612565b92915050565b60008135905061301581614629565b92915050565b60008151905061302a81614629565b92915050565b600082601f8301126130455761304461414c565b5b8135613055848260208601612f58565b91505092915050565b600082601f8301126130735761307261414c565b5b8135613083848260208601612f9a565b91505092915050565b60008135905061309b81614640565b92915050565b6000813590506130b081614657565b92915050565b6000602082840312156130cc576130cb61415b565b5b60006130da84828501612fdc565b91505092915050565b600080604083850312156130fa576130f961415b565b5b600061310885828601612fdc565b925050602061311985828601612fdc565b9150509250929050565b60008060006060848603121561313c5761313b61415b565b5b600061314a86828701612fdc565b935050602061315b86828701612fdc565b925050604061316c8682870161308c565b9150509250925092565b600080600080608085870312156131905761318f61415b565b5b600061319e87828801612fdc565b94505060206131af87828801612fdc565b93505060406131c08782880161308c565b925050606085013567ffffffffffffffff8111156131e1576131e0614156565b5b6131ed87828801613030565b91505092959194509250565b600080604083850312156132105761320f61415b565b5b600061321e85828601612fdc565b925050602061322f85828601612ff1565b9150509250929050565b600080604083850312156132505761324f61415b565b5b600061325e85828601612fdc565b925050602061326f8582860161308c565b9150509250929050565b600080604083850312156132905761328f61415b565b5b600061329e85828601612fdc565b92505060206132af858286016130a1565b9150509250929050565b6000602082840312156132cf576132ce61415b565b5b60006132dd84828501613006565b91505092915050565b6000602082840312156132fc576132fb61415b565b5b600061330a8482850161301b565b91505092915050565b6000602082840312156133295761332861415b565b5b600082013567ffffffffffffffff81111561334757613346614156565b5b6133538482850161305e565b91505092915050565b600080604083850312156133735761337261415b565b5b600083013567ffffffffffffffff81111561339157613390614156565b5b61339d8582860161305e565b925050602083013567ffffffffffffffff8111156133be576133bd614156565b5b6133ca8582860161305e565b9150509250929050565b6000602082840312156133ea576133e961415b565b5b60006133f88482850161308c565b91505092915050565b600080604083850312156134185761341761415b565b5b60006134268582860161308c565b925050602083013567ffffffffffffffff81111561344757613446614156565b5b6134538582860161305e565b9150509250929050565b600080604083850312156134745761347361415b565b5b60006134828582860161308c565b92505060206134938582860161308c565b9150509250929050565b6134a681613f08565b82525050565b6134b581613f1a565b82525050565b60006134c682613db0565b6134d08185613dc6565b93506134e0818560208601613fb1565b6134e981614160565b840191505092915050565b60006134ff82613dbb565b6135098185613dd7565b9350613519818560208601613fb1565b61352281614160565b840191505092915050565b600061353882613dbb565b6135428185613de8565b9350613552818560208601613fb1565b80840191505092915050565b6000815461356b81613fe4565b6135758186613dd7565b9450600182166000811461359057600181146135a2576135d5565b60ff19831686526020860193506135d5565b6135ab85613d9b565b60005b838110156135cd578154818901526001820191506020810190506135ae565b808801955050505b50505092915050565b600081546135eb81613fe4565b6135f58186613de8565b94506001821660008114613610576001811461362157613654565b60ff19831686528186019350613654565b61362a85613d9b565b60005b8381101561364c5781548189015260018201915060208101905061362d565b838801955050505b50505092915050565b600061366a602d83613dd7565b915061367582614171565b604082019050919050565b600061368d603283613dd7565b9150613698826141c0565b604082019050919050565b60006136b0602683613dd7565b91506136bb8261420f565b604082019050919050565b60006136d3602583613dd7565b91506136de8261425e565b604082019050919050565b60006136f6601c83613dd7565b9150613701826142ad565b602082019050919050565b6000613719602483613dd7565b9150613724826142d6565b604082019050919050565b600061373c601983613dd7565b915061374782614325565b602082019050919050565b600061375f602983613dd7565b915061376a8261434e565b604082019050919050565b6000613782600283613de8565b915061378d8261439d565b600282019050919050565b60006137a5602083613dd7565b91506137b0826143c6565b602082019050919050565b60006137c8602083613dd7565b91506137d3826143ef565b602082019050919050565b60006137eb601883613dd7565b91506137f682614418565b602082019050919050565b600061380e602183613dd7565b915061381982614441565b604082019050919050565b6000613831601483613de8565b915061383c82614490565b601482019050919050565b6000613854603d83613dd7565b915061385f826144b9565b604082019050919050565b6000613877601383613de8565b915061388282614508565b601382019050919050565b600061389a600d83613de8565b91506138a582614531565b600d82019050919050565b60006138bd602a83613dd7565b91506138c88261455a565b604082019050919050565b60006138e0601383613de8565b91506138eb826145a9565b601382019050919050565b6000613903601983613dd7565b915061390e826145d2565b602082019050919050565b61392281613f52565b82525050565b61393181613f80565b82525050565b61394081613f8a565b82525050565b6000613952828561352d565b915061395e828461352d565b91508190509392505050565b60006139758261388d565b9150613981828761352d565b915061398c82613824565b9150613998828661352d565b91506139a3826138d3565b91506139af82856135de565b91506139ba8261386a565b91506139c682846135de565b91506139d182613775565b915081905095945050505050565b60006020820190506139f4600083018461349d565b92915050565b6000608082019050613a0f600083018761349d565b613a1c602083018661349d565b613a296040830185613928565b8181036060830152613a3b81846134bb565b905095945050505050565b6000604082019050613a5b600083018561349d565b613a686020830184613928565b9392505050565b6000602082019050613a8460008301846134ac565b92915050565b60006020820190508181036000830152613aa481846134f4565b905092915050565b60006040820190508181036000830152613ac6818561355e565b90508181036020830152613ada81846134f4565b90509392505050565b60006020820190508181036000830152613afc8161365d565b9050919050565b60006020820190508181036000830152613b1c81613680565b9050919050565b60006020820190508181036000830152613b3c816136a3565b9050919050565b60006020820190508181036000830152613b5c816136c6565b9050919050565b60006020820190508181036000830152613b7c816136e9565b9050919050565b60006020820190508181036000830152613b9c8161370c565b9050919050565b60006020820190508181036000830152613bbc8161372f565b9050919050565b60006020820190508181036000830152613bdc81613752565b9050919050565b60006020820190508181036000830152613bfc81613798565b9050919050565b60006020820190508181036000830152613c1c816137bb565b9050919050565b60006020820190508181036000830152613c3c816137de565b9050919050565b60006020820190508181036000830152613c5c81613801565b9050919050565b60006020820190508181036000830152613c7c81613847565b9050919050565b60006020820190508181036000830152613c9c816138b0565b9050919050565b60006020820190508181036000830152613cbc816138f6565b9050919050565b6000602082019050613cd86000830184613919565b92915050565b6000602082019050613cf36000830184613928565b92915050565b6000602082019050613d0e6000830184613937565b92915050565b6000613d1e613d2f565b9050613d2a8282614016565b919050565b6000604051905090565b600067ffffffffffffffff821115613d5457613d5361411d565b5b613d5d82614160565b9050602081019050919050565b600067ffffffffffffffff821115613d8557613d8461411d565b5b613d8e82614160565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613dfe82613f80565b9150613e0983613f80565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613e3e57613e3d614090565b5b828201905092915050565b6000613e5482613f80565b9150613e5f83613f80565b925082613e6f57613e6e6140bf565b5b828204905092915050565b6000613e8582613f80565b9150613e9083613f80565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613ec957613ec8614090565b5b828202905092915050565b6000613edf82613f80565b9150613eea83613f80565b925082821015613efd57613efc614090565b5b828203905092915050565b6000613f1382613f60565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006bffffffffffffffffffffffff82169050919050565b82818337600083830152505050565b60005b83811015613fcf578082015181840152602081019050613fb4565b83811115613fde576000848401525b50505050565b60006002820490506001821680613ffc57607f821691505b602082108114156140105761400f6140ee565b5b50919050565b61401f82614160565b810181811067ffffffffffffffff8211171561403e5761403d61411d565b5b80604052505050565b600061405282613f80565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561408557614084614090565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f222c227472616e736665725f636f756e74223a22000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b7f222c22617564696f5552495f62617365223a2200000000000000000000000000600082015250565b7f7b22746f6b656e5f6964223a2200000000000000000000000000000000000000600082015250565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b7f222c22696d6167655552495f62617365223a2200000000000000000000000000600082015250565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b61460481613f08565b811461460f57600080fd5b50565b61461b81613f1a565b811461462657600080fd5b50565b61463281613f26565b811461463d57600080fd5b50565b61464981613f80565b811461465457600080fd5b50565b61466081613f8a565b811461466b57600080fd5b5056fea2646970667358221220d93562d3a793fd51a72f6e5d71f313338fff9350bb9369e54193bf2898ddaa8764736f6c63430008070033
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.