Feature Tip: Add private address tag to any address under My Name Tag !
ERC-721
Overview
Max Total Supply
0 EID
Holders
394
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
2 EIDLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EtherIdWrapper
Compiler Version
v0.8.7+commit.e28d00a7
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; //EtherId Wrapper created to wrap the EtherId Name Registrar created by NAlexandre Averniouk @AlexNa // //Written by Callum Quin @callumquin interface EtherId{ event DomainChanged( address indexed sender, uint domain, uint id ); // Fired every time the registry is changed function getId( uint domain, uint id ) external view returns (uint v, uint next_id, uint prev_id ); function getDomain( uint domain ) external view returns (address owner, uint expires, uint price, address transfer, uint next_domain, uint root_id ); function changeDomain( uint domain, uint expires, uint price, address transfer ) external; function changeId( uint domain, uint name, uint value ) external; } contract EtherIdWrapper is ERC721, Ownable { uint constant MAX_PROLONG = 2000000; string private baseURI; event Wrapped(address indexed owner, uint indexed domain); event Unwrapped(address indexed owner, uint indexed domain); address public _etherIdAddress; EtherId private _etherId; constructor(address etherIdAddress) ERC721("Wrapped EtherId", "EID") { _etherIdAddress = address(etherIdAddress); _etherId = EtherId(_etherIdAddress); } /** Wrapping Functions **/ function wrap(uint domain) external { (address owner, uint expires, uint price, address transfer,,) = _etherId.getDomain(domain); //Check caller is owner of Domain require(_msgSender() == owner, "EtherIdWrapper: You are not the owner of this Domain"); //Check Domain is not expired require(expires > block.number, "EtherIdWrapper: Domain has expired"); //Check that Domain is transferrable to wrapper contract require(transfer == address(this), "EtherIdWrapper: Domain has not been set to Transfer to Wrapper Contract"); //Check that Price is set to 0 require(price == 0, "EtherIdWrapper: Price should be set to 0 before wrapping"); //Transfer Domain to Wrapper Contract _etherId.changeDomain(domain, MAX_PROLONG, 0, address(0)); //Check Transfer was correct (address idOwner, uint newExpires, uint newPrice, address newTransfer,,) = _etherId.getDomain(domain); require((idOwner == address(this)) && (newExpires > block.number) && (newPrice == 0) && (newTransfer == address(0)), "EtherIdWrapper: Transfering Domain to Wrapper Failed"); if(_exists(domain)){ //Domain Allready Wrapped but Expired and New Owner Claimed on Base Contract Now Rewrapping address wrappedOwner = ERC721.ownerOf(domain); _safeTransfer(wrappedOwner, msg.sender, domain, ""); //Check transfer of ERC721 address newOwner = ERC721.ownerOf(domain); require(newOwner == msg.sender, "EtherIdWrapper: Error in Transferring Domain"); }else{ //Wrapped Domain Does not exist. Mint New ERC721 _mint(msg.sender, domain); address mintOwner = ERC721.ownerOf(domain); require(_msgSender() == mintOwner, "EtherIdWrapper: Error Minting ERC721 NFT"); } emit Wrapped(msg.sender, domain); } function unwrap(uint domain) external { //Check NFT Exists require(_exists(domain), "EtherIdWrapper: Domain NFT does not exist"); //Check sender is owner of NFT address wrappedOwner = ERC721.ownerOf(domain); require(wrappedOwner == _msgSender(), "EtherIdWrapper: You are not the owner"); (address owner, uint expires, uint price, address transfer,,) = _etherId.getDomain(domain); //Check Domain is owned by this contract require(owner == address(this), "EtherIdWrapper: This domain is not owned by the Wrapper"); //Check Domain is not expired require(expires > block.number, "EtherIdWrapper: Domain has expired"); //Check Domain has not been listed for sale on base contract (Technically not possible) require(price == 0, "EtherIdWrapper: Domain is listed for sale cannot unwrap"); //Check Domain is not set to be transferred (Also Technically not possible) require(transfer == address(0), "EtherIdWrapper: Domain is set for transfer cannot unwrap"); _etherId.changeDomain(domain, MAX_PROLONG, 0, msg.sender); (,,uint newPrice,address newTransfer,,) = _etherId.getDomain(domain); require((newPrice == 0) && (newTransfer == msg.sender), "EtherIdWrapper: Domain Info Change Failed"); _burn(domain); require(!_exists(domain), "EtherIDWrapper: ERC721 Domain has not been burned"); emit Unwrapped(msg.sender, domain); } /** Overriding transfer function to stop expired or switched domains from being transferred (these should be claimed/rewrapped) **/ function _transfer( address from, address to, uint256 tokenId ) internal override { (address owner, uint expires, uint price, address transfer,,) = _etherId.getDomain(tokenId); //Check Domain is owned by this contract require(owner == address(this), "EtherIdWrapper: This domain is not owned by the Wrapper"); //Check Domain is not expired require(expires > block.number, "EtherIdWrapper: Domain has expired"); //Check Domain has not been listed for sale on base contract (Technically not possible) require(price == 0, "EtherIdWrapper: Domain is listed for sale on base contract cannot Transfer"); //Check Domain is not set to be transferred (Also Techncally not possible) require(transfer == address(0), "EtherIdWrapper: Domain is set for transfer on base contract cannot Transfer"); super._transfer(from, to, tokenId); } /** Write Functions **/ function changeDomain(uint domain) public{ require( domain != 0, "EtherIdWrapper: Cannot create 0 Domain"); //Get Domain information from base contract (address owner, uint expires, uint price, address transfer,, ) = _etherId.getDomain(domain); if(owner == address(0)){ //Domain does not exist Create New Domain on base Contract and Create ERC721 _etherId.changeDomain(domain, MAX_PROLONG, 0, address(0)); (owner ,expires, price, transfer,, ) = _etherId.getDomain(domain); //Check Domain is owned by this contract require(owner == address(this), "EtherIdWrapper: Error registering this domain to the wrapper"); //Check Domain is not expired require(expires > block.number, "EtherIdWrapper: Domain has expired cannot wrap"); //Check Domain has not been listed for sale on base contract (Technically not possible) require(price == 0, "EtherIdWrapper: Domain is listed for sale cannot wrap"); //Check Domain is not set to be transferred (Also Techncally not possible) require(transfer == address(0), "EtherIdWrapper: Domain is set for transfer cannot wrap"); //Mint ERC721 to Owner _mint(msg.sender, domain); emit Wrapped(msg.sender, domain); } else if(owner == address(this)) { //Domain allready owned by wrapper Check for changes/renew if(_exists(domain)){ //ERC721 allready exists if(owner == ERC721.ownerOf(domain)){ //Caller is owner of Domain Renew Domain _etherId.changeDomain(domain, MAX_PROLONG, 0, address(0)); //Check that Domain was renewed (,uint newExpires,,,,) = _etherId.getDomain(domain); require(newExpires > (block.number + MAX_PROLONG - 1), "EtherIdWrapper: Error renewing Domain"); } else { //Caller Does not own Domain check if expired require(block.number > expires, "EtherIdWrapper: Domain Has not expired"); //Domain has expired therefore claimable by caller //Check Wrapper contract still owns Domain require(owner == address(this), "EtherIdWrapper: No longer owns this Domain"); //Extend Ownership in Base Contract _etherId.changeDomain(domain, MAX_PROLONG, 0, address(0)); //Check that Domain was renewed (,uint newExpires,,,,) = _etherId.getDomain(domain); require(newExpires > (block.number + MAX_PROLONG - 1), "EtherIdWrapper: Error renewing Domain"); address wrappedOwner = ERC721.ownerOf(domain); _safeTransfer(wrappedOwner, msg.sender, domain, ""); //Check transfer of ERC721 address newOwner = ERC721.ownerOf(domain); require(newOwner == msg.sender, "EtherIdWrapper: Error in Transferring Domain"); } }else{ //ERC721 does not exist but wrapper owns domain (Can Happen if new Domain Transferred to Wrapper when initialised). //If Domain is stuck here and ERC721 doesnt exist then domain is claimable // Change Domain on base Contract and Create ERC721 _etherId.changeDomain(domain, MAX_PROLONG, 0, address(0)); (owner ,expires, price, transfer,, ) = _etherId.getDomain(domain); //Check Domain is owned by this contract require(owner == address(this), "EtherIdWrapper: Error registering this domain to the wrapper"); //Check Domain is not expired require(expires > block.number, "EtherIdWrapper: Domain has expired cannot wrap"); //Check Domain has not been listed for sale on base contract (Technically not possible) require(price == 0, "EtherIdWrapper: Domain is listed for sale cannot wrap"); //Check Domain is not set to be transferred (Also Techncally not possible) require(transfer == address(0), "EtherIdWrapper: Domain is set for transfer cannot wrap"); //Wrapped Domain Does not exist. Mint New ERC721 _mint(msg.sender, domain); emit Wrapped(msg.sender, domain); } }else{ //Someone Else is Owner of Domain require(block.number > expires, "EtherIdWrapper: Domain Has not expired and is owned by someone else"); //Domain has expired therefore can be claimed and transferred or wrapped // Change Domain on base Contract and Create ERC721 _etherId.changeDomain(domain, MAX_PROLONG, 0, address(0)); (owner ,expires, price, transfer,, ) = _etherId.getDomain(domain); //Check Domain is owned by this contract require(owner == address(this), "EtherIdWrapper: Error registering this domain to the wrapper"); //Check Domain is not expired require(expires > block.number, "EtherIdWrapper: Domain has expired cannot wrap"); //Check Domain has not been listed for sale on base contract (Technically not possible) require(price == 0, "EtherIdWrapper: Domain is listed for sale cannot wrap"); //Check Domain is not set to be transferred (Also Techncally not possible) require(transfer == address(0), "EtherIdWrapper: Domain is set for transfer cannot wrap"); if(_exists(domain)){ //Domain Allready Wrapped and expired. Transfer to function Caller address wrappedOwner = ERC721.ownerOf(domain); _safeTransfer(wrappedOwner, msg.sender, domain, ""); //Check transfer of ERC721 address newOwner = ERC721.ownerOf(domain); require(newOwner == msg.sender, "EtherIdWrapper: Error in Transferring Domain"); }else{ //Wrapped Domain Does not exist. Mint New ERC721 _mint(msg.sender, domain); emit Wrapped(msg.sender, domain); } } } function changeId(uint domain, uint name, uint value) public{ //Check NFT Exists require(_exists(domain), "EtherIdWrapper: Domain NFT does not exist"); (address owner,,,,,) = _etherId.getDomain(domain); //Check Domain is owned by this contract require(owner == address(this), "EtherIdWrapper: This domain is not owned by the Wrapper"); //Check sender is owner of NFT address wrappedOwner = ERC721.ownerOf(domain); require(wrappedOwner == _msgSender(), "EtherIdWrapper: You are not the owner"); _etherId.changeId(domain, name, value); } /** Read Functions **/ function getId(uint domain, uint id) public view returns (uint v, uint next_id, uint prev_id ){ (v, next_id, prev_id) = _etherId.getId(domain, id); } function getDomain(uint domain) public view returns (address owner, uint expires, uint price, address transfer, uint next_domain, uint root_id, bool wrapped ){ if(_exists(domain)){ address baseOwner; (baseOwner,expires, price, transfer, next_domain, root_id ) = _etherId.getDomain(domain); if(baseOwner == address(this)){ owner = ERC721.ownerOf(domain); }else{ owner = baseOwner; } wrapped = true; }else{ (owner ,expires, price, transfer, next_domain, root_id ) = _etherId.getDomain(domain); wrapped = false; } } /** Helper Functions **/ function _baseURI() internal view override returns (string memory) { return baseURI; } function setBaseURI(string memory uri) external onlyOwner { baseURI = uri; } function burnDomain(uint domain) external { //For Burning Expired NFT when required to reset must check is fully expired on base contract //Check Wrapped Domain Exists require(_exists(domain), "EtherIdWrapper: Domain NFT Does not exist"); (address owner, uint expires,,,,) = _etherId.getDomain(domain); if(owner == address(this)){ //Domain is still owned by wrapper contract. //Check Domain has Expired require(expires < block.number, "EtherIdWrapper: Domain has not expired yet"); _burn(domain); require(!_exists(domain), "EtherIDWrapper: ERC721 Domain has not been burned"); }else{ //Wrapper Contract no longer owns Domain therefore can be burned. _burn(domain); require(!_exists(domain), "EtherIDWrapper: ERC721 Domain has not been burned"); } } function renewDomain(uint domain) external { //Allow anyone to renew a wrapped domain for the max prolong period (address owner,,,,,) = _etherId.getDomain(domain); //Check Domain is owned by this contract require(owner == address(this), "EtherIdWrapper: This domain is not owned by the Wrapper"); //Renew Domain _etherId.changeDomain(domain, MAX_PROLONG, 0, address(0)); (,uint newExpires,,,,) = _etherId.getDomain(domain); require(newExpires > (block.number + MAX_PROLONG - 1), "EtherIdWrapper: Error renewing Domain"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol) pragma solidity ^0.8.0; import "./IERC721.sol"; import "./IERC721Receiver.sol"; import "./extensions/IERC721Metadata.sol"; import "../../utils/Address.sol"; import "../../utils/Context.sol"; import "../../utils/Strings.sol"; import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension, but not including the Enumerable extension, which is available separately as * {ERC721Enumerable}. */ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata { using Address for address; using Strings for uint256; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to owner address mapping(uint256 => address) private _owners; // Mapping owner address to token count mapping(address => uint256) private _balances; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; /** * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC721).interfaceId || interfaceId == type(IERC721Metadata).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC721-balanceOf}. */ function balanceOf(address owner) public view virtual override returns (uint256) { require(owner != address(0), "ERC721: balance query for the zero address"); return _balances[owner]; } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view virtual override returns (address) { address owner = _owners[tokenId]; require(owner != address(0), "ERC721: owner query for nonexistent token"); return owner; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token"); string memory baseURI = _baseURI(); return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : ""; } /** * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each * token will be the concatenation of the `baseURI` and the `tokenId`. Empty * by default, can be overridden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ""; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public virtual override { address owner = ERC721.ownerOf(tokenId); require(to != owner, "ERC721: approval to current owner"); require( _msgSender() == owner || isApprovedForAll(owner, _msgSender()), "ERC721: approve caller is not owner nor approved for all" ); _approve(to, tokenId); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view virtual override returns (address) { require(_exists(tokenId), "ERC721: approved query for nonexistent token"); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { //solhint-disable-next-line max-line-length require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ""); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved"); _safeTransfer(from, to, tokenId, _data); } /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * `_data` is additional data, it has no specified format and it is sent in call to `to`. * * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g. * implement alternative mechanisms to perform token transfer, such as signature-based. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeTransfer( address from, address to, uint256 tokenId, bytes memory _data ) internal virtual { _transfer(from, to, tokenId); require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer"); } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), * and stop existing when they are burned (`_burn`). */ function _exists(uint256 tokenId) internal view virtual returns (bool) { return _owners[tokenId] != address(0); } /** * @dev Returns whether `spender` is allowed to manage `tokenId`. * * Requirements: * * - `tokenId` must exist. */ function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) { require(_exists(tokenId), "ERC721: operator query for nonexistent token"); address owner = ERC721.ownerOf(tokenId); return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender); } /** * @dev Safely mints `tokenId` and transfers it to `to`. * * Requirements: * * - `tokenId` must not exist. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function _safeMint(address to, uint256 tokenId) internal virtual { _safeMint(to, tokenId, ""); } /** * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is * forwarded in {IERC721Receiver-onERC721Received} to contract recipients. */ function _safeMint( address to, uint256 tokenId, bytes memory _data ) internal virtual { _mint(to, tokenId); require( _checkOnERC721Received(address(0), to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer" ); } /** * @dev Mints `tokenId` and transfers it to `to`. * * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible * * Requirements: * * - `tokenId` must not exist. * - `to` cannot be the zero address. * * Emits a {Transfer} event. */ function _mint(address to, uint256 tokenId) internal virtual { require(to != address(0), "ERC721: mint to the zero address"); require(!_exists(tokenId), "ERC721: token already minted"); _beforeTokenTransfer(address(0), to, tokenId); _balances[to] += 1; _owners[tokenId] = to; emit Transfer(address(0), to, tokenId); _afterTokenTransfer(address(0), to, tokenId); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId) internal virtual { address owner = ERC721.ownerOf(tokenId); _beforeTokenTransfer(owner, address(0), tokenId); // Clear approvals _approve(address(0), tokenId); _balances[owner] -= 1; delete _owners[tokenId]; emit Transfer(owner, address(0), tokenId); _afterTokenTransfer(owner, address(0), tokenId); } /** * @dev Transfers `tokenId` from `from` to `to`. * As opposed to {transferFrom}, this imposes no restrictions on msg.sender. * * Requirements: * * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * * Emits a {Transfer} event. */ function _transfer( address from, address to, uint256 tokenId ) internal virtual { require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner"); require(to != address(0), "ERC721: transfer to the zero address"); _beforeTokenTransfer(from, to, tokenId); // Clear approvals from the previous owner _approve(address(0), tokenId); _balances[from] -= 1; _balances[to] += 1; _owners[tokenId] = to; emit Transfer(from, to, tokenId); _afterTokenTransfer(from, to, tokenId); } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve(address to, uint256 tokenId) internal virtual { _tokenApprovals[tokenId] = to; emit Approval(ERC721.ownerOf(tokenId), to, tokenId); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC721: approve to caller"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address. * The call is not executed if the target address is not a contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { if (to.isContract()) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver.onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert("ERC721: transfer to non ERC721Receiver implementer"); } else { assembly { revert(add(32, reason), mload(reason)) } } } } else { return true; } } /** * @dev Hook that is called before any token transfer. This includes minting * and burning. * * Calling conditions: * * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, ``from``'s `tokenId` will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 tokenId ) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// 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.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.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 be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// 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" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"etherIdAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"domain","type":"uint256"}],"name":"Unwrapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"domain","type":"uint256"}],"name":"Wrapped","type":"event"},{"inputs":[],"name":"_etherIdAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"domain","type":"uint256"}],"name":"burnDomain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"domain","type":"uint256"}],"name":"changeDomain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"domain","type":"uint256"},{"internalType":"uint256","name":"name","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"changeId","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":"uint256","name":"domain","type":"uint256"}],"name":"getDomain","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"expires","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"address","name":"transfer","type":"address"},{"internalType":"uint256","name":"next_domain","type":"uint256"},{"internalType":"uint256","name":"root_id","type":"uint256"},{"internalType":"bool","name":"wrapped","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"domain","type":"uint256"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getId","outputs":[{"internalType":"uint256","name":"v","type":"uint256"},{"internalType":"uint256","name":"next_id","type":"uint256"},{"internalType":"uint256","name":"prev_id","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"domain","type":"uint256"}],"name":"renewDomain","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"domain","type":"uint256"}],"name":"unwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"domain","type":"uint256"}],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b5060405162004396380380620043968339810160408190526200003491620001e5565b604080518082018252600f81526e15dc985c1c195908115d1a195c9259608a1b60208083019182528351808501909452600384526211525160ea1b90840152815191929162000086916000916200013f565b5080516200009c9060019060208401906200013f565b505050620000b9620000b3620000e960201b60201c565b620000ed565b600880546001600160a01b039092166001600160a01b031992831681179091556009805490921617905562000254565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200014d9062000217565b90600052602060002090601f016020900481019282620001715760008555620001bc565b82601f106200018c57805160ff1916838001178555620001bc565b82800160010185558215620001bc579182015b82811115620001bc5782518255916020019190600101906200019f565b50620001ca929150620001ce565b5090565b5b80821115620001ca5760008155600101620001cf565b600060208284031215620001f857600080fd5b81516001600160a01b03811681146200021057600080fd5b9392505050565b600181811c908216806200022c57607f821691505b602082108114156200024e57634e487b7160e01b600052602260045260246000fd5b50919050565b61413280620002646000396000f3fe608060405234801561001057600080fd5b50600436106101ae5760003560e01c806370a08231116100ee578063c87b56dd11610097578063e985e9c511610071578063e985e9c5146103dc578063ea598cb014610418578063eb1ff8451461042b578063f2fde38b1461043e57600080fd5b8063c87b56dd146103a3578063da28bdb2146103b6578063de0e9a3e146103c957600080fd5b806395d89b41116100c857806395d89b4114610375578063a22cb4651461037d578063b88d4fde1461039057600080fd5b806370a082311461033b578063715018a61461035c5780638da5cb5b1461036457600080fd5b806324fc65ed1161015b5780634e0d9436116101355780634e0d9436146102ef57806355f804b31461030257806356d90462146103155780636352211e1461032857600080fd5b806324fc65ed1461029b57806342842e0e146102c9578063451c42d0146102dc57600080fd5b8063095ea7b31161018c578063095ea7b31461021b5780631a7a98e21461023057806323b872dd1461028857600080fd5b806301ffc9a7146101b357806306fdde03146101db578063081812fc146101f0575b600080fd5b6101c66101c1366004613dde565b610451565b60405190151581526020015b60405180910390f35b6101e36104ee565b6040516101d29190613f8d565b6102036101fe366004613e61565b610580565b6040516001600160a01b0390911681526020016101d2565b61022e610229366004613d52565b61061a565b005b61024361023e366004613e61565b61074c565b604080516001600160a01b0398891681526020810197909752860194909452949091166060840152608083015260a082019290925290151560c082015260e0016101d2565b61022e610296366004613c5e565b6108d2565b6102ae6102a9366004613e7a565b610959565b604080519384526020840192909252908201526060016101d2565b61022e6102d7366004613c5e565b610a08565b61022e6102ea366004613e61565b610a23565b600854610203906001600160a01b031681565b61022e610310366004613e18565b610ca0565b61022e610323366004613e61565b610d11565b610203610336366004613e61565b610f33565b61034e610349366004613c08565b610fbe565b6040519081526020016101d2565b61022e611058565b6006546001600160a01b0316610203565b6101e36110be565b61022e61038b366004613d1f565b6110cd565b61022e61039e366004613c9f565b6110d8565b6101e36103b1366004613e61565b611166565b61022e6103c4366004613e61565b61124f565b61022e6103d7366004613e61565b61201f565b6101c66103ea366004613c25565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61022e610426366004613e61565b6125bb565b61022e610439366004613e9c565b612b91565b61022e61044c366004613c08565b612e11565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806104b457506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806104e857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600080546104fd9061400f565b80601f01602080910402602001604051908101604052809291908181526020018280546105299061400f565b80156105765780601f1061054b57610100808354040283529160200191610576565b820191906000526020600020905b81548152906001019060200180831161055957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105fe5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061062582610f33565b9050806001600160a01b0316836001600160a01b031614156106af5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016105f5565b336001600160a01b03821614806106cb57506106cb81336103ea565b61073d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105f5565b6107478383612ef3565b505050565b6000806000806000806000610778886000908152600260205260409020546001600160a01b0316151590565b1561083757600954604051630d3d4c7160e11b8152600481018a90526000916001600160a01b031690631a7a98e29060240160c06040518083038186803b1580156107c257600080fd5b505afa1580156107d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fa9190613d7e565b939b5091995097509550935090506001600160a01b0381163014156108295761082289610f33565b975061082d565b8097505b60019150506108c7565b600954604051630d3d4c7160e11b8152600481018a90526001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561087b57600080fd5b505afa15801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b39190613d7e565b949b50929950909750955093509150600090505b919395979092949650565b6108dc3382612f61565b61094e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016105f5565b610747838383613058565b6009546040517f24fc65ed0000000000000000000000000000000000000000000000000000000081526004810184905260248101839052600091829182916001600160a01b0316906324fc65ed9060440160606040518083038186803b1580156109c257600080fd5b505afa1580156109d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fa9190613ec8565b919790965090945092505050565b610747838383604051806020016040528060008152506110d8565b600954604051630d3d4c7160e11b8152600481018390526000916001600160a01b031690631a7a98e29060240160c06040518083038186803b158015610a6857600080fd5b505afa158015610a7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa09190613d7e565b50505050509050306001600160a01b0316816001600160a01b031614610b2e5760405162461bcd60e51b815260206004820152603760248201527f45746865724964577261707065723a205468697320646f6d61696e206973206e60448201527f6f74206f776e656420627920746865205772617070657200000000000000000060648201526084016105f5565b6009546040516375090ebf60e01b815260048101849052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b158015610b8b57600080fd5b505af1158015610b9f573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b815260048101869052600093506001600160a01b039091169150631a7a98e29060240160c06040518083038186803b158015610bea57600080fd5b505afa158015610bfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c229190613d7e565b505050509150506001621e848043610c3a9190613fa0565b610c449190613fcc565b81116107475760405162461bcd60e51b815260206004820152602560248201527f45746865724964577261707065723a204572726f722072656e6577696e67204460448201526437b6b0b4b760d91b60648201526084016105f5565b6006546001600160a01b03163314610cfa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f5565b8051610d0d906007906020840190613af9565b5050565b6000818152600260205260409020546001600160a01b0316610d875760405162461bcd60e51b815260206004820152602960248201527f45746865724964577261707065723a20446f6d61696e204e465420446f6573206044820152681b9bdd08195e1a5cdd60ba1b60648201526084016105f5565b600954604051630d3d4c7160e11b81526004810183905260009182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b158015610dd057600080fd5b505afa158015610de4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e089190613d7e565b5050505091509150306001600160a01b0316826001600160a01b03161415610e9f57438110610e9f5760405162461bcd60e51b815260206004820152602a60248201527f45746865724964577261707065723a20446f6d61696e20686173206e6f74206560448201527f787069726564207965740000000000000000000000000000000000000000000060648201526084016105f5565b610ea883613319565b6000838152600260205260409020546001600160a01b0316156107475760405162461bcd60e51b815260206004820152603160248201527f45746865724944577261707065723a2045524337323120446f6d61696e20686160448201527f73206e6f74206265656e206275726e656400000000000000000000000000000060648201526084016105f5565b6000818152600260205260408120546001600160a01b0316806104e85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016105f5565b60006001600160a01b03821661103c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016105f5565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146110b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f5565b6110bc60006133b4565b565b6060600180546104fd9061400f565b610d0d338383613406565b6110e23383612f61565b6111545760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016105f5565b611160848484846134d5565b50505050565b6000818152600260205260409020546060906001600160a01b03166111f35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016105f5565b60006111fd61355e565b9050600081511161121d5760405180602001604052806000815250611248565b806112278461356d565b604051602001611238929190613f22565b6040516020818303038152906040525b9392505050565b806112c25760405162461bcd60e51b815260206004820152602660248201527f45746865724964577261707065723a2043616e6e6f742063726561746520302060448201527f446f6d61696e000000000000000000000000000000000000000000000000000060648201526084016105f5565b600954604051630d3d4c7160e11b8152600481018390526000918291829182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561130f57600080fd5b505afa158015611323573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113479190613d7e565b5093975091955093509150506001600160a01b03841661167f576009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf906084015b600060405180830381600087803b1580156113bf57600080fd5b505af11580156113d3573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b8152600481018990526001600160a01b039091169250631a7a98e2915060240160c06040518083038186803b15801561141b57600080fd5b505afa15801561142f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114539190613d7e565b5093975091955093509150506001600160a01b03841630146114dd5760405162461bcd60e51b815260206004820152603c60248201527f45746865724964577261707065723a204572726f72207265676973746572696e60448201527f67207468697320646f6d61696e20746f2074686520777261707065720000000060648201526084016105f5565b4383116115525760405162461bcd60e51b815260206004820152602e60248201527f45746865724964577261707065723a20446f6d61696e2068617320657870697260448201527f65642063616e6e6f74207772617000000000000000000000000000000000000060648201526084016105f5565b81156115c65760405162461bcd60e51b815260206004820152603560248201527f45746865724964577261707065723a20446f6d61696e206973206c697374656460448201527f20666f722073616c652063616e6e6f742077726170000000000000000000000060648201526084016105f5565b6001600160a01b038116156116435760405162461bcd60e51b815260206004820152603660248201527f45746865724964577261707065723a20446f6d61696e2069732073657420666f60448201527f72207472616e736665722063616e6e6f7420777261700000000000000000000060648201526084016105f5565b61164d338661369f565b604051859033907f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc90600090a3612018565b6001600160a01b038416301415611b9e576000858152600260205260409020546001600160a01b031615611b56576116b685610f33565b6001600160a01b0316846001600160a01b03161415611847576009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b15801561172c57600080fd5b505af1158015611740573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b815260048101899052600093506001600160a01b039091169150631a7a98e29060240160c06040518083038186803b15801561178b57600080fd5b505afa15801561179f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117c39190613d7e565b505050509150506001621e8480436117db9190613fa0565b6117e59190613fcc565b81116118415760405162461bcd60e51b815260206004820152602560248201527f45746865724964577261707065723a204572726f722072656e6577696e67204460448201526437b6b0b4b760d91b60648201526084016105f5565b50612018565b8243116118bc5760405162461bcd60e51b815260206004820152602660248201527f45746865724964577261707065723a20446f6d61696e20486173206e6f74206560448201527f787069726564000000000000000000000000000000000000000000000000000060648201526084016105f5565b6001600160a01b038416301461193a5760405162461bcd60e51b815260206004820152602a60248201527f45746865724964577261707065723a204e6f206c6f6e676572206f776e73207460448201527f68697320446f6d61696e0000000000000000000000000000000000000000000060648201526084016105f5565b6009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b15801561199757600080fd5b505af11580156119ab573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b815260048101899052600093506001600160a01b039091169150631a7a98e29060240160c06040518083038186803b1580156119f657600080fd5b505afa158015611a0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2e9190613d7e565b505050509150506001621e848043611a469190613fa0565b611a509190613fcc565b8111611aac5760405162461bcd60e51b815260206004820152602560248201527f45746865724964577261707065723a204572726f722072656e6577696e67204460448201526437b6b0b4b760d91b60648201526084016105f5565b6000611ab787610f33565b9050611ad4813389604051806020016040528060008152506134d5565b6000611adf88610f33565b90506001600160a01b0381163314611b4e5760405162461bcd60e51b815260206004820152602c60248201527f45746865724964577261707065723a204572726f7220696e205472616e73666560448201526b393934b733902237b6b0b4b760a11b60648201526084016105f5565b505050612018565b6009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf906084016113a5565b824311611c395760405162461bcd60e51b815260206004820152604360248201527f45746865724964577261707065723a20446f6d61696e20486173206e6f74206560448201527f78706972656420616e64206973206f776e656420627920736f6d656f6e65206560648201527f6c73650000000000000000000000000000000000000000000000000000000000608482015260a4016105f5565b6009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b158015611c9657600080fd5b505af1158015611caa573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b8152600481018990526001600160a01b039091169250631a7a98e2915060240160c06040518083038186803b158015611cf257600080fd5b505afa158015611d06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2a9190613d7e565b5093975091955093509150506001600160a01b0384163014611db45760405162461bcd60e51b815260206004820152603c60248201527f45746865724964577261707065723a204572726f72207265676973746572696e60448201527f67207468697320646f6d61696e20746f2074686520777261707065720000000060648201526084016105f5565b438311611e295760405162461bcd60e51b815260206004820152602e60248201527f45746865724964577261707065723a20446f6d61696e2068617320657870697260448201527f65642063616e6e6f74207772617000000000000000000000000000000000000060648201526084016105f5565b8115611e9d5760405162461bcd60e51b815260206004820152603560248201527f45746865724964577261707065723a20446f6d61696e206973206c697374656460448201527f20666f722073616c652063616e6e6f742077726170000000000000000000000060648201526084016105f5565b6001600160a01b03811615611f1a5760405162461bcd60e51b815260206004820152603660248201527f45746865724964577261707065723a20446f6d61696e2069732073657420666f60448201527f72207472616e736665722063616e6e6f7420777261700000000000000000000060648201526084016105f5565b6000858152600260205260409020546001600160a01b031615611fe0576000611f4286610f33565b9050611f5f813388604051806020016040528060008152506134d5565b6000611f6a87610f33565b90506001600160a01b0381163314611fd95760405162461bcd60e51b815260206004820152602c60248201527f45746865724964577261707065723a204572726f7220696e205472616e73666560448201526b393934b733902237b6b0b4b760a11b60648201526084016105f5565b5050612018565b611fea338661369f565b604051859033907f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc90600090a35b5050505050565b6000818152600260205260409020546001600160a01b03166120955760405162461bcd60e51b815260206004820152602960248201527f45746865724964577261707065723a20446f6d61696e204e465420646f6573206044820152681b9bdd08195e1a5cdd60ba1b60648201526084016105f5565b60006120a082610f33565b90506001600160a01b03811633146121085760405162461bcd60e51b815260206004820152602560248201527f45746865724964577261707065723a20596f7520617265206e6f74207468652060448201526437bbb732b960d91b60648201526084016105f5565b600954604051630d3d4c7160e11b8152600481018490526000918291829182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561215557600080fd5b505afa158015612169573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218d9190613d7e565b50509350935093509350306001600160a01b0316846001600160a01b03161461221e5760405162461bcd60e51b815260206004820152603760248201527f45746865724964577261707065723a205468697320646f6d61696e206973206e60448201527f6f74206f776e656420627920746865205772617070657200000000000000000060648201526084016105f5565b4383116122785760405162461bcd60e51b815260206004820152602260248201527f45746865724964577261707065723a20446f6d61696e20686173206578706972604482015261195960f21b60648201526084016105f5565b81156122ec5760405162461bcd60e51b815260206004820152603760248201527f45746865724964577261707065723a20446f6d61696e206973206c697374656460448201527f20666f722073616c652063616e6e6f7420756e7772617000000000000000000060648201526084016105f5565b6001600160a01b038116156123695760405162461bcd60e51b815260206004820152603860248201527f45746865724964577261707065723a20446f6d61696e2069732073657420666f60448201527f72207472616e736665722063616e6e6f7420756e77726170000000000000000060648201526084016105f5565b6009546040516375090ebf60e01b815260048101889052621e84806024820152600060448201523360648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b1580156123c557600080fd5b505af11580156123d9573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b8152600481018a9052600093508392506001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561242657600080fd5b505afa15801561243a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245e9190613d7e565b505093509350505081600014801561247e57506001600160a01b03811633145b6124f05760405162461bcd60e51b815260206004820152602960248201527f45746865724964577261707065723a20446f6d61696e20496e666f204368616e60448201527f6765204661696c6564000000000000000000000000000000000000000000000060648201526084016105f5565b6124f988613319565b6000888152600260205260409020546001600160a01b0316156125845760405162461bcd60e51b815260206004820152603160248201527f45746865724944577261707065723a2045524337323120446f6d61696e20686160448201527f73206e6f74206265656e206275726e656400000000000000000000000000000060648201526084016105f5565b604051889033907f95ae649bfaaef9def56a52f4fb2d9e8fa5496bb7082930e442c74cc76b03dcb390600090a35050505050505050565b600954604051630d3d4c7160e11b8152600481018390526000918291829182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561260857600080fd5b505afa15801561261c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126409190613d7e565b50509350935093509350836001600160a01b031661265b3390565b6001600160a01b0316146126d75760405162461bcd60e51b815260206004820152603460248201527f45746865724964577261707065723a20596f7520617265206e6f74207468652060448201527f6f776e6572206f66207468697320446f6d61696e00000000000000000000000060648201526084016105f5565b4383116127315760405162461bcd60e51b815260206004820152602260248201527f45746865724964577261707065723a20446f6d61696e20686173206578706972604482015261195960f21b60648201526084016105f5565b6001600160a01b03811630146127d55760405162461bcd60e51b815260206004820152604760248201527f45746865724964577261707065723a20446f6d61696e20686173206e6f74206260448201527f65656e2073657420746f205472616e7366657220746f2057726170706572204360648201527f6f6e747261637400000000000000000000000000000000000000000000000000608482015260a4016105f5565b81156128495760405162461bcd60e51b815260206004820152603860248201527f45746865724964577261707065723a2050726963652073686f756c642062652060448201527f73657420746f2030206265666f7265207772617070696e67000000000000000060648201526084016105f5565b6009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b1580156128a657600080fd5b505af11580156128ba573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b81526004810189905260009350839250829182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561290b57600080fd5b505afa15801561291f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129439190613d7e565b50509350935093509350306001600160a01b0316846001600160a01b031614801561296d57504383115b8015612977575081155b801561298a57506001600160a01b038116155b6129fc5760405162461bcd60e51b815260206004820152603460248201527f45746865724964577261707065723a205472616e73666572696e6720446f6d6160448201527f696e20746f2057726170706572204661696c656400000000000000000000000060648201526084016105f5565b6000898152600260205260409020546001600160a01b031615612ac2576000612a248a610f33565b9050612a4181338c604051806020016040528060008152506134d5565b6000612a4c8b610f33565b90506001600160a01b0381163314612abb5760405162461bcd60e51b815260206004820152602c60248201527f45746865724964577261707065723a204572726f7220696e205472616e73666560448201526b393934b733902237b6b0b4b760a11b60648201526084016105f5565b5050612b59565b612acc338a61369f565b6000612ad78a610f33565b9050336001600160a01b03821614612b575760405162461bcd60e51b815260206004820152602860248201527f45746865724964577261707065723a204572726f72204d696e74696e6720455260448201527f43373231204e465400000000000000000000000000000000000000000000000060648201526084016105f5565b505b604051899033907f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc90600090a3505050505050505050565b6000838152600260205260409020546001600160a01b0316612c075760405162461bcd60e51b815260206004820152602960248201527f45746865724964577261707065723a20446f6d61696e204e465420646f6573206044820152681b9bdd08195e1a5cdd60ba1b60648201526084016105f5565b600954604051630d3d4c7160e11b8152600481018590526000916001600160a01b031690631a7a98e29060240160c06040518083038186803b158015612c4c57600080fd5b505afa158015612c60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c849190613d7e565b50505050509050306001600160a01b0316816001600160a01b031614612d125760405162461bcd60e51b815260206004820152603760248201527f45746865724964577261707065723a205468697320646f6d61696e206973206e60448201527f6f74206f776e656420627920746865205772617070657200000000000000000060648201526084016105f5565b6000612d1d85610f33565b90506001600160a01b0381163314612d855760405162461bcd60e51b815260206004820152602560248201527f45746865724964577261707065723a20596f7520617265206e6f74207468652060448201526437bbb732b960d91b60648201526084016105f5565b6009546040517feb1ff8450000000000000000000000000000000000000000000000000000000081526004810187905260248101869052604481018590526001600160a01b039091169063eb1ff84590606401600060405180830381600087803b158015612df257600080fd5b505af1158015612e06573d6000803e3d6000fd5b505050505050505050565b6006546001600160a01b03163314612e6b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f5565b6001600160a01b038116612ee75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105f5565b612ef0816133b4565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612f2882610f33565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612fda5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105f5565b6000612fe583610f33565b9050806001600160a01b0316846001600160a01b0316148061302c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806130505750836001600160a01b031661304584610580565b6001600160a01b0316145b949350505050565b600954604051630d3d4c7160e11b8152600481018390526000918291829182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b1580156130a557600080fd5b505afa1580156130b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130dd9190613d7e565b50509350935093509350306001600160a01b0316846001600160a01b03161461316e5760405162461bcd60e51b815260206004820152603760248201527f45746865724964577261707065723a205468697320646f6d61696e206973206e60448201527f6f74206f776e656420627920746865205772617070657200000000000000000060648201526084016105f5565b4383116131c85760405162461bcd60e51b815260206004820152602260248201527f45746865724964577261707065723a20446f6d61696e20686173206578706972604482015261195960f21b60648201526084016105f5565b81156132625760405162461bcd60e51b815260206004820152604a60248201527f45746865724964577261707065723a20446f6d61696e206973206c697374656460448201527f20666f722073616c65206f6e206261736520636f6e74726163742063616e6e6f60648201527f74205472616e7366657200000000000000000000000000000000000000000000608482015260a4016105f5565b6001600160a01b038116156133055760405162461bcd60e51b815260206004820152604b60248201527f45746865724964577261707065723a20446f6d61696e2069732073657420666f60448201527f72207472616e73666572206f6e206261736520636f6e74726163742063616e6e60648201527f6f74205472616e73666572000000000000000000000000000000000000000000608482015260a4016105f5565b6133108787876137e1565b50505050505050565b600061332482610f33565b9050613331600083612ef3565b6001600160a01b038116600090815260036020526040812080546001929061335a908490613fcc565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156134685760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105f5565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6134e0848484613058565b6134ec84848484613996565b6111605760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016105f5565b6060600780546104fd9061400f565b6060816135ad57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135d757806135c18161404a565b91506135d09050600a83613fb8565b91506135b1565b60008167ffffffffffffffff8111156135f2576135f26140bb565b6040519080825280601f01601f19166020018201604052801561361c576020820181803683370190505b5090505b841561305057613631600183613fcc565b915061363e600a86614065565b613649906030613fa0565b60f81b81838151811061365e5761365e6140a5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613698600a86613fb8565b9450613620565b6001600160a01b0382166136f55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105f5565b6000818152600260205260409020546001600160a01b03161561375a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105f5565b6001600160a01b0382166000908152600360205260408120805460019290613783908490613fa0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b826001600160a01b03166137f482610f33565b6001600160a01b0316146138585760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016105f5565b6001600160a01b0382166138d35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105f5565b6138de600082612ef3565b6001600160a01b0383166000908152600360205260408120805460019290613907908490613fcc565b90915550506001600160a01b0382166000908152600360205260408120805460019290613935908490613fa0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b15613aee57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906139da903390899088908890600401613f51565b602060405180830381600087803b1580156139f457600080fd5b505af1925050508015613a24575060408051601f3d908101601f19168201909252613a2191810190613dfb565b60015b613ad4573d808015613a52576040519150601f19603f3d011682016040523d82523d6000602084013e613a57565b606091505b508051613acc5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016105f5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613050565b506001949350505050565b828054613b059061400f565b90600052602060002090601f016020900481019282613b275760008555613b6d565b82601f10613b4057805160ff1916838001178555613b6d565b82800160010185558215613b6d579182015b82811115613b6d578251825591602001919060010190613b52565b50613b79929150613b7d565b5090565b5b80821115613b795760008155600101613b7e565b600067ffffffffffffffff80841115613bad57613bad6140bb565b604051601f8501601f19908116603f01168101908282118183101715613bd557613bd56140bb565b81604052809350858152868686011115613bee57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613c1a57600080fd5b8135611248816140d1565b60008060408385031215613c3857600080fd5b8235613c43816140d1565b91506020830135613c53816140d1565b809150509250929050565b600080600060608486031215613c7357600080fd5b8335613c7e816140d1565b92506020840135613c8e816140d1565b929592945050506040919091013590565b60008060008060808587031215613cb557600080fd5b8435613cc0816140d1565b93506020850135613cd0816140d1565b925060408501359150606085013567ffffffffffffffff811115613cf357600080fd5b8501601f81018713613d0457600080fd5b613d1387823560208401613b92565b91505092959194509250565b60008060408385031215613d3257600080fd5b8235613d3d816140d1565b915060208301358015158114613c5357600080fd5b60008060408385031215613d6557600080fd5b8235613d70816140d1565b946020939093013593505050565b60008060008060008060c08789031215613d9757600080fd5b8651613da2816140d1565b8096505060208701519450604087015193506060870151613dc2816140d1565b809350506080870151915060a087015190509295509295509295565b600060208284031215613df057600080fd5b8135611248816140e6565b600060208284031215613e0d57600080fd5b8151611248816140e6565b600060208284031215613e2a57600080fd5b813567ffffffffffffffff811115613e4157600080fd5b8201601f81018413613e5257600080fd5b61305084823560208401613b92565b600060208284031215613e7357600080fd5b5035919050565b60008060408385031215613e8d57600080fd5b50508035926020909101359150565b600080600060608486031215613eb157600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215613edd57600080fd5b8351925060208401519150604084015190509250925092565b60008151808452613f0e816020860160208601613fe3565b601f01601f19169290920160200192915050565b60008351613f34818460208801613fe3565b835190830190613f48818360208801613fe3565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f836080830184613ef6565b9695505050505050565b6020815260006112486020830184613ef6565b60008219821115613fb357613fb3614079565b500190565b600082613fc757613fc761408f565b500490565b600082821015613fde57613fde614079565b500390565b60005b83811015613ffe578181015183820152602001613fe6565b838111156111605750506000910152565b600181811c9082168061402357607f821691505b6020821081141561404457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561405e5761405e614079565b5060010190565b6000826140745761407461408f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612ef057600080fd5b6001600160e01b031981168114612ef057600080fdfea26469706673582212200352b6dbec3f2ec85ba887250e3696038f4e1ef81708300cb87ce0300d299ae764736f6c63430008070033000000000000000000000000d588b586d61c826a0e87919b3d1a239206d58bf2
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101ae5760003560e01c806370a08231116100ee578063c87b56dd11610097578063e985e9c511610071578063e985e9c5146103dc578063ea598cb014610418578063eb1ff8451461042b578063f2fde38b1461043e57600080fd5b8063c87b56dd146103a3578063da28bdb2146103b6578063de0e9a3e146103c957600080fd5b806395d89b41116100c857806395d89b4114610375578063a22cb4651461037d578063b88d4fde1461039057600080fd5b806370a082311461033b578063715018a61461035c5780638da5cb5b1461036457600080fd5b806324fc65ed1161015b5780634e0d9436116101355780634e0d9436146102ef57806355f804b31461030257806356d90462146103155780636352211e1461032857600080fd5b806324fc65ed1461029b57806342842e0e146102c9578063451c42d0146102dc57600080fd5b8063095ea7b31161018c578063095ea7b31461021b5780631a7a98e21461023057806323b872dd1461028857600080fd5b806301ffc9a7146101b357806306fdde03146101db578063081812fc146101f0575b600080fd5b6101c66101c1366004613dde565b610451565b60405190151581526020015b60405180910390f35b6101e36104ee565b6040516101d29190613f8d565b6102036101fe366004613e61565b610580565b6040516001600160a01b0390911681526020016101d2565b61022e610229366004613d52565b61061a565b005b61024361023e366004613e61565b61074c565b604080516001600160a01b0398891681526020810197909752860194909452949091166060840152608083015260a082019290925290151560c082015260e0016101d2565b61022e610296366004613c5e565b6108d2565b6102ae6102a9366004613e7a565b610959565b604080519384526020840192909252908201526060016101d2565b61022e6102d7366004613c5e565b610a08565b61022e6102ea366004613e61565b610a23565b600854610203906001600160a01b031681565b61022e610310366004613e18565b610ca0565b61022e610323366004613e61565b610d11565b610203610336366004613e61565b610f33565b61034e610349366004613c08565b610fbe565b6040519081526020016101d2565b61022e611058565b6006546001600160a01b0316610203565b6101e36110be565b61022e61038b366004613d1f565b6110cd565b61022e61039e366004613c9f565b6110d8565b6101e36103b1366004613e61565b611166565b61022e6103c4366004613e61565b61124f565b61022e6103d7366004613e61565b61201f565b6101c66103ea366004613c25565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61022e610426366004613e61565b6125bb565b61022e610439366004613e9c565b612b91565b61022e61044c366004613c08565b612e11565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806104b457506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806104e857507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600080546104fd9061400f565b80601f01602080910402602001604051908101604052809291908181526020018280546105299061400f565b80156105765780601f1061054b57610100808354040283529160200191610576565b820191906000526020600020905b81548152906001019060200180831161055957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105fe5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061062582610f33565b9050806001600160a01b0316836001600160a01b031614156106af5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016105f5565b336001600160a01b03821614806106cb57506106cb81336103ea565b61073d5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105f5565b6107478383612ef3565b505050565b6000806000806000806000610778886000908152600260205260409020546001600160a01b0316151590565b1561083757600954604051630d3d4c7160e11b8152600481018a90526000916001600160a01b031690631a7a98e29060240160c06040518083038186803b1580156107c257600080fd5b505afa1580156107d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fa9190613d7e565b939b5091995097509550935090506001600160a01b0381163014156108295761082289610f33565b975061082d565b8097505b60019150506108c7565b600954604051630d3d4c7160e11b8152600481018a90526001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561087b57600080fd5b505afa15801561088f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b39190613d7e565b949b50929950909750955093509150600090505b919395979092949650565b6108dc3382612f61565b61094e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016105f5565b610747838383613058565b6009546040517f24fc65ed0000000000000000000000000000000000000000000000000000000081526004810184905260248101839052600091829182916001600160a01b0316906324fc65ed9060440160606040518083038186803b1580156109c257600080fd5b505afa1580156109d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109fa9190613ec8565b919790965090945092505050565b610747838383604051806020016040528060008152506110d8565b600954604051630d3d4c7160e11b8152600481018390526000916001600160a01b031690631a7a98e29060240160c06040518083038186803b158015610a6857600080fd5b505afa158015610a7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aa09190613d7e565b50505050509050306001600160a01b0316816001600160a01b031614610b2e5760405162461bcd60e51b815260206004820152603760248201527f45746865724964577261707065723a205468697320646f6d61696e206973206e60448201527f6f74206f776e656420627920746865205772617070657200000000000000000060648201526084016105f5565b6009546040516375090ebf60e01b815260048101849052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b158015610b8b57600080fd5b505af1158015610b9f573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b815260048101869052600093506001600160a01b039091169150631a7a98e29060240160c06040518083038186803b158015610bea57600080fd5b505afa158015610bfe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c229190613d7e565b505050509150506001621e848043610c3a9190613fa0565b610c449190613fcc565b81116107475760405162461bcd60e51b815260206004820152602560248201527f45746865724964577261707065723a204572726f722072656e6577696e67204460448201526437b6b0b4b760d91b60648201526084016105f5565b6006546001600160a01b03163314610cfa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f5565b8051610d0d906007906020840190613af9565b5050565b6000818152600260205260409020546001600160a01b0316610d875760405162461bcd60e51b815260206004820152602960248201527f45746865724964577261707065723a20446f6d61696e204e465420446f6573206044820152681b9bdd08195e1a5cdd60ba1b60648201526084016105f5565b600954604051630d3d4c7160e11b81526004810183905260009182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b158015610dd057600080fd5b505afa158015610de4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e089190613d7e565b5050505091509150306001600160a01b0316826001600160a01b03161415610e9f57438110610e9f5760405162461bcd60e51b815260206004820152602a60248201527f45746865724964577261707065723a20446f6d61696e20686173206e6f74206560448201527f787069726564207965740000000000000000000000000000000000000000000060648201526084016105f5565b610ea883613319565b6000838152600260205260409020546001600160a01b0316156107475760405162461bcd60e51b815260206004820152603160248201527f45746865724944577261707065723a2045524337323120446f6d61696e20686160448201527f73206e6f74206265656e206275726e656400000000000000000000000000000060648201526084016105f5565b6000818152600260205260408120546001600160a01b0316806104e85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016105f5565b60006001600160a01b03821661103c5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016105f5565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146110b25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f5565b6110bc60006133b4565b565b6060600180546104fd9061400f565b610d0d338383613406565b6110e23383612f61565b6111545760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016105f5565b611160848484846134d5565b50505050565b6000818152600260205260409020546060906001600160a01b03166111f35760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201527f6e6578697374656e7420746f6b656e000000000000000000000000000000000060648201526084016105f5565b60006111fd61355e565b9050600081511161121d5760405180602001604052806000815250611248565b806112278461356d565b604051602001611238929190613f22565b6040516020818303038152906040525b9392505050565b806112c25760405162461bcd60e51b815260206004820152602660248201527f45746865724964577261707065723a2043616e6e6f742063726561746520302060448201527f446f6d61696e000000000000000000000000000000000000000000000000000060648201526084016105f5565b600954604051630d3d4c7160e11b8152600481018390526000918291829182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561130f57600080fd5b505afa158015611323573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113479190613d7e565b5093975091955093509150506001600160a01b03841661167f576009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf906084015b600060405180830381600087803b1580156113bf57600080fd5b505af11580156113d3573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b8152600481018990526001600160a01b039091169250631a7a98e2915060240160c06040518083038186803b15801561141b57600080fd5b505afa15801561142f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114539190613d7e565b5093975091955093509150506001600160a01b03841630146114dd5760405162461bcd60e51b815260206004820152603c60248201527f45746865724964577261707065723a204572726f72207265676973746572696e60448201527f67207468697320646f6d61696e20746f2074686520777261707065720000000060648201526084016105f5565b4383116115525760405162461bcd60e51b815260206004820152602e60248201527f45746865724964577261707065723a20446f6d61696e2068617320657870697260448201527f65642063616e6e6f74207772617000000000000000000000000000000000000060648201526084016105f5565b81156115c65760405162461bcd60e51b815260206004820152603560248201527f45746865724964577261707065723a20446f6d61696e206973206c697374656460448201527f20666f722073616c652063616e6e6f742077726170000000000000000000000060648201526084016105f5565b6001600160a01b038116156116435760405162461bcd60e51b815260206004820152603660248201527f45746865724964577261707065723a20446f6d61696e2069732073657420666f60448201527f72207472616e736665722063616e6e6f7420777261700000000000000000000060648201526084016105f5565b61164d338661369f565b604051859033907f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc90600090a3612018565b6001600160a01b038416301415611b9e576000858152600260205260409020546001600160a01b031615611b56576116b685610f33565b6001600160a01b0316846001600160a01b03161415611847576009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b15801561172c57600080fd5b505af1158015611740573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b815260048101899052600093506001600160a01b039091169150631a7a98e29060240160c06040518083038186803b15801561178b57600080fd5b505afa15801561179f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117c39190613d7e565b505050509150506001621e8480436117db9190613fa0565b6117e59190613fcc565b81116118415760405162461bcd60e51b815260206004820152602560248201527f45746865724964577261707065723a204572726f722072656e6577696e67204460448201526437b6b0b4b760d91b60648201526084016105f5565b50612018565b8243116118bc5760405162461bcd60e51b815260206004820152602660248201527f45746865724964577261707065723a20446f6d61696e20486173206e6f74206560448201527f787069726564000000000000000000000000000000000000000000000000000060648201526084016105f5565b6001600160a01b038416301461193a5760405162461bcd60e51b815260206004820152602a60248201527f45746865724964577261707065723a204e6f206c6f6e676572206f776e73207460448201527f68697320446f6d61696e0000000000000000000000000000000000000000000060648201526084016105f5565b6009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b15801561199757600080fd5b505af11580156119ab573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b815260048101899052600093506001600160a01b039091169150631a7a98e29060240160c06040518083038186803b1580156119f657600080fd5b505afa158015611a0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2e9190613d7e565b505050509150506001621e848043611a469190613fa0565b611a509190613fcc565b8111611aac5760405162461bcd60e51b815260206004820152602560248201527f45746865724964577261707065723a204572726f722072656e6577696e67204460448201526437b6b0b4b760d91b60648201526084016105f5565b6000611ab787610f33565b9050611ad4813389604051806020016040528060008152506134d5565b6000611adf88610f33565b90506001600160a01b0381163314611b4e5760405162461bcd60e51b815260206004820152602c60248201527f45746865724964577261707065723a204572726f7220696e205472616e73666560448201526b393934b733902237b6b0b4b760a11b60648201526084016105f5565b505050612018565b6009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf906084016113a5565b824311611c395760405162461bcd60e51b815260206004820152604360248201527f45746865724964577261707065723a20446f6d61696e20486173206e6f74206560448201527f78706972656420616e64206973206f776e656420627920736f6d656f6e65206560648201527f6c73650000000000000000000000000000000000000000000000000000000000608482015260a4016105f5565b6009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b158015611c9657600080fd5b505af1158015611caa573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b8152600481018990526001600160a01b039091169250631a7a98e2915060240160c06040518083038186803b158015611cf257600080fd5b505afa158015611d06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d2a9190613d7e565b5093975091955093509150506001600160a01b0384163014611db45760405162461bcd60e51b815260206004820152603c60248201527f45746865724964577261707065723a204572726f72207265676973746572696e60448201527f67207468697320646f6d61696e20746f2074686520777261707065720000000060648201526084016105f5565b438311611e295760405162461bcd60e51b815260206004820152602e60248201527f45746865724964577261707065723a20446f6d61696e2068617320657870697260448201527f65642063616e6e6f74207772617000000000000000000000000000000000000060648201526084016105f5565b8115611e9d5760405162461bcd60e51b815260206004820152603560248201527f45746865724964577261707065723a20446f6d61696e206973206c697374656460448201527f20666f722073616c652063616e6e6f742077726170000000000000000000000060648201526084016105f5565b6001600160a01b03811615611f1a5760405162461bcd60e51b815260206004820152603660248201527f45746865724964577261707065723a20446f6d61696e2069732073657420666f60448201527f72207472616e736665722063616e6e6f7420777261700000000000000000000060648201526084016105f5565b6000858152600260205260409020546001600160a01b031615611fe0576000611f4286610f33565b9050611f5f813388604051806020016040528060008152506134d5565b6000611f6a87610f33565b90506001600160a01b0381163314611fd95760405162461bcd60e51b815260206004820152602c60248201527f45746865724964577261707065723a204572726f7220696e205472616e73666560448201526b393934b733902237b6b0b4b760a11b60648201526084016105f5565b5050612018565b611fea338661369f565b604051859033907f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc90600090a35b5050505050565b6000818152600260205260409020546001600160a01b03166120955760405162461bcd60e51b815260206004820152602960248201527f45746865724964577261707065723a20446f6d61696e204e465420646f6573206044820152681b9bdd08195e1a5cdd60ba1b60648201526084016105f5565b60006120a082610f33565b90506001600160a01b03811633146121085760405162461bcd60e51b815260206004820152602560248201527f45746865724964577261707065723a20596f7520617265206e6f74207468652060448201526437bbb732b960d91b60648201526084016105f5565b600954604051630d3d4c7160e11b8152600481018490526000918291829182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561215557600080fd5b505afa158015612169573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061218d9190613d7e565b50509350935093509350306001600160a01b0316846001600160a01b03161461221e5760405162461bcd60e51b815260206004820152603760248201527f45746865724964577261707065723a205468697320646f6d61696e206973206e60448201527f6f74206f776e656420627920746865205772617070657200000000000000000060648201526084016105f5565b4383116122785760405162461bcd60e51b815260206004820152602260248201527f45746865724964577261707065723a20446f6d61696e20686173206578706972604482015261195960f21b60648201526084016105f5565b81156122ec5760405162461bcd60e51b815260206004820152603760248201527f45746865724964577261707065723a20446f6d61696e206973206c697374656460448201527f20666f722073616c652063616e6e6f7420756e7772617000000000000000000060648201526084016105f5565b6001600160a01b038116156123695760405162461bcd60e51b815260206004820152603860248201527f45746865724964577261707065723a20446f6d61696e2069732073657420666f60448201527f72207472616e736665722063616e6e6f7420756e77726170000000000000000060648201526084016105f5565b6009546040516375090ebf60e01b815260048101889052621e84806024820152600060448201523360648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b1580156123c557600080fd5b505af11580156123d9573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b8152600481018a9052600093508392506001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561242657600080fd5b505afa15801561243a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245e9190613d7e565b505093509350505081600014801561247e57506001600160a01b03811633145b6124f05760405162461bcd60e51b815260206004820152602960248201527f45746865724964577261707065723a20446f6d61696e20496e666f204368616e60448201527f6765204661696c6564000000000000000000000000000000000000000000000060648201526084016105f5565b6124f988613319565b6000888152600260205260409020546001600160a01b0316156125845760405162461bcd60e51b815260206004820152603160248201527f45746865724944577261707065723a2045524337323120446f6d61696e20686160448201527f73206e6f74206265656e206275726e656400000000000000000000000000000060648201526084016105f5565b604051889033907f95ae649bfaaef9def56a52f4fb2d9e8fa5496bb7082930e442c74cc76b03dcb390600090a35050505050505050565b600954604051630d3d4c7160e11b8152600481018390526000918291829182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561260857600080fd5b505afa15801561261c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126409190613d7e565b50509350935093509350836001600160a01b031661265b3390565b6001600160a01b0316146126d75760405162461bcd60e51b815260206004820152603460248201527f45746865724964577261707065723a20596f7520617265206e6f74207468652060448201527f6f776e6572206f66207468697320446f6d61696e00000000000000000000000060648201526084016105f5565b4383116127315760405162461bcd60e51b815260206004820152602260248201527f45746865724964577261707065723a20446f6d61696e20686173206578706972604482015261195960f21b60648201526084016105f5565b6001600160a01b03811630146127d55760405162461bcd60e51b815260206004820152604760248201527f45746865724964577261707065723a20446f6d61696e20686173206e6f74206260448201527f65656e2073657420746f205472616e7366657220746f2057726170706572204360648201527f6f6e747261637400000000000000000000000000000000000000000000000000608482015260a4016105f5565b81156128495760405162461bcd60e51b815260206004820152603860248201527f45746865724964577261707065723a2050726963652073686f756c642062652060448201527f73657420746f2030206265666f7265207772617070696e67000000000000000060648201526084016105f5565b6009546040516375090ebf60e01b815260048101879052621e8480602482015260006044820181905260648201526001600160a01b03909116906375090ebf90608401600060405180830381600087803b1580156128a657600080fd5b505af11580156128ba573d6000803e3d6000fd5b5050600954604051630d3d4c7160e11b81526004810189905260009350839250829182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b15801561290b57600080fd5b505afa15801561291f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129439190613d7e565b50509350935093509350306001600160a01b0316846001600160a01b031614801561296d57504383115b8015612977575081155b801561298a57506001600160a01b038116155b6129fc5760405162461bcd60e51b815260206004820152603460248201527f45746865724964577261707065723a205472616e73666572696e6720446f6d6160448201527f696e20746f2057726170706572204661696c656400000000000000000000000060648201526084016105f5565b6000898152600260205260409020546001600160a01b031615612ac2576000612a248a610f33565b9050612a4181338c604051806020016040528060008152506134d5565b6000612a4c8b610f33565b90506001600160a01b0381163314612abb5760405162461bcd60e51b815260206004820152602c60248201527f45746865724964577261707065723a204572726f7220696e205472616e73666560448201526b393934b733902237b6b0b4b760a11b60648201526084016105f5565b5050612b59565b612acc338a61369f565b6000612ad78a610f33565b9050336001600160a01b03821614612b575760405162461bcd60e51b815260206004820152602860248201527f45746865724964577261707065723a204572726f72204d696e74696e6720455260448201527f43373231204e465400000000000000000000000000000000000000000000000060648201526084016105f5565b505b604051899033907f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc90600090a3505050505050505050565b6000838152600260205260409020546001600160a01b0316612c075760405162461bcd60e51b815260206004820152602960248201527f45746865724964577261707065723a20446f6d61696e204e465420646f6573206044820152681b9bdd08195e1a5cdd60ba1b60648201526084016105f5565b600954604051630d3d4c7160e11b8152600481018590526000916001600160a01b031690631a7a98e29060240160c06040518083038186803b158015612c4c57600080fd5b505afa158015612c60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c849190613d7e565b50505050509050306001600160a01b0316816001600160a01b031614612d125760405162461bcd60e51b815260206004820152603760248201527f45746865724964577261707065723a205468697320646f6d61696e206973206e60448201527f6f74206f776e656420627920746865205772617070657200000000000000000060648201526084016105f5565b6000612d1d85610f33565b90506001600160a01b0381163314612d855760405162461bcd60e51b815260206004820152602560248201527f45746865724964577261707065723a20596f7520617265206e6f74207468652060448201526437bbb732b960d91b60648201526084016105f5565b6009546040517feb1ff8450000000000000000000000000000000000000000000000000000000081526004810187905260248101869052604481018590526001600160a01b039091169063eb1ff84590606401600060405180830381600087803b158015612df257600080fd5b505af1158015612e06573d6000803e3d6000fd5b505050505050505050565b6006546001600160a01b03163314612e6b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105f5565b6001600160a01b038116612ee75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105f5565b612ef0816133b4565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612f2882610f33565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612fda5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105f5565b6000612fe583610f33565b9050806001600160a01b0316846001600160a01b0316148061302c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806130505750836001600160a01b031661304584610580565b6001600160a01b0316145b949350505050565b600954604051630d3d4c7160e11b8152600481018390526000918291829182916001600160a01b0390911690631a7a98e29060240160c06040518083038186803b1580156130a557600080fd5b505afa1580156130b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130dd9190613d7e565b50509350935093509350306001600160a01b0316846001600160a01b03161461316e5760405162461bcd60e51b815260206004820152603760248201527f45746865724964577261707065723a205468697320646f6d61696e206973206e60448201527f6f74206f776e656420627920746865205772617070657200000000000000000060648201526084016105f5565b4383116131c85760405162461bcd60e51b815260206004820152602260248201527f45746865724964577261707065723a20446f6d61696e20686173206578706972604482015261195960f21b60648201526084016105f5565b81156132625760405162461bcd60e51b815260206004820152604a60248201527f45746865724964577261707065723a20446f6d61696e206973206c697374656460448201527f20666f722073616c65206f6e206261736520636f6e74726163742063616e6e6f60648201527f74205472616e7366657200000000000000000000000000000000000000000000608482015260a4016105f5565b6001600160a01b038116156133055760405162461bcd60e51b815260206004820152604b60248201527f45746865724964577261707065723a20446f6d61696e2069732073657420666f60448201527f72207472616e73666572206f6e206261736520636f6e74726163742063616e6e60648201527f6f74205472616e73666572000000000000000000000000000000000000000000608482015260a4016105f5565b6133108787876137e1565b50505050505050565b600061332482610f33565b9050613331600083612ef3565b6001600160a01b038116600090815260036020526040812080546001929061335a908490613fcc565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156134685760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105f5565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6134e0848484613058565b6134ec84848484613996565b6111605760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016105f5565b6060600780546104fd9061400f565b6060816135ad57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156135d757806135c18161404a565b91506135d09050600a83613fb8565b91506135b1565b60008167ffffffffffffffff8111156135f2576135f26140bb565b6040519080825280601f01601f19166020018201604052801561361c576020820181803683370190505b5090505b841561305057613631600183613fcc565b915061363e600a86614065565b613649906030613fa0565b60f81b81838151811061365e5761365e6140a5565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350613698600a86613fb8565b9450613620565b6001600160a01b0382166136f55760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105f5565b6000818152600260205260409020546001600160a01b03161561375a5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105f5565b6001600160a01b0382166000908152600360205260408120805460019290613783908490613fa0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b826001600160a01b03166137f482610f33565b6001600160a01b0316146138585760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016105f5565b6001600160a01b0382166138d35760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105f5565b6138de600082612ef3565b6001600160a01b0383166000908152600360205260408120805460019290613907908490613fcc565b90915550506001600160a01b0382166000908152600360205260408120805460019290613935908490613fa0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006001600160a01b0384163b15613aee57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906139da903390899088908890600401613f51565b602060405180830381600087803b1580156139f457600080fd5b505af1925050508015613a24575060408051601f3d908101601f19168201909252613a2191810190613dfb565b60015b613ad4573d808015613a52576040519150601f19603f3d011682016040523d82523d6000602084013e613a57565b606091505b508051613acc5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016105f5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050613050565b506001949350505050565b828054613b059061400f565b90600052602060002090601f016020900481019282613b275760008555613b6d565b82601f10613b4057805160ff1916838001178555613b6d565b82800160010185558215613b6d579182015b82811115613b6d578251825591602001919060010190613b52565b50613b79929150613b7d565b5090565b5b80821115613b795760008155600101613b7e565b600067ffffffffffffffff80841115613bad57613bad6140bb565b604051601f8501601f19908116603f01168101908282118183101715613bd557613bd56140bb565b81604052809350858152868686011115613bee57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613c1a57600080fd5b8135611248816140d1565b60008060408385031215613c3857600080fd5b8235613c43816140d1565b91506020830135613c53816140d1565b809150509250929050565b600080600060608486031215613c7357600080fd5b8335613c7e816140d1565b92506020840135613c8e816140d1565b929592945050506040919091013590565b60008060008060808587031215613cb557600080fd5b8435613cc0816140d1565b93506020850135613cd0816140d1565b925060408501359150606085013567ffffffffffffffff811115613cf357600080fd5b8501601f81018713613d0457600080fd5b613d1387823560208401613b92565b91505092959194509250565b60008060408385031215613d3257600080fd5b8235613d3d816140d1565b915060208301358015158114613c5357600080fd5b60008060408385031215613d6557600080fd5b8235613d70816140d1565b946020939093013593505050565b60008060008060008060c08789031215613d9757600080fd5b8651613da2816140d1565b8096505060208701519450604087015193506060870151613dc2816140d1565b809350506080870151915060a087015190509295509295509295565b600060208284031215613df057600080fd5b8135611248816140e6565b600060208284031215613e0d57600080fd5b8151611248816140e6565b600060208284031215613e2a57600080fd5b813567ffffffffffffffff811115613e4157600080fd5b8201601f81018413613e5257600080fd5b61305084823560208401613b92565b600060208284031215613e7357600080fd5b5035919050565b60008060408385031215613e8d57600080fd5b50508035926020909101359150565b600080600060608486031215613eb157600080fd5b505081359360208301359350604090920135919050565b600080600060608486031215613edd57600080fd5b8351925060208401519150604084015190509250925092565b60008151808452613f0e816020860160208601613fe3565b601f01601f19169290920160200192915050565b60008351613f34818460208801613fe3565b835190830190613f48818360208801613fe3565b01949350505050565b60006001600160a01b03808716835280861660208401525083604083015260806060830152613f836080830184613ef6565b9695505050505050565b6020815260006112486020830184613ef6565b60008219821115613fb357613fb3614079565b500190565b600082613fc757613fc761408f565b500490565b600082821015613fde57613fde614079565b500390565b60005b83811015613ffe578181015183820152602001613fe6565b838111156111605750506000910152565b600181811c9082168061402357607f821691505b6020821081141561404457634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561405e5761405e614079565b5060010190565b6000826140745761407461408f565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114612ef057600080fd5b6001600160e01b031981168114612ef057600080fdfea26469706673582212200352b6dbec3f2ec85ba887250e3696038f4e1ef81708300cb87ce0300d299ae764736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d588b586d61c826a0e87919b3d1a239206d58bf2
-----Decoded View---------------
Arg [0] : etherIdAddress (address): 0xd588b586D61C826A0e87919b3D1a239206d58bf2
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000d588b586d61c826a0e87919b3d1a239206d58bf2
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.