Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
300 XINSB
Holders
186
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
1 XINSBLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
OneOfNoneHybrid
Compiler Version
v0.8.8+commit.dddeac2f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
pragma solidity ^0.8.8; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "./lib/ERC721.sol"; import "./lib/Hybrid.sol"; import "./lib/AccessControl.sol"; contract OneOfNoneHybrid is ERC721, Hybrid, AccessControl, Pausable { using Strings for uint256; string constant METADATA_FROZEN = "006001"; string constant LIMIT_REACHED = "006002"; mapping(uint256 => string) private _freezeMetadata; string private _baseURI; uint256 public constant LIMIT = 300; constructor() { _setAdmin(msg.sender); } /// @notice according to ERC721Metadata function name() public pure returns (string memory) { return "SANWEAR Test Units"; } /// @notice according to ERC721Metadata function symbol() public pure returns (string memory) { return "XINSB"; } /// @notice allow minter to retrieve a token function mint(address to, TokenStatus status) external virtual whenNotPaused onlyRole(MINTER_ROLE) { require(_maxTokenId + 1 <= LIMIT, LIMIT_REACHED); uint256 tokenId = _maxTokenId + 1; _mint(to, tokenId); _setStatus(tokenId, status); } /// @notice Retrieve metadata URI according to ERC721Metadata standard /// @dev there is an opportunity to freeze metadata URI /// essentially it means that for the selected tokens we can move metadata to ipfs /// and keep it there forever function tokenURI(uint256 tokenId) external view returns (string memory) { require(_exists(tokenId), NOT_VALID_NFT); if (bytes(_freezeMetadata[tokenId]).length > 0) { return _freezeMetadata[tokenId]; } return bytes(_baseURI).length > 0 ? string(abi.encodePacked(_baseURI, tokenId.toString())) : ''; } /// @notice Only owner of the token can freeze metadata. /// @dev this operation is irreversible, use with caution function freezeMetadataURI(uint256 tokenId, string calldata uri) external onlyAdmin { require(_exists(tokenId), NOT_VALID_NFT); require(bytes(_freezeMetadata[tokenId]).length == 0, METADATA_FROZEN); _freezeMetadata[tokenId] = uri; } /// @notice change base URI for the metadata function setMetadataBaseURI(string calldata uri) external onlyAdmin { _baseURI = uri; } /// @notice pause contract function pause() public onlyRole(PAUSER_ROLE) { _pause(); } /// @notice unpause function unpause() public onlyAdmin { _unpause(); } /// MARK: Hybrid function setStatus(uint256 tokenId, TokenStatus status) public onlyRole(STATUS_CHANGER_ROLE) { require(_exists(tokenId), NOT_VALID_NFT); _setStatus(tokenId, status); } /// @notice beforeTransfer hook /// Disallow transfer if token is redeemed function _beforeTransfer(address from, address to, uint256 tokenId) internal override whenNotPaused notStatus(tokenId, TokenStatus.Redeemed) {} /// MARK: AccessControl implementation function setRole(address to, bytes32 role) public onlyAdmin { _grantRole(to, role); } function revokeRole(address to, bytes32 role) public onlyAdmin { _revokeRole(to, role); } function transferAdmin(address to) public onlyAdmin { _setAdmin(to); } }
// 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.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/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; } }
pragma solidity ^0.8.8; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol"; import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol"; import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; // solhint-disable-next-line indent abstract contract ERC721 is IERC721Metadata, IERC721Enumerable, Context { using Address for address; mapping(uint256 => address) internal _owners; mapping (uint256 => address) internal _idToApproval; mapping (address => mapping (address => bool)) internal _ownerToOperators; uint256 internal _maxTokenId; /** * @dev List of revert message codes. Implementing dApp should handle showing the correct message. * Based on 0xcert framework error codes. */ string constant ZERO_ADDRESS = "003001"; string constant NOT_VALID_NFT = "003002"; string constant NOT_OWNER_OR_OPERATOR = "003003"; string constant NOT_OWNER_APPROVED_OR_OPERATOR = "003004"; string constant NOT_ABLE_TO_RECEIVE_NFT = "003005"; string constant NFT_ALREADY_EXISTS = "003006"; string constant NOT_OWNER = "003007"; string constant IS_OWNER = "003008"; /** * @dev Magic value of a smart contract that can receive NFT. * Equal to: bytes4(keccak256("onERC721Received(address,address,uint256,bytes)")). */ bytes4 internal constant MAGIC_ON_ERC721_RECEIVED = 0x150b7a02; constructor() {} /// @notice MARK: Useful modifiers /** * @dev Guarantees that the _msgSender() is an owner or operator of the given NFT. * @param tokenId ID of the NFT to validate. */ modifier canOperate(uint256 tokenId) { address tokenOwner = _owners[tokenId]; require( tokenOwner == _msgSender() || _ownerToOperators[tokenOwner][_msgSender()], NOT_OWNER_OR_OPERATOR ); _; } /** * @dev Guarantees that the _msgSender() is allowed to transfer NFT. * @param tokenId ID of the NFT to transfer. */ modifier canTransfer(uint256 tokenId) { address tokenOwner = _owners[tokenId]; require( tokenOwner == _msgSender() || _idToApproval[tokenId] == _msgSender() || _ownerToOperators[tokenOwner][_msgSender()], NOT_OWNER_APPROVED_OR_OPERATOR ); _; } /** * @dev Guarantees that _tokenId is a valid Token. * @param tokenId ID of the NFT to validate. */ modifier validNFToken(uint256 tokenId) { require(_exists(tokenId), NOT_VALID_NFT); _; } /// @notice Returns a number of decimal points /// @return Number of decimal points function decimals() public pure virtual returns (uint256) { return 0; } /// @notice MARK: ERC721 Implementation /// @notice Count all NFTs assigned to an owner /// @dev NFTs assigned to the zero address are considered invalid, and this /// function throws for queries about the zero address. /// @param owner An address for whom to query the balance /// @return balance The number of NFTs owned by `owner`, possibly zero function balanceOf(address owner) public view virtual returns (uint256 balance) { require(owner != address(0), ZERO_ADDRESS); for (uint256 i; i <= _maxTokenId; i++) { if (_owners[i] == owner) { balance++; } } return balance; } /// @notice Find the owner of an NFT /// @dev NFTs assigned to zero address are considered invalid, and queries /// about them do throw. /// @param tokenId The identifier for an NFT /// @return owner The address of the owner of the NFT function ownerOf(uint256 tokenId) external view returns (address owner) { owner = _owners[tokenId]; require(owner != address(0), NOT_VALID_NFT); } /// @notice Change or reaffirm the approved address for an NFT /// @dev The zero address indicates there is no approved address. /// Throws unless `_msgSender()` is the current NFT owner, or an authorized /// operator of the current owner. /// @param approved The new approved NFT controller /// @param tokenId The NFT to approve function approve(address approved, uint256 tokenId) external canOperate(tokenId) validNFToken(tokenId) { address tokenOwner = _owners[tokenId]; require(approved != tokenOwner, IS_OWNER); _idToApproval[tokenId] = approved; emit Approval(tokenOwner, approved, tokenId); } /// @notice Get the approved address for a single NFT /// @dev Throws if `tokenId` is not a valid NFT. /// @param tokenId The NFT to find the approved address for /// @return The approved address for this NFT, or the zero address if there is none function getApproved(uint256 tokenId) external view validNFToken(tokenId) returns (address) { return _idToApproval[tokenId]; } /// @notice Enable or disable approval for a third party ("operator") to manage /// all of `_msgSender()`'s assets /// @dev Emits the ApprovalForAll event. The contract MUST allow /// multiple operators per owner. /// @param operator Address to add to the set of authorized operators /// @param approved True if the operator is approved, false to revoke approval function setApprovalForAll(address operator, bool approved) external { _ownerToOperators[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /// @notice Query if an address is an authorized operator for another address /// @param owner The address that owns the NFTs /// @param operator The address that acts on behalf of the owner /// @return True if `operator` is an approved operator for `owner`, false otherwise function isApprovedForAll(address owner, address operator) public view virtual returns (bool) { return _ownerToOperators[owner][operator]; } /// @notice Transfers the ownership of an NFT from one address to another address /// @dev This works identically to the other function with an extra data parameter, /// except this function just sets data to "". /// @param from The current owner of the NFT /// @param to The new owner /// @param tokenId The NFT to transfer function safeTransferFrom(address from, address to, uint256 tokenId) external virtual { _safeTransferFrom(from, to, tokenId, ''); } /// @notice Transfers the ownership of an NFT from one address to another address /// @dev Throws unless `_msgSender()` is the current owner, an authorized /// operator, or the approved address for this NFT. Throws if `from` is /// not the current owner. Throws if `to` is the zero address. Throws if /// `tokenId` is not a valid NFT. When transfer is complete, this function /// checks if `to` is a smart contract (code size > 0). If so, it calls /// `onERC721Received` on `to` and throws if the return value is not /// `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`. /// @param from The current owner of the NFT /// @param to The new owner /// @param tokenId The NFT to transfer /// @param data Additional data with no specified format, sent in call to `to` function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external canTransfer(tokenId) validNFToken(tokenId) { _safeTransferFrom(from, to, tokenId, data); } /// @notice Transfer ownership of an NFT -- THE CALLER IS RESPONSIBLE /// TO CONFIRM THAT `to` IS CAPABLE OF RECEIVING NFTS OR ELSE /// THEY MAY BE PERMANENTLY LOST /// @dev Throws unless `_msgSender()` is the current owner, an authorized /// operator, or the approved address for this NFT. Throws if `from` is /// not the current owner. Throws if `to` is the zero address. Throws if /// `tokenId` is not a valid NFT. /// @param from The current owner of the NFT /// @param to The new owner /// @param tokenId The NFT to transfer function transferFrom(address from, address to, uint256 tokenId) external canTransfer(tokenId) validNFToken(tokenId) { address tokenOwner = _owners[tokenId]; require(tokenOwner == from, NOT_OWNER); require(to != address(0), ZERO_ADDRESS); _transfer(to, tokenId); } /// @notice MARK: ERC721Enumerable /// @notice Count NFTs tracked by this contract /// @return total A count of valid NFTs tracked by this contract, where each one of /// them has an assigned and queryable owner not equal to the zero address function totalSupply() public view returns (uint256 total) { for (uint256 i; i <= _maxTokenId; i++) { if (_owners[i] != address(0)) { total++; } } return total; } /// @notice Enumerate NFTs assigned to an owner /// @dev Throws if `index` >= `balanceOf(owner)` or if /// `owner` is the zero address, representing invalid NFTs. /// @param owner An address where we are interested in NFTs owned by them /// @param index A counter less than `balanceOf(owner)` /// @return The token identifier for the `index`th NFT assigned to `owner`, /// (sort order not specified) function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256) { uint256 balance = balanceOf(owner); uint256[] memory tokens = new uint256[](balance); uint256 idx; for (uint256 i; i <= _maxTokenId; i++) { if (_owners[i] == owner) { tokens[idx] = i; idx++; } } return tokens[index]; } /// @notice Enumerate valid NFTs /// @dev Throws if `index` >= `totalSupply()`. /// @param index A counter less than `totalSupply()` /// @return The token identifier for the `index`th NFT, /// (sort order not specified) function tokenByIndex(uint256 index) external view returns (uint256) { uint256 supply = totalSupply(); uint256[] memory tokens = new uint256[](supply); uint256 idx; for (uint256 i; i <= _maxTokenId; i++) { if (_owners[i] != address(0)) { tokens[idx] = i; idx++; } } return tokens[index]; } /// @notice MARK: ERC165 Implementation /// @notice Query if a contract implements an interface /// @param interfaceId The interface identifier, as specified in ERC-165 /// @dev Interface identification is specified in ERC-165. This function /// uses less than 30,000 gas. /// @return `true` if the contract implements `interfaceID` and /// `interfaceId` is not 0xffffffff, `false` otherwise function supportsInterface(bytes4 interfaceId) external pure returns (bool) { if (interfaceId == 0xffffffff) { return false; } return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Receiver).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || interfaceId == type(IERC721Enumerable).interfaceId; } /// MARK: Private methods function _mint(address to, uint256 tokenId) internal { require(to != address(0), ZERO_ADDRESS); require(!_exists(tokenId), NFT_ALREADY_EXISTS); _owners[tokenId] = to; if (tokenId > _maxTokenId) { _maxTokenId = tokenId; } emit Transfer(address(0), to, tokenId); if (to.isContract()) { bytes4 retval = IERC721Receiver(to).onERC721Received(address(this), address(0), tokenId, ""); require(retval == MAGIC_ON_ERC721_RECEIVED, NOT_ABLE_TO_RECEIVE_NFT); } } function _burn(uint256 tokenId) internal virtual validNFToken(tokenId) canTransfer(tokenId) { address tokenOwner = _owners[tokenId]; _clearApproval(tokenId); delete _owners[tokenId]; emit Transfer(tokenOwner, address(0), tokenId); } function _exists(uint256 tokenId) internal view returns (bool) { return _owners[tokenId] != address(0); } function _clearApproval(uint256 tokenId) private { delete _idToApproval[tokenId]; } /** * @dev Actually perform the safeTransferFrom. * @param _from The current owner of the NFT. * @param _to The new owner. * @param _tokenId The NFT to transfer. * @param _data Additional data with no specified format, sent in call to `_to`. */ function _safeTransferFrom( address _from, address _to, uint256 _tokenId, bytes memory _data ) private canTransfer(_tokenId) validNFToken(_tokenId) { address tokenOwner = _owners[_tokenId]; require(tokenOwner == _from, NOT_OWNER); require(_to != address(0), ZERO_ADDRESS); _transfer(_to, _tokenId); if (_to.isContract()) { bytes4 retval = IERC721Receiver(_to).onERC721Received(_msgSender(), _from, _tokenId, _data); require(retval == MAGIC_ON_ERC721_RECEIVED, NOT_ABLE_TO_RECEIVE_NFT); } } function _transfer(address to, uint256 tokenId) internal virtual { address from = _owners[tokenId]; _beforeTransfer(from, to, tokenId); _clearApproval(tokenId); _owners[tokenId] = to; emit Transfer(from, to, tokenId); } function _beforeTransfer(address from, address to, uint256 tokenId) internal virtual {} }
pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT abstract contract Hybrid { string constant INVALID_STATUS = "004002"; enum TokenStatus { Vaulted, Redeemed, Lost } mapping(uint256 => TokenStatus) private _tokenStatus; function _setStatus(uint256 tokenId, TokenStatus status) internal { _tokenStatus[tokenId] = status; } /// Check if token is not in status modifier notStatus(uint256 tokenId, TokenStatus status) { require(_tokenStatus[tokenId] != status, INVALID_STATUS); _; } }
pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT import "@openzeppelin/contracts/utils/Context.sol"; abstract contract AccessControl is Context { bytes32 public constant PAUSER_ROLE = keccak256('PAUSER_ROLE'); bytes32 public constant MINTER_ROLE = keccak256('MINTER_ROLE'); bytes32 public constant STATUS_CHANGER_ROLE = keccak256('STATUS_CHANGER_ROLE'); string constant INVALID_PERMISSION = "005001"; address private _admin; /// Mapping from address to role to boolean mapping(address => mapping(bytes32 => bool)) private _roles; modifier onlyRole(bytes32 role) { require(_roles[_msgSender()][role] == true, INVALID_PERMISSION); _; } modifier onlyAdmin() { require(_msgSender() == _admin, INVALID_PERMISSION); _; } /** * Assign role to the specific address */ function _grantRole(address to, bytes32 role) internal { require(to != address(0), INVALID_PERMISSION); _roles[to][role] = true; } /** * Revoke role */ function _revokeRole(address from, bytes32 role) internal { _roles[from][role] = false; } /** * Set admin */ function _setAdmin(address to) internal { require(to != address(0), INVALID_PERMISSION); _admin = to; } }
// 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.5.0) (token/ERC721/extensions/IERC721Enumerable.sol) pragma solidity ^0.8.0; import "../IERC721.sol"; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.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 (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) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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); }
{ "optimizer": { "enabled": true, "runs": 1000 }, "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":"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":"LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATUS_CHANGER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"approved","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":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"uri","type":"string"}],"name":"freezeMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"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":"enum Hybrid.TokenStatus","name":"status","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","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":"address","name":"to","type":"address"},{"internalType":"bytes32","name":"role","type":"bytes32"}],"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":"uri","type":"string"}],"name":"setMetadataBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"setRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"enum Hybrid.TokenStatus","name":"status","type":"uint8"}],"name":"setStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"transferAdmin","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":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506007805460ff1916905562000027336200002d565b620000f8565b60408051808201909152600681526530303530303160d01b60208201526001600160a01b0382166200007d5760405162461bcd60e51b8152600401620000749190620000a0565b60405180910390fd5b50600580546001600160a01b0319166001600160a01b0392909216919091179055565b600060208083528351808285015260005b81811015620000cf57858101830151858201604001528201620000b1565b81811115620000e2576000604083870101525b50601f01601f1916929092016040019392505050565b6125b180620001086000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063691562a01161010f578063b88d4fde116100a2578063e1d3d81e11610071578063e1d3d81e14610452578063e63ab1e914610479578063e985e9c5146104a0578063fb94bd8a146104dc57600080fd5b8063b88d4fde146103f2578063c87b56dd14610405578063d539139314610418578063d896dd641461043f57600080fd5b80638456cb59116100de5780638456cb591461039557806395d89b411461039d578063a22cb465146103d6578063af8214ef146103e957600080fd5b8063691562a01461034957806370a082311461035c57806375829def1461036f5780637d44a4e01461038257600080fd5b806323b872dd1161018757806342842e0e1161015657806342842e0e146103055780634f6ccce7146103185780635c975abb1461032b5780636352211e1461033657600080fd5b806323b872dd146102d05780632f745c59146102e3578063313ce567146102f65780633f4ba83a146102fd57600080fd5b8063081812fc116101c3578063081812fc14610269578063095ea7b31461029457806318160ddd146102a7578063208dd1ff146102bd57600080fd5b806301ffc9a7146101ea57806306577f261461021257806306fdde0314610227575b600080fd5b6101fd6101f8366004611ff4565b6104ef565b60405190151581526020015b60405180910390f35b610225610220366004612034565b6105c1565b005b60408051808201909152601281527f53414e57454152205465737420556e697473000000000000000000000000000060208201525b60405161020991906120b6565b61027c6102773660046120c9565b61062d565b6040516001600160a01b039091168152602001610209565b6102256102a2366004612034565b6106a8565b6102af610876565b604051908152602001610209565b6102256102cb366004612034565b6108c4565b6102256102de3660046120e2565b610947565b6102af6102f1366004612034565b610b00565b60006102af565b610225610be8565b6102256103133660046120e2565b610c47565b6102af6103263660046120c9565b610c67565b60075460ff166101fd565b61027c6103443660046120c9565b610d48565b61022561035736600461212d565b610d9e565b6102af61036a366004612160565b610ebd565b61022561037d366004612160565b610f53565b6102256103903660046121c4565b610fb4565b6102256110e8565b60408051808201909152600581527f58494e5342000000000000000000000000000000000000000000000000000000602082015261025c565b6102256103e4366004612210565b611171565b6102af61012c81565b61022561040036600461224c565b6111dd565b61025c6104133660046120c9565b61132d565b6102af7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61022561044d3660046122bb565b6114a3565b6102af7fd89435f23a892f566cf1f0756b67200c9b0260e702d150f6f1816be9f46e981781565b6102af7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6101fd6104ae3660046122de565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102256104ea366004612308565b611586565b60006001600160e01b0319808316141561050b57506000919050565b6001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061055357506001600160e01b03198216630a85bd0160e11b145b8061058757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806105bb57506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b92915050565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b8152509061061e5760405162461bcd60e51b815260040161061591906120b6565b60405180910390fd5b5061062982826115e7565b5050565b60008181526020819052604081205482906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906106865760405162461bcd60e51b815260040161061591906120b6565b506000838152600160205260409020546001600160a01b031691505b50919050565b60008181526020819052604090205481906001600160a01b0316338114806106f357506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b6040518060400160405280600681526020017f3030333030330000000000000000000000000000000000000000000000000000815250906107475760405162461bcd60e51b815260040161061591906120b6565b5060008381526020819052604090205483906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906107a15760405162461bcd60e51b815260040161061591906120b6565b5060008481526020818152604091829020548251808401909352600683527f3030333030380000000000000000000000000000000000000000000000000000918301919091526001600160a01b03908116919087168214156108165760405162461bcd60e51b815260040161061591906120b6565b5060008581526001602052604080822080546001600160a01b0319166001600160a01b038a811691821790925591518893918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050505050565b6000805b60035481116108c0576000818152602081905260409020546001600160a01b0316156108ae57816108aa81612360565b9250505b806108b881612360565b91505061087a565b5090565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906109185760405162461bcd60e51b815260040161061591906120b6565b506001600160a01b0391909116600090815260066020908152604080832093835292905220805460ff19169055565b60008181526020819052604090205481906001600160a01b03163381148061098557506000828152600160205260409020546001600160a01b031633145b806109b357506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906109f05760405162461bcd60e51b815260040161061591906120b6565b5060008381526020819052604090205483906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b81525090610a4a5760405162461bcd60e51b815260040161061591906120b6565b5060008481526020818152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b03908116919088168214610aa75760405162461bcd60e51b815260040161061591906120b6565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b038716610aec5760405162461bcd60e51b815260040161061591906120b6565b50610af7868661165c565b50505050505050565b600080610b0c84610ebd565b905060008167ffffffffffffffff811115610b2957610b2961237b565b604051908082528060200260200182016040528015610b52578160200160208202803683370190505b5090506000805b6003548111610bc2576000818152602081905260409020546001600160a01b0388811691161415610bb05780838381518110610b9757610b97612391565b602090810291909101015281610bac81612360565b9250505b80610bba81612360565b915050610b59565b50818581518110610bd557610bd5612391565b6020026020010151935050505092915050565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b81525090610c3c5760405162461bcd60e51b815260040161061591906120b6565b50610c456116f7565b565b610c6283838360405180602001604052806000815250611749565b505050565b600080610c72610876565b905060008167ffffffffffffffff811115610c8f57610c8f61237b565b604051908082528060200260200182016040528015610cb8578160200160208202803683370190505b5090506000805b6003548111610d23576000818152602081905260409020546001600160a01b031615610d115780838381518110610cf857610cf8612391565b602090810291909101015281610d0d81612360565b9250505b80610d1b81612360565b915050610cbf565b50818581518110610d3657610d36612391565b60200260200101519350505050919050565b60008181526020818152604091829020548251808401909352600683526518181998181960d11b918301919091526001600160a01b031690816106a25760405162461bcd60e51b815260040161061591906120b6565b610da66119ed565b3360009081526006602081815260408084207f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff161515600114610e265760405162461bcd60e51b815260040161061591906120b6565b5061012c6003546001610e3991906123a7565b11156040518060400160405280600681526020017f303036303032000000000000000000000000000000000000000000000000000081525090610e8f5760405162461bcd60e51b815260040161061591906120b6565b5060006003546001610ea191906123a7565b9050610ead8482611a40565b610eb78184611c5d565b50505050565b60408051808201909152600681526530303330303160d01b60208201526000906001600160a01b038316610f045760405162461bcd60e51b815260040161061591906120b6565b5060005b60035481116106a2576000818152602081905260409020546001600160a01b0384811691161415610f415781610f3d81612360565b9250505b80610f4b81612360565b915050610f08565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b81525090610fa75760405162461bcd60e51b815260040161061591906120b6565b50610fb181611c91565b50565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906110085760405162461bcd60e51b815260040161061591906120b6565b506000838152602081905260409020546001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906110605760405162461bcd60e51b815260040161061591906120b6565b506000838152600860205260409020805461107a906123bf565b60408051808201909152600681527f303036303031000000000000000000000000000000000000000000000000000060208201529150156110ce5760405162461bcd60e51b815260040161061591906120b6565b506000838152600860205260409020610eb7908383611f4e565b3360009081526006602081815260408084207f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff1615156001146111685760405162461bcd60e51b815260040161061591906120b6565b50610fb1611cf8565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008381526020819052604090205483906001600160a01b03163381148061121b57506000828152600160205260409020546001600160a01b031633145b8061124957506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906112865760405162461bcd60e51b815260040161061591906120b6565b5060008581526020819052604090205485906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906112e05760405162461bcd60e51b815260040161061591906120b6565b5061132388888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061174992505050565b5050505050505050565b6000818152602081905260409020546060906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906113875760405162461bcd60e51b815260040161061591906120b6565b50600082815260086020526040812080546113a1906123bf565b9050111561144757600082815260086020526040902080546113c2906123bf565b80601f01602080910402602001604051908101604052809291908181526020018280546113ee906123bf565b801561143b5780601f106114105761010080835404028352916020019161143b565b820191906000526020600020905b81548152906001019060200180831161141e57829003601f168201915b50505050509050919050565b600060098054611456906123bf565b90501161147257604051806020016040528060008152506105bb565b600961147d83611d35565b60405160200161148e929190612410565b60405160208183030381529060405292915050565b3360009081526006602081815260408084207fd89435f23a892f566cf1f0756b67200c9b0260e702d150f6f1816be9f46e9817808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff1615156001146115235760405162461bcd60e51b815260040161061591906120b6565b506000838152602081905260409020546001600160a01b031615156040518060400160405280600681526020016518181998181960d11b8152509061157b5760405162461bcd60e51b815260040161061591906120b6565b50610c628383611c5d565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906115da5760405162461bcd60e51b815260040161061591906120b6565b50610c6260098383611f4e565b60408051808201909152600681526530303530303160d01b60208201526001600160a01b03831661162b5760405162461bcd60e51b815260040161061591906120b6565b506001600160a01b03909116600090815260066020908152604080832093835292905220805460ff19166001179055565b6000818152602081905260409020546001600160a01b031661167f818484611e6f565b600082815260016020526040902080546001600160a01b031916905560008281526020819052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6116ff611efc565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008281526020819052604090205482906001600160a01b03163381148061178757506000828152600160205260409020546001600160a01b031633145b806117b557506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906117f25760405162461bcd60e51b815260040161061591906120b6565b5060008481526020819052604090205484906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b8152509061184c5760405162461bcd60e51b815260040161061591906120b6565b5060008581526020818152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b039081169190891682146118a95760405162461bcd60e51b815260040161061591906120b6565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b0388166118ee5760405162461bcd60e51b815260040161061591906120b6565b506118f9878761165c565b6001600160a01b0387163b1561132357604051630a85bd0160e11b81526000906001600160a01b0389169063150b7a029061193e9033908d908c908c906004016124b7565b602060405180830381600087803b15801561195857600080fd5b505af115801561196c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199091906124f3565b60408051808201909152600681526530303330303560d01b60208201529091506001600160e01b03198216630a85bd0160e11b146119e15760405162461bcd60e51b815260040161061591906120b6565b50505050505050505050565b60075460ff1615610c455760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610615565b60408051808201909152600681526530303330303160d01b60208201526001600160a01b038316611a845760405162461bcd60e51b815260040161061591906120b6565b506000818152602081905260409020546001600160a01b03161515156040518060400160405280600681526020017f303033303036000000000000000000000000000000000000000000000000000081525090611af45760405162461bcd60e51b815260040161061591906120b6565b50600081815260208190526040902080546001600160a01b0319166001600160a01b038416179055600354811115611b2c5760038190555b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46001600160a01b0382163b1561062957604051630a85bd0160e11b8152306004820152600060248201819052604482018390526080606483015260848201819052906001600160a01b0384169063150b7a029060a401602060405180830381600087803b158015611bd457600080fd5b505af1158015611be8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0c91906124f3565b60408051808201909152600681526530303330303560d01b60208201529091506001600160e01b03198216630a85bd0160e11b14610eb75760405162461bcd60e51b815260040161061591906120b6565b6000828152600460205260409020805482919060ff19166001836002811115611c8857611c88612510565b02179055505050565b60408051808201909152600681526530303530303160d01b60208201526001600160a01b038216611cd55760405162461bcd60e51b815260040161061591906120b6565b50600580546001600160a01b0319166001600160a01b0392909216919091179055565b611d006119ed565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861172c3390565b606081611d7557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611d9f5780611d8981612360565b9150611d989050600a8361253c565b9150611d79565b60008167ffffffffffffffff811115611dba57611dba61237b565b6040519080825280601f01601f191660200182016040528015611de4576020820181803683370190505b5090505b8415611e6757611df9600183612550565b9150611e06600a86612567565b611e119060306123a7565b60f81b818381518110611e2657611e26612391565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611e60600a8661253c565b9450611de8565b949350505050565b611e776119ed565b8060018060008381526004602052604090205460ff166002811115611e9e57611e9e612510565b14156040518060400160405280600681526020017f303034303032000000000000000000000000000000000000000000000000000081525090611ef45760405162461bcd60e51b815260040161061591906120b6565b505050505050565b60075460ff16610c455760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610615565b828054611f5a906123bf565b90600052602060002090601f016020900481019282611f7c5760008555611fc2565b82601f10611f955782800160ff19823516178555611fc2565b82800160010185558215611fc2579182015b82811115611fc2578235825591602001919060010190611fa7565b506108c09291505b808211156108c05760008155600101611fca565b6001600160e01b031981168114610fb157600080fd5b60006020828403121561200657600080fd5b813561201181611fde565b9392505050565b80356001600160a01b038116811461202f57600080fd5b919050565b6000806040838503121561204757600080fd5b61205083612018565b946020939093013593505050565b60005b83811015612079578181015183820152602001612061565b83811115610eb75750506000910152565b600081518084526120a281602086016020860161205e565b601f01601f19169290920160200192915050565b602081526000612011602083018461208a565b6000602082840312156120db57600080fd5b5035919050565b6000806000606084860312156120f757600080fd5b61210084612018565b925061210e60208501612018565b9150604084013590509250925092565b80356003811061202f57600080fd5b6000806040838503121561214057600080fd5b61214983612018565b91506121576020840161211e565b90509250929050565b60006020828403121561217257600080fd5b61201182612018565b60008083601f84011261218d57600080fd5b50813567ffffffffffffffff8111156121a557600080fd5b6020830191508360208285010111156121bd57600080fd5b9250929050565b6000806000604084860312156121d957600080fd5b83359250602084013567ffffffffffffffff8111156121f757600080fd5b6122038682870161217b565b9497909650939450505050565b6000806040838503121561222357600080fd5b61222c83612018565b91506020830135801515811461224157600080fd5b809150509250929050565b60008060008060006080868803121561226457600080fd5b61226d86612018565b945061227b60208701612018565b935060408601359250606086013567ffffffffffffffff81111561229e57600080fd5b6122aa8882890161217b565b969995985093965092949392505050565b600080604083850312156122ce57600080fd5b823591506121576020840161211e565b600080604083850312156122f157600080fd5b6122fa83612018565b915061215760208401612018565b6000806020838503121561231b57600080fd5b823567ffffffffffffffff81111561233257600080fd5b61233e8582860161217b565b90969095509350505050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156123745761237461234a565b5060010190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600082198211156123ba576123ba61234a565b500190565b600181811c908216806123d357607f821691505b602082108114156106a257634e487b7160e01b600052602260045260246000fd5b6000815161240681856020860161205e565b9290920192915050565b600080845481600182811c91508083168061242c57607f831692505b602080841082141561244c57634e487b7160e01b86526022600452602486fd5b81801561246057600181146124715761249e565b60ff1986168952848901965061249e565b60008b81526020902060005b868110156124965781548b82015290850190830161247d565b505084890196505b5050505050506124ae81856123f4565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526124e9608083018461208a565b9695505050505050565b60006020828403121561250557600080fd5b815161201181611fde565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b60008261254b5761254b612526565b500490565b6000828210156125625761256261234a565b500390565b60008261257657612576612526565b50069056fea264697066735822122068c6ba25115fe4c4f2141d56db6f78ce9fee36bfab7e260bb0bdd6bdb07f70d264736f6c63430008080033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063691562a01161010f578063b88d4fde116100a2578063e1d3d81e11610071578063e1d3d81e14610452578063e63ab1e914610479578063e985e9c5146104a0578063fb94bd8a146104dc57600080fd5b8063b88d4fde146103f2578063c87b56dd14610405578063d539139314610418578063d896dd641461043f57600080fd5b80638456cb59116100de5780638456cb591461039557806395d89b411461039d578063a22cb465146103d6578063af8214ef146103e957600080fd5b8063691562a01461034957806370a082311461035c57806375829def1461036f5780637d44a4e01461038257600080fd5b806323b872dd1161018757806342842e0e1161015657806342842e0e146103055780634f6ccce7146103185780635c975abb1461032b5780636352211e1461033657600080fd5b806323b872dd146102d05780632f745c59146102e3578063313ce567146102f65780633f4ba83a146102fd57600080fd5b8063081812fc116101c3578063081812fc14610269578063095ea7b31461029457806318160ddd146102a7578063208dd1ff146102bd57600080fd5b806301ffc9a7146101ea57806306577f261461021257806306fdde0314610227575b600080fd5b6101fd6101f8366004611ff4565b6104ef565b60405190151581526020015b60405180910390f35b610225610220366004612034565b6105c1565b005b60408051808201909152601281527f53414e57454152205465737420556e697473000000000000000000000000000060208201525b60405161020991906120b6565b61027c6102773660046120c9565b61062d565b6040516001600160a01b039091168152602001610209565b6102256102a2366004612034565b6106a8565b6102af610876565b604051908152602001610209565b6102256102cb366004612034565b6108c4565b6102256102de3660046120e2565b610947565b6102af6102f1366004612034565b610b00565b60006102af565b610225610be8565b6102256103133660046120e2565b610c47565b6102af6103263660046120c9565b610c67565b60075460ff166101fd565b61027c6103443660046120c9565b610d48565b61022561035736600461212d565b610d9e565b6102af61036a366004612160565b610ebd565b61022561037d366004612160565b610f53565b6102256103903660046121c4565b610fb4565b6102256110e8565b60408051808201909152600581527f58494e5342000000000000000000000000000000000000000000000000000000602082015261025c565b6102256103e4366004612210565b611171565b6102af61012c81565b61022561040036600461224c565b6111dd565b61025c6104133660046120c9565b61132d565b6102af7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61022561044d3660046122bb565b6114a3565b6102af7fd89435f23a892f566cf1f0756b67200c9b0260e702d150f6f1816be9f46e981781565b6102af7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6101fd6104ae3660046122de565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102256104ea366004612308565b611586565b60006001600160e01b0319808316141561050b57506000919050565b6001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061055357506001600160e01b03198216630a85bd0160e11b145b8061058757506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806105bb57506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b92915050565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b8152509061061e5760405162461bcd60e51b815260040161061591906120b6565b60405180910390fd5b5061062982826115e7565b5050565b60008181526020819052604081205482906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906106865760405162461bcd60e51b815260040161061591906120b6565b506000838152600160205260409020546001600160a01b031691505b50919050565b60008181526020819052604090205481906001600160a01b0316338114806106f357506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b6040518060400160405280600681526020017f3030333030330000000000000000000000000000000000000000000000000000815250906107475760405162461bcd60e51b815260040161061591906120b6565b5060008381526020819052604090205483906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906107a15760405162461bcd60e51b815260040161061591906120b6565b5060008481526020818152604091829020548251808401909352600683527f3030333030380000000000000000000000000000000000000000000000000000918301919091526001600160a01b03908116919087168214156108165760405162461bcd60e51b815260040161061591906120b6565b5060008581526001602052604080822080546001600160a01b0319166001600160a01b038a811691821790925591518893918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050505050565b6000805b60035481116108c0576000818152602081905260409020546001600160a01b0316156108ae57816108aa81612360565b9250505b806108b881612360565b91505061087a565b5090565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906109185760405162461bcd60e51b815260040161061591906120b6565b506001600160a01b0391909116600090815260066020908152604080832093835292905220805460ff19169055565b60008181526020819052604090205481906001600160a01b03163381148061098557506000828152600160205260409020546001600160a01b031633145b806109b357506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906109f05760405162461bcd60e51b815260040161061591906120b6565b5060008381526020819052604090205483906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b81525090610a4a5760405162461bcd60e51b815260040161061591906120b6565b5060008481526020818152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b03908116919088168214610aa75760405162461bcd60e51b815260040161061591906120b6565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b038716610aec5760405162461bcd60e51b815260040161061591906120b6565b50610af7868661165c565b50505050505050565b600080610b0c84610ebd565b905060008167ffffffffffffffff811115610b2957610b2961237b565b604051908082528060200260200182016040528015610b52578160200160208202803683370190505b5090506000805b6003548111610bc2576000818152602081905260409020546001600160a01b0388811691161415610bb05780838381518110610b9757610b97612391565b602090810291909101015281610bac81612360565b9250505b80610bba81612360565b915050610b59565b50818581518110610bd557610bd5612391565b6020026020010151935050505092915050565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b81525090610c3c5760405162461bcd60e51b815260040161061591906120b6565b50610c456116f7565b565b610c6283838360405180602001604052806000815250611749565b505050565b600080610c72610876565b905060008167ffffffffffffffff811115610c8f57610c8f61237b565b604051908082528060200260200182016040528015610cb8578160200160208202803683370190505b5090506000805b6003548111610d23576000818152602081905260409020546001600160a01b031615610d115780838381518110610cf857610cf8612391565b602090810291909101015281610d0d81612360565b9250505b80610d1b81612360565b915050610cbf565b50818581518110610d3657610d36612391565b60200260200101519350505050919050565b60008181526020818152604091829020548251808401909352600683526518181998181960d11b918301919091526001600160a01b031690816106a25760405162461bcd60e51b815260040161061591906120b6565b610da66119ed565b3360009081526006602081815260408084207f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff161515600114610e265760405162461bcd60e51b815260040161061591906120b6565b5061012c6003546001610e3991906123a7565b11156040518060400160405280600681526020017f303036303032000000000000000000000000000000000000000000000000000081525090610e8f5760405162461bcd60e51b815260040161061591906120b6565b5060006003546001610ea191906123a7565b9050610ead8482611a40565b610eb78184611c5d565b50505050565b60408051808201909152600681526530303330303160d01b60208201526000906001600160a01b038316610f045760405162461bcd60e51b815260040161061591906120b6565b5060005b60035481116106a2576000818152602081905260409020546001600160a01b0384811691161415610f415781610f3d81612360565b9250505b80610f4b81612360565b915050610f08565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b81525090610fa75760405162461bcd60e51b815260040161061591906120b6565b50610fb181611c91565b50565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906110085760405162461bcd60e51b815260040161061591906120b6565b506000838152602081905260409020546001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906110605760405162461bcd60e51b815260040161061591906120b6565b506000838152600860205260409020805461107a906123bf565b60408051808201909152600681527f303036303031000000000000000000000000000000000000000000000000000060208201529150156110ce5760405162461bcd60e51b815260040161061591906120b6565b506000838152600860205260409020610eb7908383611f4e565b3360009081526006602081815260408084207f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff1615156001146111685760405162461bcd60e51b815260040161061591906120b6565b50610fb1611cf8565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008381526020819052604090205483906001600160a01b03163381148061121b57506000828152600160205260409020546001600160a01b031633145b8061124957506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906112865760405162461bcd60e51b815260040161061591906120b6565b5060008581526020819052604090205485906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906112e05760405162461bcd60e51b815260040161061591906120b6565b5061132388888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061174992505050565b5050505050505050565b6000818152602081905260409020546060906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906113875760405162461bcd60e51b815260040161061591906120b6565b50600082815260086020526040812080546113a1906123bf565b9050111561144757600082815260086020526040902080546113c2906123bf565b80601f01602080910402602001604051908101604052809291908181526020018280546113ee906123bf565b801561143b5780601f106114105761010080835404028352916020019161143b565b820191906000526020600020905b81548152906001019060200180831161141e57829003601f168201915b50505050509050919050565b600060098054611456906123bf565b90501161147257604051806020016040528060008152506105bb565b600961147d83611d35565b60405160200161148e929190612410565b60405160208183030381529060405292915050565b3360009081526006602081815260408084207fd89435f23a892f566cf1f0756b67200c9b0260e702d150f6f1816be9f46e9817808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff1615156001146115235760405162461bcd60e51b815260040161061591906120b6565b506000838152602081905260409020546001600160a01b031615156040518060400160405280600681526020016518181998181960d11b8152509061157b5760405162461bcd60e51b815260040161061591906120b6565b50610c628383611c5d565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906115da5760405162461bcd60e51b815260040161061591906120b6565b50610c6260098383611f4e565b60408051808201909152600681526530303530303160d01b60208201526001600160a01b03831661162b5760405162461bcd60e51b815260040161061591906120b6565b506001600160a01b03909116600090815260066020908152604080832093835292905220805460ff19166001179055565b6000818152602081905260409020546001600160a01b031661167f818484611e6f565b600082815260016020526040902080546001600160a01b031916905560008281526020819052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6116ff611efc565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008281526020819052604090205482906001600160a01b03163381148061178757506000828152600160205260409020546001600160a01b031633145b806117b557506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906117f25760405162461bcd60e51b815260040161061591906120b6565b5060008481526020819052604090205484906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b8152509061184c5760405162461bcd60e51b815260040161061591906120b6565b5060008581526020818152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b039081169190891682146118a95760405162461bcd60e51b815260040161061591906120b6565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b0388166118ee5760405162461bcd60e51b815260040161061591906120b6565b506118f9878761165c565b6001600160a01b0387163b1561132357604051630a85bd0160e11b81526000906001600160a01b0389169063150b7a029061193e9033908d908c908c906004016124b7565b602060405180830381600087803b15801561195857600080fd5b505af115801561196c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061199091906124f3565b60408051808201909152600681526530303330303560d01b60208201529091506001600160e01b03198216630a85bd0160e11b146119e15760405162461bcd60e51b815260040161061591906120b6565b50505050505050505050565b60075460ff1615610c455760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610615565b60408051808201909152600681526530303330303160d01b60208201526001600160a01b038316611a845760405162461bcd60e51b815260040161061591906120b6565b506000818152602081905260409020546001600160a01b03161515156040518060400160405280600681526020017f303033303036000000000000000000000000000000000000000000000000000081525090611af45760405162461bcd60e51b815260040161061591906120b6565b50600081815260208190526040902080546001600160a01b0319166001600160a01b038416179055600354811115611b2c5760038190555b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46001600160a01b0382163b1561062957604051630a85bd0160e11b8152306004820152600060248201819052604482018390526080606483015260848201819052906001600160a01b0384169063150b7a029060a401602060405180830381600087803b158015611bd457600080fd5b505af1158015611be8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0c91906124f3565b60408051808201909152600681526530303330303560d01b60208201529091506001600160e01b03198216630a85bd0160e11b14610eb75760405162461bcd60e51b815260040161061591906120b6565b6000828152600460205260409020805482919060ff19166001836002811115611c8857611c88612510565b02179055505050565b60408051808201909152600681526530303530303160d01b60208201526001600160a01b038216611cd55760405162461bcd60e51b815260040161061591906120b6565b50600580546001600160a01b0319166001600160a01b0392909216919091179055565b611d006119ed565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861172c3390565b606081611d7557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611d9f5780611d8981612360565b9150611d989050600a8361253c565b9150611d79565b60008167ffffffffffffffff811115611dba57611dba61237b565b6040519080825280601f01601f191660200182016040528015611de4576020820181803683370190505b5090505b8415611e6757611df9600183612550565b9150611e06600a86612567565b611e119060306123a7565b60f81b818381518110611e2657611e26612391565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611e60600a8661253c565b9450611de8565b949350505050565b611e776119ed565b8060018060008381526004602052604090205460ff166002811115611e9e57611e9e612510565b14156040518060400160405280600681526020017f303034303032000000000000000000000000000000000000000000000000000081525090611ef45760405162461bcd60e51b815260040161061591906120b6565b505050505050565b60075460ff16610c455760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610615565b828054611f5a906123bf565b90600052602060002090601f016020900481019282611f7c5760008555611fc2565b82601f10611f955782800160ff19823516178555611fc2565b82800160010185558215611fc2579182015b82811115611fc2578235825591602001919060010190611fa7565b506108c09291505b808211156108c05760008155600101611fca565b6001600160e01b031981168114610fb157600080fd5b60006020828403121561200657600080fd5b813561201181611fde565b9392505050565b80356001600160a01b038116811461202f57600080fd5b919050565b6000806040838503121561204757600080fd5b61205083612018565b946020939093013593505050565b60005b83811015612079578181015183820152602001612061565b83811115610eb75750506000910152565b600081518084526120a281602086016020860161205e565b601f01601f19169290920160200192915050565b602081526000612011602083018461208a565b6000602082840312156120db57600080fd5b5035919050565b6000806000606084860312156120f757600080fd5b61210084612018565b925061210e60208501612018565b9150604084013590509250925092565b80356003811061202f57600080fd5b6000806040838503121561214057600080fd5b61214983612018565b91506121576020840161211e565b90509250929050565b60006020828403121561217257600080fd5b61201182612018565b60008083601f84011261218d57600080fd5b50813567ffffffffffffffff8111156121a557600080fd5b6020830191508360208285010111156121bd57600080fd5b9250929050565b6000806000604084860312156121d957600080fd5b83359250602084013567ffffffffffffffff8111156121f757600080fd5b6122038682870161217b565b9497909650939450505050565b6000806040838503121561222357600080fd5b61222c83612018565b91506020830135801515811461224157600080fd5b809150509250929050565b60008060008060006080868803121561226457600080fd5b61226d86612018565b945061227b60208701612018565b935060408601359250606086013567ffffffffffffffff81111561229e57600080fd5b6122aa8882890161217b565b969995985093965092949392505050565b600080604083850312156122ce57600080fd5b823591506121576020840161211e565b600080604083850312156122f157600080fd5b6122fa83612018565b915061215760208401612018565b6000806020838503121561231b57600080fd5b823567ffffffffffffffff81111561233257600080fd5b61233e8582860161217b565b90969095509350505050565b634e487b7160e01b600052601160045260246000fd5b60006000198214156123745761237461234a565b5060010190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600082198211156123ba576123ba61234a565b500190565b600181811c908216806123d357607f821691505b602082108114156106a257634e487b7160e01b600052602260045260246000fd5b6000815161240681856020860161205e565b9290920192915050565b600080845481600182811c91508083168061242c57607f831692505b602080841082141561244c57634e487b7160e01b86526022600452602486fd5b81801561246057600181146124715761249e565b60ff1986168952848901965061249e565b60008b81526020902060005b868110156124965781548b82015290850190830161247d565b505084890196505b5050505050506124ae81856123f4565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526124e9608083018461208a565b9695505050505050565b60006020828403121561250557600080fd5b815161201181611fde565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b60008261254b5761254b612526565b500490565b6000828210156125625761256261234a565b500390565b60008261257657612576612526565b50069056fea264697066735822122068c6ba25115fe4c4f2141d56db6f78ce9fee36bfab7e260bb0bdd6bdb07f70d264736f6c63430008080033
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.