Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 8 from a total of 8 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Approval For... | 19645119 | 152 days ago | IN | 0 ETH | 0.00050554 | ||||
Set Approval For... | 18338552 | 335 days ago | IN | 0 ETH | 0.00024957 | ||||
Burn | 15621830 | 716 days ago | IN | 0 ETH | 0.00067844 | ||||
Burn | 15621823 | 716 days ago | IN | 0 ETH | 0.00071313 | ||||
Mint | 15488847 | 736 days ago | IN | 0 ETH | 0.00572462 | ||||
Mint | 15190556 | 783 days ago | IN | 0 ETH | 0.01083904 | ||||
Set Approval For... | 15190553 | 783 days ago | IN | 0 ETH | 0.00034153 | ||||
0x60806040 | 15173471 | 786 days ago | IN | 0 ETH | 0.29195674 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
NFTPASTEL721
Compiler Version
v0.8.14+commit.80d49f37
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.14; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "./common/ERC2981.sol"; contract NFTPASTEL721 is Context, ERC721Enumerable, ERC721Burnable, ERC721URIStorage, ERC2981, AccessControl { using Counters for Counters.Counter; Counters.Counter private _tokenIdTracker; string private baseTokenURI; address public owner; mapping(uint256 => bool) private usedNonce; struct Sign { uint8 v; bytes32 r; bytes32 s; uint256 nonce; } event OwnershipTransferred( address indexed previousOwner, address indexed newOwner ); event BaseURIChanged(string indexed uri, string indexed newuri); constructor( string memory name, string memory symbol, string memory _baseTokenURI ) ERC721(name, symbol) { baseTokenURI = _baseTokenURI; owner = _msgSender(); _setupRole("ADMIN_ROLE", msg.sender); _tokenIdTracker.increment(); } function transferOwnership(address newOwner) external onlyRole("ADMIN_ROLE") returns (bool) { require( newOwner != address(0), "Ownable: new owner is the zero address" ); _revokeRole("ADMIN_ROLE", owner); emit OwnershipTransferred(owner, newOwner); owner = newOwner; _setupRole("ADMIN_ROLE", newOwner); return true; } function baseURI() external view returns (string memory) { return _baseURI(); } function setBaseURI(string memory uri_) external onlyRole("ADMIN_ROLE") returns (bool) { emit BaseURIChanged(baseTokenURI, uri_); baseTokenURI = uri_; return true; } function mint( string memory _tokenURI, uint96 _royaltyFee, Sign calldata sign ) external virtual returns (uint256 _tokenId) { // We cannot just use balanceOf to create the new tokenId because tokens // can be burned (destroyed), so we need a separate counter. require(!usedNonce[sign.nonce], "Nonce : Invalid Nonce"); usedNonce[sign.nonce] = true; verifySign(_tokenURI, msg.sender, sign); _tokenId = _tokenIdTracker.current(); _mint(_msgSender(), _tokenId); _setTokenURI(_tokenId, _tokenURI); _setTokenRoyalty(_tokenId, _msgSender(), _royaltyFee); _tokenIdTracker.increment(); return _tokenId; } function _burn(uint256 tokenId) internal override(ERC721, ERC721URIStorage) { _resetTokenRoyalty(tokenId); super._burn(tokenId); } function tokenURI(uint256 tokenId) public view override(ERC721, ERC721URIStorage) returns (string memory) { return super.tokenURI(tokenId); } function _baseURI() internal view override returns (string memory) { return baseTokenURI; } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC721Enumerable, ERC2981, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } function verifySign( string memory _tokenURI, address caller, Sign memory sign ) internal view { bytes32 hash = keccak256( abi.encodePacked(this, caller, _tokenURI, sign.nonce) ); require( owner == ecrecover( keccak256( abi.encodePacked( "\x19Ethereum Signed Message:\n32", hash ) ), sign.v, sign.r, sign.s ), "Owner sign verification failed" ); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "./IERC721Enumerable.sol"; /** * @dev This implements an optional extension of {ERC721} defined in the EIP that adds * enumerability of all the token ids in the contract as well as all token ids owned by each * account. */ abstract contract ERC721Enumerable is ERC721, IERC721Enumerable { // Mapping from owner to list of owned token IDs mapping(address => mapping(uint256 => uint256)) private _ownedTokens; // Mapping from token ID to index of the owner tokens list mapping(uint256 => uint256) private _ownedTokensIndex; // Array with all token ids, used for enumeration uint256[] private _allTokens; // Mapping from token id to position in the allTokens array mapping(uint256 => uint256) private _allTokensIndex; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) { return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}. */ function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) { require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds"); return _ownedTokens[owner][index]; } /** * @dev See {IERC721Enumerable-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _allTokens.length; } /** * @dev See {IERC721Enumerable-tokenByIndex}. */ function tokenByIndex(uint256 index) public view virtual override returns (uint256) { require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds"); return _allTokens[index]; } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` cannot be the zero address. * - `to` cannot be the zero address. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual override { super._beforeTokenTransfer(from, to, tokenId); if (from == address(0)) { _addTokenToAllTokensEnumeration(tokenId); } else if (from != to) { _removeTokenFromOwnerEnumeration(from, tokenId); } if (to == address(0)) { _removeTokenFromAllTokensEnumeration(tokenId); } else if (to != from) { _addTokenToOwnerEnumeration(to, tokenId); } } /** * @dev Private function to add a token to this extension's ownership-tracking data structures. * @param to address representing the new owner of the given token ID * @param tokenId uint256 ID of the token to be added to the tokens list of the given address */ function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private { uint256 length = ERC721.balanceOf(to); _ownedTokens[to][length] = tokenId; _ownedTokensIndex[tokenId] = length; } /** * @dev Private function to add a token to this extension's token tracking data structures. * @param tokenId uint256 ID of the token to be added to the tokens list */ function _addTokenToAllTokensEnumeration(uint256 tokenId) private { _allTokensIndex[tokenId] = _allTokens.length; _allTokens.push(tokenId); } /** * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for * gas optimizations e.g. when performing a transfer operation (avoiding double writes). * This has O(1) time complexity, but alters the order of the _ownedTokens array. * @param from address representing the previous owner of the given token ID * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address */ function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private { // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = ERC721.balanceOf(from) - 1; uint256 tokenIndex = _ownedTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary if (tokenIndex != lastTokenIndex) { uint256 lastTokenId = _ownedTokens[from][lastTokenIndex]; _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index } // This also deletes the contents at the last position of the array delete _ownedTokensIndex[tokenId]; delete _ownedTokens[from][lastTokenIndex]; } /** * @dev Private function to remove a token from this extension's token tracking data structures. * This has O(1) time complexity, but alters the order of the _allTokens array. * @param tokenId uint256 ID of the token to be removed from the tokens list */ function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private { // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and // then delete the last slot (swap and pop). uint256 lastTokenIndex = _allTokens.length - 1; uint256 tokenIndex = _allTokensIndex[tokenId]; // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding // an 'if' statement (like in _removeTokenFromOwnerEnumeration) uint256 lastTokenId = _allTokens[lastTokenIndex]; _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index // This also deletes the contents at the last position of the array delete _allTokensIndex[tokenId]; _allTokens.pop(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721Burnable.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; import "../../../utils/Context.sol"; /** * @title ERC721 Burnable Token * @dev ERC721 Token that can be burned (destroyed). */ abstract contract ERC721Burnable is Context, ERC721 { /** * @dev Burns `tokenId`. See {ERC721-_burn}. * * Requirements: * * - The caller must own `tokenId` or be an approved operator. */ function burn(uint256 tokenId) public virtual { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _burn(tokenId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/extensions/ERC721URIStorage.sol) pragma solidity ^0.8.0; import "../ERC721.sol"; /** * @dev ERC721 token with storage based token URI management. */ abstract contract ERC721URIStorage is ERC721 { using Strings for uint256; // Optional mapping for token URIs mapping(uint256 => string) private _tokenURIs; /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory _tokenURI = _tokenURIs[tokenId]; string memory base = _baseURI(); // If there is no base URI, return the token URI. if (bytes(base).length == 0) { return _tokenURI; } // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked). if (bytes(_tokenURI).length > 0) { return string(abi.encodePacked(base, _tokenURI)); } return super.tokenURI(tokenId); } /** * @dev Sets `_tokenURI` as the tokenURI of `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual { require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token"); _tokenURIs[tokenId] = _tokenURI; } /** * @dev See {ERC721-_burn}. This override additionally checks to see if a * token-specific URI was set for the token, and if so, it deletes the token URI from * the storage mapping. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); if (bytes(_tokenURIs[tokenId]).length != 0) { delete _tokenURIs[tokenId]; } } }
// 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/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.14; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/interfaces/IERC2981.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; } 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]; 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 1000; } /** * @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.7.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 = _owners[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 nor 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 nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { 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); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @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. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.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: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (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.7.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 functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_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) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; import "../utils/introspection/IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. * * _Available since v4.5._ */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo(uint256 tokenId, uint256 salePrice) external view returns (address receiver, uint256 royaltyAmount); }
{ "optimizer": { "enabled": false, "runs": 200 }, "evmVersion": "istanbul", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"_baseTokenURI","type":"string"}],"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":"string","name":"uri","type":"string"},{"indexed":true,"internalType":"string","name":"newuri","type":"string"}],"name":"BaseURIChanged","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":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"uint96","name":"_royaltyFee","type":"uint96"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"},{"internalType":"uint256","name":"nonce","type":"uint256"}],"internalType":"struct NFTPASTEL721.Sign","name":"sign","type":"tuple"}],"name":"mint","outputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"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":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri_","type":"string"}],"name":"setBaseURI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620054fb380380620054fb833981810160405281019062000037919062000506565b8282816000908051906020019062000051929190620002b9565b5080600190805190602001906200006a929190620002b9565b50505080600e908051906020019062000085929190620002b9565b50620000966200012860201b60201c565b600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620001087f41444d494e5f524f4c4500000000000000000000000000000000000000000000336200013060201b60201c565b6200011f600d6200014660201b620013511760201c565b50505062000623565b600033905090565b6200014282826200015c60201b60201c565b5050565b6001816000016000828254019250508190555050565b6200016e82826200024e60201b60201c565b6200024a576001600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550620001ef6200012860201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b828054620002c790620005ee565b90600052602060002090601f016020900481019282620002eb576000855562000337565b82601f106200030657805160ff191683800117855562000337565b8280016001018555821562000337579182015b828111156200033657825182559160200191906001019062000319565b5b5090506200034691906200034a565b5090565b5b80821115620003655760008160009055506001016200034b565b5090565b6000604051905090565b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620003d28262000387565b810181811067ffffffffffffffff82111715620003f457620003f362000398565b5b80604052505050565b60006200040962000369565b9050620004178282620003c7565b919050565b600067ffffffffffffffff8211156200043a576200043962000398565b5b620004458262000387565b9050602081019050919050565b60005b838110156200047257808201518184015260208101905062000455565b8381111562000482576000848401525b50505050565b60006200049f62000499846200041c565b620003fd565b905082815260208101848484011115620004be57620004bd62000382565b5b620004cb84828562000452565b509392505050565b600082601f830112620004eb57620004ea6200037d565b5b8151620004fd84826020860162000488565b91505092915050565b60008060006060848603121562000522576200052162000373565b5b600084015167ffffffffffffffff81111562000543576200054262000378565b5b6200055186828701620004d3565b935050602084015167ffffffffffffffff81111562000575576200057462000378565b5b6200058386828701620004d3565b925050604084015167ffffffffffffffff811115620005a757620005a662000378565b5b620005b586828701620004d3565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200060757607f821691505b6020821081036200061d576200061c620005bf565b5b50919050565b614ec880620006336000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c806355f804b31161010457806395d89b41116100a2578063c87b56dd11610071578063c87b56dd14610579578063d547741f146105a9578063e985e9c5146105c5578063f2fde38b146105f5576101cf565b806395d89b4114610505578063a217fddf14610523578063a22cb46514610541578063b88d4fde1461055d576101cf565b806370a08231116100de57806370a0823114610457578063831936ef146104875780638da5cb5b146104b757806391d14854146104d5576101cf565b806355f804b3146103d95780636352211e146104095780636c0360eb14610439576101cf565b80632a55205a1161017157806336568abe1161014b57806336568abe1461035557806342842e0e1461037157806342966c681461038d5780634f6ccce7146103a9576101cf565b80632a55205a146102d85780632f2ff15d146103095780632f745c5914610325576101cf565b8063095ea7b3116101ad578063095ea7b31461025257806318160ddd1461026e57806323b872dd1461028c578063248a9ca3146102a8576101cf565b806301ffc9a7146101d457806306fdde0314610204578063081812fc14610222575b600080fd5b6101ee60048036038101906101e991906132ec565b610625565b6040516101fb9190613334565b60405180910390f35b61020c610637565b60405161021991906133e8565b60405180910390f35b61023c60048036038101906102379190613440565b6106c9565b60405161024991906134ae565b60405180910390f35b61026c600480360381019061026791906134f5565b61070f565b005b610276610826565b6040516102839190613544565b60405180910390f35b6102a660048036038101906102a1919061355f565b610833565b005b6102c260048036038101906102bd91906135e8565b610893565b6040516102cf9190613624565b60405180910390f35b6102f260048036038101906102ed919061363f565b6108b3565b60405161030092919061367f565b60405180910390f35b610323600480360381019061031e91906136a8565b6109c1565b005b61033f600480360381019061033a91906134f5565b6109e2565b60405161034c9190613544565b60405180910390f35b61036f600480360381019061036a91906136a8565b610a87565b005b61038b6004803603810190610386919061355f565b610b0a565b005b6103a760048036038101906103a29190613440565b610b2a565b005b6103c360048036038101906103be9190613440565b610b86565b6040516103d09190613544565b60405180910390f35b6103f360048036038101906103ee919061381d565b610bf7565b6040516104009190613334565b60405180910390f35b610423600480360381019061041e9190613440565b610c9d565b60405161043091906134ae565b60405180910390f35b610441610d4e565b60405161044e91906133e8565b60405180910390f35b610471600480360381019061046c9190613866565b610d5d565b60405161047e9190613544565b60405180910390f35b6104a1600480360381019061049c91906138fb565b610e14565b6040516104ae9190613544565b60405180910390f35b6104bf610f10565b6040516104cc91906134ae565b60405180910390f35b6104ef60048036038101906104ea91906136a8565b610f36565b6040516104fc9190613334565b60405180910390f35b61050d610fa1565b60405161051a91906133e8565b60405180910390f35b61052b611033565b6040516105389190613624565b60405180910390f35b61055b60048036038101906105569190613996565b61103a565b005b61057760048036038101906105729190613a77565b611050565b005b610593600480360381019061058e9190613440565b6110b2565b6040516105a091906133e8565b60405180910390f35b6105c360048036038101906105be91906136a8565b6110c4565b005b6105df60048036038101906105da9190613afa565b6110e5565b6040516105ec9190613334565b60405180910390f35b61060f600480360381019061060a9190613866565b611179565b60405161061c9190613334565b60405180910390f35b600061063082611367565b9050919050565b60606000805461064690613b69565b80601f016020809104026020016040519081016040528092919081815260200182805461067290613b69565b80156106bf5780601f10610694576101008083540402835291602001916106bf565b820191906000526020600020905b8154815290600101906020018083116106a257829003601f168201915b5050505050905090565b60006106d4826113e1565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061071a82610c9d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361078a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078190613c0c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107a961142c565b73ffffffffffffffffffffffffffffffffffffffff1614806107d857506107d7816107d261142c565b6110e5565b5b610817576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080e90613c9e565b60405180910390fd5b6108218383611434565b505050565b6000600880549050905090565b61084461083e61142c565b826114ed565b610883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087a90613d30565b60405180910390fd5b61088e838383611582565b505050565b6000600c6000838152602001908152602001600020600101549050919050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff1681525050905060006109766117e8565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866109a29190613d7f565b6109ac9190613e08565b90508160000151819350935050509250929050565b6109ca82610893565b6109d3816117f2565b6109dd8383611806565b505050565b60006109ed83610d5d565b8210610a2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2590613eab565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610a8f61142c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610afc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af390613f3d565b60405180910390fd5b610b0682826118e7565b5050565b610b2583838360405180602001604052806000815250611050565b505050565b610b3b610b3561142c565b826114ed565b610b7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7190613d30565b60405180910390fd5b610b83816119c9565b50565b6000610b90610826565b8210610bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc890613fcf565b60405180910390fd5b60088281548110610be557610be4613fef565b5b90600052602060002001549050919050565b60007f41444d494e5f524f4c4500000000000000000000000000000000000000000000610c23816117f2565b82604051610c31919061405a565b6040518091039020600e604051610c489190614105565b60405180910390207fc41b7cb64e5be01af4afc2641afc861432136270f4206b7773f229b658b9669960405160405180910390a382600e9080519060200190610c9292919061319d565b506001915050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3c90614168565b60405180910390fd5b80915050919050565b6060610d586119de565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc4906141fa565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000601060008360600135815260200190815260200160002060009054906101000a900460ff1615610e7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7290614266565b60405180910390fd5b6001601060008460600135815260200190815260200160002060006101000a81548160ff021916908315150217905550610ec6843384803603810190610ec1919061433c565b611a70565b610ed0600d611bbb565b9050610ee3610edd61142c565b82611bc9565b610eed8185611da2565b610eff81610ef961142c565b85611e16565b610f09600d611351565b9392505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054610fb090613b69565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdc90613b69565b80156110295780601f10610ffe57610100808354040283529160200191611029565b820191906000526020600020905b81548152906001019060200180831161100c57829003601f168201915b5050505050905090565b6000801b81565b61104c61104561142c565b8383611fbd565b5050565b61106161105b61142c565b836114ed565b6110a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109790613d30565b60405180910390fd5b6110ac84848484612129565b50505050565b60606110bd82612185565b9050919050565b6110cd82610893565b6110d6816117f2565b6110e083836118e7565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f41444d494e5f524f4c45000000000000000000000000000000000000000000006111a5816117f2565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611214576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120b906143db565b60405180910390fd5b6112607f41444d494e5f524f4c4500000000000000000000000000000000000000000000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166118e7565b8273ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a382600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506113477f41444d494e5f524f4c450000000000000000000000000000000000000000000084612297565b6001915050919050565b6001816000016000828254019250508190555050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113da57506113d9826122a5565b5b9050919050565b6113ea8161231f565b611429576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142090614168565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166114a783610c9d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806114f983610c9d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061153b575061153a81856110e5565b5b8061157957508373ffffffffffffffffffffffffffffffffffffffff16611561846106c9565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166115a282610c9d565b73ffffffffffffffffffffffffffffffffffffffff16146115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef9061446d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611667576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165e906144ff565b60405180910390fd5b61167283838361238b565b61167d600082611434565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116cd919061451f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117249190614553565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46117e383838361239b565b505050565b60006103e8905090565b611803816117fe61142c565b6123a0565b50565b6118108282610f36565b6118e3576001600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061188861142c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6118f18282610f36565b156119c5576000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061196a61142c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6119d28161243d565b6119db8161249c565b50565b6060600e80546119ed90613b69565b80601f0160208091040260200160405190810160405280929190818152602001828054611a1990613b69565b8015611a665780601f10611a3b57610100808354040283529160200191611a66565b820191906000526020600020905b815481529060010190602001808311611a4957829003601f168201915b5050505050905090565b60003083858460600151604051602001611a8d9493929190614679565b604051602081830303815290604052805190602001209050600181604051602001611ab89190614730565b6040516020818303038152906040528051906020012083600001518460200151856040015160405160008152602001604052604051611afa9493929190614765565b6020604051602081039080840390855afa158015611b1c573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bac906147f6565b60405180910390fd5b50505050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2f90614862565b60405180910390fd5b611c418161231f565b15611c81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c78906148ce565b60405180910390fd5b611c8d6000838361238b565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cdd9190614553565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611d9e6000838361239b565b5050565b611dab8261231f565b611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de190614960565b60405180910390fd5b80600a60008481526020019081526020016000209080519060200190611e1192919061319d565b505050565b611e1e6117e8565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e73906149f2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee290614a5e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600b600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361202b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202290614aca565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161211c9190613334565b60405180910390a3505050565b612134848484611582565b612140848484846124ef565b61217f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217690614b5c565b60405180910390fd5b50505050565b6060612190826113e1565b6000600a600084815260200190815260200160002080546121b090613b69565b80601f01602080910402602001604051908101604052809291908181526020018280546121dc90613b69565b80156122295780601f106121fe57610100808354040283529160200191612229565b820191906000526020600020905b81548152906001019060200180831161220c57829003601f168201915b50505050509050600061223a6119de565b9050600081510361224f578192505050612292565b60008251111561228457808260405160200161226c929190614b7c565b60405160208183030381529060405292505050612292565b61228d84612676565b925050505b919050565b6122a18282611806565b5050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123185750612317826126de565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612396838383612758565b505050565b505050565b6123aa8282610f36565b612439576123cf8173ffffffffffffffffffffffffffffffffffffffff16601461286a565b6123dd8360001c602061286a565b6040516020016123ee929190614c38565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243091906133e8565b60405180910390fd5b5050565b600b6000828152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff0219169055505050565b6124a581612aa6565b6000600a600083815260200190815260200160002080546124c590613b69565b9050146124ec57600a600082815260200190815260200160002060006124eb9190613223565b5b50565b60006125108473ffffffffffffffffffffffffffffffffffffffff16612bc3565b15612669578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261253961142c565b8786866040518563ffffffff1660e01b815260040161255b9493929190614cc7565b6020604051808303816000875af192505050801561259757506040513d601f19601f820116820180604052508101906125949190614d28565b60015b612619573d80600081146125c7576040519150601f19603f3d011682016040523d82523d6000602084013e6125cc565b606091505b506000815103612611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260890614b5c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061266e565b600190505b949350505050565b6060612681826113e1565b600061268b6119de565b905060008151116126ab57604051806020016040528060008152506126d6565b806126b584612be6565b6040516020016126c6929190614b7c565b6040516020818303038152906040525b915050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612751575061275082612d46565b5b9050919050565b612763838383612e28565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036127a5576127a081612e2d565b6127e4565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146127e3576127e28382612e76565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036128265761282181612fe3565b612865565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146128645761286382826130b4565b5b5b505050565b60606000600283600261287d9190613d7f565b6128879190614553565b67ffffffffffffffff8111156128a05761289f6136f2565b5b6040519080825280601f01601f1916602001820160405280156128d25781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061290a57612909613fef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061296e5761296d613fef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026129ae9190613d7f565b6129b89190614553565b90505b6001811115612a58577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106129fa576129f9613fef565b5b1a60f81b828281518110612a1157612a10613fef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612a5190614d55565b90506129bb565b5060008414612a9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9390614dca565b60405180910390fd5b8091505092915050565b6000612ab182610c9d565b9050612abf8160008461238b565b612aca600083611434565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b1a919061451f565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612bbf8160008461239b565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606060008203612c2d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d41565b600082905060005b60008214612c5f578080612c4890614dea565b915050600a82612c589190613e08565b9150612c35565b60008167ffffffffffffffff811115612c7b57612c7a6136f2565b5b6040519080825280601f01601f191660200182016040528015612cad5781602001600182028036833780820191505090505b5090505b60008514612d3a57600182612cc6919061451f565b9150600a85612cd59190614e32565b6030612ce19190614553565b60f81b818381518110612cf757612cf6613fef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d339190613e08565b9450612cb1565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e1157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e215750612e2082613133565b5b9050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612e8384610d5d565b612e8d919061451f565b9050600060076000848152602001908152602001600020549050818114612f72576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612ff7919061451f565b905060006009600084815260200190815260200160002054905060006008838154811061302757613026613fef565b5b90600052602060002001549050806008838154811061304957613048613fef565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061309857613097614e63565b5b6001900381819060005260206000200160009055905550505050565b60006130bf83610d5d565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b8280546131a990613b69565b90600052602060002090601f0160209004810192826131cb5760008555613212565b82601f106131e457805160ff1916838001178555613212565b82800160010185558215613212579182015b828111156132115782518255916020019190600101906131f6565b5b50905061321f9190613263565b5090565b50805461322f90613b69565b6000825580601f106132415750613260565b601f01602090049060005260206000209081019061325f9190613263565b5b50565b5b8082111561327c576000816000905550600101613264565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6132c981613294565b81146132d457600080fd5b50565b6000813590506132e6816132c0565b92915050565b6000602082840312156133025761330161328a565b5b6000613310848285016132d7565b91505092915050565b60008115159050919050565b61332e81613319565b82525050565b60006020820190506133496000830184613325565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561338957808201518184015260208101905061336e565b83811115613398576000848401525b50505050565b6000601f19601f8301169050919050565b60006133ba8261334f565b6133c4818561335a565b93506133d481856020860161336b565b6133dd8161339e565b840191505092915050565b6000602082019050818103600083015261340281846133af565b905092915050565b6000819050919050565b61341d8161340a565b811461342857600080fd5b50565b60008135905061343a81613414565b92915050565b6000602082840312156134565761345561328a565b5b60006134648482850161342b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134988261346d565b9050919050565b6134a88161348d565b82525050565b60006020820190506134c3600083018461349f565b92915050565b6134d28161348d565b81146134dd57600080fd5b50565b6000813590506134ef816134c9565b92915050565b6000806040838503121561350c5761350b61328a565b5b600061351a858286016134e0565b925050602061352b8582860161342b565b9150509250929050565b61353e8161340a565b82525050565b60006020820190506135596000830184613535565b92915050565b6000806000606084860312156135785761357761328a565b5b6000613586868287016134e0565b9350506020613597868287016134e0565b92505060406135a88682870161342b565b9150509250925092565b6000819050919050565b6135c5816135b2565b81146135d057600080fd5b50565b6000813590506135e2816135bc565b92915050565b6000602082840312156135fe576135fd61328a565b5b600061360c848285016135d3565b91505092915050565b61361e816135b2565b82525050565b60006020820190506136396000830184613615565b92915050565b600080604083850312156136565761365561328a565b5b60006136648582860161342b565b92505060206136758582860161342b565b9150509250929050565b6000604082019050613694600083018561349f565b6136a16020830184613535565b9392505050565b600080604083850312156136bf576136be61328a565b5b60006136cd858286016135d3565b92505060206136de858286016134e0565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61372a8261339e565b810181811067ffffffffffffffff82111715613749576137486136f2565b5b80604052505050565b600061375c613280565b90506137688282613721565b919050565b600067ffffffffffffffff821115613788576137876136f2565b5b6137918261339e565b9050602081019050919050565b82818337600083830152505050565b60006137c06137bb8461376d565b613752565b9050828152602081018484840111156137dc576137db6136ed565b5b6137e784828561379e565b509392505050565b600082601f830112613804576138036136e8565b5b81356138148482602086016137ad565b91505092915050565b6000602082840312156138335761383261328a565b5b600082013567ffffffffffffffff8111156138515761385061328f565b5b61385d848285016137ef565b91505092915050565b60006020828403121561387c5761387b61328a565b5b600061388a848285016134e0565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b6138b481613893565b81146138bf57600080fd5b50565b6000813590506138d1816138ab565b92915050565b600080fd5b6000608082840312156138f2576138f16138d7565b5b81905092915050565b600080600060c084860312156139145761391361328a565b5b600084013567ffffffffffffffff8111156139325761393161328f565b5b61393e868287016137ef565b935050602061394f868287016138c2565b9250506040613960868287016138dc565b9150509250925092565b61397381613319565b811461397e57600080fd5b50565b6000813590506139908161396a565b92915050565b600080604083850312156139ad576139ac61328a565b5b60006139bb858286016134e0565b92505060206139cc85828601613981565b9150509250929050565b600067ffffffffffffffff8211156139f1576139f06136f2565b5b6139fa8261339e565b9050602081019050919050565b6000613a1a613a15846139d6565b613752565b905082815260208101848484011115613a3657613a356136ed565b5b613a4184828561379e565b509392505050565b600082601f830112613a5e57613a5d6136e8565b5b8135613a6e848260208601613a07565b91505092915050565b60008060008060808587031215613a9157613a9061328a565b5b6000613a9f878288016134e0565b9450506020613ab0878288016134e0565b9350506040613ac18782880161342b565b925050606085013567ffffffffffffffff811115613ae257613ae161328f565b5b613aee87828801613a49565b91505092959194509250565b60008060408385031215613b1157613b1061328a565b5b6000613b1f858286016134e0565b9250506020613b30858286016134e0565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613b8157607f821691505b602082108103613b9457613b93613b3a565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613bf660218361335a565b9150613c0182613b9a565b604082019050919050565b60006020820190508181036000830152613c2581613be9565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613c88603e8361335a565b9150613c9382613c2c565b604082019050919050565b60006020820190508181036000830152613cb781613c7b565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613d1a602e8361335a565b9150613d2582613cbe565b604082019050919050565b60006020820190508181036000830152613d4981613d0d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613d8a8261340a565b9150613d958361340a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613dce57613dcd613d50565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e138261340a565b9150613e1e8361340a565b925082613e2e57613e2d613dd9565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613e95602b8361335a565b9150613ea082613e39565b604082019050919050565b60006020820190508181036000830152613ec481613e88565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613f27602f8361335a565b9150613f3282613ecb565b604082019050919050565b60006020820190508181036000830152613f5681613f1a565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613fb9602c8361335a565b9150613fc482613f5d565b604082019050919050565b60006020820190508181036000830152613fe881613fac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b60006140348261334f565b61403e818561401e565b935061404e81856020860161336b565b80840191505092915050565b60006140668284614029565b915081905092915050565b60008190508160005260206000209050919050565b6000815461409381613b69565b61409d818661401e565b945060018216600081146140b857600181146140c9576140fc565b60ff198316865281860193506140fc565b6140d285614071565b60005b838110156140f4578154818901526001820191506020810190506140d5565b838801955050505b50505092915050565b60006141118284614086565b915081905092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061415260188361335a565b915061415d8261411c565b602082019050919050565b6000602082019050818103600083015261418181614145565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006141e460298361335a565b91506141ef82614188565b604082019050919050565b60006020820190508181036000830152614213816141d7565b9050919050565b7f4e6f6e6365203a20496e76616c6964204e6f6e63650000000000000000000000600082015250565b600061425060158361335a565b915061425b8261421a565b602082019050919050565b6000602082019050818103600083015261427f81614243565b9050919050565b600080fd5b600060ff82169050919050565b6142a18161428b565b81146142ac57600080fd5b50565b6000813590506142be81614298565b92915050565b6000608082840312156142da576142d9614286565b5b6142e46080613752565b905060006142f4848285016142af565b6000830152506020614308848285016135d3565b602083015250604061431c848285016135d3565b60408301525060606143308482850161342b565b60608301525092915050565b6000608082840312156143525761435161328a565b5b6000614360848285016142c4565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006143c560268361335a565b91506143d082614369565b604082019050919050565b600060208201905081810360008301526143f4816143b8565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061445760258361335a565b9150614462826143fb565b604082019050919050565b600060208201905081810360008301526144868161444a565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006144e960248361335a565b91506144f48261448d565b604082019050919050565b60006020820190508181036000830152614518816144dc565b9050919050565b600061452a8261340a565b91506145358361340a565b92508282101561454857614547613d50565b5b828203905092915050565b600061455e8261340a565b91506145698361340a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561459e5761459d613d50565b5b828201905092915050565b6000819050919050565b60006145ce6145c96145c48461346d565b6145a9565b61346d565b9050919050565b60006145e0826145b3565b9050919050565b60006145f2826145d5565b9050919050565b60008160601b9050919050565b6000614611826145f9565b9050919050565b600061462382614606565b9050919050565b61463b614636826145e7565b614618565b82525050565b61465261464d8261348d565b614618565b82525050565b6000819050919050565b61467361466e8261340a565b614658565b82525050565b6000614685828761462a565b6014820191506146958286614641565b6014820191506146a58285614029565b91506146b18284614662565b60208201915081905095945050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006146f9601c8361401e565b9150614704826146c3565b601c82019050919050565b6000819050919050565b61472a614725826135b2565b61470f565b82525050565b600061473b826146ec565b91506147478284614719565b60208201915081905092915050565b61475f8161428b565b82525050565b600060808201905061477a6000830187613615565b6147876020830186614756565b6147946040830185613615565b6147a16060830184613615565b95945050505050565b7f4f776e6572207369676e20766572696669636174696f6e206661696c65640000600082015250565b60006147e0601e8361335a565b91506147eb826147aa565b602082019050919050565b6000602082019050818103600083015261480f816147d3565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061484c60208361335a565b915061485782614816565b602082019050919050565b6000602082019050818103600083015261487b8161483f565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006148b8601c8361335a565b91506148c382614882565b602082019050919050565b600060208201905081810360008301526148e7816148ab565b9050919050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b600061494a602e8361335a565b9150614955826148ee565b604082019050919050565b600060208201905081810360008301526149798161493d565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006149dc602a8361335a565b91506149e782614980565b604082019050919050565b60006020820190508181036000830152614a0b816149cf565b9050919050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b6000614a48601b8361335a565b9150614a5382614a12565b602082019050919050565b60006020820190508181036000830152614a7781614a3b565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614ab460198361335a565b9150614abf82614a7e565b602082019050919050565b60006020820190508181036000830152614ae381614aa7565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614b4660328361335a565b9150614b5182614aea565b604082019050919050565b60006020820190508181036000830152614b7581614b39565b9050919050565b6000614b888285614029565b9150614b948284614029565b91508190509392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614bd660178361401e565b9150614be182614ba0565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614c2260118361401e565b9150614c2d82614bec565b601182019050919050565b6000614c4382614bc9565b9150614c4f8285614029565b9150614c5a82614c15565b9150614c668284614029565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000614c9982614c72565b614ca38185614c7d565b9350614cb381856020860161336b565b614cbc8161339e565b840191505092915050565b6000608082019050614cdc600083018761349f565b614ce9602083018661349f565b614cf66040830185613535565b8181036060830152614d088184614c8e565b905095945050505050565b600081519050614d22816132c0565b92915050565b600060208284031215614d3e57614d3d61328a565b5b6000614d4c84828501614d13565b91505092915050565b6000614d608261340a565b915060008203614d7357614d72613d50565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614db460208361335a565b9150614dbf82614d7e565b602082019050919050565b60006020820190508181036000830152614de381614da7565b9050919050565b6000614df58261340a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614e2757614e26613d50565b5b600182019050919050565b6000614e3d8261340a565b9150614e488361340a565b925082614e5857614e57613dd9565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122040d4c8bd4dea34edefbe5a2e149cb18321c8fbac8b6e58cb9a075431d5b7296a64736f6c634300080e0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000f4e465450415354454c73696e676c650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4e465450415354454c5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c806355f804b31161010457806395d89b41116100a2578063c87b56dd11610071578063c87b56dd14610579578063d547741f146105a9578063e985e9c5146105c5578063f2fde38b146105f5576101cf565b806395d89b4114610505578063a217fddf14610523578063a22cb46514610541578063b88d4fde1461055d576101cf565b806370a08231116100de57806370a0823114610457578063831936ef146104875780638da5cb5b146104b757806391d14854146104d5576101cf565b806355f804b3146103d95780636352211e146104095780636c0360eb14610439576101cf565b80632a55205a1161017157806336568abe1161014b57806336568abe1461035557806342842e0e1461037157806342966c681461038d5780634f6ccce7146103a9576101cf565b80632a55205a146102d85780632f2ff15d146103095780632f745c5914610325576101cf565b8063095ea7b3116101ad578063095ea7b31461025257806318160ddd1461026e57806323b872dd1461028c578063248a9ca3146102a8576101cf565b806301ffc9a7146101d457806306fdde0314610204578063081812fc14610222575b600080fd5b6101ee60048036038101906101e991906132ec565b610625565b6040516101fb9190613334565b60405180910390f35b61020c610637565b60405161021991906133e8565b60405180910390f35b61023c60048036038101906102379190613440565b6106c9565b60405161024991906134ae565b60405180910390f35b61026c600480360381019061026791906134f5565b61070f565b005b610276610826565b6040516102839190613544565b60405180910390f35b6102a660048036038101906102a1919061355f565b610833565b005b6102c260048036038101906102bd91906135e8565b610893565b6040516102cf9190613624565b60405180910390f35b6102f260048036038101906102ed919061363f565b6108b3565b60405161030092919061367f565b60405180910390f35b610323600480360381019061031e91906136a8565b6109c1565b005b61033f600480360381019061033a91906134f5565b6109e2565b60405161034c9190613544565b60405180910390f35b61036f600480360381019061036a91906136a8565b610a87565b005b61038b6004803603810190610386919061355f565b610b0a565b005b6103a760048036038101906103a29190613440565b610b2a565b005b6103c360048036038101906103be9190613440565b610b86565b6040516103d09190613544565b60405180910390f35b6103f360048036038101906103ee919061381d565b610bf7565b6040516104009190613334565b60405180910390f35b610423600480360381019061041e9190613440565b610c9d565b60405161043091906134ae565b60405180910390f35b610441610d4e565b60405161044e91906133e8565b60405180910390f35b610471600480360381019061046c9190613866565b610d5d565b60405161047e9190613544565b60405180910390f35b6104a1600480360381019061049c91906138fb565b610e14565b6040516104ae9190613544565b60405180910390f35b6104bf610f10565b6040516104cc91906134ae565b60405180910390f35b6104ef60048036038101906104ea91906136a8565b610f36565b6040516104fc9190613334565b60405180910390f35b61050d610fa1565b60405161051a91906133e8565b60405180910390f35b61052b611033565b6040516105389190613624565b60405180910390f35b61055b60048036038101906105569190613996565b61103a565b005b61057760048036038101906105729190613a77565b611050565b005b610593600480360381019061058e9190613440565b6110b2565b6040516105a091906133e8565b60405180910390f35b6105c360048036038101906105be91906136a8565b6110c4565b005b6105df60048036038101906105da9190613afa565b6110e5565b6040516105ec9190613334565b60405180910390f35b61060f600480360381019061060a9190613866565b611179565b60405161061c9190613334565b60405180910390f35b600061063082611367565b9050919050565b60606000805461064690613b69565b80601f016020809104026020016040519081016040528092919081815260200182805461067290613b69565b80156106bf5780601f10610694576101008083540402835291602001916106bf565b820191906000526020600020905b8154815290600101906020018083116106a257829003601f168201915b5050505050905090565b60006106d4826113e1565b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061071a82610c9d565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361078a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078190613c0c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166107a961142c565b73ffffffffffffffffffffffffffffffffffffffff1614806107d857506107d7816107d261142c565b6110e5565b5b610817576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161080e90613c9e565b60405180910390fd5b6108218383611434565b505050565b6000600880549050905090565b61084461083e61142c565b826114ed565b610883576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087a90613d30565b60405180910390fd5b61088e838383611582565b505050565b6000600c6000838152602001908152602001600020600101549050919050565b6000806000600b60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff1681525050905060006109766117e8565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866109a29190613d7f565b6109ac9190613e08565b90508160000151819350935050509250929050565b6109ca82610893565b6109d3816117f2565b6109dd8383611806565b505050565b60006109ed83610d5d565b8210610a2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a2590613eab565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610a8f61142c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610afc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af390613f3d565b60405180910390fd5b610b0682826118e7565b5050565b610b2583838360405180602001604052806000815250611050565b505050565b610b3b610b3561142c565b826114ed565b610b7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7190613d30565b60405180910390fd5b610b83816119c9565b50565b6000610b90610826565b8210610bd1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc890613fcf565b60405180910390fd5b60088281548110610be557610be4613fef565b5b90600052602060002001549050919050565b60007f41444d494e5f524f4c4500000000000000000000000000000000000000000000610c23816117f2565b82604051610c31919061405a565b6040518091039020600e604051610c489190614105565b60405180910390207fc41b7cb64e5be01af4afc2641afc861432136270f4206b7773f229b658b9669960405160405180910390a382600e9080519060200190610c9292919061319d565b506001915050919050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3c90614168565b60405180910390fd5b80915050919050565b6060610d586119de565b905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc4906141fa565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000601060008360600135815260200190815260200160002060009054906101000a900460ff1615610e7b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7290614266565b60405180910390fd5b6001601060008460600135815260200190815260200160002060006101000a81548160ff021916908315150217905550610ec6843384803603810190610ec1919061433c565b611a70565b610ed0600d611bbb565b9050610ee3610edd61142c565b82611bc9565b610eed8185611da2565b610eff81610ef961142c565b85611e16565b610f09600d611351565b9392505050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b606060018054610fb090613b69565b80601f0160208091040260200160405190810160405280929190818152602001828054610fdc90613b69565b80156110295780601f10610ffe57610100808354040283529160200191611029565b820191906000526020600020905b81548152906001019060200180831161100c57829003601f168201915b5050505050905090565b6000801b81565b61104c61104561142c565b8383611fbd565b5050565b61106161105b61142c565b836114ed565b6110a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109790613d30565b60405180910390fd5b6110ac84848484612129565b50505050565b60606110bd82612185565b9050919050565b6110cd82610893565b6110d6816117f2565b6110e083836118e7565b505050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60007f41444d494e5f524f4c45000000000000000000000000000000000000000000006111a5816117f2565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611214576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161120b906143db565b60405180910390fd5b6112607f41444d494e5f524f4c4500000000000000000000000000000000000000000000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166118e7565b8273ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a382600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506113477f41444d494e5f524f4c450000000000000000000000000000000000000000000084612297565b6001915050919050565b6001816000016000828254019250508190555050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806113da57506113d9826122a5565b5b9050919050565b6113ea8161231f565b611429576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142090614168565b60405180910390fd5b50565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166114a783610c9d565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806114f983610c9d565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061153b575061153a81856110e5565b5b8061157957508373ffffffffffffffffffffffffffffffffffffffff16611561846106c9565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166115a282610c9d565b73ffffffffffffffffffffffffffffffffffffffff16146115f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ef9061446d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611667576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165e906144ff565b60405180910390fd5b61167283838361238b565b61167d600082611434565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546116cd919061451f565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546117249190614553565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46117e383838361239b565b505050565b60006103e8905090565b611803816117fe61142c565b6123a0565b50565b6118108282610f36565b6118e3576001600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061188861142c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6118f18282610f36565b156119c5576000600c600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061196a61142c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6119d28161243d565b6119db8161249c565b50565b6060600e80546119ed90613b69565b80601f0160208091040260200160405190810160405280929190818152602001828054611a1990613b69565b8015611a665780601f10611a3b57610100808354040283529160200191611a66565b820191906000526020600020905b815481529060010190602001808311611a4957829003601f168201915b5050505050905090565b60003083858460600151604051602001611a8d9493929190614679565b604051602081830303815290604052805190602001209050600181604051602001611ab89190614730565b6040516020818303038152906040528051906020012083600001518460200151856040015160405160008152602001604052604051611afa9493929190614765565b6020604051602081039080840390855afa158015611b1c573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611bb5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bac906147f6565b60405180910390fd5b50505050565b600081600001549050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611c38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2f90614862565b60405180910390fd5b611c418161231f565b15611c81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c78906148ce565b60405180910390fd5b611c8d6000838361238b565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611cdd9190614553565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611d9e6000838361239b565b5050565b611dab8261231f565b611dea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de190614960565b60405180910390fd5b80600a60008481526020019081526020016000209080519060200190611e1192919061319d565b505050565b611e1e6117e8565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115611e7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e73906149f2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ee290614a5e565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600b600085815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361202b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202290614aca565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161211c9190613334565b60405180910390a3505050565b612134848484611582565b612140848484846124ef565b61217f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217690614b5c565b60405180910390fd5b50505050565b6060612190826113e1565b6000600a600084815260200190815260200160002080546121b090613b69565b80601f01602080910402602001604051908101604052809291908181526020018280546121dc90613b69565b80156122295780601f106121fe57610100808354040283529160200191612229565b820191906000526020600020905b81548152906001019060200180831161220c57829003601f168201915b50505050509050600061223a6119de565b9050600081510361224f578192505050612292565b60008251111561228457808260405160200161226c929190614b7c565b60405160208183030381529060405292505050612292565b61228d84612676565b925050505b919050565b6122a18282611806565b5050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123185750612317826126de565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b612396838383612758565b505050565b505050565b6123aa8282610f36565b612439576123cf8173ffffffffffffffffffffffffffffffffffffffff16601461286a565b6123dd8360001c602061286a565b6040516020016123ee929190614c38565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243091906133e8565b60405180910390fd5b5050565b600b6000828152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556000820160146101000a8154906bffffffffffffffffffffffff0219169055505050565b6124a581612aa6565b6000600a600083815260200190815260200160002080546124c590613b69565b9050146124ec57600a600082815260200190815260200160002060006124eb9190613223565b5b50565b60006125108473ffffffffffffffffffffffffffffffffffffffff16612bc3565b15612669578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261253961142c565b8786866040518563ffffffff1660e01b815260040161255b9493929190614cc7565b6020604051808303816000875af192505050801561259757506040513d601f19601f820116820180604052508101906125949190614d28565b60015b612619573d80600081146125c7576040519150601f19603f3d011682016040523d82523d6000602084013e6125cc565b606091505b506000815103612611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161260890614b5c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061266e565b600190505b949350505050565b6060612681826113e1565b600061268b6119de565b905060008151116126ab57604051806020016040528060008152506126d6565b806126b584612be6565b6040516020016126c6929190614b7c565b6040516020818303038152906040525b915050919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612751575061275082612d46565b5b9050919050565b612763838383612e28565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036127a5576127a081612e2d565b6127e4565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146127e3576127e28382612e76565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036128265761282181612fe3565b612865565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146128645761286382826130b4565b5b5b505050565b60606000600283600261287d9190613d7f565b6128879190614553565b67ffffffffffffffff8111156128a05761289f6136f2565b5b6040519080825280601f01601f1916602001820160405280156128d25781602001600182028036833780820191505090505b5090507f30000000000000000000000000000000000000000000000000000000000000008160008151811061290a57612909613fef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811061296e5761296d613fef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600060018460026129ae9190613d7f565b6129b89190614553565b90505b6001811115612a58577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106129fa576129f9613fef565b5b1a60f81b828281518110612a1157612a10613fef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080612a5190614d55565b90506129bb565b5060008414612a9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9390614dca565b60405180910390fd5b8091505092915050565b6000612ab182610c9d565b9050612abf8160008461238b565b612aca600083611434565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612b1a919061451f565b925050819055506002600083815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905581600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612bbf8160008461239b565b5050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606060008203612c2d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d41565b600082905060005b60008214612c5f578080612c4890614dea565b915050600a82612c589190613e08565b9150612c35565b60008167ffffffffffffffff811115612c7b57612c7a6136f2565b5b6040519080825280601f01601f191660200182016040528015612cad5781602001600182028036833780820191505090505b5090505b60008514612d3a57600182612cc6919061451f565b9150600a85612cd59190614e32565b6030612ce19190614553565b60f81b818381518110612cf757612cf6613fef565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d339190613e08565b9450612cb1565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612e1157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612e215750612e2082613133565b5b9050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001612e8384610d5d565b612e8d919061451f565b9050600060076000848152602001908152602001600020549050818114612f72576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050612ff7919061451f565b905060006009600084815260200190815260200160002054905060006008838154811061302757613026613fef565b5b90600052602060002001549050806008838154811061304957613048613fef565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061309857613097614e63565b5b6001900381819060005260206000200160009055905550505050565b60006130bf83610d5d565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b8280546131a990613b69565b90600052602060002090601f0160209004810192826131cb5760008555613212565b82601f106131e457805160ff1916838001178555613212565b82800160010185558215613212579182015b828111156132115782518255916020019190600101906131f6565b5b50905061321f9190613263565b5090565b50805461322f90613b69565b6000825580601f106132415750613260565b601f01602090049060005260206000209081019061325f9190613263565b5b50565b5b8082111561327c576000816000905550600101613264565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6132c981613294565b81146132d457600080fd5b50565b6000813590506132e6816132c0565b92915050565b6000602082840312156133025761330161328a565b5b6000613310848285016132d7565b91505092915050565b60008115159050919050565b61332e81613319565b82525050565b60006020820190506133496000830184613325565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561338957808201518184015260208101905061336e565b83811115613398576000848401525b50505050565b6000601f19601f8301169050919050565b60006133ba8261334f565b6133c4818561335a565b93506133d481856020860161336b565b6133dd8161339e565b840191505092915050565b6000602082019050818103600083015261340281846133af565b905092915050565b6000819050919050565b61341d8161340a565b811461342857600080fd5b50565b60008135905061343a81613414565b92915050565b6000602082840312156134565761345561328a565b5b60006134648482850161342b565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006134988261346d565b9050919050565b6134a88161348d565b82525050565b60006020820190506134c3600083018461349f565b92915050565b6134d28161348d565b81146134dd57600080fd5b50565b6000813590506134ef816134c9565b92915050565b6000806040838503121561350c5761350b61328a565b5b600061351a858286016134e0565b925050602061352b8582860161342b565b9150509250929050565b61353e8161340a565b82525050565b60006020820190506135596000830184613535565b92915050565b6000806000606084860312156135785761357761328a565b5b6000613586868287016134e0565b9350506020613597868287016134e0565b92505060406135a88682870161342b565b9150509250925092565b6000819050919050565b6135c5816135b2565b81146135d057600080fd5b50565b6000813590506135e2816135bc565b92915050565b6000602082840312156135fe576135fd61328a565b5b600061360c848285016135d3565b91505092915050565b61361e816135b2565b82525050565b60006020820190506136396000830184613615565b92915050565b600080604083850312156136565761365561328a565b5b60006136648582860161342b565b92505060206136758582860161342b565b9150509250929050565b6000604082019050613694600083018561349f565b6136a16020830184613535565b9392505050565b600080604083850312156136bf576136be61328a565b5b60006136cd858286016135d3565b92505060206136de858286016134e0565b9150509250929050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61372a8261339e565b810181811067ffffffffffffffff82111715613749576137486136f2565b5b80604052505050565b600061375c613280565b90506137688282613721565b919050565b600067ffffffffffffffff821115613788576137876136f2565b5b6137918261339e565b9050602081019050919050565b82818337600083830152505050565b60006137c06137bb8461376d565b613752565b9050828152602081018484840111156137dc576137db6136ed565b5b6137e784828561379e565b509392505050565b600082601f830112613804576138036136e8565b5b81356138148482602086016137ad565b91505092915050565b6000602082840312156138335761383261328a565b5b600082013567ffffffffffffffff8111156138515761385061328f565b5b61385d848285016137ef565b91505092915050565b60006020828403121561387c5761387b61328a565b5b600061388a848285016134e0565b91505092915050565b60006bffffffffffffffffffffffff82169050919050565b6138b481613893565b81146138bf57600080fd5b50565b6000813590506138d1816138ab565b92915050565b600080fd5b6000608082840312156138f2576138f16138d7565b5b81905092915050565b600080600060c084860312156139145761391361328a565b5b600084013567ffffffffffffffff8111156139325761393161328f565b5b61393e868287016137ef565b935050602061394f868287016138c2565b9250506040613960868287016138dc565b9150509250925092565b61397381613319565b811461397e57600080fd5b50565b6000813590506139908161396a565b92915050565b600080604083850312156139ad576139ac61328a565b5b60006139bb858286016134e0565b92505060206139cc85828601613981565b9150509250929050565b600067ffffffffffffffff8211156139f1576139f06136f2565b5b6139fa8261339e565b9050602081019050919050565b6000613a1a613a15846139d6565b613752565b905082815260208101848484011115613a3657613a356136ed565b5b613a4184828561379e565b509392505050565b600082601f830112613a5e57613a5d6136e8565b5b8135613a6e848260208601613a07565b91505092915050565b60008060008060808587031215613a9157613a9061328a565b5b6000613a9f878288016134e0565b9450506020613ab0878288016134e0565b9350506040613ac18782880161342b565b925050606085013567ffffffffffffffff811115613ae257613ae161328f565b5b613aee87828801613a49565b91505092959194509250565b60008060408385031215613b1157613b1061328a565b5b6000613b1f858286016134e0565b9250506020613b30858286016134e0565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613b8157607f821691505b602082108103613b9457613b93613b3a565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000613bf660218361335a565b9150613c0182613b9a565b604082019050919050565b60006020820190508181036000830152613c2581613be9565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60008201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c0000602082015250565b6000613c88603e8361335a565b9150613c9382613c2c565b604082019050919050565b60006020820190508181036000830152613cb781613c7b565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560008201527f72206e6f7220617070726f766564000000000000000000000000000000000000602082015250565b6000613d1a602e8361335a565b9150613d2582613cbe565b604082019050919050565b60006020820190508181036000830152613d4981613d0d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613d8a8261340a565b9150613d958361340a565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613dce57613dcd613d50565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000613e138261340a565b9150613e1e8361340a565b925082613e2e57613e2d613dd9565b5b828204905092915050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b6000613e95602b8361335a565b9150613ea082613e39565b604082019050919050565b60006020820190508181036000830152613ec481613e88565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000613f27602f8361335a565b9150613f3282613ecb565b604082019050919050565b60006020820190508181036000830152613f5681613f1a565b9050919050565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b6000613fb9602c8361335a565b9150613fc482613f5d565b604082019050919050565b60006020820190508181036000830152613fe881613fac565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081905092915050565b60006140348261334f565b61403e818561401e565b935061404e81856020860161336b565b80840191505092915050565b60006140668284614029565b915081905092915050565b60008190508160005260206000209050919050565b6000815461409381613b69565b61409d818661401e565b945060018216600081146140b857600181146140c9576140fc565b60ff198316865281860193506140fc565b6140d285614071565b60005b838110156140f4578154818901526001820191506020810190506140d5565b838801955050505b50505092915050565b60006141118284614086565b915081905092915050565b7f4552433732313a20696e76616c696420746f6b656e2049440000000000000000600082015250565b600061415260188361335a565b915061415d8261411c565b602082019050919050565b6000602082019050818103600083015261418181614145565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f74206120766160008201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b60006141e460298361335a565b91506141ef82614188565b604082019050919050565b60006020820190508181036000830152614213816141d7565b9050919050565b7f4e6f6e6365203a20496e76616c6964204e6f6e63650000000000000000000000600082015250565b600061425060158361335a565b915061425b8261421a565b602082019050919050565b6000602082019050818103600083015261427f81614243565b9050919050565b600080fd5b600060ff82169050919050565b6142a18161428b565b81146142ac57600080fd5b50565b6000813590506142be81614298565b92915050565b6000608082840312156142da576142d9614286565b5b6142e46080613752565b905060006142f4848285016142af565b6000830152506020614308848285016135d3565b602083015250604061431c848285016135d3565b60408301525060606143308482850161342b565b60608301525092915050565b6000608082840312156143525761435161328a565b5b6000614360848285016142c4565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006143c560268361335a565b91506143d082614369565b604082019050919050565b600060208201905081810360008301526143f4816143b8565b9050919050565b7f4552433732313a207472616e736665722066726f6d20696e636f72726563742060008201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b600061445760258361335a565b9150614462826143fb565b604082019050919050565b600060208201905081810360008301526144868161444a565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b60006144e960248361335a565b91506144f48261448d565b604082019050919050565b60006020820190508181036000830152614518816144dc565b9050919050565b600061452a8261340a565b91506145358361340a565b92508282101561454857614547613d50565b5b828203905092915050565b600061455e8261340a565b91506145698361340a565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561459e5761459d613d50565b5b828201905092915050565b6000819050919050565b60006145ce6145c96145c48461346d565b6145a9565b61346d565b9050919050565b60006145e0826145b3565b9050919050565b60006145f2826145d5565b9050919050565b60008160601b9050919050565b6000614611826145f9565b9050919050565b600061462382614606565b9050919050565b61463b614636826145e7565b614618565b82525050565b61465261464d8261348d565b614618565b82525050565b6000819050919050565b61467361466e8261340a565b614658565b82525050565b6000614685828761462a565b6014820191506146958286614641565b6014820191506146a58285614029565b91506146b18284614662565b60208201915081905095945050505050565b7f19457468657265756d205369676e6564204d6573736167653a0a333200000000600082015250565b60006146f9601c8361401e565b9150614704826146c3565b601c82019050919050565b6000819050919050565b61472a614725826135b2565b61470f565b82525050565b600061473b826146ec565b91506147478284614719565b60208201915081905092915050565b61475f8161428b565b82525050565b600060808201905061477a6000830187613615565b6147876020830186614756565b6147946040830185613615565b6147a16060830184613615565b95945050505050565b7f4f776e6572207369676e20766572696669636174696f6e206661696c65640000600082015250565b60006147e0601e8361335a565b91506147eb826147aa565b602082019050919050565b6000602082019050818103600083015261480f816147d3565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b600061484c60208361335a565b915061485782614816565b602082019050919050565b6000602082019050818103600083015261487b8161483f565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b60006148b8601c8361335a565b91506148c382614882565b602082019050919050565b600060208201905081810360008301526148e7816148ab565b9050919050565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b600061494a602e8361335a565b9150614955826148ee565b604082019050919050565b600060208201905081810360008301526149798161493d565b9050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006149dc602a8361335a565b91506149e782614980565b604082019050919050565b60006020820190508181036000830152614a0b816149cf565b9050919050565b7f455243323938313a20496e76616c696420706172616d65746572730000000000600082015250565b6000614a48601b8361335a565b9150614a5382614a12565b602082019050919050565b60006020820190508181036000830152614a7781614a3b565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000614ab460198361335a565b9150614abf82614a7e565b602082019050919050565b60006020820190508181036000830152614ae381614aa7565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000614b4660328361335a565b9150614b5182614aea565b604082019050919050565b60006020820190508181036000830152614b7581614b39565b9050919050565b6000614b888285614029565b9150614b948284614029565b91508190509392505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000614bd660178361401e565b9150614be182614ba0565b601782019050919050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b6000614c2260118361401e565b9150614c2d82614bec565b601182019050919050565b6000614c4382614bc9565b9150614c4f8285614029565b9150614c5a82614c15565b9150614c668284614029565b91508190509392505050565b600081519050919050565b600082825260208201905092915050565b6000614c9982614c72565b614ca38185614c7d565b9350614cb381856020860161336b565b614cbc8161339e565b840191505092915050565b6000608082019050614cdc600083018761349f565b614ce9602083018661349f565b614cf66040830185613535565b8181036060830152614d088184614c8e565b905095945050505050565b600081519050614d22816132c0565b92915050565b600060208284031215614d3e57614d3d61328a565b5b6000614d4c84828501614d13565b91505092915050565b6000614d608261340a565b915060008203614d7357614d72613d50565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b6000614db460208361335a565b9150614dbf82614d7e565b602082019050919050565b60006020820190508181036000830152614de381614da7565b9050919050565b6000614df58261340a565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614e2757614e26613d50565b5b600182019050919050565b6000614e3d8261340a565b9150614e488361340a565b925082614e5857614e57613dd9565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea264697066735822122040d4c8bd4dea34edefbe5a2e149cb18321c8fbac8b6e58cb9a075431d5b7296a64736f6c634300080e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000000f4e465450415354454c73696e676c650000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a4e465450415354454c5300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066732f000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : name (string): NFTPASTELsingle
Arg [1] : symbol (string): NFTPASTELS
Arg [2] : _baseTokenURI (string): https://gateway.pinata.cloud/ipfs/
-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [4] : 4e465450415354454c73696e676c650000000000000000000000000000000000
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000a
Arg [6] : 4e465450415354454c5300000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000022
Arg [8] : 68747470733a2f2f676174657761792e70696e6174612e636c6f75642f697066
Arg [9] : 732f000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.