ERC-721
Overview
Max Total Supply
100 AMBUSHxBMTee
Holders
56
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 AMBUSHxBMTeeLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
LegitimatePhysicalNFTv3
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-05-03 */ // File: @openzeppelin/contracts/access/IAccessControl.sol // 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; } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File: @openzeppelin/contracts/utils/Context.sol // 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; } } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.5.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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol // 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); } // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // 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); } // File: @openzeppelin/contracts/interfaces/IERC2981.sol // OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.0; /** * @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); } // File: @openzeppelin/contracts/utils/introspection/ERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @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; } } // File: @openzeppelin/contracts/access/AccessControl.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @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()); } } } // File: @openzeppelin/contracts/token/common/ERC2981.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/common/ERC2981.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice"); require(receiver != address(0), "ERC2981: invalid receiver"); _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `tokenId` must be already minted. * - `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]; } } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @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 be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev 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); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @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); } // File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; /** * @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); } // File: @openzeppelin/contracts/token/ERC721/ERC721.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be 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 owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _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: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || 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 a {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 a {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 Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @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 {} } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Royalty.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/ERC721Royalty.sol) pragma solidity ^0.8.0; /** * @dev Extension of ERC721 with the ERC2981 NFT Royalty Standard, a standardized way to retrieve royalty payment * information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. * * _Available since v4.5._ */ abstract contract ERC721Royalty is ERC2981, ERC721 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721, ERC2981) returns (bool) { return super.supportsInterface(interfaceId); } /** * @dev See {ERC721-_burn}. This override additionally clears the royalty information for the token. */ function _burn(uint256 tokenId) internal virtual override { super._burn(tokenId); _resetTokenRoyalty(tokenId); } } // File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol) pragma solidity ^0.8.0; /** * @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(); } } // File: contracts/LegitimateLockedNFTv3.sol pragma solidity ^0.8.2; contract LegitimatePhysicalNFTv3 is ERC721Royalty, ERC721Enumerable, AccessControl { using Strings for uint256; // ROLES // role for server API to allow users to claim and unlock NFTs bytes32 public constant API_DELEGATE_ROLE = keccak256("API_DELEGATE_USER"); // role for partners to mint NFTs, manage metadata, set royalties, and manage whitelisted marketplaces bytes32 public constant NFT_MANAGER_ROLE = keccak256("NFT_MANAGER_USER"); // role for managing service status of the contract bytes32 public constant SERVICE_STATUS_ROLE = keccak256("SERVICE_STATUS_MANAGER_USER"); // role for recovery of NFTs if physical item is returned // @IMPORTANT: Comment out the line below if token recovery is not needed bytes32 public constant TOKEN_RECOVERY_ROLE = keccak256("TOKEN_RECOVERY_USER"); // stores the locked state for each NFT mapping(uint256 => bool) tokenLock; // METADATA string baseURI = "https://metadata.legitimate.tech/example"; // service status of this Physical NFT collection // controls whether claiming functionality is still enabled // and whether transferred NFTs still lock and are unlockable by LGT // can also be used to determine whether exclusive digital content is still active bool public isServiceActive = true; constructor() ERC721("LGTv3AMBUSHBrightMomentsTee", "AMBUSHxBMTee") { // contract deployer is the admin by default _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); // contract deployer can be granted some initial roles to start with _setupRole(API_DELEGATE_ROLE, msg.sender); _setupRole(NFT_MANAGER_ROLE, msg.sender); _setupRole(SERVICE_STATUS_ROLE, msg.sender); // set default admin as the manager of claim and unlock delegate roles _setRoleAdmin(API_DELEGATE_ROLE, DEFAULT_ADMIN_ROLE); _setRoleAdmin(NFT_MANAGER_ROLE, DEFAULT_ADMIN_ROLE); _setRoleAdmin(SERVICE_STATUS_ROLE, DEFAULT_ADMIN_ROLE); // @IMPORTANT: Comment out the line below if token recovery is not needed _setRoleAdmin(TOKEN_RECOVERY_ROLE, DEFAULT_ADMIN_ROLE); } function _baseURI() internal view override returns (string memory) { return baseURI; } function setBaseURI(string memory newURI) public onlyNftManager { baseURI = newURI; } function setServiceStatus(bool status) public onlyServiceStatusManager { isServiceActive = status; } function getServiceStatus() public view returns (bool) { return isServiceActive; } // IPFS folder or other HTTP server that holds NFT metadata in the form of // base uri = `https://ipfs.io/ipfs/<folder-hash>/` or whatever gateway we wish to use // folder contains files `1, 2, 3, ..., locked` metadata json files // could also be an AWS bucket or folder on some other HTTP server as well function tokenURI(uint256 tokenId) public view virtual override(ERC721) returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); // individual token metadata filename is just the numbered tokenId string memory baseTokenUri = string(abi.encodePacked(baseURI, "/", tokenId.toString())); // the contract shares a single locked metadata file, filename is `locked` if (tokenLock[tokenId]) { return string(abi.encodePacked(baseURI, "/locked")); } return baseTokenUri; } // ACCESS CONTROL modifier onlyAdmin() { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "Caller is not an admin"); _; } modifier onlyApiDelegate() { require(hasRole(API_DELEGATE_ROLE, msg.sender), "Caller does not have permission to perform claim or unlock"); _; } modifier onlyNftManager() { require(hasRole(NFT_MANAGER_ROLE, msg.sender), "Caller does not have permission to manage NFTs"); _; } modifier onlyServiceStatusManager() { require(hasRole(SERVICE_STATUS_ROLE, msg.sender), "Caller does not have permission to set the service status of this contract"); _; } // @IMPORTANT: Comment out the line below if token recovery is not needed modifier onlyTokenRecoveryUser() { require(hasRole(TOKEN_RECOVERY_ROLE, msg.sender), "Caller does not have permission to recover NFTs"); _; } // TOKENLOCK FUNCTIONS function _setTokenLock(uint256 tokenId, bool locked) internal { tokenLock[tokenId] = locked; } function setTokenLock(uint256 tokenId, bool locked) public onlyApiDelegate { _setTokenLock(tokenId, locked); } // READ TOKENLOCK STATE FUNCTIONS function _getTokenLock(uint256 tokenId) internal view returns (bool) { // if Legitimate is no longer servicing this collection, all NFTs become unlocked if (isServiceActive == false) { return false; } return tokenLock[tokenId]; } function getTokenLock(uint256 tokenId) public view returns (bool) { return _getTokenLock(tokenId); } // MINTING FUNCTIONS function mint(uint256 tokenId) public onlyNftManager { _safeMint(msg.sender, tokenId); } function mint(uint256 tokenId, address to) public onlyNftManager { _safeMint(to, tokenId); } function mint(uint256 tokenId, address to, address feeReceiver, uint96 feeNumerator) public onlyNftManager{ _safeMint(to, tokenId); _setTokenRoyalty(tokenId, feeReceiver, feeNumerator); } function batchMint(uint256 startTokenId, uint256 endTokenId, address to, bool locked) public onlyNftManager { for (uint256 i = startTokenId; i <= endTokenId; i++) { _safeMint(to, i); } // @todo: there's probably a more gas efficient way to do this, but this is fine for now if (locked == false) { for (uint256 i = startTokenId; i <= endTokenId; i++) { _setTokenLock(i, false); } } } // ROYALTY FUNCTIONS function setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) public onlyNftManager { _setTokenRoyalty(tokenId, receiver, feeNumerator); } function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyNftManager { _setDefaultRoyalty(receiver, feeNumerator); } function deleteDefaultRoyalty() public onlyNftManager{ _deleteDefaultRoyalty(); } function resetTokenRoyalty(uint256 tokenId) public onlyNftManager { _resetTokenRoyalty(tokenId); } // TOKEN RECOVERY FUNCTIONS // This allows the creator of physical items to process returns or exchanges // and recover the NFT so that it can be sent to the API delegate wallet and resold with the NFT. // The new owner can claim or activate again as if the item was brand new. // @IMPORTANT: Comment out the line below in if token recovery is not needed function recoverToken(uint256 tokenId) public onlyTokenRecoveryUser { _safeTransfer(ownerOf(tokenId), msg.sender, tokenId, ""); } // The following functions are overrides required by Solidity. function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) { super._beforeTokenTransfer(from, to, tokenId); } // This locking mechanism disencentivizes people from separately selling the NFT without the physical item // in order to unlock. The owner of the NFT will need to unlock with the params generated by the LGT tag // and verified by LGT's servers. Since the unlock is done by LGT, the transaction is gasless for end users // and the gas is paid by Legitimate as part of the ongoing service contract. // Exclusive content and other experiences can also be gated behind this lock mechanism as well. function _afterTokenTransfer(address from, address to, uint256 tokenId) override(ERC721) internal { super._afterTokenTransfer(from, to, tokenId); _setTokenLock(tokenId, true); } // @todo: is not gas optimized since _afterTokenTransfer sets lock = true and then this sets lock = false // This is used for end users to claim NFTs minted to our delegate wallet and makes the claim activation gasless for end users // the delegate wallet performing the claim functionality needs to own the NFT // we check the ownership information on our API service used by Tap function claim(address to, uint256 tokenId) public onlyApiDelegate { require(_isApprovedOrOwner(msg.sender, tokenId)); _transfer(msg.sender, to, tokenId); _setTokenLock(tokenId, false); } function supportsInterface(bytes4 interfaceId) public view override(ERC721Enumerable, ERC721Royalty, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } function _burn(uint256 tokenId) internal virtual override(ERC721, ERC721Royalty) { super._burn(tokenId); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"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":"API_DELEGATE_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT_MANAGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SERVICE_STATUS_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_RECOVERY_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":[{"internalType":"uint256","name":"startTokenId","type":"uint256"},{"internalType":"uint256","name":"endTokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"locked","type":"bool"}],"name":"batchMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deleteDefaultRoyalty","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":[],"name":"getServiceStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTokenLock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"isServiceActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"address","name":"feeReceiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"resetTokenRoyalty","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":"newURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setServiceStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bool","name":"locked","type":"bool"}],"name":"setTokenLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setTokenRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"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"}]
Contract Creation Code
60e060405260286080818152906200301c60a03980516200002991600e91602090910190620002ad565b50600f805460ff191660011790553480156200004457600080fd5b50604080518082018252601b81527f4c47547633414d425553484272696768744d6f6d656e7473546565000000000060208083019182528351808501909452600c84526b414d4255534878424d54656560a01b908401528151919291620000ae91600291620002ad565b508051620000c4906003906020840190620002ad565b50620000d691506000905033620001ae565b620000f160008051602062002ffc83398151915233620001ae565b6200010c6000805160206200304483398151915233620001ae565b620001276000805160206200306483398151915233620001ae565b6200014360008051602062002ffc8339815191526000620001be565b6200015f600080516020620030448339815191526000620001be565b6200017b600080516020620030648339815191526000620001be565b620001a87f72d64eedbf63ef7644113b50b68861b1541fedf25e444f932c10247ea6a642496000620001be565b62000390565b620001ba828262000209565b5050565b6000828152600c6020526040808220600101805490849055905190918391839186917fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff9190a4505050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff16620001ba576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff19166001179055620002693390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620002bb9062000353565b90600052602060002090601f016020900481019282620002df57600085556200032a565b82601f10620002fa57805160ff19168380011785556200032a565b828001600101855582156200032a579182015b828111156200032a5782518255916020019190600101906200030d565b50620003389291506200033c565b5090565b5b808211156200033857600081556001016200033d565b600181811c908216806200036857607f821691505b602082108114156200038a57634e487b7160e01b600052602260045260246000fd5b50919050565b612c5c80620003a06000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c806370a0823111610151578063aad3ec96116100c3578063c87b56dd11610087578063c87b56dd14610587578063cb1a233d1461059a578063d547741f146105ad578063d8697598146105c0578063e68f3bd8146105e7578063e985e9c5146105fa57600080fd5b8063aad3ec961461051a578063b0b5babe1461052d578063b855afd614610540578063b88d4fde1461054d578063bacef21a1461056057600080fd5b806395d89b411161011557806395d89b41146104c95780639df042cc146104d1578063a0712d68146104e4578063a217fddf146104f7578063a22cb465146104ff578063aa1b103f1461051257600080fd5b806370a08231146104685780638a616bc01461047b5780638ad44fd51461048e57806391d14854146104a357806394bf804d146104b657600080fd5b8063248a9ca3116101ea57806342842e0e116101ae57806342842e0e146103e25780634f6ccce7146103f5578063541deaf11461040857806355f804b31461042f5780635944c753146104425780636352211e1461045557600080fd5b8063248a9ca3146103545780632a55205a146103775780632f2ff15d146103a95780632f745c59146103bc57806336568abe146103cf57600080fd5b80630d7ebbd9116102315780630d7ebbd9146102fe578063157a5ea91461030957806318160ddd1461031c578063229ef11d1461032e57806323b872dd1461034157600080fd5b806301ffc9a71461026e57806304634d8d1461029657806306fdde03146102ab578063081812fc146102c0578063095ea7b3146102eb575b600080fd5b61028161027c366004612573565b610636565b60405190151581526020015b60405180910390f35b6102a96102a43660046124f2565b610647565b005b6102b3610692565b60405161028d91906128cc565b6102d36102ce366004612537565b610724565b6040516001600160a01b03909116815260200161028d565b6102a96102f93660046124c8565b6107b9565b600f5460ff16610281565b6102a96103173660046126c4565b6108cf565b600a545b60405190815260200161028d565b6102a961033c3660046125f6565b61095c565b6102a961034f3660046123e6565b6109a5565b610320610362366004612537565b6000908152600c602052604090206001015490565b61038a6103853660046126a2565b6109d6565b604080516001600160a01b03909316835260208301919091520161028d565b6102a96103b7366004612550565b610a82565b6103206103ca3660046124c8565b610aa7565b6102a96103dd366004612550565b610b3d565b6102a96103f03660046123e6565b610bb7565b610320610403366004612537565b610bd2565b6103207fbb99d67b6918694de70ec0223c9220db4cab33527a6e578d6a9d1b7dd96c559481565b6102a961043d3660046125ad565b610c65565b6102a9610450366004612643565b610cac565b6102d3610463366004612537565b610ceb565b610320610476366004612398565b610d62565b6102a9610489366004612537565b610de9565b610320600080516020612be783398151915281565b6102816104b1366004612550565b610e31565b6102a96104c4366004612550565b610e5c565b6102b3610e9a565b6102a96104df36600461251c565b610ea9565b6102a96104f2366004612537565b610f59565b610320600081565b6102a961050d36600461249e565b610f97565b6102a9610fa2565b6102a96105283660046124c8565b610fe1565b61028161053b366004612537565b611050565b600f546102819060ff1681565b6102a961055b366004612422565b61105b565b6103207f7a87a5aed8ddea36a21c49f3a893ecbb03e497df92e2c7914fabedb76920df9581565b6102b3610595366004612537565b61108d565b6102a96105a8366004612537565b61117a565b6102a96105bb366004612550565b611219565b6103207f72d64eedbf63ef7644113b50b68861b1541fedf25e444f932c10247ea6a6424981565b6102a96105f536600461267f565b61123e565b6102816106083660046123b3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006106418261128e565b92915050565b61065f600080516020612be783398151915233610e31565b6106845760405162461bcd60e51b815260040161067b90612a17565b60405180910390fd5b61068e82826112b3565b5050565b6060600280546106a190612af8565b80601f01602080910402602001604051908101604052809291908181526020018280546106cd90612af8565b801561071a5780601f106106ef5761010080835404028352916020019161071a565b820191906000526020600020905b8154815290600101906020018083116106fd57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b031661079d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161067b565b506000908152600660205260409020546001600160a01b031690565b60006107c482610ceb565b9050806001600160a01b0316836001600160a01b031614156108325760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161067b565b336001600160a01b038216148061084e575061084e8133610608565b6108c05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161067b565b6108ca838361136d565b505050565b6108e7600080516020612be783398151915233610e31565b6109035760405162461bcd60e51b815260040161067b90612a17565b835b8381116109285761091683826113db565b8061092081612b33565b915050610905565b508061095657835b838111610954576109428160006113f5565b8061094c81612b33565b915050610930565b505b50505050565b610974600080516020612be783398151915233610e31565b6109905760405162461bcd60e51b815260040161067b90612a17565b61099a83856113db565b610956848383611415565b6109af33826114e0565b6109cb5760405162461bcd60e51b815260040161067b9061297c565b6108ca8383836115d7565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a4b5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a6a906001600160601b031687612a7f565b610a749190612a6b565b915196919550909350505050565b6000828152600c6020526040902060010154610a9d81611784565b6108ca838361178e565b6000610ab283610d62565b8210610b145760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161067b565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6001600160a01b0381163314610bad5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161067b565b61068e8282611814565b6108ca8383836040518060200160405280600081525061105b565b6000610bdd600a5490565b8210610c405760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161067b565b600a8281548110610c5357610c53612ba4565b90600052602060002001549050919050565b610c7d600080516020612be783398151915233610e31565b610c995760405162461bcd60e51b815260040161067b90612a17565b805161068e90600e906020840190612246565b610cc4600080516020612be783398151915233610e31565b610ce05760405162461bcd60e51b815260040161067b90612a17565b6108ca838383611415565b6000818152600460205260408120546001600160a01b0316806106415760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161067b565b60006001600160a01b038216610dcd5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161067b565b506001600160a01b031660009081526005602052604090205490565b610e01600080516020612be783398151915233610e31565b610e1d5760405162461bcd60e51b815260040161067b90612a17565b600090815260016020526040812055565b50565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610e74600080516020612be783398151915233610e31565b610e905760405162461bcd60e51b815260040161067b90612a17565b61068e81836113db565b6060600380546106a190612af8565b610ed37f7a87a5aed8ddea36a21c49f3a893ecbb03e497df92e2c7914fabedb76920df9533610e31565b610f465760405162461bcd60e51b815260206004820152604a6024820152600080516020612c0783398151915260448201527f746f2073657420746865207365727669636520737461747573206f66207468696064820152691cc818dbdb9d1c9858dd60b21b608482015260a40161067b565b600f805460ff1916911515919091179055565b610f71600080516020612be783398151915233610e31565b610f8d5760405162461bcd60e51b815260040161067b90612a17565b610e2e33826113db565b61068e33838361187b565b610fba600080516020612be783398151915233610e31565b610fd65760405162461bcd60e51b815260040161067b90612a17565b610fdf60008055565b565b61100b7fbb99d67b6918694de70ec0223c9220db4cab33527a6e578d6a9d1b7dd96c559433610e31565b6110275760405162461bcd60e51b815260040161067b90612931565b61103133826114e0565b61103a57600080fd5b6110453383836115d7565b61068e8160006113f5565b60006106418261194a565b61106533836114e0565b6110815760405162461bcd60e51b815260040161067b9061297c565b61095684848484611975565b6000818152600460205260409020546060906001600160a01b031661110c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161067b565b6000600e611119846119a8565b60405160200161112a9291906127e8565b60408051601f198184030181529181526000858152600d602052205490915060ff161561064157600e60405160200161116391906127c5565b604051602081830303815290604052915050919050565b6111a47f72d64eedbf63ef7644113b50b68861b1541fedf25e444f932c10247ea6a6424933610e31565b6111f65760405162461bcd60e51b815260206004820152602f6024820152600080516020612c0783398151915260448201526e746f207265636f766572204e46547360881b606482015260840161067b565b610e2e61120282610ceb565b338360405180602001604052806000815250611975565b6000828152600c602052604090206001015461123481611784565b6108ca8383611814565b6112687fbb99d67b6918694de70ec0223c9220db4cab33527a6e578d6a9d1b7dd96c559433610e31565b6112845760405162461bcd60e51b815260040161067b90612931565b61068e82826113f5565b60006001600160e01b03198216637965db0b60e01b1480610641575061064182611aa6565b6127106001600160601b03821611156112de5760405162461bcd60e51b815260040161067b906129cd565b6001600160a01b0382166113345760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161067b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113a282610ceb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61068e828260405180602001604052806000815250611acb565b6000918252600d6020526040909120805460ff1916911515919091179055565b6127106001600160601b03821611156114405760405162461bcd60e51b815260040161067b906129cd565b6001600160a01b0382166114965760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d65746572730000000000604482015260640161067b565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b6000818152600460205260408120546001600160a01b03166115595760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161067b565b600061156483610ceb565b9050806001600160a01b0316846001600160a01b031614806115ab57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b806115cf5750836001600160a01b03166115c484610724565b6001600160a01b0316145b949350505050565b826001600160a01b03166115ea82610ceb565b6001600160a01b03161461164e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161067b565b6001600160a01b0382166116b05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161067b565b6116bb838383611afe565b6116c660008261136d565b6001600160a01b03831660009081526005602052604081208054600192906116ef908490612a9e565b90915550506001600160a01b038216600090815260056020526040812080546001929061171d908490612a53565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a46108ca838383611b09565b610e2e8133611b14565b6117988282610e31565b61068e576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556117d03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61181e8282610e31565b1561068e576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b816001600160a01b0316836001600160a01b031614156118dd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161067b565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600f5460009060ff1661195f57506000919050565b506000908152600d602052604090205460ff1690565b6119808484846115d7565b61198c84848484611b78565b6109565760405162461bcd60e51b815260040161067b906128df565b6060816119cc5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119f657806119e081612b33565b91506119ef9050600a83612a6b565b91506119d0565b60008167ffffffffffffffff811115611a1157611a11612bba565b6040519080825280601f01601f191660200182016040528015611a3b576020820181803683370190505b5090505b84156115cf57611a50600183612a9e565b9150611a5d600a86612b4e565b611a68906030612a53565b60f81b818381518110611a7d57611a7d612ba4565b60200101906001600160f81b031916908160001a905350611a9f600a86612a6b565b9450611a3f565b60006001600160e01b0319821663780e9d6360e01b1480610641575061064182611c85565b611ad58383611c90565b611ae26000848484611b78565b6108ca5760405162461bcd60e51b815260040161067b906128df565b6108ca838383611de6565b6108ca8160016113f5565b611b1e8282610e31565b61068e57611b36816001600160a01b03166014611e9e565b611b41836020611e9e565b604051602001611b5292919061281a565b60408051601f198184030181529082905262461bcd60e51b825261067b916004016128cc565b60006001600160a01b0384163b15611c7a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611bbc90339089908890889060040161288f565b602060405180830381600087803b158015611bd657600080fd5b505af1925050508015611c06575060408051601f3d908101601f19168201909252611c0391810190612590565b60015b611c60573d808015611c34576040519150601f19603f3d011682016040523d82523d6000602084013e611c39565b606091505b508051611c585760405162461bcd60e51b815260040161067b906128df565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115cf565b506001949350505050565b600061064182612041565b6001600160a01b038216611ce65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161067b565b6000818152600460205260409020546001600160a01b031615611d4b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161067b565b611d5760008383611afe565b6001600160a01b0382166000908152600560205260408120805460019290611d80908490612a53565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461068e60008383611b09565b6001600160a01b038316611e4157611e3c81600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b611e64565b816001600160a01b0316836001600160a01b031614611e6457611e648382612081565b6001600160a01b038216611e7b576108ca8161211e565b826001600160a01b0316826001600160a01b0316146108ca576108ca82826121cd565b60606000611ead836002612a7f565b611eb8906002612a53565b67ffffffffffffffff811115611ed057611ed0612bba565b6040519080825280601f01601f191660200182016040528015611efa576020820181803683370190505b509050600360fc1b81600081518110611f1557611f15612ba4565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611f4457611f44612ba4565b60200101906001600160f81b031916908160001a9053506000611f68846002612a7f565b611f73906001612a53565b90505b6001811115611feb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611fa757611fa7612ba4565b1a60f81b828281518110611fbd57611fbd612ba4565b60200101906001600160f81b031916908160001a90535060049490941c93611fe481612ae1565b9050611f76565b50831561203a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161067b565b9392505050565b60006001600160e01b031982166380ac58cd60e01b148061207257506001600160e01b03198216635b5e139f60e01b145b80610641575061064182612211565b6000600161208e84610d62565b6120989190612a9e565b6000838152600960205260409020549091508082146120eb576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a5460009061213090600190612a9e565b6000838152600b6020526040812054600a805493945090928490811061215857612158612ba4565b9060005260206000200154905080600a838154811061217957612179612ba4565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a8054806121b1576121b1612b8e565b6001900381819060005260206000200160009055905550505050565b60006121d883610d62565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b60006001600160e01b0319821663152a902d60e11b148061064157506301ffc9a760e01b6001600160e01b0319831614610641565b82805461225290612af8565b90600052602060002090601f01602090048101928261227457600085556122ba565b82601f1061228d57805160ff19168380011785556122ba565b828001600101855582156122ba579182015b828111156122ba57825182559160200191906001019061229f565b506122c69291506122ca565b5090565b5b808211156122c657600081556001016122cb565b600067ffffffffffffffff808411156122fa576122fa612bba565b604051601f8501601f19908116603f0116810190828211818310171561232257612322612bba565b8160405280935085815286868601111561233b57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461236c57600080fd5b919050565b8035801515811461236c57600080fd5b80356001600160601b038116811461236c57600080fd5b6000602082840312156123aa57600080fd5b61203a82612355565b600080604083850312156123c657600080fd5b6123cf83612355565b91506123dd60208401612355565b90509250929050565b6000806000606084860312156123fb57600080fd5b61240484612355565b925061241260208501612355565b9150604084013590509250925092565b6000806000806080858703121561243857600080fd5b61244185612355565b935061244f60208601612355565b925060408501359150606085013567ffffffffffffffff81111561247257600080fd5b8501601f8101871361248357600080fd5b612492878235602084016122df565b91505092959194509250565b600080604083850312156124b157600080fd5b6124ba83612355565b91506123dd60208401612371565b600080604083850312156124db57600080fd5b6124e483612355565b946020939093013593505050565b6000806040838503121561250557600080fd5b61250e83612355565b91506123dd60208401612381565b60006020828403121561252e57600080fd5b61203a82612371565b60006020828403121561254957600080fd5b5035919050565b6000806040838503121561256357600080fd5b823591506123dd60208401612355565b60006020828403121561258557600080fd5b813561203a81612bd0565b6000602082840312156125a257600080fd5b815161203a81612bd0565b6000602082840312156125bf57600080fd5b813567ffffffffffffffff8111156125d657600080fd5b8201601f810184136125e757600080fd5b6115cf848235602084016122df565b6000806000806080858703121561260c57600080fd5b8435935061261c60208601612355565b925061262a60408601612355565b915061263860608601612381565b905092959194509250565b60008060006060848603121561265857600080fd5b8335925061266860208501612355565b915061267660408501612381565b90509250925092565b6000806040838503121561269257600080fd5b823591506123dd60208401612371565b600080604083850312156126b557600080fd5b50508035926020909101359150565b600080600080608085870312156126da57600080fd5b84359350602085013592506126f160408601612355565b915061263860608601612371565b60008151808452612717816020860160208601612ab5565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061274557607f831692505b602080841082141561276757634e487b7160e01b600052602260045260246000fd5b81801561277b576001811461278c576127b9565b60ff198616895284890196506127b9565b60008881526020902060005b868110156127b15781548b820152908501908301612798565b505084890196505b50505050505092915050565b60006127d1828461272b565b660bdb1bd8dad95960ca1b81526007019392505050565b60006127f4828561272b565b602f60f81b8152835161280e816001840160208801612ab5565b01600101949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612852816017850160208801612ab5565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612883816028840160208801612ab5565b01602801949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128c2908301846126ff565b9695505050505050565b60208152600061203a60208301846126ff565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252603a90820152600080516020612c0783398151915260408201527f746f20706572666f726d20636c61696d206f7220756e6c6f636b000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6020808252602e90820152600080516020612c0783398151915260408201526d746f206d616e616765204e46547360901b606082015260800190565b60008219821115612a6657612a66612b62565b500190565b600082612a7a57612a7a612b78565b500490565b6000816000190483118215151615612a9957612a99612b62565b500290565b600082821015612ab057612ab0612b62565b500390565b60005b83811015612ad0578181015183820152602001612ab8565b838111156109565750506000910152565b600081612af057612af0612b62565b506000190190565b600181811c90821680612b0c57607f821691505b60208210811415612b2d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b4757612b47612b62565b5060010190565b600082612b5d57612b5d612b78565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610e2e57600080fdfecb7aa1b1b95ed2960c30163b1d1fb7f9a847c5f05e7147ffc4e93caee2baca9943616c6c657220646f6573206e6f742068617665207065726d697373696f6e20a2646970667358221220f97a42cdfa6a608aae0b18636d86e9576ee27a7fa715da477bc9086f49b3115e64736f6c63430008070033bb99d67b6918694de70ec0223c9220db4cab33527a6e578d6a9d1b7dd96c559468747470733a2f2f6d657461646174612e6c65676974696d6174652e746563682f6578616d706c65cb7aa1b1b95ed2960c30163b1d1fb7f9a847c5f05e7147ffc4e93caee2baca997a87a5aed8ddea36a21c49f3a893ecbb03e497df92e2c7914fabedb76920df95
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102695760003560e01c806370a0823111610151578063aad3ec96116100c3578063c87b56dd11610087578063c87b56dd14610587578063cb1a233d1461059a578063d547741f146105ad578063d8697598146105c0578063e68f3bd8146105e7578063e985e9c5146105fa57600080fd5b8063aad3ec961461051a578063b0b5babe1461052d578063b855afd614610540578063b88d4fde1461054d578063bacef21a1461056057600080fd5b806395d89b411161011557806395d89b41146104c95780639df042cc146104d1578063a0712d68146104e4578063a217fddf146104f7578063a22cb465146104ff578063aa1b103f1461051257600080fd5b806370a08231146104685780638a616bc01461047b5780638ad44fd51461048e57806391d14854146104a357806394bf804d146104b657600080fd5b8063248a9ca3116101ea57806342842e0e116101ae57806342842e0e146103e25780634f6ccce7146103f5578063541deaf11461040857806355f804b31461042f5780635944c753146104425780636352211e1461045557600080fd5b8063248a9ca3146103545780632a55205a146103775780632f2ff15d146103a95780632f745c59146103bc57806336568abe146103cf57600080fd5b80630d7ebbd9116102315780630d7ebbd9146102fe578063157a5ea91461030957806318160ddd1461031c578063229ef11d1461032e57806323b872dd1461034157600080fd5b806301ffc9a71461026e57806304634d8d1461029657806306fdde03146102ab578063081812fc146102c0578063095ea7b3146102eb575b600080fd5b61028161027c366004612573565b610636565b60405190151581526020015b60405180910390f35b6102a96102a43660046124f2565b610647565b005b6102b3610692565b60405161028d91906128cc565b6102d36102ce366004612537565b610724565b6040516001600160a01b03909116815260200161028d565b6102a96102f93660046124c8565b6107b9565b600f5460ff16610281565b6102a96103173660046126c4565b6108cf565b600a545b60405190815260200161028d565b6102a961033c3660046125f6565b61095c565b6102a961034f3660046123e6565b6109a5565b610320610362366004612537565b6000908152600c602052604090206001015490565b61038a6103853660046126a2565b6109d6565b604080516001600160a01b03909316835260208301919091520161028d565b6102a96103b7366004612550565b610a82565b6103206103ca3660046124c8565b610aa7565b6102a96103dd366004612550565b610b3d565b6102a96103f03660046123e6565b610bb7565b610320610403366004612537565b610bd2565b6103207fbb99d67b6918694de70ec0223c9220db4cab33527a6e578d6a9d1b7dd96c559481565b6102a961043d3660046125ad565b610c65565b6102a9610450366004612643565b610cac565b6102d3610463366004612537565b610ceb565b610320610476366004612398565b610d62565b6102a9610489366004612537565b610de9565b610320600080516020612be783398151915281565b6102816104b1366004612550565b610e31565b6102a96104c4366004612550565b610e5c565b6102b3610e9a565b6102a96104df36600461251c565b610ea9565b6102a96104f2366004612537565b610f59565b610320600081565b6102a961050d36600461249e565b610f97565b6102a9610fa2565b6102a96105283660046124c8565b610fe1565b61028161053b366004612537565b611050565b600f546102819060ff1681565b6102a961055b366004612422565b61105b565b6103207f7a87a5aed8ddea36a21c49f3a893ecbb03e497df92e2c7914fabedb76920df9581565b6102b3610595366004612537565b61108d565b6102a96105a8366004612537565b61117a565b6102a96105bb366004612550565b611219565b6103207f72d64eedbf63ef7644113b50b68861b1541fedf25e444f932c10247ea6a6424981565b6102a96105f536600461267f565b61123e565b6102816106083660046123b3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006106418261128e565b92915050565b61065f600080516020612be783398151915233610e31565b6106845760405162461bcd60e51b815260040161067b90612a17565b60405180910390fd5b61068e82826112b3565b5050565b6060600280546106a190612af8565b80601f01602080910402602001604051908101604052809291908181526020018280546106cd90612af8565b801561071a5780601f106106ef5761010080835404028352916020019161071a565b820191906000526020600020905b8154815290600101906020018083116106fd57829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b031661079d5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161067b565b506000908152600660205260409020546001600160a01b031690565b60006107c482610ceb565b9050806001600160a01b0316836001600160a01b031614156108325760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161067b565b336001600160a01b038216148061084e575061084e8133610608565b6108c05760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161067b565b6108ca838361136d565b505050565b6108e7600080516020612be783398151915233610e31565b6109035760405162461bcd60e51b815260040161067b90612a17565b835b8381116109285761091683826113db565b8061092081612b33565b915050610905565b508061095657835b838111610954576109428160006113f5565b8061094c81612b33565b915050610930565b505b50505050565b610974600080516020612be783398151915233610e31565b6109905760405162461bcd60e51b815260040161067b90612a17565b61099a83856113db565b610956848383611415565b6109af33826114e0565b6109cb5760405162461bcd60e51b815260040161067b9061297c565b6108ca8383836115d7565b60008281526001602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610a4b5750604080518082019091526000546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610a6a906001600160601b031687612a7f565b610a749190612a6b565b915196919550909350505050565b6000828152600c6020526040902060010154610a9d81611784565b6108ca838361178e565b6000610ab283610d62565b8210610b145760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161067b565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6001600160a01b0381163314610bad5760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161067b565b61068e8282611814565b6108ca8383836040518060200160405280600081525061105b565b6000610bdd600a5490565b8210610c405760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161067b565b600a8281548110610c5357610c53612ba4565b90600052602060002001549050919050565b610c7d600080516020612be783398151915233610e31565b610c995760405162461bcd60e51b815260040161067b90612a17565b805161068e90600e906020840190612246565b610cc4600080516020612be783398151915233610e31565b610ce05760405162461bcd60e51b815260040161067b90612a17565b6108ca838383611415565b6000818152600460205260408120546001600160a01b0316806106415760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161067b565b60006001600160a01b038216610dcd5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161067b565b506001600160a01b031660009081526005602052604090205490565b610e01600080516020612be783398151915233610e31565b610e1d5760405162461bcd60e51b815260040161067b90612a17565b600090815260016020526040812055565b50565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b610e74600080516020612be783398151915233610e31565b610e905760405162461bcd60e51b815260040161067b90612a17565b61068e81836113db565b6060600380546106a190612af8565b610ed37f7a87a5aed8ddea36a21c49f3a893ecbb03e497df92e2c7914fabedb76920df9533610e31565b610f465760405162461bcd60e51b815260206004820152604a6024820152600080516020612c0783398151915260448201527f746f2073657420746865207365727669636520737461747573206f66207468696064820152691cc818dbdb9d1c9858dd60b21b608482015260a40161067b565b600f805460ff1916911515919091179055565b610f71600080516020612be783398151915233610e31565b610f8d5760405162461bcd60e51b815260040161067b90612a17565b610e2e33826113db565b61068e33838361187b565b610fba600080516020612be783398151915233610e31565b610fd65760405162461bcd60e51b815260040161067b90612a17565b610fdf60008055565b565b61100b7fbb99d67b6918694de70ec0223c9220db4cab33527a6e578d6a9d1b7dd96c559433610e31565b6110275760405162461bcd60e51b815260040161067b90612931565b61103133826114e0565b61103a57600080fd5b6110453383836115d7565b61068e8160006113f5565b60006106418261194a565b61106533836114e0565b6110815760405162461bcd60e51b815260040161067b9061297c565b61095684848484611975565b6000818152600460205260409020546060906001600160a01b031661110c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161067b565b6000600e611119846119a8565b60405160200161112a9291906127e8565b60408051601f198184030181529181526000858152600d602052205490915060ff161561064157600e60405160200161116391906127c5565b604051602081830303815290604052915050919050565b6111a47f72d64eedbf63ef7644113b50b68861b1541fedf25e444f932c10247ea6a6424933610e31565b6111f65760405162461bcd60e51b815260206004820152602f6024820152600080516020612c0783398151915260448201526e746f207265636f766572204e46547360881b606482015260840161067b565b610e2e61120282610ceb565b338360405180602001604052806000815250611975565b6000828152600c602052604090206001015461123481611784565b6108ca8383611814565b6112687fbb99d67b6918694de70ec0223c9220db4cab33527a6e578d6a9d1b7dd96c559433610e31565b6112845760405162461bcd60e51b815260040161067b90612931565b61068e82826113f5565b60006001600160e01b03198216637965db0b60e01b1480610641575061064182611aa6565b6127106001600160601b03821611156112de5760405162461bcd60e51b815260040161067b906129cd565b6001600160a01b0382166113345760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640161067b565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600055565b600081815260066020526040902080546001600160a01b0319166001600160a01b03841690811790915581906113a282610ceb565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b61068e828260405180602001604052806000815250611acb565b6000918252600d6020526040909120805460ff1916911515919091179055565b6127106001600160601b03821611156114405760405162461bcd60e51b815260040161067b906129cd565b6001600160a01b0382166114965760405162461bcd60e51b815260206004820152601b60248201527f455243323938313a20496e76616c696420706172616d65746572730000000000604482015260640161067b565b6040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182526000968752600190529190942093519051909116600160a01b029116179055565b6000818152600460205260408120546001600160a01b03166115595760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161067b565b600061156483610ceb565b9050806001600160a01b0316846001600160a01b031614806115ab57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b806115cf5750836001600160a01b03166115c484610724565b6001600160a01b0316145b949350505050565b826001600160a01b03166115ea82610ceb565b6001600160a01b03161461164e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161067b565b6001600160a01b0382166116b05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161067b565b6116bb838383611afe565b6116c660008261136d565b6001600160a01b03831660009081526005602052604081208054600192906116ef908490612a9e565b90915550506001600160a01b038216600090815260056020526040812080546001929061171d908490612a53565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a46108ca838383611b09565b610e2e8133611b14565b6117988282610e31565b61068e576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556117d03390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b61181e8282610e31565b1561068e576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b816001600160a01b0316836001600160a01b031614156118dd5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161067b565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b600f5460009060ff1661195f57506000919050565b506000908152600d602052604090205460ff1690565b6119808484846115d7565b61198c84848484611b78565b6109565760405162461bcd60e51b815260040161067b906128df565b6060816119cc5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119f657806119e081612b33565b91506119ef9050600a83612a6b565b91506119d0565b60008167ffffffffffffffff811115611a1157611a11612bba565b6040519080825280601f01601f191660200182016040528015611a3b576020820181803683370190505b5090505b84156115cf57611a50600183612a9e565b9150611a5d600a86612b4e565b611a68906030612a53565b60f81b818381518110611a7d57611a7d612ba4565b60200101906001600160f81b031916908160001a905350611a9f600a86612a6b565b9450611a3f565b60006001600160e01b0319821663780e9d6360e01b1480610641575061064182611c85565b611ad58383611c90565b611ae26000848484611b78565b6108ca5760405162461bcd60e51b815260040161067b906128df565b6108ca838383611de6565b6108ca8160016113f5565b611b1e8282610e31565b61068e57611b36816001600160a01b03166014611e9e565b611b41836020611e9e565b604051602001611b5292919061281a565b60408051601f198184030181529082905262461bcd60e51b825261067b916004016128cc565b60006001600160a01b0384163b15611c7a57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611bbc90339089908890889060040161288f565b602060405180830381600087803b158015611bd657600080fd5b505af1925050508015611c06575060408051601f3d908101601f19168201909252611c0391810190612590565b60015b611c60573d808015611c34576040519150601f19603f3d011682016040523d82523d6000602084013e611c39565b606091505b508051611c585760405162461bcd60e51b815260040161067b906128df565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115cf565b506001949350505050565b600061064182612041565b6001600160a01b038216611ce65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161067b565b6000818152600460205260409020546001600160a01b031615611d4b5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161067b565b611d5760008383611afe565b6001600160a01b0382166000908152600560205260408120805460019290611d80908490612a53565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a461068e60008383611b09565b6001600160a01b038316611e4157611e3c81600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b611e64565b816001600160a01b0316836001600160a01b031614611e6457611e648382612081565b6001600160a01b038216611e7b576108ca8161211e565b826001600160a01b0316826001600160a01b0316146108ca576108ca82826121cd565b60606000611ead836002612a7f565b611eb8906002612a53565b67ffffffffffffffff811115611ed057611ed0612bba565b6040519080825280601f01601f191660200182016040528015611efa576020820181803683370190505b509050600360fc1b81600081518110611f1557611f15612ba4565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611f4457611f44612ba4565b60200101906001600160f81b031916908160001a9053506000611f68846002612a7f565b611f73906001612a53565b90505b6001811115611feb576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611fa757611fa7612ba4565b1a60f81b828281518110611fbd57611fbd612ba4565b60200101906001600160f81b031916908160001a90535060049490941c93611fe481612ae1565b9050611f76565b50831561203a5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161067b565b9392505050565b60006001600160e01b031982166380ac58cd60e01b148061207257506001600160e01b03198216635b5e139f60e01b145b80610641575061064182612211565b6000600161208e84610d62565b6120989190612a9e565b6000838152600960205260409020549091508082146120eb576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a5460009061213090600190612a9e565b6000838152600b6020526040812054600a805493945090928490811061215857612158612ba4565b9060005260206000200154905080600a838154811061217957612179612ba4565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a8054806121b1576121b1612b8e565b6001900381819060005260206000200160009055905550505050565b60006121d883610d62565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b60006001600160e01b0319821663152a902d60e11b148061064157506301ffc9a760e01b6001600160e01b0319831614610641565b82805461225290612af8565b90600052602060002090601f01602090048101928261227457600085556122ba565b82601f1061228d57805160ff19168380011785556122ba565b828001600101855582156122ba579182015b828111156122ba57825182559160200191906001019061229f565b506122c69291506122ca565b5090565b5b808211156122c657600081556001016122cb565b600067ffffffffffffffff808411156122fa576122fa612bba565b604051601f8501601f19908116603f0116810190828211818310171561232257612322612bba565b8160405280935085815286868601111561233b57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461236c57600080fd5b919050565b8035801515811461236c57600080fd5b80356001600160601b038116811461236c57600080fd5b6000602082840312156123aa57600080fd5b61203a82612355565b600080604083850312156123c657600080fd5b6123cf83612355565b91506123dd60208401612355565b90509250929050565b6000806000606084860312156123fb57600080fd5b61240484612355565b925061241260208501612355565b9150604084013590509250925092565b6000806000806080858703121561243857600080fd5b61244185612355565b935061244f60208601612355565b925060408501359150606085013567ffffffffffffffff81111561247257600080fd5b8501601f8101871361248357600080fd5b612492878235602084016122df565b91505092959194509250565b600080604083850312156124b157600080fd5b6124ba83612355565b91506123dd60208401612371565b600080604083850312156124db57600080fd5b6124e483612355565b946020939093013593505050565b6000806040838503121561250557600080fd5b61250e83612355565b91506123dd60208401612381565b60006020828403121561252e57600080fd5b61203a82612371565b60006020828403121561254957600080fd5b5035919050565b6000806040838503121561256357600080fd5b823591506123dd60208401612355565b60006020828403121561258557600080fd5b813561203a81612bd0565b6000602082840312156125a257600080fd5b815161203a81612bd0565b6000602082840312156125bf57600080fd5b813567ffffffffffffffff8111156125d657600080fd5b8201601f810184136125e757600080fd5b6115cf848235602084016122df565b6000806000806080858703121561260c57600080fd5b8435935061261c60208601612355565b925061262a60408601612355565b915061263860608601612381565b905092959194509250565b60008060006060848603121561265857600080fd5b8335925061266860208501612355565b915061267660408501612381565b90509250925092565b6000806040838503121561269257600080fd5b823591506123dd60208401612371565b600080604083850312156126b557600080fd5b50508035926020909101359150565b600080600080608085870312156126da57600080fd5b84359350602085013592506126f160408601612355565b915061263860608601612371565b60008151808452612717816020860160208601612ab5565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061274557607f831692505b602080841082141561276757634e487b7160e01b600052602260045260246000fd5b81801561277b576001811461278c576127b9565b60ff198616895284890196506127b9565b60008881526020902060005b868110156127b15781548b820152908501908301612798565b505084890196505b50505050505092915050565b60006127d1828461272b565b660bdb1bd8dad95960ca1b81526007019392505050565b60006127f4828561272b565b602f60f81b8152835161280e816001840160208801612ab5565b01600101949350505050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612852816017850160208801612ab5565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612883816028840160208801612ab5565b01602801949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906128c2908301846126ff565b9695505050505050565b60208152600061203a60208301846126ff565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252603a90820152600080516020612c0783398151915260408201527f746f20706572666f726d20636c61696d206f7220756e6c6f636b000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602a908201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646040820152692073616c65507269636560b01b606082015260800190565b6020808252602e90820152600080516020612c0783398151915260408201526d746f206d616e616765204e46547360901b606082015260800190565b60008219821115612a6657612a66612b62565b500190565b600082612a7a57612a7a612b78565b500490565b6000816000190483118215151615612a9957612a99612b62565b500290565b600082821015612ab057612ab0612b62565b500390565b60005b83811015612ad0578181015183820152602001612ab8565b838111156109565750506000910152565b600081612af057612af0612b62565b506000190190565b600181811c90821680612b0c57607f821691505b60208210811415612b2d57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612b4757612b47612b62565b5060010190565b600082612b5d57612b5d612b78565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b031981168114610e2e57600080fdfecb7aa1b1b95ed2960c30163b1d1fb7f9a847c5f05e7147ffc4e93caee2baca9943616c6c657220646f6573206e6f742068617665207065726d697373696f6e20a2646970667358221220f97a42cdfa6a608aae0b18636d86e9576ee27a7fa715da477bc9086f49b3115e64736f6c63430008070033
Deployed Bytecode Sourcemap
60961:9185:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69797:218;;;;;;:::i;:::-;;:::i;:::-;;;11149:14:1;;11142:22;11124:41;;11112:2;11097:18;69797:218:0;;;;;;;;67274:147;;;;;;:::i;:::-;;:::i;:::-;;40037:100;;;:::i;:::-;;;;;;;:::i;41597:221::-;;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;10168:32:1;;;10150:51;;10138:2;10123:18;41597:221:0;10004:203:1;41120:411:0;;;;;;:::i;:::-;;:::i;63471:96::-;63544:15;;;;63471:96;;66601:462;;;;;;:::i;:::-;;:::i;55366:113::-;55454:10;:17;55366:113;;;11322:25:1;;;11310:2;11295:18;55366:113:0;11176:177:1;66387:206:0;;;;;;:::i;:::-;;:::i;42347:339::-;;;;;;:::i;:::-;;:::i;22872:131::-;;;;;;:::i;:::-;22946:7;22973:12;;;:6;:12;;;;;:22;;;;22872:131;28374:442;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;10897:32:1;;;10879:51;;10961:2;10946:18;;10939:34;;;;10852:18;28374:442:0;10705:274:1;23313:147:0;;;;;;:::i;:::-;;:::i;55034:256::-;;;;;;:::i;:::-;;:::i;24457:218::-;;;;;;:::i;:::-;;:::i;42757:185::-;;;;;;:::i;:::-;;:::i;55556:233::-;;;;;;:::i;:::-;;:::i;61167:74::-;;61211:30;61167:74;;63242:99;;;;;;:::i;:::-;;:::i;67097:169::-;;;;;;:::i;:::-;;:::i;39731:239::-;;;;;;:::i;:::-;;:::i;39461:208::-;;;;;;:::i;:::-;;:::i;67530:110::-;;;;;;:::i;:::-;;:::i;61356:72::-;;-1:-1:-1;;;;;;;;;;;61356:72:0;;21332:147;;;;;;:::i;:::-;;:::i;66275:104::-;;;;;;:::i;:::-;;:::i;40206:::-;;;:::i;63349:114::-;;;;;;:::i;:::-;;:::i;66167:100::-;;;;;;:::i;:::-;;:::i;20437:49::-;;20482:4;20437:49;;41890:155;;;;;;:::i;:::-;;:::i;67429:93::-;;;:::i;69574:215::-;;;;;;:::i;:::-;;:::i;66021:112::-;;;;;;:::i;:::-;;:::i;62269:34::-;;;;;;;;;43013:328;;;;;;:::i;:::-;;:::i;61492:86::-;;61538:40;61492:86;;63900:595;;;;;;:::i;:::-;;:::i;68028:141::-;;;;;;:::i;:::-;;:::i;23753:149::-;;;;;;:::i;:::-;;:::i;61727:78::-;;61773:32;61727:78;;65571:122;;;;;;:::i;:::-;;:::i;42116:164::-;;;;;;:::i;:::-;-1:-1:-1;;;;;42237:25:0;;;42213:4;42237:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;42116:164;69797:218;69942:4;69971:36;69995:11;69971:23;:36::i;:::-;69964:43;69797:218;-1:-1:-1;;69797:218:0:o;67274:147::-;64870:37;-1:-1:-1;;;;;;;;;;;64896:10:0;64870:7;:37::i;:::-;64862:96;;;;-1:-1:-1;;;64862:96:0;;;;;;;:::i;:::-;;;;;;;;;67371:42:::1;67390:8;67400:12;67371:18;:42::i;:::-;67274:147:::0;;:::o;40037:100::-;40091:13;40124:5;40117:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40037:100;:::o;41597:221::-;41673:7;44940:16;;;:7;:16;;;;;;-1:-1:-1;;;;;44940:16:0;41693:73;;;;-1:-1:-1;;;41693:73:0;;17361:2:1;41693:73:0;;;17343:21:1;17400:2;17380:18;;;17373:30;17439:34;17419:18;;;17412:62;-1:-1:-1;;;17490:18:1;;;17483:42;17542:19;;41693:73:0;17159:408:1;41693:73:0;-1:-1:-1;41786:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;41786:24:0;;41597:221::o;41120:411::-;41201:13;41217:23;41232:7;41217:14;:23::i;:::-;41201:39;;41265:5;-1:-1:-1;;;;;41259:11:0;:2;-1:-1:-1;;;;;41259:11:0;;;41251:57;;;;-1:-1:-1;;;41251:57:0;;18190:2:1;41251:57:0;;;18172:21:1;18229:2;18209:18;;;18202:30;18268:34;18248:18;;;18241:62;-1:-1:-1;;;18319:18:1;;;18312:31;18360:19;;41251:57:0;17988:397:1;41251:57:0;5924:10;-1:-1:-1;;;;;41343:21:0;;;;:62;;-1:-1:-1;41368:37:0;41385:5;5924:10;42116:164;:::i;41368:37::-;41321:168;;;;-1:-1:-1;;;41321:168:0;;15754:2:1;41321:168:0;;;15736:21:1;15793:2;15773:18;;;15766:30;15832:34;15812:18;;;15805:62;15903:26;15883:18;;;15876:54;15947:19;;41321:168:0;15552:420:1;41321:168:0;41502:21;41511:2;41515:7;41502:8;:21::i;:::-;41190:341;41120:411;;:::o;66601:462::-;64870:37;-1:-1:-1;;;;;;;;;;;64896:10:0;64870:7;:37::i;:::-;64862:96;;;;-1:-1:-1;;;64862:96:0;;;;;;;:::i;:::-;66735:12;66718:90:::1;66754:10;66749:1;:15;66718:90;;66782:16;66792:2;66796:1;66782:9;:16::i;:::-;66766:3:::0;::::1;::::0;::::1;:::i;:::-;;;;66718:90;;;-1:-1:-1::0;66918:15:0;66914:142:::1;;66963:12:::0;66946:101:::1;66982:10;66977:1;:15;66946:101;;67012:23;67026:1;67029:5;67012:13;:23::i;:::-;66994:3:::0;::::1;::::0;::::1;:::i;:::-;;;;66946:101;;;;66914:142;66601:462:::0;;;;:::o;66387:206::-;64870:37;-1:-1:-1;;;;;;;;;;;64896:10:0;64870:7;:37::i;:::-;64862:96;;;;-1:-1:-1;;;64862:96:0;;;;;;;:::i;:::-;66502:22:::1;66512:2;66516:7;66502:9;:22::i;:::-;66533:52;66550:7;66559:11;66572:12;66533:16;:52::i;42347:339::-:0;42542:41;5924:10;42575:7;42542:18;:41::i;:::-;42534:103;;;;-1:-1:-1;;;42534:103:0;;;;;;;:::i;:::-;42650:28;42660:4;42666:2;42670:7;42650:9;:28::i;28374:442::-;28471:7;28529:27;;;:17;:27;;;;;;;;28500:56;;;;;;;;;-1:-1:-1;;;;;28500:56:0;;;;;-1:-1:-1;;;28500:56:0;;;-1:-1:-1;;;;;28500:56:0;;;;;;;;28471:7;;28569:92;;-1:-1:-1;28620:29:0;;;;;;;;;-1:-1:-1;28620:29:0;-1:-1:-1;;;;;28620:29:0;;;;-1:-1:-1;;;28620:29:0;;-1:-1:-1;;;;;28620:29:0;;;;;28569:92;28711:23;;;;28673:21;;29182:5;;28698:36;;-1:-1:-1;;;;;28698:36:0;:10;:36;:::i;:::-;28697:58;;;;:::i;:::-;28776:16;;;;;-1:-1:-1;28374:442:0;;-1:-1:-1;;;;28374:442:0:o;23313:147::-;22946:7;22973:12;;;:6;:12;;;;;:22;;;20928:16;20939:4;20928:10;:16::i;:::-;23427:25:::1;23438:4;23444:7;23427:10;:25::i;55034:256::-:0;55131:7;55167:23;55184:5;55167:16;:23::i;:::-;55159:5;:31;55151:87;;;;-1:-1:-1;;;55151:87:0;;12145:2:1;55151:87:0;;;12127:21:1;12184:2;12164:18;;;12157:30;12223:34;12203:18;;;12196:62;-1:-1:-1;;;12274:18:1;;;12267:41;12325:19;;55151:87:0;11943:407:1;55151:87:0;-1:-1:-1;;;;;;55256:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;55034:256::o;24457:218::-;-1:-1:-1;;;;;24553:23:0;;5924:10;24553:23;24545:83;;;;-1:-1:-1;;;24545:83:0;;21027:2:1;24545:83:0;;;21009:21:1;21066:2;21046:18;;;21039:30;21105:34;21085:18;;;21078:62;-1:-1:-1;;;21156:18:1;;;21149:45;21211:19;;24545:83:0;20825:411:1;24545:83:0;24641:26;24653:4;24659:7;24641:11;:26::i;42757:185::-;42895:39;42912:4;42918:2;42922:7;42895:39;;;;;;;;;;;;:16;:39::i;55556:233::-;55631:7;55667:30;55454:10;:17;;55366:113;55667:30;55659:5;:38;55651:95;;;;-1:-1:-1;;;55651:95:0;;19366:2:1;55651:95:0;;;19348:21:1;19405:2;19385:18;;;19378:30;19444:34;19424:18;;;19417:62;-1:-1:-1;;;19495:18:1;;;19488:42;19547:19;;55651:95:0;19164:408:1;55651:95:0;55764:10;55775:5;55764:17;;;;;;;;:::i;:::-;;;;;;;;;55757:24;;55556:233;;;:::o;63242:99::-;64870:37;-1:-1:-1;;;;;;;;;;;64896:10:0;64870:7;:37::i;:::-;64862:96;;;;-1:-1:-1;;;64862:96:0;;;;;;;:::i;:::-;63317:16;;::::1;::::0;:7:::1;::::0;:16:::1;::::0;::::1;::::0;::::1;:::i;67097:169::-:0;64870:37;-1:-1:-1;;;;;;;;;;;64896:10:0;64870:7;:37::i;:::-;64862:96;;;;-1:-1:-1;;;64862:96:0;;;;;;;:::i;:::-;67209:49:::1;67226:7;67235:8;67245:12;67209:16;:49::i;39731:239::-:0;39803:7;39839:16;;;:7;:16;;;;;;-1:-1:-1;;;;;39839:16:0;39874:19;39866:73;;;;-1:-1:-1;;;39866:73:0;;16590:2:1;39866:73:0;;;16572:21:1;16629:2;16609:18;;;16602:30;16668:34;16648:18;;;16641:62;-1:-1:-1;;;16719:18:1;;;16712:39;16768:19;;39866:73:0;16388:405:1;39461:208:0;39533:7;-1:-1:-1;;;;;39561:19:0;;39553:74;;;;-1:-1:-1;;;39553:74:0;;16179:2:1;39553:74:0;;;16161:21:1;16218:2;16198:18;;;16191:30;16257:34;16237:18;;;16230:62;-1:-1:-1;;;16308:18:1;;;16301:40;16358:19;;39553:74:0;15977:406:1;39553:74:0;-1:-1:-1;;;;;;39645:16:0;;;;;:9;:16;;;;;;;39461:208::o;67530:110::-;64870:37;-1:-1:-1;;;;;;;;;;;64896:10:0;64870:7;:37::i;:::-;64862:96;;;;-1:-1:-1;;;64862:96:0;;;;;;;:::i;:::-;30874:26;;;;:17;:26;;;;;30867:33;67530:110::o;67605:27::-:1;67530:110:::0;:::o;21332:147::-;21418:4;21442:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;21442:29:0;;;;;;;;;;;;;;;21332:147::o;66275:104::-;64870:37;-1:-1:-1;;;;;;;;;;;64896:10:0;64870:7;:37::i;:::-;64862:96;;;;-1:-1:-1;;;64862:96:0;;;;;;;:::i;:::-;66349:22:::1;66359:2;66363:7;66349:9;:22::i;40206:104::-:0;40262:13;40295:7;40288:14;;;;;:::i;63349:114::-;65037:40;61538;65066:10;65037:7;:40::i;:::-;65029:127;;;;-1:-1:-1;;;65029:127:0;;19779:2:1;65029:127:0;;;19761:21:1;19818:2;19798:18;;;19791:30;-1:-1:-1;;;;;;;;;;;19837:18:1;;;19830:62;19928:34;19908:18;;;19901:62;-1:-1:-1;;;19979:19:1;;;19972:41;20030:19;;65029:127:0;19577:478:1;65029:127:0;63431:15:::1;:24:::0;;-1:-1:-1;;63431:24:0::1;::::0;::::1;;::::0;;;::::1;::::0;;63349:114::o;66167:100::-;64870:37;-1:-1:-1;;;;;;;;;;;64896:10:0;64870:7;:37::i;:::-;64862:96;;;;-1:-1:-1;;;64862:96:0;;;;;;;:::i;:::-;66229:30:::1;66239:10;66251:7;66229:9;:30::i;41890:155::-:0;41985:52;5924:10;42018:8;42028;41985:18;:52::i;67429:93::-;64870:37;-1:-1:-1;;;;;;;;;;;64896:10:0;64870:7;:37::i;:::-;64862:96;;;;-1:-1:-1;;;64862:96:0;;;;;;;:::i;:::-;67491:23:::1;29942:19:::0;29935:26;;29874:95;67491:23:::1;67429:93::o:0;69574:215::-;64700:38;61211:30;64727:10;64700:7;:38::i;:::-;64692:109;;;;-1:-1:-1;;;64692:109:0;;;;;;;:::i;:::-;69658:39:::1;69677:10;69689:7;69658:18;:39::i;:::-;69650:48;;;::::0;::::1;;69709:34;69719:10;69731:2;69735:7;69709:9;:34::i;:::-;69752:29;69766:7;69775:5;69752:13;:29::i;66021:112::-:0;66081:4;66103:22;66117:7;66103:13;:22::i;43013:328::-;43188:41;5924:10;43221:7;43188:18;:41::i;:::-;43180:103;;;;-1:-1:-1;;;43180:103:0;;;;;;;:::i;:::-;43294:39;43308:4;43314:2;43318:7;43327:5;43294:13;:39::i;63900:595::-;44916:4;44940:16;;;:7;:16;;;;;;63981:13;;-1:-1:-1;;;;;44940:16:0;64007:76;;;;-1:-1:-1;;;64007:76:0;;17774:2:1;64007:76:0;;;17756:21:1;17813:2;17793:18;;;17786:30;17852:34;17832:18;;;17825:62;-1:-1:-1;;;17903:18:1;;;17896:45;17958:19;;64007:76:0;17572:411:1;64007:76:0;64172:26;64225:7;64239:18;:7;:16;:18::i;:::-;64208:50;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;64208:50:0;;;;;;;;;64360:18;;;;:9;64208:50;64360:18;;;64208:50;;-1:-1:-1;64360:18:0;;64356:100;;;64424:7;64407:36;;;;;;;;:::i;:::-;;;;;;;;;;;;;64393:51;;;63900:595;;;:::o;68028:141::-;65311:40;61773:32;65340:10;65311:7;:40::i;:::-;65303:100;;;;-1:-1:-1;;;65303:100:0;;12976:2:1;65303:100:0;;;12958:21:1;13015:2;12995:18;;;12988:30;-1:-1:-1;;;;;;;;;;;13034:18:1;;;13027:62;-1:-1:-1;;;13105:18:1;;;13098:45;13160:19;;65303:100:0;12774:411:1;65303:100:0;68105:56:::1;68119:16;68127:7;68119;:16::i;:::-;68137:10;68149:7;68105:56;;;;;;;;;;;::::0;:13:::1;:56::i;23753:149::-:0;22946:7;22973:12;;;:6;:12;;;;;:22;;;20928:16;20939:4;20928:10;:16::i;:::-;23868:26:::1;23880:4;23886:7;23868:11;:26::i;65571:122::-:0;64700:38;61211:30;64727:10;64700:7;:38::i;:::-;64692:109;;;;-1:-1:-1;;;64692:109:0;;;;;;;:::i;:::-;65655:30:::1;65669:7;65678:6;65655:13;:30::i;21036:204::-:0;21121:4;-1:-1:-1;;;;;;21145:47:0;;-1:-1:-1;;;21145:47:0;;:87;;;21196:36;21220:11;21196:23;:36::i;29466:332::-;29182:5;-1:-1:-1;;;;;29569:33:0;;;;29561:88;;;;-1:-1:-1;;;29561:88:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;29668:22:0;;29660:60;;;;-1:-1:-1;;;29660:60:0;;20673:2:1;29660:60:0;;;20655:21:1;20712:2;20692:18;;;20685:30;20751:27;20731:18;;;20724:55;20796:18;;29660:60:0;20471:349:1;29660:60:0;29755:35;;;;;;;;;-1:-1:-1;;;;;29755:35:0;;;;;;-1:-1:-1;;;;;29755:35:0;;;;;;;;;;-1:-1:-1;;;29733:57:0;;;;-1:-1:-1;29733:57:0;29466:332::o;48997:174::-;49072:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;49072:29:0;-1:-1:-1;;;;;49072:29:0;;;;;;;;:24;;49126:23;49072:24;49126:14;:23::i;:::-;-1:-1:-1;;;;;49117:46:0;;;;;;;;;;;48997:174;;:::o;45835:110::-;45911:26;45921:2;45925:7;45911:26;;;;;;;;;;;;:9;:26::i;65457:106::-;65528:18;;;;:9;:18;;;;;;:27;;-1:-1:-1;;65528:27:0;;;;;;;;;;65457:106::o;30293:390::-;29182:5;-1:-1:-1;;;;;30445:33:0;;;;30437:88;;;;-1:-1:-1;;;30437:88:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;30544:22:0;;30536:62;;;;-1:-1:-1;;;30536:62:0;;19010:2:1;30536:62:0;;;18992:21:1;19049:2;19029:18;;;19022:30;19088:29;19068:18;;;19061:57;19135:18;;30536:62:0;18808:351:1;30536:62:0;30640:35;;;;;;;;-1:-1:-1;;;;;30640:35:0;;;;;-1:-1:-1;;;;;30640:35:0;;;;;;;;;;-1:-1:-1;30611:26:0;;;:17;:26;;;;;;:64;;;;;;;-1:-1:-1;;;30611:64:0;;;;;;30293:390::o;45145:348::-;45238:4;44940:16;;;:7;:16;;;;;;-1:-1:-1;;;;;44940:16:0;45255:73;;;;-1:-1:-1;;;45255:73:0;;15341:2:1;45255:73:0;;;15323:21:1;15380:2;15360:18;;;15353:30;15419:34;15399:18;;;15392:62;-1:-1:-1;;;15470:18:1;;;15463:42;15522:19;;45255:73:0;15139:408:1;45255:73:0;45339:13;45355:23;45370:7;45355:14;:23::i;:::-;45339:39;;45408:5;-1:-1:-1;;;;;45397:16:0;:7;-1:-1:-1;;;;;45397:16:0;;:52;;;-1:-1:-1;;;;;;42237:25:0;;;42213:4;42237:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;45417:32;45397:87;;;;45477:7;-1:-1:-1;;;;;45453:31:0;:20;45465:7;45453:11;:20::i;:::-;-1:-1:-1;;;;;45453:31:0;;45397:87;45389:96;45145:348;-1:-1:-1;;;;45145:348:0:o;48254:625::-;48413:4;-1:-1:-1;;;;;48386:31:0;:23;48401:7;48386:14;:23::i;:::-;-1:-1:-1;;;;;48386:31:0;;48378:81;;;;-1:-1:-1;;;48378:81:0;;13392:2:1;48378:81:0;;;13374:21:1;13431:2;13411:18;;;13404:30;13470:34;13450:18;;;13443:62;-1:-1:-1;;;13521:18:1;;;13514:35;13566:19;;48378:81:0;13190:401:1;48378:81:0;-1:-1:-1;;;;;48478:16:0;;48470:65;;;;-1:-1:-1;;;48470:65:0;;14582:2:1;48470:65:0;;;14564:21:1;14621:2;14601:18;;;14594:30;14660:34;14640:18;;;14633:62;-1:-1:-1;;;14711:18:1;;;14704:34;14755:19;;48470:65:0;14380:400:1;48470:65:0;48548:39;48569:4;48575:2;48579:7;48548:20;:39::i;:::-;48652:29;48669:1;48673:7;48652:8;:29::i;:::-;-1:-1:-1;;;;;48694:15:0;;;;;;:9;:15;;;;;:20;;48713:1;;48694:15;:20;;48713:1;;48694:20;:::i;:::-;;;;-1:-1:-1;;;;;;;48725:13:0;;;;;;:9;:13;;;;;:18;;48742:1;;48725:13;:18;;48742:1;;48725:18;:::i;:::-;;;;-1:-1:-1;;48754:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;48754:21:0;-1:-1:-1;;;;;48754:21:0;;;;;;;;;48793:27;;48754:16;;48793:27;;;;;;;48833:38;48853:4;48859:2;48863:7;48833:19;:38::i;21783:105::-;21850:30;21861:4;5924:10;21850;:30::i;26054:238::-;26138:22;26146:4;26152:7;26138;:22::i;:::-;26133:152;;26177:12;;;;:6;:12;;;;;;;;-1:-1:-1;;;;;26177:29:0;;;;;;;;;:36;;-1:-1:-1;;26177:36:0;26209:4;26177:36;;;26260:12;5924:10;;5844:98;26260:12;-1:-1:-1;;;;;26233:40:0;26251:7;-1:-1:-1;;;;;26233:40:0;26245:4;26233:40;;;;;;;;;;26054:238;;:::o;26472:239::-;26556:22;26564:4;26570:7;26556;:22::i;:::-;26552:152;;;26627:5;26595:12;;;:6;:12;;;;;;;;-1:-1:-1;;;;;26595:29:0;;;;;;;;;;:37;;-1:-1:-1;;26595:37:0;;;26652:40;5924:10;;26595:12;;26652:40;;26627:5;26652:40;26472:239;;:::o;49313:315::-;49468:8;-1:-1:-1;;;;;49459:17:0;:5;-1:-1:-1;;;;;49459:17:0;;;49451:55;;;;-1:-1:-1;;;49451:55:0;;14987:2:1;49451:55:0;;;14969:21:1;15026:2;15006:18;;;14999:30;15065:27;15045:18;;;15038:55;15110:18;;49451:55:0;14785:349:1;49451:55:0;-1:-1:-1;;;;;49517:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;49517:46:0;;;;;;;;;;49579:41;;11124::1;;;49579::0;;11097:18:1;49579:41:0;;;;;;;49313:315;;;:::o;65740:273::-;65911:15;;65803:4;;65911:15;;65907:63;;-1:-1:-1;65955:5:0;;65740:273;-1:-1:-1;65740:273:0:o;65907:63::-;-1:-1:-1;65987:18:0;;;;:9;:18;;;;;;;;;65740:273::o;44223:315::-;44380:28;44390:4;44396:2;44400:7;44380:9;:28::i;:::-;44427:48;44450:4;44456:2;44460:7;44469:5;44427:22;:48::i;:::-;44419:111;;;;-1:-1:-1;;;44419:111:0;;;;;;;:::i;3406:723::-;3462:13;3683:10;3679:53;;-1:-1:-1;;3710:10:0;;;;;;;;;;;;-1:-1:-1;;;3710:10:0;;;;;3406:723::o;3679:53::-;3757:5;3742:12;3798:78;3805:9;;3798:78;;3831:8;;;;:::i;:::-;;-1:-1:-1;3854:10:0;;-1:-1:-1;3862:2:0;3854:10;;:::i;:::-;;;3798:78;;;3886:19;3918:6;3908:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3908:17:0;;3886:39;;3936:154;3943:10;;3936:154;;3970:11;3980:1;3970:11;;:::i;:::-;;-1:-1:-1;4039:10:0;4047:2;4039:5;:10;:::i;:::-;4026:24;;:2;:24;:::i;:::-;4013:39;;3996:6;4003;3996:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;3996:56:0;;;;;;;;-1:-1:-1;4067:11:0;4076:2;4067:11;;:::i;:::-;;;3936:154;;54726:224;54828:4;-1:-1:-1;;;;;;54852:50:0;;-1:-1:-1;;;54852:50:0;;:90;;;54906:36;54930:11;54906:23;:36::i;46172:321::-;46302:18;46308:2;46312:7;46302:5;:18::i;:::-;46353:54;46384:1;46388:2;46392:7;46401:5;46353:22;:54::i;:::-;46331:154;;;;-1:-1:-1;;;46331:154:0;;;;;;;:::i;68245:196::-;68388:45;68415:4;68421:2;68425:7;68388:26;:45::i;68969:196::-;69129:28;69143:7;69152:4;69129:13;:28::i;22178:505::-;22267:22;22275:4;22281:7;22267;:22::i;:::-;22262:414;;22455:41;22483:7;-1:-1:-1;;;;;22455:41:0;22493:2;22455:19;:41::i;:::-;22569:38;22597:4;22604:2;22569:19;:38::i;:::-;22360:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;22360:270:0;;;;;;;;;;-1:-1:-1;;;22306:358:0;;;;;;;:::i;50193:799::-;50348:4;-1:-1:-1;;;;;50369:13:0;;7586:19;:23;50365:620;;50405:72;;-1:-1:-1;;;50405:72:0;;-1:-1:-1;;;;;50405:36:0;;;;;:72;;5924:10;;50456:4;;50462:7;;50471:5;;50405:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50405:72:0;;;;;;;;-1:-1:-1;;50405:72:0;;;;;;;;;;;;:::i;:::-;;;50401:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50647:13:0;;50643:272;;50690:60;;-1:-1:-1;;;50690:60:0;;;;;;;:::i;50643:272::-;50865:6;50859:13;50850:6;50846:2;50842:15;50835:38;50401:529;-1:-1:-1;;;;;;50528:51:0;-1:-1:-1;;;50528:51:0;;-1:-1:-1;50521:58:0;;50365:620;-1:-1:-1;50969:4:0;50193:799;;;;;;:::o;53271:170::-;53373:4;53397:36;53421:11;53397:23;:36::i;46829:439::-;-1:-1:-1;;;;;46909:16:0;;46901:61;;;;-1:-1:-1;;;46901:61:0;;17000:2:1;46901:61:0;;;16982:21:1;;;17019:18;;;17012:30;17078:34;17058:18;;;17051:62;17130:18;;46901:61:0;16798:356:1;46901:61:0;44916:4;44940:16;;;:7;:16;;;;;;-1:-1:-1;;;;;44940:16:0;:30;46973:58;;;;-1:-1:-1;;;46973:58:0;;13798:2:1;46973:58:0;;;13780:21:1;13837:2;13817:18;;;13810:30;13876;13856:18;;;13849:58;13924:18;;46973:58:0;13596:352:1;46973:58:0;47044:45;47073:1;47077:2;47081:7;47044:20;:45::i;:::-;-1:-1:-1;;;;;47102:13:0;;;;;;:9;:13;;;;;:18;;47119:1;;47102:13;:18;;47119:1;;47102:18;:::i;:::-;;;;-1:-1:-1;;47131:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;47131:21:0;-1:-1:-1;;;;;47131:21:0;;;;;;;;47170:33;;47131:16;;;47170:33;;47131:16;;47170:33;47216:44;47244:1;47248:2;47252:7;47216:19;:44::i;56402:589::-;-1:-1:-1;;;;;56608:18:0;;56604:187;;56643:40;56675:7;57818:10;:17;;57791:24;;;;:15;:24;;;;;:44;;;57846:24;;;;;;;;;;;;57714:164;56643:40;56604:187;;;56713:2;-1:-1:-1;;;;;56705:10:0;:4;-1:-1:-1;;;;;56705:10:0;;56701:90;;56732:47;56765:4;56771:7;56732:32;:47::i;:::-;-1:-1:-1;;;;;56805:16:0;;56801:183;;56838:45;56875:7;56838:36;:45::i;56801:183::-;56911:4;-1:-1:-1;;;;;56905:10:0;:2;-1:-1:-1;;;;;56905:10:0;;56901:83;;56932:40;56960:2;56964:7;56932:27;:40::i;4707:451::-;4782:13;4808:19;4840:10;4844:6;4840:1;:10;:::i;:::-;:14;;4853:1;4840:14;:::i;:::-;4830:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4830:25:0;;4808:47;;-1:-1:-1;;;4866:6:0;4873:1;4866:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;4866:15:0;;;;;;;;;-1:-1:-1;;;4892:6:0;4899:1;4892:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;4892:15:0;;;;;;;;-1:-1:-1;4923:9:0;4935:10;4939:6;4935:1;:10;:::i;:::-;:14;;4948:1;4935:14;:::i;:::-;4923:26;;4918:135;4955:1;4951;:5;4918:135;;;-1:-1:-1;;;5003:5:0;5011:3;5003:11;4990:25;;;;;;;:::i;:::-;;;;4978:6;4985:1;4978:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;4978:37:0;;;;;;;;-1:-1:-1;5040:1:0;5030:11;;;;;4958:3;;;:::i;:::-;;;4918:135;;;-1:-1:-1;5071:10:0;;5063:55;;;;-1:-1:-1;;;5063:55:0;;11784:2:1;5063:55:0;;;11766:21:1;;;11803:18;;;11796:30;11862:34;11842:18;;;11835:62;11914:18;;5063:55:0;11582:356:1;5063:55:0;5143:6;4707:451;-1:-1:-1;;;4707:451:0:o;39092:305::-;39194:4;-1:-1:-1;;;;;;39231:40:0;;-1:-1:-1;;;39231:40:0;;:105;;-1:-1:-1;;;;;;;39288:48:0;;-1:-1:-1;;;39288:48:0;39231:105;:158;;;;39353:36;39377:11;39353:23;:36::i;58505:988::-;58771:22;58821:1;58796:22;58813:4;58796:16;:22::i;:::-;:26;;;;:::i;:::-;58833:18;58854:26;;;:17;:26;;;;;;58771:51;;-1:-1:-1;58987:28:0;;;58983:328;;-1:-1:-1;;;;;59054:18:0;;59032:19;59054:18;;;:12;:18;;;;;;;;:34;;;;;;;;;59105:30;;;;;;:44;;;59222:30;;:17;:30;;;;;:43;;;58983:328;-1:-1:-1;59407:26:0;;;;:17;:26;;;;;;;;59400:33;;;-1:-1:-1;;;;;59451:18:0;;;;;:12;:18;;;;;:34;;;;;;;59444:41;58505:988::o;59788:1079::-;60066:10;:17;60041:22;;60066:21;;60086:1;;60066:21;:::i;:::-;60098:18;60119:24;;;:15;:24;;;;;;60492:10;:26;;60041:46;;-1:-1:-1;60119:24:0;;60041:46;;60492:26;;;;;;:::i;:::-;;;;;;;;;60470:48;;60556:11;60531:10;60542;60531:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;60636:28;;;:15;:28;;;;;;;:41;;;60808:24;;;;;60801:31;60843:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;59859:1008;;;59788:1079;:::o;57292:221::-;57377:14;57394:20;57411:2;57394:16;:20::i;:::-;-1:-1:-1;;;;;57425:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;57470:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;57292:221:0:o;28104:215::-;28206:4;-1:-1:-1;;;;;;28230:41:0;;-1:-1:-1;;;28230:41:0;;:81;;-1:-1:-1;;;;;;;;;;18404:40:0;;;28275:36;18295:157;-1:-1:-1;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:160::-;893:20;;949:13;;942:21;932:32;;922:60;;978:1;975;968:12;993:179;1060:20;;-1:-1:-1;;;;;1109:38:1;;1099:49;;1089:77;;1162:1;1159;1152:12;1177:186;1236:6;1289:2;1277:9;1268:7;1264:23;1260:32;1257:52;;;1305:1;1302;1295:12;1257:52;1328:29;1347:9;1328:29;:::i;1368:260::-;1436:6;1444;1497:2;1485:9;1476:7;1472:23;1468:32;1465:52;;;1513:1;1510;1503:12;1465:52;1536:29;1555:9;1536:29;:::i;:::-;1526:39;;1584:38;1618:2;1607:9;1603:18;1584:38;:::i;:::-;1574:48;;1368:260;;;;;:::o;1633:328::-;1710:6;1718;1726;1779:2;1767:9;1758:7;1754:23;1750:32;1747:52;;;1795:1;1792;1785:12;1747:52;1818:29;1837:9;1818:29;:::i;:::-;1808:39;;1866:38;1900:2;1889:9;1885:18;1866:38;:::i;:::-;1856:48;;1951:2;1940:9;1936:18;1923:32;1913:42;;1633:328;;;;;:::o;1966:666::-;2061:6;2069;2077;2085;2138:3;2126:9;2117:7;2113:23;2109:33;2106:53;;;2155:1;2152;2145:12;2106:53;2178:29;2197:9;2178:29;:::i;:::-;2168:39;;2226:38;2260:2;2249:9;2245:18;2226:38;:::i;:::-;2216:48;;2311:2;2300:9;2296:18;2283:32;2273:42;;2366:2;2355:9;2351:18;2338:32;2393:18;2385:6;2382:30;2379:50;;;2425:1;2422;2415:12;2379:50;2448:22;;2501:4;2493:13;;2489:27;-1:-1:-1;2479:55:1;;2530:1;2527;2520:12;2479:55;2553:73;2618:7;2613:2;2600:16;2595:2;2591;2587:11;2553:73;:::i;:::-;2543:83;;;1966:666;;;;;;;:::o;2637:254::-;2702:6;2710;2763:2;2751:9;2742:7;2738:23;2734:32;2731:52;;;2779:1;2776;2769:12;2731:52;2802:29;2821:9;2802:29;:::i;:::-;2792:39;;2850:35;2881:2;2870:9;2866:18;2850:35;:::i;2896:254::-;2964:6;2972;3025:2;3013:9;3004:7;3000:23;2996:32;2993:52;;;3041:1;3038;3031:12;2993:52;3064:29;3083:9;3064:29;:::i;:::-;3054:39;3140:2;3125:18;;;;3112:32;;-1:-1:-1;;;2896:254:1:o;3155:258::-;3222:6;3230;3283:2;3271:9;3262:7;3258:23;3254:32;3251:52;;;3299:1;3296;3289:12;3251:52;3322:29;3341:9;3322:29;:::i;:::-;3312:39;;3370:37;3403:2;3392:9;3388:18;3370:37;:::i;3418:180::-;3474:6;3527:2;3515:9;3506:7;3502:23;3498:32;3495:52;;;3543:1;3540;3533:12;3495:52;3566:26;3582:9;3566:26;:::i;3603:180::-;3662:6;3715:2;3703:9;3694:7;3690:23;3686:32;3683:52;;;3731:1;3728;3721:12;3683:52;-1:-1:-1;3754:23:1;;3603:180;-1:-1:-1;3603:180:1:o;3788:254::-;3856:6;3864;3917:2;3905:9;3896:7;3892:23;3888:32;3885:52;;;3933:1;3930;3923:12;3885:52;3969:9;3956:23;3946:33;;3998:38;4032:2;4021:9;4017:18;3998:38;:::i;4047:245::-;4105:6;4158:2;4146:9;4137:7;4133:23;4129:32;4126:52;;;4174:1;4171;4164:12;4126:52;4213:9;4200:23;4232:30;4256:5;4232:30;:::i;4297:249::-;4366:6;4419:2;4407:9;4398:7;4394:23;4390:32;4387:52;;;4435:1;4432;4425:12;4387:52;4467:9;4461:16;4486:30;4510:5;4486:30;:::i;4551:450::-;4620:6;4673:2;4661:9;4652:7;4648:23;4644:32;4641:52;;;4689:1;4686;4679:12;4641:52;4729:9;4716:23;4762:18;4754:6;4751:30;4748:50;;;4794:1;4791;4784:12;4748:50;4817:22;;4870:4;4862:13;;4858:27;-1:-1:-1;4848:55:1;;4899:1;4896;4889:12;4848:55;4922:73;4987:7;4982:2;4969:16;4964:2;4960;4956:11;4922:73;:::i;5450:401::-;5535:6;5543;5551;5559;5612:3;5600:9;5591:7;5587:23;5583:33;5580:53;;;5629:1;5626;5619:12;5580:53;5665:9;5652:23;5642:33;;5694:38;5728:2;5717:9;5713:18;5694:38;:::i;:::-;5684:48;;5751:38;5785:2;5774:9;5770:18;5751:38;:::i;:::-;5741:48;;5808:37;5841:2;5830:9;5826:18;5808:37;:::i;:::-;5798:47;;5450:401;;;;;;;:::o;5856:326::-;5932:6;5940;5948;6001:2;5989:9;5980:7;5976:23;5972:32;5969:52;;;6017:1;6014;6007:12;5969:52;6053:9;6040:23;6030:33;;6082:38;6116:2;6105:9;6101:18;6082:38;:::i;:::-;6072:48;;6139:37;6172:2;6161:9;6157:18;6139:37;:::i;:::-;6129:47;;5856:326;;;;;:::o;6187:248::-;6252:6;6260;6313:2;6301:9;6292:7;6288:23;6284:32;6281:52;;;6329:1;6326;6319:12;6281:52;6365:9;6352:23;6342:33;;6394:35;6425:2;6414:9;6410:18;6394:35;:::i;6440:248::-;6508:6;6516;6569:2;6557:9;6548:7;6544:23;6540:32;6537:52;;;6585:1;6582;6575:12;6537:52;-1:-1:-1;;6608:23:1;;;6678:2;6663:18;;;6650:32;;-1:-1:-1;6440:248:1:o;6693:391::-;6776:6;6784;6792;6800;6853:3;6841:9;6832:7;6828:23;6824:33;6821:53;;;6870:1;6867;6860:12;6821:53;6906:9;6893:23;6883:33;;6963:2;6952:9;6948:18;6935:32;6925:42;;6986:38;7020:2;7009:9;7005:18;6986:38;:::i;:::-;6976:48;;7043:35;7074:2;7063:9;7059:18;7043:35;:::i;7089:257::-;7130:3;7168:5;7162:12;7195:6;7190:3;7183:19;7211:63;7267:6;7260:4;7255:3;7251:14;7244:4;7237:5;7233:16;7211:63;:::i;:::-;7328:2;7307:15;-1:-1:-1;;7303:29:1;7294:39;;;;7335:4;7290:50;;7089:257;-1:-1:-1;;7089:257:1:o;7351:973::-;7436:12;;7401:3;;7491:1;7511:18;;;;7564;;;;7591:61;;7645:4;7637:6;7633:17;7623:27;;7591:61;7671:2;7719;7711:6;7708:14;7688:18;7685:38;7682:161;;;7765:10;7760:3;7756:20;7753:1;7746:31;7800:4;7797:1;7790:15;7828:4;7825:1;7818:15;7682:161;7859:18;7886:104;;;;8004:1;7999:319;;;;7852:466;;7886:104;-1:-1:-1;;7919:24:1;;7907:37;;7964:16;;;;-1:-1:-1;7886:104:1;;7999:319;21911:1;21904:14;;;21948:4;21935:18;;8093:1;8107:165;8121:6;8118:1;8115:13;8107:165;;;8199:14;;8186:11;;;8179:35;8242:16;;;;8136:10;;8107:165;;;8111:3;;8301:6;8296:3;8292:16;8285:23;;7852:466;;;;;;;7351:973;;;;:::o;8329:357::-;8558:3;8586:38;8620:3;8612:6;8586:38;:::i;:::-;-1:-1:-1;;;8633:21:1;;8678:1;8670:10;;8329:357;-1:-1:-1;;;8329:357:1:o;8691:517::-;8968:3;8996:38;9030:3;9022:6;8996:38;:::i;:::-;-1:-1:-1;;;9050:2:1;9043:15;9087:6;9081:13;9103:60;9156:6;9152:1;9148:2;9144:10;9137:4;9129:6;9125:17;9103:60;:::i;:::-;9183:15;9200:1;9179:23;;8691:517;-1:-1:-1;;;;8691:517:1:o;9213:786::-;9624:25;9619:3;9612:38;9594:3;9679:6;9673:13;9695:62;9750:6;9745:2;9740:3;9736:12;9729:4;9721:6;9717:17;9695:62;:::i;:::-;-1:-1:-1;;;9816:2:1;9776:16;;;9808:11;;;9801:40;9866:13;;9888:63;9866:13;9937:2;9929:11;;9922:4;9910:17;;9888:63;:::i;:::-;9971:17;9990:2;9967:26;;9213:786;-1:-1:-1;;;;9213:786:1:o;10212:488::-;-1:-1:-1;;;;;10481:15:1;;;10463:34;;10533:15;;10528:2;10513:18;;10506:43;10580:2;10565:18;;10558:34;;;10628:3;10623:2;10608:18;;10601:31;;;10406:4;;10649:45;;10674:19;;10666:6;10649:45;:::i;:::-;10641:53;10212:488;-1:-1:-1;;;;;;10212:488:1:o;11358:219::-;11507:2;11496:9;11489:21;11470:4;11527:44;11567:2;11556:9;11552:18;11544:6;11527:44;:::i;12355:414::-;12557:2;12539:21;;;12596:2;12576:18;;;12569:30;12635:34;12630:2;12615:18;;12608:62;-1:-1:-1;;;12701:2:1;12686:18;;12679:48;12759:3;12744:19;;12355:414::o;13953:422::-;14155:2;14137:21;;;14194:2;14174:18;;;14167:30;-1:-1:-1;;;;;;;;;;;14228:2:1;14213:18;;14206:62;14304:28;14299:2;14284:18;;14277:56;14365:3;14350:19;;13953:422::o;18390:413::-;18592:2;18574:21;;;18631:2;18611:18;;;18604:30;18670:34;18665:2;18650:18;;18643:62;-1:-1:-1;;;18736:2:1;18721:18;;18714:47;18793:3;18778:19;;18390:413::o;20060:406::-;20262:2;20244:21;;;20301:2;20281:18;;;20274:30;20340:34;20335:2;20320:18;;20313:62;-1:-1:-1;;;20406:2:1;20391:18;;20384:40;20456:3;20441:19;;20060:406::o;21241:410::-;21443:2;21425:21;;;21482:2;21462:18;;;21455:30;-1:-1:-1;;;;;;;;;;;21516:2:1;21501:18;;21494:62;-1:-1:-1;;;21587:2:1;21572:18;;21565:44;21641:3;21626:19;;21241:410::o;21964:128::-;22004:3;22035:1;22031:6;22028:1;22025:13;22022:39;;;22041:18;;:::i;:::-;-1:-1:-1;22077:9:1;;21964:128::o;22097:120::-;22137:1;22163;22153:35;;22168:18;;:::i;:::-;-1:-1:-1;22202:9:1;;22097:120::o;22222:168::-;22262:7;22328:1;22324;22320:6;22316:14;22313:1;22310:21;22305:1;22298:9;22291:17;22287:45;22284:71;;;22335:18;;:::i;:::-;-1:-1:-1;22375:9:1;;22222:168::o;22395:125::-;22435:4;22463:1;22460;22457:8;22454:34;;;22468:18;;:::i;:::-;-1:-1:-1;22505:9:1;;22395:125::o;22525:258::-;22597:1;22607:113;22621:6;22618:1;22615:13;22607:113;;;22697:11;;;22691:18;22678:11;;;22671:39;22643:2;22636:10;22607:113;;;22738:6;22735:1;22732:13;22729:48;;;-1:-1:-1;;22773:1:1;22755:16;;22748:27;22525:258::o;22788:136::-;22827:3;22855:5;22845:39;;22864:18;;:::i;:::-;-1:-1:-1;;;22900:18:1;;22788:136::o;22929:380::-;23008:1;23004:12;;;;23051;;;23072:61;;23126:4;23118:6;23114:17;23104:27;;23072:61;23179:2;23171:6;23168:14;23148:18;23145:38;23142:161;;;23225:10;23220:3;23216:20;23213:1;23206:31;23260:4;23257:1;23250:15;23288:4;23285:1;23278:15;23142:161;;22929:380;;;:::o;23314:135::-;23353:3;-1:-1:-1;;23374:17:1;;23371:43;;;23394:18;;:::i;:::-;-1:-1:-1;23441:1:1;23430:13;;23314:135::o;23454:112::-;23486:1;23512;23502:35;;23517:18;;:::i;:::-;-1:-1:-1;23551:9:1;;23454:112::o;23571:127::-;23632:10;23627:3;23623:20;23620:1;23613:31;23663:4;23660:1;23653:15;23687:4;23684:1;23677:15;23703:127;23764:10;23759:3;23755:20;23752:1;23745:31;23795:4;23792:1;23785:15;23819:4;23816:1;23809:15;23835:127;23896:10;23891:3;23887:20;23884:1;23877:31;23927:4;23924:1;23917:15;23951:4;23948:1;23941:15;23967:127;24028:10;24023:3;24019:20;24016:1;24009:31;24059:4;24056:1;24049:15;24083:4;24080:1;24073:15;24099:127;24160:10;24155:3;24151:20;24148:1;24141:31;24191:4;24188:1;24181:15;24215:4;24212:1;24205:15;24231:131;-1:-1:-1;;;;;;24305:32:1;;24295:43;;24285:71;;24352:1;24349;24342:12
Swarm Source
ipfs://f97a42cdfa6a608aae0b18636d86e9576ee27a7fa715da477bc9086f49b3115e
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.