ERC-721
Overview
Max Total Supply
0 OGPASS
Holders
24
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 OGPASSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Source Code Verified (Exact Match)
Contract Name:
NFTFestEntries
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; contract NFTFestEntries is ERC721, Pausable, AccessControl { using Counters for Counters.Counter; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); bytes32 public constant BURNER_ROLE = keccak256("BURNER_ROLE"); bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); Counters.Counter private _tokenIdCounter; string baseUri = "https://www.nftfest.wtf/nft/"; uint256 public supplyLeft = 788; constructor() ERC721("NFTFEST OG Pass", "OGPASS") { _grantRole(DEFAULT_ADMIN_ROLE, msg.sender); _grantRole(MINTER_ROLE, msg.sender); _grantRole(ADMIN_ROLE, msg.sender); _tokenIdCounter.increment(); // will start with id 1 for (uint256 i; i<88;i++){ safeMint(0x7495DB41440A1C32091dbc50C0C88C4AB8a77508); } } function pause() public onlyRole(ADMIN_ROLE) { _pause(); } function unpause() public onlyRole(ADMIN_ROLE) { _unpause(); } function _baseURI() internal view override returns (string memory) { return baseUri; } function setUri(string memory _uri) external onlyRole(ADMIN_ROLE) { baseUri = _uri; } function safeMint(address to) public onlyRole(MINTER_ROLE) returns (uint256 tokenId){ require(supplyLeft > 0, "no entry left"); supplyLeft--; tokenId = _tokenIdCounter.current(); _tokenIdCounter.increment(); _safeMint(to, tokenId); } function updateSupplyLeft(uint256 _value ) public onlyRole(ADMIN_ROLE) { supplyLeft = _value; } // function burn(uint256 tokenId) public onlyRole(BURNER_ROLE) { // //solhint-disable-next-line max-line-length // require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); // _burn(tokenId); // } function _beforeTokenTransfer(address from, address to, uint256 tokenId, uint256 batchSize) internal whenNotPaused override { super._beforeTokenTransfer(from, to, tokenId, batchSize); } // The following functions are overrides required by Solidity. function supportsInterface(bytes4 interfaceId) public view override(ERC721, AccessControl) returns (bool) { return super.supportsInterface(interfaceId); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ```solidity * 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}: * * ```solidity * 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. We recommend using {AccessControlDefaultAdminRules} * to enforce additional security measures for this role. */ 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(account), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: address zero is not a valid owner"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _ownerOf(tokenId); require(owner != address(0), "ERC721: invalid token ID"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { _requireMinted(tokenId); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not token owner or approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom(address from, address to, uint256 tokenId) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner or approved"); _safeTransfer(from, to, tokenId, data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist */ function _ownerOf(uint256 tokenId) internal view virtual returns (address) { return _owners[tokenId]; } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _ownerOf(tokenId) != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId, 1); // Check that tokenId was not minted by `_beforeTokenTransfer` hook require(!_exists(tokenId), "ERC721: token already minted"); unchecked { // Will not overflow unless all 2**256 token ids are minted to the same owner. // Given that tokens are minted one by one, it is impossible in practice that // this ever happens. Might change if we allow batch minting. // The ERC fails to describe this case. _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId, 1); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * This is an internal function that does not check if the sender is authorized to operate on the token. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId, 1); // Update ownership in case tokenId was transferred by `_beforeTokenTransfer` hook owner = ERC721.ownerOf(tokenId); // Clear approvals delete _tokenApprovals[tokenId]; unchecked { // Cannot overflow, as that would require more tokens to be burned/transferred // out than the owner initially received through minting and transferring in. _balances[owner] -= 1; } delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId, 1); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer(address from, address to, uint256 tokenId) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId, 1); // Check that tokenId was not transferred by `_beforeTokenTransfer` hook require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); // Clear approvals from the previous owner delete _tokenApprovals[tokenId]; unchecked { // `_balances[from]` cannot overflow for the same reason as described in `_burn`: // `from`'s balance is the number of token held, which is at least one before the current // transfer. // `_balances[to]` could overflow in the conditions described in `_mint`. That would require // all 2**256 token ids to be minted, which in practice is impossible. _balances[from] -= 1; _balances[to] += 1; } _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId, 1); } /** * @dev Approve `to` to operate on `tokenId` * * Emits an {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Reverts if the `tokenId` has not been minted yet. */ function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721: invalid token ID"); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens will be transferred to `to`. * - When `from` is zero, the tokens will be minted for `to`. * - When `to` is zero, ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Hook that is called after any token transfer. This includes minting and burning. If {ERC721Consecutive} is * used, the hook may be called as part of a consecutive (batch) mint, as indicated by `batchSize` greater than 1. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s tokens were transferred to `to`. * - When `from` is zero, the tokens were minted for `to`. * - When `to` is zero, ``from``'s tokens were burned. * - `from` and `to` are never both zero. * - `batchSize` is non-zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 firstTokenId, uint256 batchSize) internal virtual {} /** * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override. * * WARNING: Anyone calling this MUST ensure that the balances remain consistent with the ownership. The invariant * being that for any address `a` the value returned by `balanceOf(a)` must be equal to the number of tokens such * that `ownerOf(tokenId)` is `a`. */ // solhint-disable-next-line func-name-mixedcase function __unsafe_increaseBalance(address account, uint256 amount) internal { _balances[account] += amount; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.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 * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [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://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) pragma solidity ^0.8.0; /** * @title Counters * @author Matt Condon (@shrugs) * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number * of elements in a mapping, issuing ERC721 ids, or counting request ids. * * Include with `using Counters for Counters.Counter;` */ library Counters { struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { unchecked { counter._value += 1; } } function decrement(Counter storage counter) internal { uint256 value = counter._value; require(value > 0, "Counter: decrement overflow"); unchecked { counter._value = value - 1; } } function reset(Counter storage counter) internal { counter._value = 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @dev Standard signed math utilities missing in the Solidity language. */ library SignedMath { /** * @dev Returns the largest of two signed numbers. */ function max(int256 a, int256 b) internal pure returns (int256) { return a > b ? a : b; } /** * @dev Returns the smallest of two signed numbers. */ function min(int256 a, int256 b) internal pure returns (int256) { return a < b ? a : b; } /** * @dev Returns the average of two signed numbers without overflow. * The result is rounded towards zero. */ function average(int256 a, int256 b) internal pure returns (int256) { // Formula from the book "Hacker's Delight" int256 x = (a & b) + ((a ^ b) >> 1); return x + (int256(uint256(x) >> 255) & (a ^ b)); } /** * @dev Returns the absolute unsigned value of a signed value. */ function abs(int256 n) internal pure returns (uint256) { unchecked { // must be unchecked in order to support `n = type(int256).min` return uint256(n >= 0 ? n : -n); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value)))); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { unchecked { return toHexString(value, Math.log256(value) + 1); } } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BURNER_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":"MINTER_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":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"safeMint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"supplyLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"updateSupplyLeft","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526040518060400160405280601c81526020017f68747470733a2f2f7777772e6e6674666573742e7774662f6e66742f00000000815250600990816200004a919062000f8b565b50610314600a553480156200005d575f80fd5b506040518060400160405280600f81526020017f4e465446455354204f47205061737300000000000000000000000000000000008152506040518060400160405280600681526020017f4f47504153530000000000000000000000000000000000000000000000000000815250815f9081620000da919062000f8b565b508060019081620000ec919062000f8b565b5050505f60065f6101000a81548160ff0219169083151502179055506200011c5f801b33620001e160201b60201c565b6200014e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620001e160201b60201c565b620001807fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177533620001e160201b60201c565b620001926008620002cd60201b60201c565b5f5b6058811015620001da57620001c3737495db41440a1c32091dbc50c0c88c4ab8a77508620002e160201b60201c565b508080620001d1906200109c565b91505062000194565b50620017d6565b620001f38282620003b260201b60201c565b620002c957600160075f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055506200026e6200041660201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6001815f015f828254019250508190555050565b5f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a662000314816200041d60201b60201c565b5f600a54116200035b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620003529062001146565b60405180910390fd5b600a5f8154809291906200036f9062001166565b91905055506200038660086200044160201b60201c565b91506200039a6008620002cd60201b60201c565b620003ac83836200044d60201b60201c565b50919050565b5f60075f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b5f33905090565b6200043e81620004326200041660201b60201c565b6200047260201b60201c565b50565b5f815f01549050919050565b6200046e828260405180602001604052805f8152506200051360201b60201c565b5050565b620004848282620003b260201b60201c565b6200050f576200049a816200058060201b60201c565b620004af835f1c6020620005b560201b60201c565b604051602001620004c292919062001298565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000506919062001329565b60405180910390fd5b5050565b6200052583836200080960201b60201c565b620005395f84848462000a4560201b60201c565b6200057b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200057290620013bf565b60405180910390fd5b505050565b6060620005ae8273ffffffffffffffffffffffffffffffffffffffff16601460ff16620005b560201b60201c565b9050919050565b60605f6002836002620005c99190620013df565b620005d5919062001429565b67ffffffffffffffff811115620005f157620005f062000d31565b5b6040519080825280601f01601f191660200182016040528015620006245781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000815f815181106200065e576200065d62001463565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110620006c457620006c362001463565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f6001846002620007049190620013df565b62000710919062001429565b90505b6001811115620007b9577f3031323334353637383961626364656600000000000000000000000000000000600f86166010811062000756576200075562001463565b5b1a60f81b82828151811062000770576200076f62001463565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600485901c945080620007b19062001166565b905062000713565b505f8414620007ff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620007f690620014de565b60405180910390fd5b8091505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036200087a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000871906200154c565b60405180910390fd5b6200088b8162000be460201b60201c565b15620008ce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620008c590620015ba565b60405180910390fd5b620008e35f8383600162000c2c60201b60201c565b620008f48162000be460201b60201c565b1562000937576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016200092e90620015ba565b60405180910390fd5b600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a462000a415f8383600162000c5660201b60201c565b5050565b5f62000a6d8473ffffffffffffffffffffffffffffffffffffffff1662000c5c60201b60201c565b1562000bd7578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0262000a9f6200041660201b60201c565b8786866040518563ffffffff1660e01b815260040162000ac3949392919062001688565b6020604051808303815f875af192505050801562000b0157506040513d601f19601f8201168201806040525081019062000afe919062001738565b60015b62000b86573d805f811462000b32576040519150601f19603f3d011682016040523d82523d5f602084013e62000b37565b606091505b505f81510362000b7e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000b7590620013bf565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505062000bdc565b600190505b949350505050565b5f8073ffffffffffffffffffffffffffffffffffffffff1662000c0d8362000c7e60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b62000c3c62000cb760201b60201c565b62000c508484848462000d0c60201b60201c565b50505050565b50505050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b62000cc762000d1260201b60201c565b1562000d0a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040162000d0190620017b6565b60405180910390fd5b565b50505050565b5f60065f9054906101000a900460ff16905090565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168062000da357607f821691505b60208210810362000db95762000db862000d5e565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830262000e1d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8262000de0565b62000e29868362000de0565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f62000e7362000e6d62000e678462000e41565b62000e4a565b62000e41565b9050919050565b5f819050919050565b62000e8e8362000e53565b62000ea662000e9d8262000e7a565b84845462000dec565b825550505050565b5f90565b62000ebc62000eae565b62000ec981848462000e83565b505050565b5b8181101562000ef05762000ee45f8262000eb2565b60018101905062000ecf565b5050565b601f82111562000f3f5762000f098162000dbf565b62000f148462000dd1565b8101602085101562000f24578190505b62000f3c62000f338562000dd1565b83018262000ece565b50505b505050565b5f82821c905092915050565b5f62000f615f198460080262000f44565b1980831691505092915050565b5f62000f7b838362000f50565b9150826002028217905092915050565b62000f968262000d27565b67ffffffffffffffff81111562000fb25762000fb162000d31565b5b62000fbe825462000d8b565b62000fcb82828562000ef4565b5f60209050601f83116001811462001001575f841562000fec578287015190505b62000ff8858262000f6e565b86555062001067565b601f198416620010118662000dbf565b5f5b828110156200103a5784890151825560018201915060208501945060208101905062001013565b868310156200105a578489015162001056601f89168262000f50565b8355505b6001600288020188555050505b505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f620010a88262000e41565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203620010dd57620010dc6200106f565b5b600182019050919050565b5f82825260208201905092915050565b7f6e6f20656e747279206c656674000000000000000000000000000000000000005f82015250565b5f6200112e600d83620010e8565b91506200113b82620010f8565b602082019050919050565b5f6020820190508181035f8301526200115f8162001120565b9050919050565b5f620011728262000e41565b91505f82036200118757620011866200106f565b5b600182039050919050565b5f81905092915050565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000005f82015250565b5f620011d260178362001192565b9150620011df826200119c565b601782019050919050565b5f5b8381101562001209578082015181840152602081019050620011ec565b5f8484015250505050565b5f620012208262000d27565b6200122c818562001192565b93506200123e818560208601620011ea565b80840191505092915050565b7f206973206d697373696e6720726f6c65200000000000000000000000000000005f82015250565b5f6200128060118362001192565b91506200128d826200124a565b601182019050919050565b5f620012a482620011c4565b9150620012b2828562001214565b9150620012bf8262001272565b9150620012cd828462001214565b91508190509392505050565b5f601f19601f8301169050919050565b5f620012f58262000d27565b620013018185620010e8565b935062001313818560208601620011ea565b6200131e81620012d9565b840191505092915050565b5f6020820190508181035f830152620013438184620012e9565b905092915050565b7f4552433732313a207472616e7366657220746f206e6f6e2045524337323152655f8201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b5f620013a7603283620010e8565b9150620013b4826200134b565b604082019050919050565b5f6020820190508181035f830152620013d88162001399565b9050919050565b5f620013eb8262000e41565b9150620013f88362000e41565b9250828202620014088162000e41565b915082820484148315176200142257620014216200106f565b5b5092915050565b5f620014358262000e41565b9150620014428362000e41565b92508282019050808211156200145d576200145c6200106f565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f537472696e67733a20686578206c656e67746820696e73756666696369656e745f82015250565b5f620014c6602083620010e8565b9150620014d38262001490565b602082019050919050565b5f6020820190508181035f830152620014f781620014b8565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f20616464726573735f82015250565b5f62001534602083620010e8565b91506200154182620014fe565b602082019050919050565b5f6020820190508181035f830152620015658162001526565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e746564000000005f82015250565b5f620015a2601c83620010e8565b9150620015af826200156c565b602082019050919050565b5f6020820190508181035f830152620015d38162001594565b9050919050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6200160582620015da565b9050919050565b6200161781620015f9565b82525050565b620016288162000e41565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f62001654826200162e565b62001660818562001638565b935062001672818560208601620011ea565b6200167d81620012d9565b840191505092915050565b5f6080820190506200169d5f8301876200160c565b620016ac60208301866200160c565b620016bb60408301856200161d565b8181036060830152620016cf818462001648565b905095945050505050565b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6200171481620016de565b81146200171f575f80fd5b50565b5f81519050620017328162001709565b92915050565b5f6020828403121562001750576200174f620016da565b5b5f6200175f8482850162001722565b91505092915050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f6200179e601083620010e8565b9150620017ab8262001768565b602082019050919050565b5f6020820190508181035f830152620017cf8162001790565b9050919050565b61394f80620017e45f395ff3fe608060405234801561000f575f80fd5b50600436106101cd575f3560e01c806370a0823111610102578063a22cb465116100a0578063d53913931161006f578063d539139314610515578063d547741f14610533578063e985e9c51461054f578063fdcf9d071461057f576101cd565b8063a22cb46514610491578063a2979b72146104ad578063b88d4fde146104c9578063c87b56dd146104e5576101cd565b806391d14854116100dc57806391d148541461040957806395d89b41146104395780639b642de114610457578063a217fddf14610473576101cd565b806370a08231146103b157806375b238fc146103e15780638456cb59146103ff576101cd565b80632f2ff15d1161016f57806340d097c31161014957806340d097c31461031757806342842e0e146103475780635c975abb146103635780636352211e14610381576101cd565b80632f2ff15d146102d557806336568abe146102f15780633f4ba83a1461030d576101cd565b8063095ea7b3116101ab578063095ea7b31461024f57806323b872dd1461026b578063248a9ca314610287578063282c51f3146102b7576101cd565b806301ffc9a7146101d157806306fdde0314610201578063081812fc1461021f575b5f80fd5b6101eb60048036038101906101e691906124b5565b61059d565b6040516101f891906124fa565b60405180910390f35b6102096105ae565b604051610216919061259d565b60405180910390f35b610239600480360381019061023491906125f0565b61063d565b604051610246919061265a565b60405180910390f35b6102696004803603810190610264919061269d565b61067f565b005b610285600480360381019061028091906126db565b610795565b005b6102a1600480360381019061029c919061275e565b6107f5565b6040516102ae9190612798565b60405180910390f35b6102bf610812565b6040516102cc9190612798565b60405180910390f35b6102ef60048036038101906102ea91906127b1565b610836565b005b61030b600480360381019061030691906127b1565b610857565b005b6103156108da565b005b610331600480360381019061032c91906127ef565b61090f565b60405161033e9190612829565b60405180910390f35b610361600480360381019061035c91906126db565b6109bb565b005b61036b6109da565b60405161037891906124fa565b60405180910390f35b61039b600480360381019061039691906125f0565b6109ef565b6040516103a8919061265a565b60405180910390f35b6103cb60048036038101906103c691906127ef565b610a73565b6040516103d89190612829565b60405180910390f35b6103e9610b27565b6040516103f69190612798565b60405180910390f35b610407610b4b565b005b610423600480360381019061041e91906127b1565b610b80565b60405161043091906124fa565b60405180910390f35b610441610be4565b60405161044e919061259d565b60405180910390f35b610471600480360381019061046c919061296e565b610c74565b005b61047b610cb2565b6040516104889190612798565b60405180910390f35b6104ab60048036038101906104a691906129df565b610cb8565b005b6104c760048036038101906104c291906125f0565b610cce565b005b6104e360048036038101906104de9190612abb565b610d03565b005b6104ff60048036038101906104fa91906125f0565b610d65565b60405161050c919061259d565b60405180910390f35b61051d610dca565b60405161052a9190612798565b60405180910390f35b61054d600480360381019061054891906127b1565b610dee565b005b61056960048036038101906105649190612b3b565b610e0f565b60405161057691906124fa565b60405180910390f35b610587610e9d565b6040516105949190612829565b60405180910390f35b5f6105a782610ea3565b9050919050565b60605f80546105bc90612ba6565b80601f01602080910402602001604051908101604052809291908181526020018280546105e890612ba6565b80156106335780601f1061060a57610100808354040283529160200191610633565b820191905f5260205f20905b81548152906001019060200180831161061657829003601f168201915b5050505050905090565b5f61064782610f1c565b60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f610689826109ef565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036106f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f090612c46565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610718610f67565b73ffffffffffffffffffffffffffffffffffffffff161480610747575061074681610741610f67565b610e0f565b5b610786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077d90612cd4565b60405180910390fd5b6107908383610f6e565b505050565b6107a66107a0610f67565b82611024565b6107e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107dc90612d62565b60405180910390fd5b6107f08383836110b8565b505050565b5f60075f8381526020019081526020015f20600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61083f826107f5565b610848816113a4565b61085283836113b8565b505050565b61085f610f67565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c390612df0565b60405180910390fd5b6108d68282611493565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610904816113a4565b61090c61156e565b50565b5f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661093a816113a4565b5f600a541161097e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097590612e58565b60405180910390fd5b600a5f81548092919061099090612ea3565b919050555061099f60086115cf565b91506109ab60086115db565b6109b583836115ef565b50919050565b6109d583838360405180602001604052805f815250610d03565b505050565b5f60065f9054906101000a900460ff16905090565b5f806109fa8361160c565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6190612f14565b60405180910390fd5b80915050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ae2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad990612fa2565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610b75816113a4565b610b7d611645565b50565b5f60075f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b606060018054610bf390612ba6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1f90612ba6565b8015610c6a5780601f10610c4157610100808354040283529160200191610c6a565b820191905f5260205f20905b815481529060010190602001808311610c4d57829003601f168201915b5050505050905090565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610c9e816113a4565b8160099081610cad919061315d565b505050565b5f801b81565b610cca610cc3610f67565b83836116a7565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610cf8816113a4565b81600a819055505050565b610d14610d0e610f67565b83611024565b610d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4a90612d62565b60405180910390fd5b610d5f8484848461180e565b50505050565b6060610d7082610f1c565b5f610d7961186a565b90505f815111610d975760405180602001604052805f815250610dc2565b80610da1846118fa565b604051602001610db2929190613266565b6040516020818303038152906040525b915050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610df7826107f5565b610e00816113a4565b610e0a8383611493565b505050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b600a5481565b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610f155750610f14826119c4565b5b9050919050565b610f2581611aa5565b610f64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5b90612f14565b60405180910390fd5b50565b5f33905090565b8160045f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16610fde836109ef565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f8061102f836109ef565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061107157506110708185610e0f565b5b806110af57508373ffffffffffffffffffffffffffffffffffffffff166110978461063d565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166110d8826109ef565b73ffffffffffffffffffffffffffffffffffffffff161461112e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611125906132f9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361119c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119390613387565b60405180910390fd5b6111a98383836001611ae5565b8273ffffffffffffffffffffffffffffffffffffffff166111c9826109ef565b73ffffffffffffffffffffffffffffffffffffffff161461121f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611216906132f9565b60405180910390fd5b60045f8281526020019081526020015f205f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540392505081905550600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461139f8383836001611aff565b505050565b6113b5816113b0610f67565b611b05565b50565b6113c28282610b80565b61148f57600160075f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550611434610f67565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61149d8282610b80565b1561156a575f60075f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555061150f610f67565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611576611b89565b5f60065f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6115b8610f67565b6040516115c5919061265a565b60405180910390a1565b5f815f01549050919050565b6001815f015f828254019250508190555050565b611608828260405180602001604052805f815250611bd2565b5050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b61164d611c2c565b600160065f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611690610f67565b60405161169d919061265a565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170c906133ef565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161180191906124fa565b60405180910390a3505050565b6118198484846110b8565b61182584848484611c76565b611864576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185b9061347d565b60405180910390fd5b50505050565b60606009805461187990612ba6565b80601f01602080910402602001604051908101604052809291908181526020018280546118a590612ba6565b80156118f05780601f106118c7576101008083540402835291602001916118f0565b820191905f5260205f20905b8154815290600101906020018083116118d357829003601f168201915b5050505050905090565b60605f600161190884611df8565b0190505f8167ffffffffffffffff8111156119265761192561284a565b5b6040519080825280601f01601f1916602001820160405280156119585781602001600182028036833780820191505090505b5090505f82602001820190505b6001156119b9578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816119ae576119ad61349b565b5b0494505f8503611965575b819350505050919050565b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a8e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611a9e5750611a9d82611f49565b5b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff16611ac68361160c565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b611aed611c2c565b611af984848484611fb2565b50505050565b50505050565b611b0f8282610b80565b611b8557611b1c81611fb8565b611b29835f1c6020611fe5565b604051602001611b3a92919061355c565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7c919061259d565b60405180910390fd5b5050565b611b916109da565b611bd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc7906135df565b60405180910390fd5b565b611bdc838361221a565b611be85f848484611c76565b611c27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1e9061347d565b60405180910390fd5b505050565b611c346109da565b15611c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6b90613647565b60405180910390fd5b565b5f611c968473ffffffffffffffffffffffffffffffffffffffff1661242d565b15611deb578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611cbf610f67565b8786866040518563ffffffff1660e01b8152600401611ce194939291906136b7565b6020604051808303815f875af1925050508015611d1c57506040513d601f19601f82011682018060405250810190611d199190613715565b60015b611d9b573d805f8114611d4a576040519150601f19603f3d011682016040523d82523d5f602084013e611d4f565b606091505b505f815103611d93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8a9061347d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050611df0565b600190505b949350505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611e54577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611e4a57611e4961349b565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611e91576d04ee2d6d415b85acef81000000008381611e8757611e8661349b565b5b0492506020810190505b662386f26fc100008310611ec057662386f26fc100008381611eb657611eb561349b565b5b0492506010810190505b6305f5e1008310611ee9576305f5e1008381611edf57611ede61349b565b5b0492506008810190505b6127108310611f0e576127108381611f0457611f0361349b565b5b0492506004810190505b60648310611f315760648381611f2757611f2661349b565b5b0492506002810190505b600a8310611f40576001810190505b80915050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b6060611fde8273ffffffffffffffffffffffffffffffffffffffff16601460ff16611fe5565b9050919050565b60605f6002836002611ff79190613740565b6120019190613781565b67ffffffffffffffff81111561201a5761201961284a565b5b6040519080825280601f01601f19166020018201604052801561204c5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000815f81518110612083576120826137b4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106120e6576120e56137b4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f60018460026121249190613740565b61212e9190613781565b90505b60018111156121cd577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106121705761216f6137b4565b5b1a60f81b828281518110612187576121866137b4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600485901c9450806121c690612ea3565b9050612131565b505f8414612210576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122079061382b565b60405180910390fd5b8091505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227f90613893565b60405180910390fd5b61229181611aa5565b156122d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c8906138fb565b60405180910390fd5b6122de5f83836001611ae5565b6122e781611aa5565b15612327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231e906138fb565b60405180910390fd5b600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124295f83836001611aff565b5050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61249481612460565b811461249e575f80fd5b50565b5f813590506124af8161248b565b92915050565b5f602082840312156124ca576124c9612458565b5b5f6124d7848285016124a1565b91505092915050565b5f8115159050919050565b6124f4816124e0565b82525050565b5f60208201905061250d5f8301846124eb565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561254a57808201518184015260208101905061252f565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61256f82612513565b612579818561251d565b935061258981856020860161252d565b61259281612555565b840191505092915050565b5f6020820190508181035f8301526125b58184612565565b905092915050565b5f819050919050565b6125cf816125bd565b81146125d9575f80fd5b50565b5f813590506125ea816125c6565b92915050565b5f6020828403121561260557612604612458565b5b5f612612848285016125dc565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6126448261261b565b9050919050565b6126548161263a565b82525050565b5f60208201905061266d5f83018461264b565b92915050565b61267c8161263a565b8114612686575f80fd5b50565b5f8135905061269781612673565b92915050565b5f80604083850312156126b3576126b2612458565b5b5f6126c085828601612689565b92505060206126d1858286016125dc565b9150509250929050565b5f805f606084860312156126f2576126f1612458565b5b5f6126ff86828701612689565b935050602061271086828701612689565b9250506040612721868287016125dc565b9150509250925092565b5f819050919050565b61273d8161272b565b8114612747575f80fd5b50565b5f8135905061275881612734565b92915050565b5f6020828403121561277357612772612458565b5b5f6127808482850161274a565b91505092915050565b6127928161272b565b82525050565b5f6020820190506127ab5f830184612789565b92915050565b5f80604083850312156127c7576127c6612458565b5b5f6127d48582860161274a565b92505060206127e585828601612689565b9150509250929050565b5f6020828403121561280457612803612458565b5b5f61281184828501612689565b91505092915050565b612823816125bd565b82525050565b5f60208201905061283c5f83018461281a565b92915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61288082612555565b810181811067ffffffffffffffff8211171561289f5761289e61284a565b5b80604052505050565b5f6128b161244f565b90506128bd8282612877565b919050565b5f67ffffffffffffffff8211156128dc576128db61284a565b5b6128e582612555565b9050602081019050919050565b828183375f83830152505050565b5f61291261290d846128c2565b6128a8565b90508281526020810184848401111561292e5761292d612846565b5b6129398482856128f2565b509392505050565b5f82601f83011261295557612954612842565b5b8135612965848260208601612900565b91505092915050565b5f6020828403121561298357612982612458565b5b5f82013567ffffffffffffffff8111156129a05761299f61245c565b5b6129ac84828501612941565b91505092915050565b6129be816124e0565b81146129c8575f80fd5b50565b5f813590506129d9816129b5565b92915050565b5f80604083850312156129f5576129f4612458565b5b5f612a0285828601612689565b9250506020612a13858286016129cb565b9150509250929050565b5f67ffffffffffffffff821115612a3757612a3661284a565b5b612a4082612555565b9050602081019050919050565b5f612a5f612a5a84612a1d565b6128a8565b905082815260208101848484011115612a7b57612a7a612846565b5b612a868482856128f2565b509392505050565b5f82601f830112612aa257612aa1612842565b5b8135612ab2848260208601612a4d565b91505092915050565b5f805f8060808587031215612ad357612ad2612458565b5b5f612ae087828801612689565b9450506020612af187828801612689565b9350506040612b02878288016125dc565b925050606085013567ffffffffffffffff811115612b2357612b2261245c565b5b612b2f87828801612a8e565b91505092959194509250565b5f8060408385031215612b5157612b50612458565b5b5f612b5e85828601612689565b9250506020612b6f85828601612689565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612bbd57607f821691505b602082108103612bd057612bcf612b79565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e655f8201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b5f612c3060218361251d565b9150612c3b82612bd6565b604082019050919050565b5f6020820190508181035f830152612c5d81612c24565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f5f8201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b5f612cbe603d8361251d565b9150612cc982612c64565b604082019050919050565b5f6020820190508181035f830152612ceb81612cb2565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e655f8201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b5f612d4c602d8361251d565b9150612d5782612cf2565b604082019050919050565b5f6020820190508181035f830152612d7981612d40565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e63655f8201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b5f612dda602f8361251d565b9150612de582612d80565b604082019050919050565b5f6020820190508181035f830152612e0781612dce565b9050919050565b7f6e6f20656e747279206c656674000000000000000000000000000000000000005f82015250565b5f612e42600d8361251d565b9150612e4d82612e0e565b602082019050919050565b5f6020820190508181035f830152612e6f81612e36565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612ead826125bd565b91505f8203612ebf57612ebe612e76565b5b600182039050919050565b7f4552433732313a20696e76616c696420746f6b656e20494400000000000000005f82015250565b5f612efe60188361251d565b9150612f0982612eca565b602082019050919050565b5f6020820190508181035f830152612f2b81612ef2565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f7420612076615f8201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b5f612f8c60298361251d565b9150612f9782612f32565b604082019050919050565b5f6020820190508181035f830152612fb981612f80565b9050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261301c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612fe1565b6130268683612fe1565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61306161305c613057846125bd565b61303e565b6125bd565b9050919050565b5f819050919050565b61307a83613047565b61308e61308682613068565b848454612fed565b825550505050565b5f90565b6130a2613096565b6130ad818484613071565b505050565b5b818110156130d0576130c55f8261309a565b6001810190506130b3565b5050565b601f821115613115576130e681612fc0565b6130ef84612fd2565b810160208510156130fe578190505b61311261310a85612fd2565b8301826130b2565b50505b505050565b5f82821c905092915050565b5f6131355f198460080261311a565b1980831691505092915050565b5f61314d8383613126565b9150826002028217905092915050565b61316682612513565b67ffffffffffffffff81111561317f5761317e61284a565b5b6131898254612ba6565b6131948282856130d4565b5f60209050601f8311600181146131c5575f84156131b3578287015190505b6131bd8582613142565b865550613224565b601f1984166131d386612fc0565b5f5b828110156131fa578489015182556001820191506020850194506020810190506131d5565b868310156132175784890151613213601f891682613126565b8355505b6001600288020188555050505b505050505050565b5f81905092915050565b5f61324082612513565b61324a818561322c565b935061325a81856020860161252d565b80840191505092915050565b5f6132718285613236565b915061327d8284613236565b91508190509392505050565b7f4552433732313a207472616e736665722066726f6d20696e636f7272656374205f8201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b5f6132e360258361251d565b91506132ee82613289565b604082019050919050565b5f6020820190508181035f830152613310816132d7565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f61337160248361251d565b915061337c82613317565b604082019050919050565b5f6020820190508181035f83015261339e81613365565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c6572000000000000005f82015250565b5f6133d960198361251d565b91506133e4826133a5565b602082019050919050565b5f6020820190508181035f830152613406816133cd565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e2045524337323152655f8201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b5f61346760328361251d565b91506134728261340d565b604082019050919050565b5f6020820190508181035f8301526134948161345b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000005f82015250565b5f6134fc60178361322c565b9150613507826134c8565b601782019050919050565b7f206973206d697373696e6720726f6c65200000000000000000000000000000005f82015250565b5f61354660118361322c565b915061355182613512565b601182019050919050565b5f613566826134f0565b91506135728285613236565b915061357d8261353a565b91506135898284613236565b91508190509392505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f6135c960148361251d565b91506135d482613595565b602082019050919050565b5f6020820190508181035f8301526135f6816135bd565b9050919050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f61363160108361251d565b915061363c826135fd565b602082019050919050565b5f6020820190508181035f83015261365e81613625565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f61368982613665565b613693818561366f565b93506136a381856020860161252d565b6136ac81612555565b840191505092915050565b5f6080820190506136ca5f83018761264b565b6136d7602083018661264b565b6136e4604083018561281a565b81810360608301526136f6818461367f565b905095945050505050565b5f8151905061370f8161248b565b92915050565b5f6020828403121561372a57613729612458565b5b5f61373784828501613701565b91505092915050565b5f61374a826125bd565b9150613755836125bd565b9250828202613763816125bd565b9150828204841483151761377a57613779612e76565b5b5092915050565b5f61378b826125bd565b9150613796836125bd565b92508282019050808211156137ae576137ad612e76565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f537472696e67733a20686578206c656e67746820696e73756666696369656e745f82015250565b5f61381560208361251d565b9150613820826137e1565b602082019050919050565b5f6020820190508181035f83015261384281613809565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f20616464726573735f82015250565b5f61387d60208361251d565b915061388882613849565b602082019050919050565b5f6020820190508181035f8301526138aa81613871565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e746564000000005f82015250565b5f6138e5601c8361251d565b91506138f0826138b1565b602082019050919050565b5f6020820190508181035f830152613912816138d9565b905091905056fea2646970667358221220431f63aab923a82049cd4a1693612d830c9d1912a82f08ba672d2ae82915b5c864736f6c63430008140033
Deployed Bytecode
0x608060405234801561000f575f80fd5b50600436106101cd575f3560e01c806370a0823111610102578063a22cb465116100a0578063d53913931161006f578063d539139314610515578063d547741f14610533578063e985e9c51461054f578063fdcf9d071461057f576101cd565b8063a22cb46514610491578063a2979b72146104ad578063b88d4fde146104c9578063c87b56dd146104e5576101cd565b806391d14854116100dc57806391d148541461040957806395d89b41146104395780639b642de114610457578063a217fddf14610473576101cd565b806370a08231146103b157806375b238fc146103e15780638456cb59146103ff576101cd565b80632f2ff15d1161016f57806340d097c31161014957806340d097c31461031757806342842e0e146103475780635c975abb146103635780636352211e14610381576101cd565b80632f2ff15d146102d557806336568abe146102f15780633f4ba83a1461030d576101cd565b8063095ea7b3116101ab578063095ea7b31461024f57806323b872dd1461026b578063248a9ca314610287578063282c51f3146102b7576101cd565b806301ffc9a7146101d157806306fdde0314610201578063081812fc1461021f575b5f80fd5b6101eb60048036038101906101e691906124b5565b61059d565b6040516101f891906124fa565b60405180910390f35b6102096105ae565b604051610216919061259d565b60405180910390f35b610239600480360381019061023491906125f0565b61063d565b604051610246919061265a565b60405180910390f35b6102696004803603810190610264919061269d565b61067f565b005b610285600480360381019061028091906126db565b610795565b005b6102a1600480360381019061029c919061275e565b6107f5565b6040516102ae9190612798565b60405180910390f35b6102bf610812565b6040516102cc9190612798565b60405180910390f35b6102ef60048036038101906102ea91906127b1565b610836565b005b61030b600480360381019061030691906127b1565b610857565b005b6103156108da565b005b610331600480360381019061032c91906127ef565b61090f565b60405161033e9190612829565b60405180910390f35b610361600480360381019061035c91906126db565b6109bb565b005b61036b6109da565b60405161037891906124fa565b60405180910390f35b61039b600480360381019061039691906125f0565b6109ef565b6040516103a8919061265a565b60405180910390f35b6103cb60048036038101906103c691906127ef565b610a73565b6040516103d89190612829565b60405180910390f35b6103e9610b27565b6040516103f69190612798565b60405180910390f35b610407610b4b565b005b610423600480360381019061041e91906127b1565b610b80565b60405161043091906124fa565b60405180910390f35b610441610be4565b60405161044e919061259d565b60405180910390f35b610471600480360381019061046c919061296e565b610c74565b005b61047b610cb2565b6040516104889190612798565b60405180910390f35b6104ab60048036038101906104a691906129df565b610cb8565b005b6104c760048036038101906104c291906125f0565b610cce565b005b6104e360048036038101906104de9190612abb565b610d03565b005b6104ff60048036038101906104fa91906125f0565b610d65565b60405161050c919061259d565b60405180910390f35b61051d610dca565b60405161052a9190612798565b60405180910390f35b61054d600480360381019061054891906127b1565b610dee565b005b61056960048036038101906105649190612b3b565b610e0f565b60405161057691906124fa565b60405180910390f35b610587610e9d565b6040516105949190612829565b60405180910390f35b5f6105a782610ea3565b9050919050565b60605f80546105bc90612ba6565b80601f01602080910402602001604051908101604052809291908181526020018280546105e890612ba6565b80156106335780601f1061060a57610100808354040283529160200191610633565b820191905f5260205f20905b81548152906001019060200180831161061657829003601f168201915b5050505050905090565b5f61064782610f1c565b60045f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f610689826109ef565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036106f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f090612c46565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610718610f67565b73ffffffffffffffffffffffffffffffffffffffff161480610747575061074681610741610f67565b610e0f565b5b610786576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077d90612cd4565b60405180910390fd5b6107908383610f6e565b505050565b6107a66107a0610f67565b82611024565b6107e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107dc90612d62565b60405180910390fd5b6107f08383836110b8565b505050565b5f60075f8381526020019081526020015f20600101549050919050565b7f3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a84881565b61083f826107f5565b610848816113a4565b61085283836113b8565b505050565b61085f610f67565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146108cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108c390612df0565b60405180910390fd5b6108d68282611493565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610904816113a4565b61090c61156e565b50565b5f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a661093a816113a4565b5f600a541161097e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161097590612e58565b60405180910390fd5b600a5f81548092919061099090612ea3565b919050555061099f60086115cf565b91506109ab60086115db565b6109b583836115ef565b50919050565b6109d583838360405180602001604052805f815250610d03565b505050565b5f60065f9054906101000a900460ff16905090565b5f806109fa8361160c565b90505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6190612f14565b60405180910390fd5b80915050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ae2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ad990612fa2565b60405180910390fd5b60035f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610b75816113a4565b610b7d611645565b50565b5f60075f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b606060018054610bf390612ba6565b80601f0160208091040260200160405190810160405280929190818152602001828054610c1f90612ba6565b8015610c6a5780601f10610c4157610100808354040283529160200191610c6a565b820191905f5260205f20905b815481529060010190602001808311610c4d57829003601f168201915b5050505050905090565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610c9e816113a4565b8160099081610cad919061315d565b505050565b5f801b81565b610cca610cc3610f67565b83836116a7565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610cf8816113a4565b81600a819055505050565b610d14610d0e610f67565b83611024565b610d53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4a90612d62565b60405180910390fd5b610d5f8484848461180e565b50505050565b6060610d7082610f1c565b5f610d7961186a565b90505f815111610d975760405180602001604052805f815250610dc2565b80610da1846118fa565b604051602001610db2929190613266565b6040516020818303038152906040525b915050919050565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610df7826107f5565b610e00816113a4565b610e0a8383611493565b505050565b5f60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b600a5481565b5f7f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610f155750610f14826119c4565b5b9050919050565b610f2581611aa5565b610f64576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f5b90612f14565b60405180910390fd5b50565b5f33905090565b8160045f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16610fde836109ef565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f8061102f836109ef565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061107157506110708185610e0f565b5b806110af57508373ffffffffffffffffffffffffffffffffffffffff166110978461063d565b73ffffffffffffffffffffffffffffffffffffffff16145b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166110d8826109ef565b73ffffffffffffffffffffffffffffffffffffffff161461112e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611125906132f9565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361119c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119390613387565b60405180910390fd5b6111a98383836001611ae5565b8273ffffffffffffffffffffffffffffffffffffffff166111c9826109ef565b73ffffffffffffffffffffffffffffffffffffffff161461121f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611216906132f9565b60405180910390fd5b60045f8281526020019081526020015f205f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600160035f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8282540392505081905550600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461139f8383836001611aff565b505050565b6113b5816113b0610f67565b611b05565b50565b6113c28282610b80565b61148f57600160075f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff021916908315150217905550611434610f67565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61149d8282610b80565b1561156a575f60075f8481526020019081526020015f205f015f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555061150f610f67565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b611576611b89565b5f60065f6101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6115b8610f67565b6040516115c5919061265a565b60405180910390a1565b5f815f01549050919050565b6001815f015f828254019250508190555050565b611608828260405180602001604052805f815250611bd2565b5050565b5f60025f8381526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b61164d611c2c565b600160065f6101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611690610f67565b60405161169d919061265a565b60405180910390a1565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603611715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161170c906133ef565b60405180910390fd5b8060055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161180191906124fa565b60405180910390a3505050565b6118198484846110b8565b61182584848484611c76565b611864576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185b9061347d565b60405180910390fd5b50505050565b60606009805461187990612ba6565b80601f01602080910402602001604051908101604052809291908181526020018280546118a590612ba6565b80156118f05780601f106118c7576101008083540402835291602001916118f0565b820191905f5260205f20905b8154815290600101906020018083116118d357829003601f168201915b5050505050905090565b60605f600161190884611df8565b0190505f8167ffffffffffffffff8111156119265761192561284a565b5b6040519080825280601f01601f1916602001820160405280156119585781602001600182028036833780820191505090505b5090505f82602001820190505b6001156119b9578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816119ae576119ad61349b565b5b0494505f8503611965575b819350505050919050565b5f7f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611a8e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80611a9e5750611a9d82611f49565b5b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff16611ac68361160c565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b611aed611c2c565b611af984848484611fb2565b50505050565b50505050565b611b0f8282610b80565b611b8557611b1c81611fb8565b611b29835f1c6020611fe5565b604051602001611b3a92919061355c565b6040516020818303038152906040526040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b7c919061259d565b60405180910390fd5b5050565b611b916109da565b611bd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc7906135df565b60405180910390fd5b565b611bdc838361221a565b611be85f848484611c76565b611c27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c1e9061347d565b60405180910390fd5b505050565b611c346109da565b15611c74576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6b90613647565b60405180910390fd5b565b5f611c968473ffffffffffffffffffffffffffffffffffffffff1661242d565b15611deb578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611cbf610f67565b8786866040518563ffffffff1660e01b8152600401611ce194939291906136b7565b6020604051808303815f875af1925050508015611d1c57506040513d601f19601f82011682018060405250810190611d199190613715565b60015b611d9b573d805f8114611d4a576040519150601f19603f3d011682016040523d82523d5f602084013e611d4f565b606091505b505f815103611d93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8a9061347d565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050611df0565b600190505b949350505050565b5f805f90507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611e54577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381611e4a57611e4961349b565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310611e91576d04ee2d6d415b85acef81000000008381611e8757611e8661349b565b5b0492506020810190505b662386f26fc100008310611ec057662386f26fc100008381611eb657611eb561349b565b5b0492506010810190505b6305f5e1008310611ee9576305f5e1008381611edf57611ede61349b565b5b0492506008810190505b6127108310611f0e576127108381611f0457611f0361349b565b5b0492506004810190505b60648310611f315760648381611f2757611f2661349b565b5b0492506002810190505b600a8310611f40576001810190505b80915050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b50505050565b6060611fde8273ffffffffffffffffffffffffffffffffffffffff16601460ff16611fe5565b9050919050565b60605f6002836002611ff79190613740565b6120019190613781565b67ffffffffffffffff81111561201a5761201961284a565b5b6040519080825280601f01601f19166020018201604052801561204c5781602001600182028036833780820191505090505b5090507f3000000000000000000000000000000000000000000000000000000000000000815f81518110612083576120826137b4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053507f7800000000000000000000000000000000000000000000000000000000000000816001815181106120e6576120e56137b4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a9053505f60018460026121249190613740565b61212e9190613781565b90505b60018111156121cd577f3031323334353637383961626364656600000000000000000000000000000000600f8616601081106121705761216f6137b4565b5b1a60f81b828281518110612187576121866137b4565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191690815f1a905350600485901c9450806121c690612ea3565b9050612131565b505f8414612210576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122079061382b565b60405180910390fd5b8091505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612288576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161227f90613893565b60405180910390fd5b61229181611aa5565b156122d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c8906138fb565b60405180910390fd5b6122de5f83836001611ae5565b6122e781611aa5565b15612327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231e906138fb565b60405180910390fd5b600160035f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055508160025f8381526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46124295f83836001611aff565b5050565b5f808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61249481612460565b811461249e575f80fd5b50565b5f813590506124af8161248b565b92915050565b5f602082840312156124ca576124c9612458565b5b5f6124d7848285016124a1565b91505092915050565b5f8115159050919050565b6124f4816124e0565b82525050565b5f60208201905061250d5f8301846124eb565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f5b8381101561254a57808201518184015260208101905061252f565b5f8484015250505050565b5f601f19601f8301169050919050565b5f61256f82612513565b612579818561251d565b935061258981856020860161252d565b61259281612555565b840191505092915050565b5f6020820190508181035f8301526125b58184612565565b905092915050565b5f819050919050565b6125cf816125bd565b81146125d9575f80fd5b50565b5f813590506125ea816125c6565b92915050565b5f6020828403121561260557612604612458565b5b5f612612848285016125dc565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6126448261261b565b9050919050565b6126548161263a565b82525050565b5f60208201905061266d5f83018461264b565b92915050565b61267c8161263a565b8114612686575f80fd5b50565b5f8135905061269781612673565b92915050565b5f80604083850312156126b3576126b2612458565b5b5f6126c085828601612689565b92505060206126d1858286016125dc565b9150509250929050565b5f805f606084860312156126f2576126f1612458565b5b5f6126ff86828701612689565b935050602061271086828701612689565b9250506040612721868287016125dc565b9150509250925092565b5f819050919050565b61273d8161272b565b8114612747575f80fd5b50565b5f8135905061275881612734565b92915050565b5f6020828403121561277357612772612458565b5b5f6127808482850161274a565b91505092915050565b6127928161272b565b82525050565b5f6020820190506127ab5f830184612789565b92915050565b5f80604083850312156127c7576127c6612458565b5b5f6127d48582860161274a565b92505060206127e585828601612689565b9150509250929050565b5f6020828403121561280457612803612458565b5b5f61281184828501612689565b91505092915050565b612823816125bd565b82525050565b5f60208201905061283c5f83018461281a565b92915050565b5f80fd5b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61288082612555565b810181811067ffffffffffffffff8211171561289f5761289e61284a565b5b80604052505050565b5f6128b161244f565b90506128bd8282612877565b919050565b5f67ffffffffffffffff8211156128dc576128db61284a565b5b6128e582612555565b9050602081019050919050565b828183375f83830152505050565b5f61291261290d846128c2565b6128a8565b90508281526020810184848401111561292e5761292d612846565b5b6129398482856128f2565b509392505050565b5f82601f83011261295557612954612842565b5b8135612965848260208601612900565b91505092915050565b5f6020828403121561298357612982612458565b5b5f82013567ffffffffffffffff8111156129a05761299f61245c565b5b6129ac84828501612941565b91505092915050565b6129be816124e0565b81146129c8575f80fd5b50565b5f813590506129d9816129b5565b92915050565b5f80604083850312156129f5576129f4612458565b5b5f612a0285828601612689565b9250506020612a13858286016129cb565b9150509250929050565b5f67ffffffffffffffff821115612a3757612a3661284a565b5b612a4082612555565b9050602081019050919050565b5f612a5f612a5a84612a1d565b6128a8565b905082815260208101848484011115612a7b57612a7a612846565b5b612a868482856128f2565b509392505050565b5f82601f830112612aa257612aa1612842565b5b8135612ab2848260208601612a4d565b91505092915050565b5f805f8060808587031215612ad357612ad2612458565b5b5f612ae087828801612689565b9450506020612af187828801612689565b9350506040612b02878288016125dc565b925050606085013567ffffffffffffffff811115612b2357612b2261245c565b5b612b2f87828801612a8e565b91505092959194509250565b5f8060408385031215612b5157612b50612458565b5b5f612b5e85828601612689565b9250506020612b6f85828601612689565b9150509250929050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680612bbd57607f821691505b602082108103612bd057612bcf612b79565b5b50919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e655f8201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b5f612c3060218361251d565b9150612c3b82612bd6565b604082019050919050565b5f6020820190508181035f830152612c5d81612c24565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f5f8201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c000000602082015250565b5f612cbe603d8361251d565b9150612cc982612c64565b604082019050919050565b5f6020820190508181035f830152612ceb81612cb2565b9050919050565b7f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e655f8201527f72206f7220617070726f76656400000000000000000000000000000000000000602082015250565b5f612d4c602d8361251d565b9150612d5782612cf2565b604082019050919050565b5f6020820190508181035f830152612d7981612d40565b9050919050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e63655f8201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b5f612dda602f8361251d565b9150612de582612d80565b604082019050919050565b5f6020820190508181035f830152612e0781612dce565b9050919050565b7f6e6f20656e747279206c656674000000000000000000000000000000000000005f82015250565b5f612e42600d8361251d565b9150612e4d82612e0e565b602082019050919050565b5f6020820190508181035f830152612e6f81612e36565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612ead826125bd565b91505f8203612ebf57612ebe612e76565b5b600182039050919050565b7f4552433732313a20696e76616c696420746f6b656e20494400000000000000005f82015250565b5f612efe60188361251d565b9150612f0982612eca565b602082019050919050565b5f6020820190508181035f830152612f2b81612ef2565b9050919050565b7f4552433732313a2061646472657373207a65726f206973206e6f7420612076615f8201527f6c6964206f776e65720000000000000000000000000000000000000000000000602082015250565b5f612f8c60298361251d565b9150612f9782612f32565b604082019050919050565b5f6020820190508181035f830152612fb981612f80565b9050919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261301c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612fe1565b6130268683612fe1565b95508019841693508086168417925050509392505050565b5f819050919050565b5f61306161305c613057846125bd565b61303e565b6125bd565b9050919050565b5f819050919050565b61307a83613047565b61308e61308682613068565b848454612fed565b825550505050565b5f90565b6130a2613096565b6130ad818484613071565b505050565b5b818110156130d0576130c55f8261309a565b6001810190506130b3565b5050565b601f821115613115576130e681612fc0565b6130ef84612fd2565b810160208510156130fe578190505b61311261310a85612fd2565b8301826130b2565b50505b505050565b5f82821c905092915050565b5f6131355f198460080261311a565b1980831691505092915050565b5f61314d8383613126565b9150826002028217905092915050565b61316682612513565b67ffffffffffffffff81111561317f5761317e61284a565b5b6131898254612ba6565b6131948282856130d4565b5f60209050601f8311600181146131c5575f84156131b3578287015190505b6131bd8582613142565b865550613224565b601f1984166131d386612fc0565b5f5b828110156131fa578489015182556001820191506020850194506020810190506131d5565b868310156132175784890151613213601f891682613126565b8355505b6001600288020188555050505b505050505050565b5f81905092915050565b5f61324082612513565b61324a818561322c565b935061325a81856020860161252d565b80840191505092915050565b5f6132718285613236565b915061327d8284613236565b91508190509392505050565b7f4552433732313a207472616e736665722066726f6d20696e636f7272656374205f8201527f6f776e6572000000000000000000000000000000000000000000000000000000602082015250565b5f6132e360258361251d565b91506132ee82613289565b604082019050919050565b5f6020820190508181035f830152613310816132d7565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f206164645f8201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b5f61337160248361251d565b915061337c82613317565b604082019050919050565b5f6020820190508181035f83015261339e81613365565b9050919050565b7f4552433732313a20617070726f766520746f2063616c6c6572000000000000005f82015250565b5f6133d960198361251d565b91506133e4826133a5565b602082019050919050565b5f6020820190508181035f830152613406816133cd565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e2045524337323152655f8201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b5f61346760328361251d565b91506134728261340d565b604082019050919050565b5f6020820190508181035f8301526134948161345b565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000005f82015250565b5f6134fc60178361322c565b9150613507826134c8565b601782019050919050565b7f206973206d697373696e6720726f6c65200000000000000000000000000000005f82015250565b5f61354660118361322c565b915061355182613512565b601182019050919050565b5f613566826134f0565b91506135728285613236565b915061357d8261353a565b91506135898284613236565b91508190509392505050565b7f5061757361626c653a206e6f74207061757365640000000000000000000000005f82015250565b5f6135c960148361251d565b91506135d482613595565b602082019050919050565b5f6020820190508181035f8301526135f6816135bd565b9050919050565b7f5061757361626c653a20706175736564000000000000000000000000000000005f82015250565b5f61363160108361251d565b915061363c826135fd565b602082019050919050565b5f6020820190508181035f83015261365e81613625565b9050919050565b5f81519050919050565b5f82825260208201905092915050565b5f61368982613665565b613693818561366f565b93506136a381856020860161252d565b6136ac81612555565b840191505092915050565b5f6080820190506136ca5f83018761264b565b6136d7602083018661264b565b6136e4604083018561281a565b81810360608301526136f6818461367f565b905095945050505050565b5f8151905061370f8161248b565b92915050565b5f6020828403121561372a57613729612458565b5b5f61373784828501613701565b91505092915050565b5f61374a826125bd565b9150613755836125bd565b9250828202613763816125bd565b9150828204841483151761377a57613779612e76565b5b5092915050565b5f61378b826125bd565b9150613796836125bd565b92508282019050808211156137ae576137ad612e76565b5b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f537472696e67733a20686578206c656e67746820696e73756666696369656e745f82015250565b5f61381560208361251d565b9150613820826137e1565b602082019050919050565b5f6020820190508181035f83015261384281613809565b9050919050565b7f4552433732313a206d696e7420746f20746865207a65726f20616464726573735f82015250565b5f61387d60208361251d565b915061388882613849565b602082019050919050565b5f6020820190508181035f8301526138aa81613871565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e746564000000005f82015250565b5f6138e5601c8361251d565b91506138f0826138b1565b602082019050919050565b5f6020820190508181035f830152613912816138d9565b905091905056fea2646970667358221220431f63aab923a82049cd4a1693612d830c9d1912a82f08ba672d2ae82915b5c864736f6c63430008140033
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.