ERC-721
Overview
Max Total Supply
1,945 KOREANS
Holders
456
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
5 KOREANSLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
TheKoreans1945
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "./standards/ERC721G.sol"; contract TheKoreans1945 is ERC721G { constructor() ERC721G("The Koreans", "KOREANS", "https://storage.googleapis.com/webplusone/thekoreans/metadata/") {} function _mint(address to, uint256 tokenId) internal override { require(_totalSupply < 1945, "ALL_TOKEN_MINTED"); super._mint(to, tokenId); } function _mintBatch(address to, uint256[] calldata tokenIds) internal override { require(_totalSupply + tokenIds.length <= 1945, "ALL_TOKEN_MINTED"); super._mintBatch(to, tokenIds); } function burn(uint256) external override { revert("UNAVAILABLE"); } function burnBatch(address, uint256[] calldata) external override { revert("UNAVAILABLE"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "./IERC721G.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/access/AccessControl.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; contract ERC721G is Context, ERC165, IERC721G, IERC721Metadata, AccessControl, Pausable { using Address for address; using Strings for uint256; string private _name; string private _symbol; mapping(uint256 => address) internal _owners; mapping(address => uint256) internal _balances; mapping(uint256 => address) internal _tokenApprovals; mapping(address => mapping(address => bool)) internal _operatorApprovals; //keccak256("MINTER_ROLE"); bytes32 internal constant MINTER_ROLE = 0x9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6; //keccak256("PAUSER_ROLE"); bytes32 internal constant PAUSER_ROLE = 0x65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a; //keccak256("BURNER_ROLE"); bytes32 internal constant BURNER_ROLE = 0x3c11d16cbaffd01df69ce1c404f6340ee057498f5f00246190ea54220576a848; uint256 internal _totalSupply; string internal __baseURI; constructor( string memory name_, string memory symbol_, string memory baseURI_ ) { _name = name_; _symbol = symbol_; __baseURI = baseURI_; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); _setupRole(MINTER_ROLE, msg.sender); _setupRole(PAUSER_ROLE, msg.sender); } //functions from ERC721 function supportsInterface(bytes4 interfaceId) public view virtual override(AccessControl, ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721G: address zero is not a valid owner"); return _balances[owner]; } function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721G: invalid token ID"); return owner; } function name() public view virtual override returns (string memory) { return _name; } function symbol() public view virtual override returns (string memory) { return _symbol; } 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())) : ""; } function _baseURI() internal view virtual returns (string memory) { return __baseURI; } function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721G.ownerOf(tokenId); require(to != owner, "ERC721G: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721G: approve caller is not token owner nor approved for all" ); _approve(to, tokenId); } function getApproved(uint256 tokenId) public view virtual override returns (address) { _requireMinted(tokenId); return _tokenApprovals[tokenId]; } function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721G: caller is not token owner nor approved"); _transfer(from, to, tokenId); } function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721G: caller is not token owner nor approved"); _safeTransfer(from, to, tokenId, data); } function _safeTransfer( address from, address to, uint256 tokenId, bytes memory data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, data), "ERC721G: transfer to non ERC721Receiver implementer"); } function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { address owner = ERC721G.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } function _safeMint( address to, uint256 tokenId, bytes memory data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, data), "ERC721G: transfer to non ERC721Receiver implementer" ); } function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721G: mint to the zero address"); require(!_exists(tokenId), "ERC721G: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } function _burn(uint256 tokenId) internal virtual { address owner = ERC721G.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721G.ownerOf(tokenId) == from, "ERC721G: transfer from incorrect owner"); require(to != address(0), "ERC721G: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721G.ownerOf(tokenId), to, tokenId); } function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721G: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } function _requireMinted(uint256 tokenId) internal view virtual { require(_exists(tokenId), "ERC721G: invalid token ID"); } 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("ERC721G: transfer to non ERC721Receiver implementer"); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual { if (from == address(0)) { _totalSupply++; } if (to == address(0)) { _totalSupply--; } require(!paused(), "ERC721G: token transfer while paused"); } function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} //operational functions function setBaseURI(string calldata baseURI_) external { require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "ERC721G: must be default admin"); __baseURI = baseURI_; emit SetBaseURI(baseURI_); } function setPause(bool status) external { require(hasRole(PAUSER_ROLE, msg.sender), "ERC721G: must have pauser role to pause"); if (status) _pause(); else _unpause(); } //view functions function exists(uint256 tokenId) external view virtual returns (bool) { return _exists(tokenId); } function totalSupply() external view virtual returns (uint256) { return _totalSupply; } //mint/burn/transfer function mint(address to, uint256 tokenId) public virtual { require(hasRole(MINTER_ROLE, msg.sender), "ERC721G: must have minter role to mint"); _mint(to, tokenId); } function mintBatch(address to, uint256[] calldata tokenIds) external virtual { require(hasRole(MINTER_ROLE, msg.sender), "ERC721G: must have minter role to mint"); _mintBatch(to, tokenIds); } function burn(uint256 tokenId) external virtual { require(hasRole(BURNER_ROLE, msg.sender), "ERC721G: must have burner role to burn"); require(_isApprovedOrOwner(msg.sender, tokenId), "UNAUTHORIZED"); _burn(tokenId); } function burnBatch(address from, uint256[] calldata tokenIds) external virtual { require(hasRole(BURNER_ROLE, msg.sender), "ERC721G: must have burner role to burn"); require(from != address(0), "BURN_FROM_ADDRESS_0"); uint256 amount = tokenIds.length; require(amount > 0, "INVALID_AMOUNT"); bool passChecking; if (msg.sender == from || isApprovedForAll(from, msg.sender)) passChecking = true; _beforeTokenBatchTransfer(from, address(0), tokenIds); for (uint256 i = 0; i < amount; i++) { uint256 tokenId = tokenIds[i]; require(_owners[tokenId] == from, "OWNER_FROM_NOT_EQUAL"); if (!passChecking) require(getApproved(tokenId) == msg.sender, "UNAUTHORIZED"); // Clear approvals _approve(address(0), tokenId); delete _owners[tokenId]; emit Transfer(from, address(0), tokenId); } _balances[from] -= amount; } function batchTransferFrom( address from, address to, uint256[] calldata tokenIds ) external virtual { require(from != address(0), "TRANSFER_FROM_ADDRESS_0"); require(to != address(0), "TRANSFER_TO_ADDRESS_0"); uint256 amount = tokenIds.length; require(amount > 0, "INVALID_AMOUNT"); bool passChecking; if (msg.sender == from || isApprovedForAll(from, msg.sender)) passChecking = true; _beforeTokenBatchTransfer(from, to, tokenIds); for (uint256 i = 0; i < amount; i++) { uint256 tokenId = tokenIds[i]; require(_owners[tokenId] == from, "OWNER_FROM_NOT_EQUAL"); if (!passChecking) require(getApproved(tokenId) == msg.sender, "UNAUTHORIZED"); // Clear approvals _approve(address(0), tokenId); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } _balances[from] -= amount; _balances[to] += amount; } function _mintBatch(address to, uint256[] calldata tokenIds) internal virtual { require(to != address(0), "MINT_TO_ADDRESS_0"); uint256 amount = tokenIds.length; require(amount > 0, "INVALID_AMOUNT"); _beforeTokenBatchTransfer(address(0), to, tokenIds); for (uint256 i = 0; i < amount; i++) { uint256 tokenId = tokenIds[i]; require(!_exists(tokenId), "ALREADY_MINTED"); _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); } _balances[to] += amount; } function _beforeTokenBatchTransfer( address from, address to, uint256[] calldata tokenIds ) internal virtual { if (from == address(0)) { _totalSupply += tokenIds.length; } if (to == address(0)) { _totalSupply -= tokenIds.length; } require(!paused(), "ERC721G: token transfer while paused"); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "@openzeppelin/contracts/interfaces/IERC721.sol"; interface IERC721G is IERC721 { event SetBaseURI(string baseURI_); function exists(uint256 tokenId) external view returns (bool); function totalSupply() external view returns (uint256); function setBaseURI(string calldata baseURI_) external; function setPause(bool status) external; function mint(address to, uint256 tokenId) external; function mintBatch(address to, uint256[] calldata tokenIds) external; function burn(uint256 tokenId) external; function burnBatch(address from, uint256[] calldata tokenIds) external; function batchTransferFrom( address from, address to, uint256[] calldata tokenIds ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol) pragma solidity ^0.8.0; import "./IAccessControl.sol"; import "../utils/Context.sol"; import "../utils/Strings.sol"; import "../utils/introspection/ERC165.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view virtual override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `_msgSender()` is missing `role`. * Overriding this function changes the behavior of the {onlyRole} modifier. * * Format of the revert message is described in {_checkRole}. * * _Available since v4.6._ */ function _checkRole(bytes32 role) internal view virtual { _checkRole(role, _msgSender()); } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view virtual { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleGranted} event. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. * * May emit a {RoleRevoked} event. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. * * May emit a {RoleRevoked} event. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * May emit a {RoleGranted} event. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. * * May emit a {RoleGranted} event. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. * * May emit a {RoleRevoked} event. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } }
// SPDX-License-Identifier: 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 v4.4.1 (interfaces/IERC721.sol) pragma solidity ^0.8.0; import "../token/ERC721/IERC721.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; }
{ "optimizer": { "enabled": true, "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":false,"internalType":"string","name":"baseURI_","type":"string"}],"name":"SetBaseURI","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":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"batchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"}],"name":"burnBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"mintBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"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":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"status","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600b81526020016a546865204b6f7265616e7360a81b815250604051806040016040528060078152602001664b4f5245414e5360c81b8152506040518060600160405280603e815260200162002954603e91396001805460ff1916905560026200008884826200026a565b5060036200009783826200026a565b506009620000a682826200026a565b50620000b460003362000115565b620000e07f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a63362000115565b6200010c7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a3362000115565b50505062000336565b62000121828262000125565b5050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff1662000121576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001813390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620001f057607f821691505b6020821081036200021157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200026557600081815260208120601f850160051c81016020861015620002405750805b601f850160051c820191505b8181101562000261578281556001016200024c565b5050505b505050565b81516001600160401b03811115620002865762000286620001c5565b6200029e81620002978454620001db565b8462000217565b602080601f831160018114620002d65760008415620002bd5750858301515b600019600386901b1c1916600185901b17855562000261565b600085815260208120601f198616915b828110156200030757888601518255948401946001909101908401620002e6565b5085821015620003265787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61260e80620003466000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635c975abb11610104578063a22cb465116100a2578063c87b56dd11610071578063c87b56dd146103cc578063d547741f146103df578063e985e9c5146103f2578063f3993d111461040557600080fd5b8063a22cb46514610385578063b2dc5dc314610398578063b88d4fde146103a6578063bedb86fb146103b957600080fd5b806375ceb341116100de57806375ceb3411461034f57806391d148541461036257806395d89b4114610375578063a217fddf1461037d57600080fd5b80635c975abb1461031e5780636352211e1461032957806370a082311461033c57600080fd5b80632f2ff15d1161017157806342842e0e1161014b57806342842e0e146102d257806342966c68146102e55780634f558e79146102f857806355f804b31461030b57600080fd5b80632f2ff15d1461029957806336568abe146102ac57806340c10f19146102bf57600080fd5b8063095ea7b3116101ad578063095ea7b31461023c57806318160ddd1461025157806323b872dd14610263578063248a9ca31461027657600080fd5b806301ffc9a7146101d457806306fdde03146101fc578063081812fc14610211575b600080fd5b6101e76101e2366004611ce1565b610418565b60405190151581526020015b60405180910390f35b61020461045e565b6040516101f39190611d56565b61022461021f366004611d69565b6104f0565b6040516001600160a01b0390911681526020016101f3565b61024f61024a366004611d9e565b610517565b005b6008545b6040519081526020016101f3565b61024f610271366004611dc8565b610632565b610255610284366004611d69565b60009081526020819052604090206001015490565b61024f6102a7366004611e04565b610663565b61024f6102ba366004611e04565b610688565b61024f6102cd366004611d9e565b610706565b61024f6102e0366004611dc8565b610756565b61024f6102f3366004611d69565b610771565b6101e7610306366004611d69565b6107a7565b61024f610319366004611e30565b6107c6565b60015460ff166101e7565b610224610337366004611d69565b610868565b61025561034a366004611ea2565b6108c9565b61024f61035d366004611f09565b610950565b6101e7610370366004611e04565b6109a1565b6102046109ca565b610255600081565b61024f610393366004611f6c565b6109d9565b61024f6102f3366004611f09565b61024f6103b4366004611fac565b6109e4565b61024f6103c7366004612088565b610a1c565b6102046103da366004611d69565b610abb565b61024f6103ed366004611e04565b610b22565b6101e76104003660046120a3565b610b47565b61024f6104133660046120cd565b610b75565b60006001600160e01b031982166380ac58cd60e01b148061044957506001600160e01b03198216635b5e139f60e01b145b80610458575061045882610e33565b92915050565b60606002805461046d9061212e565b80601f01602080910402602001604051908101604052809291908181526020018280546104999061212e565b80156104e65780601f106104bb576101008083540402835291602001916104e6565b820191906000526020600020905b8154815290600101906020018083116104c957829003601f168201915b5050505050905090565b60006104fb82610e68565b506000908152600660205260409020546001600160a01b031690565b600061052282610868565b9050806001600160a01b0316836001600160a01b0316036105955760405162461bcd60e51b815260206004820152602260248201527f455243373231473a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084015b60405180910390fd5b336001600160a01b03821614806105b157506105b18133610b47565b6106235760405162461bcd60e51b815260206004820152603f60248201527f455243373231473a20617070726f76652063616c6c6572206973206e6f74207460448201527f6f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00606482015260840161058c565b61062d8383610ec8565b505050565b61063c3382610f36565b6106585760405162461bcd60e51b815260040161058c90612168565b61062d838383610f95565b60008281526020819052604090206001015461067e8161112d565b61062d8383611137565b6001600160a01b03811633146106f85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161058c565b61070282826111bb565b5050565b6107307f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336109a1565b61074c5760405162461bcd60e51b815260040161058c906121b7565b6107028282611220565b61062d838383604051806020016040528060008152506109e4565b60405162461bcd60e51b815260206004820152600b60248201526a554e415641494c41424c4560a81b604482015260640161058c565b6000818152600460205260408120546001600160a01b03161515610458565b6107d16000336109a1565b61081d5760405162461bcd60e51b815260206004820152601e60248201527f455243373231473a206d7573742062652064656661756c742061646d696e0000604482015260640161058c565b600961082a82848361224b565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa828260405161085c92919061230c565b60405180910390a15050565b6000818152600460205260408120546001600160a01b0316806104585760405162461bcd60e51b8152602060048201526019602482015278115490cdcc8c51ce881a5b9d985b1a59081d1bdad95b881251603a1b604482015260640161058c565b60006001600160a01b0382166109345760405162461bcd60e51b815260206004820152602a60248201527f455243373231473a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b606482015260840161058c565b506001600160a01b031660009081526005602052604090205490565b61097a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336109a1565b6109965760405162461bcd60e51b815260040161058c906121b7565b61062d838383611270565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606003805461046d9061212e565b6107023383836112ce565b6109ee3383610f36565b610a0a5760405162461bcd60e51b815260040161058c90612168565b610a168484848461139c565b50505050565b610a467f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336109a1565b610aa25760405162461bcd60e51b815260206004820152602760248201527f455243373231473a206d75737420686176652070617573657220726f6c6520746044820152666f20706175736560c81b606482015260840161058c565b8015610ab357610ab06113cf565b50565b610ab0611423565b6060610ac682610e68565b6000610ad061145c565b90506000815111610af05760405180602001604052806000815250610b1b565b80610afa8461146b565b604051602001610b0b92919061233b565b6040516020818303038152906040525b9392505050565b600082815260208190526040902060010154610b3d8161112d565b61062d83836111bb565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610bcb5760405162461bcd60e51b815260206004820152601760248201527f5452414e534645525f46524f4d5f414444524553535f30000000000000000000604482015260640161058c565b6001600160a01b038316610c195760405162461bcd60e51b815260206004820152601560248201527405452414e534645525f544f5f414444524553535f3605c1b604482015260640161058c565b8080610c585760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b604482015260640161058c565b6000336001600160a01b0387161480610c765750610c768633610b47565b15610c7f575060015b610c8b8686868661156c565b60005b82811015610dd0576000858583818110610caa57610caa61236a565b6020908102929092013560008181526004909352604090922054919250506001600160a01b03898116911614610d195760405162461bcd60e51b815260206004820152601460248201527313d5d3915497d19493d357d393d517d15455505360621b604482015260640161058c565b82610d6d5733610d28826104f0565b6001600160a01b031614610d6d5760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b604482015260640161058c565b610d78600082610ec8565b60008181526004602052604080822080546001600160a01b0319166001600160a01b038b811691821790925591518493918c16916000805160206125b983398151915291a45080610dc881612396565b915050610c8e565b506001600160a01b03861660009081526005602052604081208054849290610df99084906123af565b90915550506001600160a01b03851660009081526005602052604081208054849290610e269084906123c6565b9091555050505050505050565b60006001600160e01b03198216637965db0b60e01b148061045857506301ffc9a760e01b6001600160e01b0319831614610458565b6000818152600460205260409020546001600160a01b0316610ab05760405162461bcd60e51b8152602060048201526019602482015278115490cdcc8c51ce881a5b9d985b1a59081d1bdad95b881251603a1b604482015260640161058c565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610efd82610868565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610f4283610868565b9050806001600160a01b0316846001600160a01b03161480610f695750610f698185610b47565b80610f8d5750836001600160a01b0316610f82846104f0565b6001600160a01b0316145b949350505050565b826001600160a01b0316610fa882610868565b6001600160a01b03161461100d5760405162461bcd60e51b815260206004820152602660248201527f455243373231473a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161058c565b6001600160a01b0382166110715760405162461bcd60e51b815260206004820152602560248201527f455243373231473a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161058c565b61107c8383836115e1565b611087600082610ec8565b6001600160a01b03831660009081526005602052604081208054600192906110b09084906123af565b90915550506001600160a01b03821660009081526005602052604081208054600192906110de9084906123c6565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206125b983398151915291a4505050565b610ab0813361164c565b61114182826109a1565b610702576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556111773390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6111c582826109a1565b15610702576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610799600854106112665760405162461bcd60e51b815260206004820152601060248201526f10531317d513d2d15397d3525395115160821b604482015260640161058c565b61070282826116b0565b600854610799906112829083906123c6565b11156112c35760405162461bcd60e51b815260206004820152601060248201526f10531317d513d2d15397d3525395115160821b604482015260640161058c565b61062d8383836117f6565b816001600160a01b0316836001600160a01b03160361132f5760405162461bcd60e51b815260206004820152601a60248201527f455243373231473a20617070726f766520746f2063616c6c6572000000000000604482015260640161058c565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113a7848484610f95565b6113b38484848461199d565b610a165760405162461bcd60e51b815260040161058c906123de565b6113d7611a9e565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258335b6040516001600160a01b03909116815260200160405180910390a1565b61142b611ae6565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611406565b60606009805461046d9061212e565b6060816000036114925750506040805180820190915260018152600360fc1b602082015290565b8160005b81156114bc57806114a681612396565b91506114b59050600a83612447565b9150611496565b60008167ffffffffffffffff8111156114d7576114d7611f96565b6040519080825280601f01601f191660200182016040528015611501576020820181803683370190505b5090505b8415610f8d576115166001836123af565b9150611523600a8661245b565b61152e9060306123c6565b60f81b8183815181106115435761154361236a565b60200101906001600160f81b031916908160001a905350611565600a86612447565b9450611505565b6001600160a01b03841661159557818190506008600082825461158f91906123c6565b90915550505b6001600160a01b0383166115be5781819050600860008282546115b891906123af565b90915550505b60015460ff1615610a165760405162461bcd60e51b815260040161058c9061246f565b6001600160a01b03831661160557600880549060006115ff83612396565b91905055505b6001600160a01b0382166116295760088054906000611623836124b3565b91905055505b60015460ff161561062d5760405162461bcd60e51b815260040161058c9061246f565b61165682826109a1565b6107025761166e816001600160a01b03166014611b2f565b611679836020611b2f565b60405160200161168a9291906124ca565b60408051601f198184030181529082905262461bcd60e51b825261058c91600401611d56565b6001600160a01b0382166117105760405162461bcd60e51b815260206004820152602160248201527f455243373231473a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161058c565b6000818152600460205260409020546001600160a01b0316156117755760405162461bcd60e51b815260206004820152601d60248201527f455243373231473a20746f6b656e20616c7265616479206d696e746564000000604482015260640161058c565b611781600083836115e1565b6001600160a01b03821660009081526005602052604081208054600192906117aa9084906123c6565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392906000805160206125b9833981519152908290a45050565b6001600160a01b0383166118405760405162461bcd60e51b815260206004820152601160248201527004d494e545f544f5f414444524553535f3607c1b604482015260640161058c565b808061187f5760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b604482015260640161058c565b61188c600085858561156c565b60005b818110156119695760008484838181106118ab576118ab61236a565b9050602002013590506118d5816000908152600460205260409020546001600160a01b0316151590565b156119135760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161058c565b60008181526004602052604080822080546001600160a01b0319166001600160a01b038a1690811790915590518392906000805160206125b9833981519152908290a4508061196181612396565b91505061188f565b506001600160a01b038416600090815260056020526040812080548392906119929084906123c6565b909155505050505050565b60006001600160a01b0384163b15611a9357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119e190339089908890889060040161253f565b6020604051808303816000875af1925050508015611a1c575060408051601f3d908101601f19168201909252611a199181019061257c565b60015b611a79573d808015611a4a576040519150601f19603f3d011682016040523d82523d6000602084013e611a4f565b606091505b508051600003611a715760405162461bcd60e51b815260040161058c906123de565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f8d565b506001949350505050565b60015460ff1615611ae45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161058c565b565b60015460ff16611ae45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161058c565b60606000611b3e836002612599565b611b499060026123c6565b67ffffffffffffffff811115611b6157611b61611f96565b6040519080825280601f01601f191660200182016040528015611b8b576020820181803683370190505b509050600360fc1b81600081518110611ba657611ba661236a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611bd557611bd561236a565b60200101906001600160f81b031916908160001a9053506000611bf9846002612599565b611c049060016123c6565b90505b6001811115611c7c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611c3857611c3861236a565b1a60f81b828281518110611c4e57611c4e61236a565b60200101906001600160f81b031916908160001a90535060049490941c93611c75816124b3565b9050611c07565b508315610b1b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161058c565b6001600160e01b031981168114610ab057600080fd5b600060208284031215611cf357600080fd5b8135610b1b81611ccb565b60005b83811015611d19578181015183820152602001611d01565b83811115610a165750506000910152565b60008151808452611d42816020860160208601611cfe565b601f01601f19169290920160200192915050565b602081526000610b1b6020830184611d2a565b600060208284031215611d7b57600080fd5b5035919050565b80356001600160a01b0381168114611d9957600080fd5b919050565b60008060408385031215611db157600080fd5b611dba83611d82565b946020939093013593505050565b600080600060608486031215611ddd57600080fd5b611de684611d82565b9250611df460208501611d82565b9150604084013590509250925092565b60008060408385031215611e1757600080fd5b82359150611e2760208401611d82565b90509250929050565b60008060208385031215611e4357600080fd5b823567ffffffffffffffff80821115611e5b57600080fd5b818501915085601f830112611e6f57600080fd5b813581811115611e7e57600080fd5b866020828501011115611e9057600080fd5b60209290920196919550909350505050565b600060208284031215611eb457600080fd5b610b1b82611d82565b60008083601f840112611ecf57600080fd5b50813567ffffffffffffffff811115611ee757600080fd5b6020830191508360208260051b8501011115611f0257600080fd5b9250929050565b600080600060408486031215611f1e57600080fd5b611f2784611d82565b9250602084013567ffffffffffffffff811115611f4357600080fd5b611f4f86828701611ebd565b9497909650939450505050565b80358015158114611d9957600080fd5b60008060408385031215611f7f57600080fd5b611f8883611d82565b9150611e2760208401611f5c565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611fc257600080fd5b611fcb85611d82565b9350611fd960208601611d82565b925060408501359150606085013567ffffffffffffffff80821115611ffd57600080fd5b818701915087601f83011261201157600080fd5b81358181111561202357612023611f96565b604051601f8201601f19908116603f0116810190838211818310171561204b5761204b611f96565b816040528281528a602084870101111561206457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60006020828403121561209a57600080fd5b610b1b82611f5c565b600080604083850312156120b657600080fd5b6120bf83611d82565b9150611e2760208401611d82565b600080600080606085870312156120e357600080fd5b6120ec85611d82565b93506120fa60208601611d82565b9250604085013567ffffffffffffffff81111561211657600080fd5b61212287828801611ebd565b95989497509550505050565b600181811c9082168061214257607f821691505b60208210810361216257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602f908201527f455243373231473a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60208082526026908201527f455243373231473a206d7573742068617665206d696e74657220726f6c6520746040820152651bc81b5a5b9d60d21b606082015260800190565b601f82111561062d57600081815260208120601f850160051c810160208610156122245750805b601f850160051c820191505b8181101561224357828155600101612230565b505050505050565b67ffffffffffffffff83111561226357612263611f96565b61227783612271835461212e565b836121fd565b6000601f8411600181146122ab57600085156122935750838201355b600019600387901b1c1916600186901b178355612305565b600083815260209020601f19861690835b828110156122dc57868501358255602094850194600190920191016122bc565b50868210156122f95760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6000835161234d818460208801611cfe565b835190830190612361818360208801611cfe565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016123a8576123a8612380565b5060010190565b6000828210156123c1576123c1612380565b500390565b600082198211156123d9576123d9612380565b500190565b60208082526033908201527f455243373231473a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261245657612456612431565b500490565b60008261246a5761246a612431565b500690565b60208082526024908201527f455243373231473a20746f6b656e207472616e73666572207768696c652070616040820152631d5cd95960e21b606082015260800190565b6000816124c2576124c2612380565b506000190190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612502816017850160208801611cfe565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612533816028840160208801611cfe565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061257290830184611d2a565b9695505050505050565b60006020828403121561258e57600080fd5b8151610b1b81611ccb565b60008160001904831182151516156125b3576125b3612380565b50029056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204764a5b065d7b56667196342848fef3a1d07b3b93ed6484a4b05aa6c40739b9164736f6c634300080f003368747470733a2f2f73746f726167652e676f6f676c65617069732e636f6d2f776562706c75736f6e652f7468656b6f7265616e732f6d657461646174612f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80635c975abb11610104578063a22cb465116100a2578063c87b56dd11610071578063c87b56dd146103cc578063d547741f146103df578063e985e9c5146103f2578063f3993d111461040557600080fd5b8063a22cb46514610385578063b2dc5dc314610398578063b88d4fde146103a6578063bedb86fb146103b957600080fd5b806375ceb341116100de57806375ceb3411461034f57806391d148541461036257806395d89b4114610375578063a217fddf1461037d57600080fd5b80635c975abb1461031e5780636352211e1461032957806370a082311461033c57600080fd5b80632f2ff15d1161017157806342842e0e1161014b57806342842e0e146102d257806342966c68146102e55780634f558e79146102f857806355f804b31461030b57600080fd5b80632f2ff15d1461029957806336568abe146102ac57806340c10f19146102bf57600080fd5b8063095ea7b3116101ad578063095ea7b31461023c57806318160ddd1461025157806323b872dd14610263578063248a9ca31461027657600080fd5b806301ffc9a7146101d457806306fdde03146101fc578063081812fc14610211575b600080fd5b6101e76101e2366004611ce1565b610418565b60405190151581526020015b60405180910390f35b61020461045e565b6040516101f39190611d56565b61022461021f366004611d69565b6104f0565b6040516001600160a01b0390911681526020016101f3565b61024f61024a366004611d9e565b610517565b005b6008545b6040519081526020016101f3565b61024f610271366004611dc8565b610632565b610255610284366004611d69565b60009081526020819052604090206001015490565b61024f6102a7366004611e04565b610663565b61024f6102ba366004611e04565b610688565b61024f6102cd366004611d9e565b610706565b61024f6102e0366004611dc8565b610756565b61024f6102f3366004611d69565b610771565b6101e7610306366004611d69565b6107a7565b61024f610319366004611e30565b6107c6565b60015460ff166101e7565b610224610337366004611d69565b610868565b61025561034a366004611ea2565b6108c9565b61024f61035d366004611f09565b610950565b6101e7610370366004611e04565b6109a1565b6102046109ca565b610255600081565b61024f610393366004611f6c565b6109d9565b61024f6102f3366004611f09565b61024f6103b4366004611fac565b6109e4565b61024f6103c7366004612088565b610a1c565b6102046103da366004611d69565b610abb565b61024f6103ed366004611e04565b610b22565b6101e76104003660046120a3565b610b47565b61024f6104133660046120cd565b610b75565b60006001600160e01b031982166380ac58cd60e01b148061044957506001600160e01b03198216635b5e139f60e01b145b80610458575061045882610e33565b92915050565b60606002805461046d9061212e565b80601f01602080910402602001604051908101604052809291908181526020018280546104999061212e565b80156104e65780601f106104bb576101008083540402835291602001916104e6565b820191906000526020600020905b8154815290600101906020018083116104c957829003601f168201915b5050505050905090565b60006104fb82610e68565b506000908152600660205260409020546001600160a01b031690565b600061052282610868565b9050806001600160a01b0316836001600160a01b0316036105955760405162461bcd60e51b815260206004820152602260248201527f455243373231473a20617070726f76616c20746f2063757272656e74206f776e60448201526132b960f11b60648201526084015b60405180910390fd5b336001600160a01b03821614806105b157506105b18133610b47565b6106235760405162461bcd60e51b815260206004820152603f60248201527f455243373231473a20617070726f76652063616c6c6572206973206e6f74207460448201527f6f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00606482015260840161058c565b61062d8383610ec8565b505050565b61063c3382610f36565b6106585760405162461bcd60e51b815260040161058c90612168565b61062d838383610f95565b60008281526020819052604090206001015461067e8161112d565b61062d8383611137565b6001600160a01b03811633146106f85760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161058c565b61070282826111bb565b5050565b6107307f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336109a1565b61074c5760405162461bcd60e51b815260040161058c906121b7565b6107028282611220565b61062d838383604051806020016040528060008152506109e4565b60405162461bcd60e51b815260206004820152600b60248201526a554e415641494c41424c4560a81b604482015260640161058c565b6000818152600460205260408120546001600160a01b03161515610458565b6107d16000336109a1565b61081d5760405162461bcd60e51b815260206004820152601e60248201527f455243373231473a206d7573742062652064656661756c742061646d696e0000604482015260640161058c565b600961082a82848361224b565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa828260405161085c92919061230c565b60405180910390a15050565b6000818152600460205260408120546001600160a01b0316806104585760405162461bcd60e51b8152602060048201526019602482015278115490cdcc8c51ce881a5b9d985b1a59081d1bdad95b881251603a1b604482015260640161058c565b60006001600160a01b0382166109345760405162461bcd60e51b815260206004820152602a60248201527f455243373231473a2061646472657373207a65726f206973206e6f742061207660448201526930b634b21037bbb732b960b11b606482015260840161058c565b506001600160a01b031660009081526005602052604090205490565b61097a7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6336109a1565b6109965760405162461bcd60e51b815260040161058c906121b7565b61062d838383611270565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606003805461046d9061212e565b6107023383836112ce565b6109ee3383610f36565b610a0a5760405162461bcd60e51b815260040161058c90612168565b610a168484848461139c565b50505050565b610a467f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a336109a1565b610aa25760405162461bcd60e51b815260206004820152602760248201527f455243373231473a206d75737420686176652070617573657220726f6c6520746044820152666f20706175736560c81b606482015260840161058c565b8015610ab357610ab06113cf565b50565b610ab0611423565b6060610ac682610e68565b6000610ad061145c565b90506000815111610af05760405180602001604052806000815250610b1b565b80610afa8461146b565b604051602001610b0b92919061233b565b6040516020818303038152906040525b9392505050565b600082815260208190526040902060010154610b3d8161112d565b61062d83836111bb565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6001600160a01b038416610bcb5760405162461bcd60e51b815260206004820152601760248201527f5452414e534645525f46524f4d5f414444524553535f30000000000000000000604482015260640161058c565b6001600160a01b038316610c195760405162461bcd60e51b815260206004820152601560248201527405452414e534645525f544f5f414444524553535f3605c1b604482015260640161058c565b8080610c585760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b604482015260640161058c565b6000336001600160a01b0387161480610c765750610c768633610b47565b15610c7f575060015b610c8b8686868661156c565b60005b82811015610dd0576000858583818110610caa57610caa61236a565b6020908102929092013560008181526004909352604090922054919250506001600160a01b03898116911614610d195760405162461bcd60e51b815260206004820152601460248201527313d5d3915497d19493d357d393d517d15455505360621b604482015260640161058c565b82610d6d5733610d28826104f0565b6001600160a01b031614610d6d5760405162461bcd60e51b815260206004820152600c60248201526b15539055551213d49256915160a21b604482015260640161058c565b610d78600082610ec8565b60008181526004602052604080822080546001600160a01b0319166001600160a01b038b811691821790925591518493918c16916000805160206125b983398151915291a45080610dc881612396565b915050610c8e565b506001600160a01b03861660009081526005602052604081208054849290610df99084906123af565b90915550506001600160a01b03851660009081526005602052604081208054849290610e269084906123c6565b9091555050505050505050565b60006001600160e01b03198216637965db0b60e01b148061045857506301ffc9a760e01b6001600160e01b0319831614610458565b6000818152600460205260409020546001600160a01b0316610ab05760405162461bcd60e51b8152602060048201526019602482015278115490cdcc8c51ce881a5b9d985b1a59081d1bdad95b881251603a1b604482015260640161058c565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610efd82610868565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080610f4283610868565b9050806001600160a01b0316846001600160a01b03161480610f695750610f698185610b47565b80610f8d5750836001600160a01b0316610f82846104f0565b6001600160a01b0316145b949350505050565b826001600160a01b0316610fa882610868565b6001600160a01b03161461100d5760405162461bcd60e51b815260206004820152602660248201527f455243373231473a207472616e736665722066726f6d20696e636f72726563746044820152651037bbb732b960d11b606482015260840161058c565b6001600160a01b0382166110715760405162461bcd60e51b815260206004820152602560248201527f455243373231473a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161058c565b61107c8383836115e1565b611087600082610ec8565b6001600160a01b03831660009081526005602052604081208054600192906110b09084906123af565b90915550506001600160a01b03821660009081526005602052604081208054600192906110de9084906123c6565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716916000805160206125b983398151915291a4505050565b610ab0813361164c565b61114182826109a1565b610702576000828152602081815260408083206001600160a01b03851684529091529020805460ff191660011790556111773390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6111c582826109a1565b15610702576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610799600854106112665760405162461bcd60e51b815260206004820152601060248201526f10531317d513d2d15397d3525395115160821b604482015260640161058c565b61070282826116b0565b600854610799906112829083906123c6565b11156112c35760405162461bcd60e51b815260206004820152601060248201526f10531317d513d2d15397d3525395115160821b604482015260640161058c565b61062d8383836117f6565b816001600160a01b0316836001600160a01b03160361132f5760405162461bcd60e51b815260206004820152601a60248201527f455243373231473a20617070726f766520746f2063616c6c6572000000000000604482015260640161058c565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6113a7848484610f95565b6113b38484848461199d565b610a165760405162461bcd60e51b815260040161058c906123de565b6113d7611a9e565b6001805460ff1916811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258335b6040516001600160a01b03909116815260200160405180910390a1565b61142b611ae6565b6001805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa33611406565b60606009805461046d9061212e565b6060816000036114925750506040805180820190915260018152600360fc1b602082015290565b8160005b81156114bc57806114a681612396565b91506114b59050600a83612447565b9150611496565b60008167ffffffffffffffff8111156114d7576114d7611f96565b6040519080825280601f01601f191660200182016040528015611501576020820181803683370190505b5090505b8415610f8d576115166001836123af565b9150611523600a8661245b565b61152e9060306123c6565b60f81b8183815181106115435761154361236a565b60200101906001600160f81b031916908160001a905350611565600a86612447565b9450611505565b6001600160a01b03841661159557818190506008600082825461158f91906123c6565b90915550505b6001600160a01b0383166115be5781819050600860008282546115b891906123af565b90915550505b60015460ff1615610a165760405162461bcd60e51b815260040161058c9061246f565b6001600160a01b03831661160557600880549060006115ff83612396565b91905055505b6001600160a01b0382166116295760088054906000611623836124b3565b91905055505b60015460ff161561062d5760405162461bcd60e51b815260040161058c9061246f565b61165682826109a1565b6107025761166e816001600160a01b03166014611b2f565b611679836020611b2f565b60405160200161168a9291906124ca565b60408051601f198184030181529082905262461bcd60e51b825261058c91600401611d56565b6001600160a01b0382166117105760405162461bcd60e51b815260206004820152602160248201527f455243373231473a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161058c565b6000818152600460205260409020546001600160a01b0316156117755760405162461bcd60e51b815260206004820152601d60248201527f455243373231473a20746f6b656e20616c7265616479206d696e746564000000604482015260640161058c565b611781600083836115e1565b6001600160a01b03821660009081526005602052604081208054600192906117aa9084906123c6565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392906000805160206125b9833981519152908290a45050565b6001600160a01b0383166118405760405162461bcd60e51b815260206004820152601160248201527004d494e545f544f5f414444524553535f3607c1b604482015260640161058c565b808061187f5760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b604482015260640161058c565b61188c600085858561156c565b60005b818110156119695760008484838181106118ab576118ab61236a565b9050602002013590506118d5816000908152600460205260409020546001600160a01b0316151590565b156119135760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b604482015260640161058c565b60008181526004602052604080822080546001600160a01b0319166001600160a01b038a1690811790915590518392906000805160206125b9833981519152908290a4508061196181612396565b91505061188f565b506001600160a01b038416600090815260056020526040812080548392906119929084906123c6565b909155505050505050565b60006001600160a01b0384163b15611a9357604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906119e190339089908890889060040161253f565b6020604051808303816000875af1925050508015611a1c575060408051601f3d908101601f19168201909252611a199181019061257c565b60015b611a79573d808015611a4a576040519150601f19603f3d011682016040523d82523d6000602084013e611a4f565b606091505b508051600003611a715760405162461bcd60e51b815260040161058c906123de565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f8d565b506001949350505050565b60015460ff1615611ae45760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161058c565b565b60015460ff16611ae45760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161058c565b60606000611b3e836002612599565b611b499060026123c6565b67ffffffffffffffff811115611b6157611b61611f96565b6040519080825280601f01601f191660200182016040528015611b8b576020820181803683370190505b509050600360fc1b81600081518110611ba657611ba661236a565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611bd557611bd561236a565b60200101906001600160f81b031916908160001a9053506000611bf9846002612599565b611c049060016123c6565b90505b6001811115611c7c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611c3857611c3861236a565b1a60f81b828281518110611c4e57611c4e61236a565b60200101906001600160f81b031916908160001a90535060049490941c93611c75816124b3565b9050611c07565b508315610b1b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e74604482015260640161058c565b6001600160e01b031981168114610ab057600080fd5b600060208284031215611cf357600080fd5b8135610b1b81611ccb565b60005b83811015611d19578181015183820152602001611d01565b83811115610a165750506000910152565b60008151808452611d42816020860160208601611cfe565b601f01601f19169290920160200192915050565b602081526000610b1b6020830184611d2a565b600060208284031215611d7b57600080fd5b5035919050565b80356001600160a01b0381168114611d9957600080fd5b919050565b60008060408385031215611db157600080fd5b611dba83611d82565b946020939093013593505050565b600080600060608486031215611ddd57600080fd5b611de684611d82565b9250611df460208501611d82565b9150604084013590509250925092565b60008060408385031215611e1757600080fd5b82359150611e2760208401611d82565b90509250929050565b60008060208385031215611e4357600080fd5b823567ffffffffffffffff80821115611e5b57600080fd5b818501915085601f830112611e6f57600080fd5b813581811115611e7e57600080fd5b866020828501011115611e9057600080fd5b60209290920196919550909350505050565b600060208284031215611eb457600080fd5b610b1b82611d82565b60008083601f840112611ecf57600080fd5b50813567ffffffffffffffff811115611ee757600080fd5b6020830191508360208260051b8501011115611f0257600080fd5b9250929050565b600080600060408486031215611f1e57600080fd5b611f2784611d82565b9250602084013567ffffffffffffffff811115611f4357600080fd5b611f4f86828701611ebd565b9497909650939450505050565b80358015158114611d9957600080fd5b60008060408385031215611f7f57600080fd5b611f8883611d82565b9150611e2760208401611f5c565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611fc257600080fd5b611fcb85611d82565b9350611fd960208601611d82565b925060408501359150606085013567ffffffffffffffff80821115611ffd57600080fd5b818701915087601f83011261201157600080fd5b81358181111561202357612023611f96565b604051601f8201601f19908116603f0116810190838211818310171561204b5761204b611f96565b816040528281528a602084870101111561206457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60006020828403121561209a57600080fd5b610b1b82611f5c565b600080604083850312156120b657600080fd5b6120bf83611d82565b9150611e2760208401611d82565b600080600080606085870312156120e357600080fd5b6120ec85611d82565b93506120fa60208601611d82565b9250604085013567ffffffffffffffff81111561211657600080fd5b61212287828801611ebd565b95989497509550505050565b600181811c9082168061214257607f821691505b60208210810361216257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602f908201527f455243373231473a2063616c6c6572206973206e6f7420746f6b656e206f776e60408201526e195c881b9bdc88185c1c1c9bdd9959608a1b606082015260800190565b60208082526026908201527f455243373231473a206d7573742068617665206d696e74657220726f6c6520746040820152651bc81b5a5b9d60d21b606082015260800190565b601f82111561062d57600081815260208120601f850160051c810160208610156122245750805b601f850160051c820191505b8181101561224357828155600101612230565b505050505050565b67ffffffffffffffff83111561226357612263611f96565b61227783612271835461212e565b836121fd565b6000601f8411600181146122ab57600085156122935750838201355b600019600387901b1c1916600186901b178355612305565b600083815260209020601f19861690835b828110156122dc57868501358255602094850194600190920191016122bc565b50868210156122f95760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b6000835161234d818460208801611cfe565b835190830190612361818360208801611cfe565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600182016123a8576123a8612380565b5060010190565b6000828210156123c1576123c1612380565b500390565b600082198211156123d9576123d9612380565b500190565b60208082526033908201527f455243373231473a207472616e7366657220746f206e6f6e204552433732315260408201527232b1b2b4bb32b91034b6b83632b6b2b73a32b960691b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b60008261245657612456612431565b500490565b60008261246a5761246a612431565b500690565b60208082526024908201527f455243373231473a20746f6b656e207472616e73666572207768696c652070616040820152631d5cd95960e21b606082015260800190565b6000816124c2576124c2612380565b506000190190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351612502816017850160208801611cfe565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351612533816028840160208801611cfe565b01602801949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061257290830184611d2a565b9695505050505050565b60006020828403121561258e57600080fd5b8151610b1b81611ccb565b60008160001904831182151516156125b3576125b3612380565b50029056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212204764a5b065d7b56667196342848fef3a1d07b3b93ed6484a4b05aa6c40739b9164736f6c634300080f0033
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.