Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 118 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer From | 20880723 | 122 days ago | IN | 0 ETH | 0.0002682 | ||||
Safe Transfer Fr... | 16218945 | 775 days ago | IN | 0 ETH | 0.00056457 | ||||
Safe Transfer Fr... | 15998088 | 806 days ago | IN | 0 ETH | 0.00094538 | ||||
Set Role | 15883866 | 822 days ago | IN | 0 ETH | 0.00091472 | ||||
Safe Transfer Fr... | 15409830 | 891 days ago | IN | 0 ETH | 0.00083323 | ||||
Safe Transfer Fr... | 15363778 | 899 days ago | IN | 0 ETH | 0.00035313 | ||||
Safe Transfer Fr... | 15363634 | 899 days ago | IN | 0 ETH | 0.0003026 | ||||
Transfer From | 15323270 | 905 days ago | IN | 0 ETH | 0.00059173 | ||||
Transfer From | 15315528 | 906 days ago | IN | 0 ETH | 0.00208797 | ||||
Transfer From | 15307470 | 908 days ago | IN | 0 ETH | 0.00046083 | ||||
Transfer From | 15295874 | 909 days ago | IN | 0 ETH | 0.00043743 | ||||
Transfer From | 15295836 | 909 days ago | IN | 0 ETH | 0.00030911 | ||||
Transfer From | 15282111 | 912 days ago | IN | 0 ETH | 0.00054673 | ||||
Transfer From | 15282095 | 912 days ago | IN | 0 ETH | 0.00074601 | ||||
Transfer From | 15282079 | 912 days ago | IN | 0 ETH | 0.00108886 | ||||
Mint | 15258706 | 915 days ago | IN | 0 ETH | 0.00091201 | ||||
Mint | 15258706 | 915 days ago | IN | 0 ETH | 0.00091201 | ||||
Mint | 15258706 | 915 days ago | IN | 0 ETH | 0.00091201 | ||||
Mint | 15258706 | 915 days ago | IN | 0 ETH | 0.00091201 | ||||
Mint | 15258706 | 915 days ago | IN | 0 ETH | 0.00091201 | ||||
Mint | 15258706 | 915 days ago | IN | 0 ETH | 0.00091201 | ||||
Mint | 15258706 | 915 days ago | IN | 0 ETH | 0.00091201 | ||||
Mint | 15258706 | 915 days ago | IN | 0 ETH | 0.00091201 | ||||
Mint | 15258706 | 915 days ago | IN | 0 ETH | 0.00091201 | ||||
Mint | 15258706 | 915 days ago | IN | 0 ETH | 0.00091201 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
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 = 100; constructor() { _setAdmin(msg.sender); } /// @notice according to ERC721Metadata function name() public pure returns (string memory) { return "Founding Member Jackets"; } /// @notice according to ERC721Metadata function symbol() public pure returns (string memory) { return "1XFJ"; } /// @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
60806040523480156200001157600080fd5b506007805460ff1916905562000027336200002d565b620000f8565b60408051808201909152600681526530303530303160d01b60208201526001600160a01b0382166200007d5760405162461bcd60e51b8152600401620000749190620000a0565b60405180910390fd5b50600580546001600160a01b0319166001600160a01b0392909216919091179055565b600060208083528351808285015260005b81811015620000cf57858101830151858201604001528201620000b1565b81811115620000e2576000604083870101525b50601f01601f1916929092016040019392505050565b6125af80620001086000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063691562a01161010f578063b88d4fde116100a2578063e1d3d81e11610071578063e1d3d81e14610451578063e63ab1e914610478578063e985e9c51461049f578063fb94bd8a146104db57600080fd5b8063b88d4fde146103f1578063c87b56dd14610404578063d539139314610417578063d896dd641461043e57600080fd5b80638456cb59116100de5780638456cb591461039557806395d89b411461039d578063a22cb465146103d6578063af8214ef146103e957600080fd5b8063691562a01461034957806370a082311461035c57806375829def1461036f5780637d44a4e01461038257600080fd5b806323b872dd1161018757806342842e0e1161015657806342842e0e146103055780634f6ccce7146103185780635c975abb1461032b5780636352211e1461033657600080fd5b806323b872dd146102d05780632f745c59146102e3578063313ce567146102f65780633f4ba83a146102fd57600080fd5b8063081812fc116101c3578063081812fc14610269578063095ea7b31461029457806318160ddd146102a7578063208dd1ff146102bd57600080fd5b806301ffc9a7146101ea57806306577f261461021257806306fdde0314610227575b600080fd5b6101fd6101f8366004611ff2565b6104ee565b60405190151581526020015b60405180910390f35b610225610220366004612032565b6105c0565b005b60408051808201909152601781527f466f756e64696e67204d656d626572204a61636b65747300000000000000000060208201525b60405161020991906120b4565b61027c6102773660046120c7565b61062c565b6040516001600160a01b039091168152602001610209565b6102256102a2366004612032565b6106a7565b6102af610875565b604051908152602001610209565b6102256102cb366004612032565b6108c3565b6102256102de3660046120e0565b610946565b6102af6102f1366004612032565b610aff565b60006102af565b610225610be7565b6102256103133660046120e0565b610c46565b6102af6103263660046120c7565b610c66565b60075460ff166101fd565b61027c6103443660046120c7565b610d47565b61022561035736600461212b565b610d9d565b6102af61036a36600461215e565b610ebb565b61022561037d36600461215e565b610f51565b6102256103903660046121c2565b610fb2565b6102256110e6565b60408051808201909152600481527f3158464a00000000000000000000000000000000000000000000000000000000602082015261025c565b6102256103e436600461220e565b61116f565b6102af606481565b6102256103ff36600461224a565b6111db565b61025c6104123660046120c7565b61132b565b6102af7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61022561044c3660046122b9565b6114a1565b6102af7fd89435f23a892f566cf1f0756b67200c9b0260e702d150f6f1816be9f46e981781565b6102af7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6101fd6104ad3660046122dc565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102256104e9366004612306565b611584565b60006001600160e01b0319808316141561050a57506000919050565b6001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061055257506001600160e01b03198216630a85bd0160e11b145b8061058657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806105ba57506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b92915050565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b8152509061061d5760405162461bcd60e51b815260040161061491906120b4565b60405180910390fd5b5061062882826115e5565b5050565b60008181526020819052604081205482906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906106855760405162461bcd60e51b815260040161061491906120b4565b506000838152600160205260409020546001600160a01b031691505b50919050565b60008181526020819052604090205481906001600160a01b0316338114806106f257506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b6040518060400160405280600681526020017f3030333030330000000000000000000000000000000000000000000000000000815250906107465760405162461bcd60e51b815260040161061491906120b4565b5060008381526020819052604090205483906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906107a05760405162461bcd60e51b815260040161061491906120b4565b5060008481526020818152604091829020548251808401909352600683527f3030333030380000000000000000000000000000000000000000000000000000918301919091526001600160a01b03908116919087168214156108155760405162461bcd60e51b815260040161061491906120b4565b5060008581526001602052604080822080546001600160a01b0319166001600160a01b038a811691821790925591518893918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050505050565b6000805b60035481116108bf576000818152602081905260409020546001600160a01b0316156108ad57816108a98161235e565b9250505b806108b78161235e565b915050610879565b5090565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906109175760405162461bcd60e51b815260040161061491906120b4565b506001600160a01b0391909116600090815260066020908152604080832093835292905220805460ff19169055565b60008181526020819052604090205481906001600160a01b03163381148061098457506000828152600160205260409020546001600160a01b031633145b806109b257506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906109ef5760405162461bcd60e51b815260040161061491906120b4565b5060008381526020819052604090205483906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b81525090610a495760405162461bcd60e51b815260040161061491906120b4565b5060008481526020818152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b03908116919088168214610aa65760405162461bcd60e51b815260040161061491906120b4565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b038716610aeb5760405162461bcd60e51b815260040161061491906120b4565b50610af6868661165a565b50505050505050565b600080610b0b84610ebb565b905060008167ffffffffffffffff811115610b2857610b28612379565b604051908082528060200260200182016040528015610b51578160200160208202803683370190505b5090506000805b6003548111610bc1576000818152602081905260409020546001600160a01b0388811691161415610baf5780838381518110610b9657610b9661238f565b602090810291909101015281610bab8161235e565b9250505b80610bb98161235e565b915050610b58565b50818581518110610bd457610bd461238f565b6020026020010151935050505092915050565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b81525090610c3b5760405162461bcd60e51b815260040161061491906120b4565b50610c446116f5565b565b610c6183838360405180602001604052806000815250611747565b505050565b600080610c71610875565b905060008167ffffffffffffffff811115610c8e57610c8e612379565b604051908082528060200260200182016040528015610cb7578160200160208202803683370190505b5090506000805b6003548111610d22576000818152602081905260409020546001600160a01b031615610d105780838381518110610cf757610cf761238f565b602090810291909101015281610d0c8161235e565b9250505b80610d1a8161235e565b915050610cbe565b50818581518110610d3557610d3561238f565b60200260200101519350505050919050565b60008181526020818152604091829020548251808401909352600683526518181998181960d11b918301919091526001600160a01b031690816106a15760405162461bcd60e51b815260040161061491906120b4565b610da56119eb565b3360009081526006602081815260408084207f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff161515600114610e255760405162461bcd60e51b815260040161061491906120b4565b5060646003546001610e3791906123a5565b11156040518060400160405280600681526020017f303036303032000000000000000000000000000000000000000000000000000081525090610e8d5760405162461bcd60e51b815260040161061491906120b4565b5060006003546001610e9f91906123a5565b9050610eab8482611a3e565b610eb58184611c5b565b50505050565b60408051808201909152600681526530303330303160d01b60208201526000906001600160a01b038316610f025760405162461bcd60e51b815260040161061491906120b4565b5060005b60035481116106a1576000818152602081905260409020546001600160a01b0384811691161415610f3f5781610f3b8161235e565b9250505b80610f498161235e565b915050610f06565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b81525090610fa55760405162461bcd60e51b815260040161061491906120b4565b50610faf81611c8f565b50565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906110065760405162461bcd60e51b815260040161061491906120b4565b506000838152602081905260409020546001600160a01b031615156040518060400160405280600681526020016518181998181960d11b8152509061105e5760405162461bcd60e51b815260040161061491906120b4565b5060008381526008602052604090208054611078906123bd565b60408051808201909152600681527f303036303031000000000000000000000000000000000000000000000000000060208201529150156110cc5760405162461bcd60e51b815260040161061491906120b4565b506000838152600860205260409020610eb5908383611f4c565b3360009081526006602081815260408084207f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff1615156001146111665760405162461bcd60e51b815260040161061491906120b4565b50610faf611cf6565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008381526020819052604090205483906001600160a01b03163381148061121957506000828152600160205260409020546001600160a01b031633145b8061124757506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906112845760405162461bcd60e51b815260040161061491906120b4565b5060008581526020819052604090205485906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906112de5760405162461bcd60e51b815260040161061491906120b4565b5061132188888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061174792505050565b5050505050505050565b6000818152602081905260409020546060906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906113855760405162461bcd60e51b815260040161061491906120b4565b506000828152600860205260408120805461139f906123bd565b9050111561144557600082815260086020526040902080546113c0906123bd565b80601f01602080910402602001604051908101604052809291908181526020018280546113ec906123bd565b80156114395780601f1061140e57610100808354040283529160200191611439565b820191906000526020600020905b81548152906001019060200180831161141c57829003601f168201915b50505050509050919050565b600060098054611454906123bd565b90501161147057604051806020016040528060008152506105ba565b600961147b83611d33565b60405160200161148c92919061240e565b60405160208183030381529060405292915050565b3360009081526006602081815260408084207fd89435f23a892f566cf1f0756b67200c9b0260e702d150f6f1816be9f46e9817808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff1615156001146115215760405162461bcd60e51b815260040161061491906120b4565b506000838152602081905260409020546001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906115795760405162461bcd60e51b815260040161061491906120b4565b50610c618383611c5b565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906115d85760405162461bcd60e51b815260040161061491906120b4565b50610c6160098383611f4c565b60408051808201909152600681526530303530303160d01b60208201526001600160a01b0383166116295760405162461bcd60e51b815260040161061491906120b4565b506001600160a01b03909116600090815260066020908152604080832093835292905220805460ff19166001179055565b6000818152602081905260409020546001600160a01b031661167d818484611e6d565b600082815260016020526040902080546001600160a01b031916905560008281526020819052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6116fd611efa565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008281526020819052604090205482906001600160a01b03163381148061178557506000828152600160205260409020546001600160a01b031633145b806117b357506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906117f05760405162461bcd60e51b815260040161061491906120b4565b5060008481526020819052604090205484906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b8152509061184a5760405162461bcd60e51b815260040161061491906120b4565b5060008581526020818152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b039081169190891682146118a75760405162461bcd60e51b815260040161061491906120b4565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b0388166118ec5760405162461bcd60e51b815260040161061491906120b4565b506118f7878761165a565b6001600160a01b0387163b1561132157604051630a85bd0160e11b81526000906001600160a01b0389169063150b7a029061193c9033908d908c908c906004016124b5565b602060405180830381600087803b15801561195657600080fd5b505af115801561196a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198e91906124f1565b60408051808201909152600681526530303330303560d01b60208201529091506001600160e01b03198216630a85bd0160e11b146119df5760405162461bcd60e51b815260040161061491906120b4565b50505050505050505050565b60075460ff1615610c445760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610614565b60408051808201909152600681526530303330303160d01b60208201526001600160a01b038316611a825760405162461bcd60e51b815260040161061491906120b4565b506000818152602081905260409020546001600160a01b03161515156040518060400160405280600681526020017f303033303036000000000000000000000000000000000000000000000000000081525090611af25760405162461bcd60e51b815260040161061491906120b4565b50600081815260208190526040902080546001600160a01b0319166001600160a01b038416179055600354811115611b2a5760038190555b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46001600160a01b0382163b1561062857604051630a85bd0160e11b8152306004820152600060248201819052604482018390526080606483015260848201819052906001600160a01b0384169063150b7a029060a401602060405180830381600087803b158015611bd257600080fd5b505af1158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a91906124f1565b60408051808201909152600681526530303330303560d01b60208201529091506001600160e01b03198216630a85bd0160e11b14610eb55760405162461bcd60e51b815260040161061491906120b4565b6000828152600460205260409020805482919060ff19166001836002811115611c8657611c8661250e565b02179055505050565b60408051808201909152600681526530303530303160d01b60208201526001600160a01b038216611cd35760405162461bcd60e51b815260040161061491906120b4565b50600580546001600160a01b0319166001600160a01b0392909216919091179055565b611cfe6119eb565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861172a3390565b606081611d7357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611d9d5780611d878161235e565b9150611d969050600a8361253a565b9150611d77565b60008167ffffffffffffffff811115611db857611db8612379565b6040519080825280601f01601f191660200182016040528015611de2576020820181803683370190505b5090505b8415611e6557611df760018361254e565b9150611e04600a86612565565b611e0f9060306123a5565b60f81b818381518110611e2457611e2461238f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611e5e600a8661253a565b9450611de6565b949350505050565b611e756119eb565b8060018060008381526004602052604090205460ff166002811115611e9c57611e9c61250e565b14156040518060400160405280600681526020017f303034303032000000000000000000000000000000000000000000000000000081525090611ef25760405162461bcd60e51b815260040161061491906120b4565b505050505050565b60075460ff16610c445760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610614565b828054611f58906123bd565b90600052602060002090601f016020900481019282611f7a5760008555611fc0565b82601f10611f935782800160ff19823516178555611fc0565b82800160010185558215611fc0579182015b82811115611fc0578235825591602001919060010190611fa5565b506108bf9291505b808211156108bf5760008155600101611fc8565b6001600160e01b031981168114610faf57600080fd5b60006020828403121561200457600080fd5b813561200f81611fdc565b9392505050565b80356001600160a01b038116811461202d57600080fd5b919050565b6000806040838503121561204557600080fd5b61204e83612016565b946020939093013593505050565b60005b8381101561207757818101518382015260200161205f565b83811115610eb55750506000910152565b600081518084526120a081602086016020860161205c565b601f01601f19169290920160200192915050565b60208152600061200f6020830184612088565b6000602082840312156120d957600080fd5b5035919050565b6000806000606084860312156120f557600080fd5b6120fe84612016565b925061210c60208501612016565b9150604084013590509250925092565b80356003811061202d57600080fd5b6000806040838503121561213e57600080fd5b61214783612016565b91506121556020840161211c565b90509250929050565b60006020828403121561217057600080fd5b61200f82612016565b60008083601f84011261218b57600080fd5b50813567ffffffffffffffff8111156121a357600080fd5b6020830191508360208285010111156121bb57600080fd5b9250929050565b6000806000604084860312156121d757600080fd5b83359250602084013567ffffffffffffffff8111156121f557600080fd5b61220186828701612179565b9497909650939450505050565b6000806040838503121561222157600080fd5b61222a83612016565b91506020830135801515811461223f57600080fd5b809150509250929050565b60008060008060006080868803121561226257600080fd5b61226b86612016565b945061227960208701612016565b935060408601359250606086013567ffffffffffffffff81111561229c57600080fd5b6122a888828901612179565b969995985093965092949392505050565b600080604083850312156122cc57600080fd5b823591506121556020840161211c565b600080604083850312156122ef57600080fd5b6122f883612016565b915061215560208401612016565b6000806020838503121561231957600080fd5b823567ffffffffffffffff81111561233057600080fd5b61233c85828601612179565b90969095509350505050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561237257612372612348565b5060010190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600082198211156123b8576123b8612348565b500190565b600181811c908216806123d157607f821691505b602082108114156106a157634e487b7160e01b600052602260045260246000fd5b6000815161240481856020860161205c565b9290920192915050565b600080845481600182811c91508083168061242a57607f831692505b602080841082141561244a57634e487b7160e01b86526022600452602486fd5b81801561245e576001811461246f5761249c565b60ff1986168952848901965061249c565b60008b81526020902060005b868110156124945781548b82015290850190830161247b565b505084890196505b5050505050506124ac81856123f2565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526124e76080830184612088565b9695505050505050565b60006020828403121561250357600080fd5b815161200f81611fdc565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b60008261254957612549612524565b500490565b60008282101561256057612560612348565b500390565b60008261257457612574612524565b50069056fea2646970667358221220dce96c55bb825f8cf49c1ba522adb8d182d724d43beafe8a81031836e37d631e64736f6c63430008080033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063691562a01161010f578063b88d4fde116100a2578063e1d3d81e11610071578063e1d3d81e14610451578063e63ab1e914610478578063e985e9c51461049f578063fb94bd8a146104db57600080fd5b8063b88d4fde146103f1578063c87b56dd14610404578063d539139314610417578063d896dd641461043e57600080fd5b80638456cb59116100de5780638456cb591461039557806395d89b411461039d578063a22cb465146103d6578063af8214ef146103e957600080fd5b8063691562a01461034957806370a082311461035c57806375829def1461036f5780637d44a4e01461038257600080fd5b806323b872dd1161018757806342842e0e1161015657806342842e0e146103055780634f6ccce7146103185780635c975abb1461032b5780636352211e1461033657600080fd5b806323b872dd146102d05780632f745c59146102e3578063313ce567146102f65780633f4ba83a146102fd57600080fd5b8063081812fc116101c3578063081812fc14610269578063095ea7b31461029457806318160ddd146102a7578063208dd1ff146102bd57600080fd5b806301ffc9a7146101ea57806306577f261461021257806306fdde0314610227575b600080fd5b6101fd6101f8366004611ff2565b6104ee565b60405190151581526020015b60405180910390f35b610225610220366004612032565b6105c0565b005b60408051808201909152601781527f466f756e64696e67204d656d626572204a61636b65747300000000000000000060208201525b60405161020991906120b4565b61027c6102773660046120c7565b61062c565b6040516001600160a01b039091168152602001610209565b6102256102a2366004612032565b6106a7565b6102af610875565b604051908152602001610209565b6102256102cb366004612032565b6108c3565b6102256102de3660046120e0565b610946565b6102af6102f1366004612032565b610aff565b60006102af565b610225610be7565b6102256103133660046120e0565b610c46565b6102af6103263660046120c7565b610c66565b60075460ff166101fd565b61027c6103443660046120c7565b610d47565b61022561035736600461212b565b610d9d565b6102af61036a36600461215e565b610ebb565b61022561037d36600461215e565b610f51565b6102256103903660046121c2565b610fb2565b6102256110e6565b60408051808201909152600481527f3158464a00000000000000000000000000000000000000000000000000000000602082015261025c565b6102256103e436600461220e565b61116f565b6102af606481565b6102256103ff36600461224a565b6111db565b61025c6104123660046120c7565b61132b565b6102af7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b61022561044c3660046122b9565b6114a1565b6102af7fd89435f23a892f566cf1f0756b67200c9b0260e702d150f6f1816be9f46e981781565b6102af7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6101fd6104ad3660046122dc565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b6102256104e9366004612306565b611584565b60006001600160e01b0319808316141561050a57506000919050565b6001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061055257506001600160e01b03198216630a85bd0160e11b145b8061058657506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806105ba57506001600160e01b031982167f780e9d6300000000000000000000000000000000000000000000000000000000145b92915050565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b8152509061061d5760405162461bcd60e51b815260040161061491906120b4565b60405180910390fd5b5061062882826115e5565b5050565b60008181526020819052604081205482906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906106855760405162461bcd60e51b815260040161061491906120b4565b506000838152600160205260409020546001600160a01b031691505b50919050565b60008181526020819052604090205481906001600160a01b0316338114806106f257506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b6040518060400160405280600681526020017f3030333030330000000000000000000000000000000000000000000000000000815250906107465760405162461bcd60e51b815260040161061491906120b4565b5060008381526020819052604090205483906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906107a05760405162461bcd60e51b815260040161061491906120b4565b5060008481526020818152604091829020548251808401909352600683527f3030333030380000000000000000000000000000000000000000000000000000918301919091526001600160a01b03908116919087168214156108155760405162461bcd60e51b815260040161061491906120b4565b5060008581526001602052604080822080546001600160a01b0319166001600160a01b038a811691821790925591518893918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050505050565b6000805b60035481116108bf576000818152602081905260409020546001600160a01b0316156108ad57816108a98161235e565b9250505b806108b78161235e565b915050610879565b5090565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906109175760405162461bcd60e51b815260040161061491906120b4565b506001600160a01b0391909116600090815260066020908152604080832093835292905220805460ff19169055565b60008181526020819052604090205481906001600160a01b03163381148061098457506000828152600160205260409020546001600160a01b031633145b806109b257506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906109ef5760405162461bcd60e51b815260040161061491906120b4565b5060008381526020819052604090205483906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b81525090610a495760405162461bcd60e51b815260040161061491906120b4565b5060008481526020818152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b03908116919088168214610aa65760405162461bcd60e51b815260040161061491906120b4565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b038716610aeb5760405162461bcd60e51b815260040161061491906120b4565b50610af6868661165a565b50505050505050565b600080610b0b84610ebb565b905060008167ffffffffffffffff811115610b2857610b28612379565b604051908082528060200260200182016040528015610b51578160200160208202803683370190505b5090506000805b6003548111610bc1576000818152602081905260409020546001600160a01b0388811691161415610baf5780838381518110610b9657610b9661238f565b602090810291909101015281610bab8161235e565b9250505b80610bb98161235e565b915050610b58565b50818581518110610bd457610bd461238f565b6020026020010151935050505092915050565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b81525090610c3b5760405162461bcd60e51b815260040161061491906120b4565b50610c446116f5565b565b610c6183838360405180602001604052806000815250611747565b505050565b600080610c71610875565b905060008167ffffffffffffffff811115610c8e57610c8e612379565b604051908082528060200260200182016040528015610cb7578160200160208202803683370190505b5090506000805b6003548111610d22576000818152602081905260409020546001600160a01b031615610d105780838381518110610cf757610cf761238f565b602090810291909101015281610d0c8161235e565b9250505b80610d1a8161235e565b915050610cbe565b50818581518110610d3557610d3561238f565b60200260200101519350505050919050565b60008181526020818152604091829020548251808401909352600683526518181998181960d11b918301919091526001600160a01b031690816106a15760405162461bcd60e51b815260040161061491906120b4565b610da56119eb565b3360009081526006602081815260408084207f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff161515600114610e255760405162461bcd60e51b815260040161061491906120b4565b5060646003546001610e3791906123a5565b11156040518060400160405280600681526020017f303036303032000000000000000000000000000000000000000000000000000081525090610e8d5760405162461bcd60e51b815260040161061491906120b4565b5060006003546001610e9f91906123a5565b9050610eab8482611a3e565b610eb58184611c5b565b50505050565b60408051808201909152600681526530303330303160d01b60208201526000906001600160a01b038316610f025760405162461bcd60e51b815260040161061491906120b4565b5060005b60035481116106a1576000818152602081905260409020546001600160a01b0384811691161415610f3f5781610f3b8161235e565b9250505b80610f498161235e565b915050610f06565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b81525090610fa55760405162461bcd60e51b815260040161061491906120b4565b50610faf81611c8f565b50565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906110065760405162461bcd60e51b815260040161061491906120b4565b506000838152602081905260409020546001600160a01b031615156040518060400160405280600681526020016518181998181960d11b8152509061105e5760405162461bcd60e51b815260040161061491906120b4565b5060008381526008602052604090208054611078906123bd565b60408051808201909152600681527f303036303031000000000000000000000000000000000000000000000000000060208201529150156110cc5760405162461bcd60e51b815260040161061491906120b4565b506000838152600860205260409020610eb5908383611f4c565b3360009081526006602081815260408084207f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff1615156001146111665760405162461bcd60e51b815260040161061491906120b4565b50610faf611cf6565b3360008181526002602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60008381526020819052604090205483906001600160a01b03163381148061121957506000828152600160205260409020546001600160a01b031633145b8061124757506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906112845760405162461bcd60e51b815260040161061491906120b4565b5060008581526020819052604090205485906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906112de5760405162461bcd60e51b815260040161061491906120b4565b5061132188888888888080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061174792505050565b5050505050505050565b6000818152602081905260409020546060906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906113855760405162461bcd60e51b815260040161061491906120b4565b506000828152600860205260408120805461139f906123bd565b9050111561144557600082815260086020526040902080546113c0906123bd565b80601f01602080910402602001604051908101604052809291908181526020018280546113ec906123bd565b80156114395780601f1061140e57610100808354040283529160200191611439565b820191906000526020600020905b81548152906001019060200180831161141c57829003601f168201915b50505050509050919050565b600060098054611454906123bd565b90501161147057604051806020016040528060008152506105ba565b600961147b83611d33565b60405160200161148c92919061240e565b60405160208183030381529060405292915050565b3360009081526006602081815260408084207fd89435f23a892f566cf1f0756b67200c9b0260e702d150f6f1816be9f46e9817808652908352938190205481518083019092529281526530303530303160d01b918101919091529060ff1615156001146115215760405162461bcd60e51b815260040161061491906120b4565b506000838152602081905260409020546001600160a01b031615156040518060400160405280600681526020016518181998181960d11b815250906115795760405162461bcd60e51b815260040161061491906120b4565b50610c618383611c5b565b6005546001600160a01b0316336001600160a01b0316146040518060400160405280600681526020016530303530303160d01b815250906115d85760405162461bcd60e51b815260040161061491906120b4565b50610c6160098383611f4c565b60408051808201909152600681526530303530303160d01b60208201526001600160a01b0383166116295760405162461bcd60e51b815260040161061491906120b4565b506001600160a01b03909116600090815260066020908152604080832093835292905220805460ff19166001179055565b6000818152602081905260409020546001600160a01b031661167d818484611e6d565b600082815260016020526040902080546001600160a01b031916905560008281526020819052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6116fd611efa565b6007805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60008281526020819052604090205482906001600160a01b03163381148061178557506000828152600160205260409020546001600160a01b031633145b806117b357506001600160a01b038116600090815260026020908152604080832033845290915290205460ff165b604051806040016040528060068152602001650c0c0ccc0c0d60d21b815250906117f05760405162461bcd60e51b815260040161061491906120b4565b5060008481526020819052604090205484906001600160a01b031615156040518060400160405280600681526020016518181998181960d11b8152509061184a5760405162461bcd60e51b815260040161061491906120b4565b5060008581526020818152604091829020548251808401909352600683526530303330303760d01b918301919091526001600160a01b039081169190891682146118a75760405162461bcd60e51b815260040161061491906120b4565b5060408051808201909152600681526530303330303160d01b60208201526001600160a01b0388166118ec5760405162461bcd60e51b815260040161061491906120b4565b506118f7878761165a565b6001600160a01b0387163b1561132157604051630a85bd0160e11b81526000906001600160a01b0389169063150b7a029061193c9033908d908c908c906004016124b5565b602060405180830381600087803b15801561195657600080fd5b505af115801561196a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198e91906124f1565b60408051808201909152600681526530303330303560d01b60208201529091506001600160e01b03198216630a85bd0160e11b146119df5760405162461bcd60e51b815260040161061491906120b4565b50505050505050505050565b60075460ff1615610c445760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610614565b60408051808201909152600681526530303330303160d01b60208201526001600160a01b038316611a825760405162461bcd60e51b815260040161061491906120b4565b506000818152602081905260409020546001600160a01b03161515156040518060400160405280600681526020017f303033303036000000000000000000000000000000000000000000000000000081525090611af25760405162461bcd60e51b815260040161061491906120b4565b50600081815260208190526040902080546001600160a01b0319166001600160a01b038416179055600354811115611b2a5760038190555b60405181906001600160a01b038416906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46001600160a01b0382163b1561062857604051630a85bd0160e11b8152306004820152600060248201819052604482018390526080606483015260848201819052906001600160a01b0384169063150b7a029060a401602060405180830381600087803b158015611bd257600080fd5b505af1158015611be6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0a91906124f1565b60408051808201909152600681526530303330303560d01b60208201529091506001600160e01b03198216630a85bd0160e11b14610eb55760405162461bcd60e51b815260040161061491906120b4565b6000828152600460205260409020805482919060ff19166001836002811115611c8657611c8661250e565b02179055505050565b60408051808201909152600681526530303530303160d01b60208201526001600160a01b038216611cd35760405162461bcd60e51b815260040161061491906120b4565b50600580546001600160a01b0319166001600160a01b0392909216919091179055565b611cfe6119eb565b6007805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861172a3390565b606081611d7357505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611d9d5780611d878161235e565b9150611d969050600a8361253a565b9150611d77565b60008167ffffffffffffffff811115611db857611db8612379565b6040519080825280601f01601f191660200182016040528015611de2576020820181803683370190505b5090505b8415611e6557611df760018361254e565b9150611e04600a86612565565b611e0f9060306123a5565b60f81b818381518110611e2457611e2461238f565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611e5e600a8661253a565b9450611de6565b949350505050565b611e756119eb565b8060018060008381526004602052604090205460ff166002811115611e9c57611e9c61250e565b14156040518060400160405280600681526020017f303034303032000000000000000000000000000000000000000000000000000081525090611ef25760405162461bcd60e51b815260040161061491906120b4565b505050505050565b60075460ff16610c445760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610614565b828054611f58906123bd565b90600052602060002090601f016020900481019282611f7a5760008555611fc0565b82601f10611f935782800160ff19823516178555611fc0565b82800160010185558215611fc0579182015b82811115611fc0578235825591602001919060010190611fa5565b506108bf9291505b808211156108bf5760008155600101611fc8565b6001600160e01b031981168114610faf57600080fd5b60006020828403121561200457600080fd5b813561200f81611fdc565b9392505050565b80356001600160a01b038116811461202d57600080fd5b919050565b6000806040838503121561204557600080fd5b61204e83612016565b946020939093013593505050565b60005b8381101561207757818101518382015260200161205f565b83811115610eb55750506000910152565b600081518084526120a081602086016020860161205c565b601f01601f19169290920160200192915050565b60208152600061200f6020830184612088565b6000602082840312156120d957600080fd5b5035919050565b6000806000606084860312156120f557600080fd5b6120fe84612016565b925061210c60208501612016565b9150604084013590509250925092565b80356003811061202d57600080fd5b6000806040838503121561213e57600080fd5b61214783612016565b91506121556020840161211c565b90509250929050565b60006020828403121561217057600080fd5b61200f82612016565b60008083601f84011261218b57600080fd5b50813567ffffffffffffffff8111156121a357600080fd5b6020830191508360208285010111156121bb57600080fd5b9250929050565b6000806000604084860312156121d757600080fd5b83359250602084013567ffffffffffffffff8111156121f557600080fd5b61220186828701612179565b9497909650939450505050565b6000806040838503121561222157600080fd5b61222a83612016565b91506020830135801515811461223f57600080fd5b809150509250929050565b60008060008060006080868803121561226257600080fd5b61226b86612016565b945061227960208701612016565b935060408601359250606086013567ffffffffffffffff81111561229c57600080fd5b6122a888828901612179565b969995985093965092949392505050565b600080604083850312156122cc57600080fd5b823591506121556020840161211c565b600080604083850312156122ef57600080fd5b6122f883612016565b915061215560208401612016565b6000806020838503121561231957600080fd5b823567ffffffffffffffff81111561233057600080fd5b61233c85828601612179565b90969095509350505050565b634e487b7160e01b600052601160045260246000fd5b600060001982141561237257612372612348565b5060010190565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600082198211156123b8576123b8612348565b500190565b600181811c908216806123d157607f821691505b602082108114156106a157634e487b7160e01b600052602260045260246000fd5b6000815161240481856020860161205c565b9290920192915050565b600080845481600182811c91508083168061242a57607f831692505b602080841082141561244a57634e487b7160e01b86526022600452602486fd5b81801561245e576001811461246f5761249c565b60ff1986168952848901965061249c565b60008b81526020902060005b868110156124945781548b82015290850190830161247b565b505084890196505b5050505050506124ac81856123f2565b95945050505050565b60006001600160a01b038087168352808616602084015250836040830152608060608301526124e76080830184612088565b9695505050505050565b60006020828403121561250357600080fd5b815161200f81611fdc565b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b60008261254957612549612524565b500490565b60008282101561256057612560612348565b500390565b60008261257457612574612524565b50069056fea2646970667358221220dce96c55bb825f8cf49c1ba522adb8d182d724d43beafe8a81031836e37d631e64736f6c63430008080033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.