Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x4184dD6a...E1c265e9E The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
MirrorENSResolver
Compiler Version
v0.6.8+commit.0bbfe453
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-02-05 */ // SPDX-License-Identifier: GPL-3.0-or-late pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } pragma solidity >=0.6.0 <0.8.0; /** * @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 () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view 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 { emit OwnershipTransferred(_owner, address(0)); _owner = 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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } pragma solidity 0.6.8; interface IENSResolver { event AddrChanged(bytes32 indexed _node, address _addr); event NameChanged(bytes32 indexed _node, string _name); function addr(bytes32 _node) external view returns (address); function setAddr(bytes32 _node, address _addr) external; function name(bytes32 _node) external view returns (string memory); function setName(bytes32 _node, string calldata _name) external; } pragma solidity >=0.5.4; contract MirrorENSResolver is Ownable, IENSResolver { // ============ Constants ============ bytes4 constant SUPPORT_INTERFACE_ID = 0x01ffc9a7; bytes4 constant ADDR_INTERFACE_ID = 0x3b3b57de; bytes4 constant NAME_INTERFACE_ID = 0x691f3431; // ============ Structs ============ struct Record { address addr; string name; } // ============ Mappings ============ // mapping between namehash and resolved records mapping(bytes32 => Record) records; // ============ Public Functions ============ /** * @notice Lets the manager set the address associated with an ENS node. * @param _node The node to update. * @param _addr The address to set. */ function setAddr(bytes32 _node, address _addr) public override onlyOwner { records[_node].addr = _addr; emit AddrChanged(_node, _addr); } /** * @notice Lets the manager set the name associated with an ENS node. * @param _node The node to update. * @param _name The name to set. */ function setName(bytes32 _node, string memory _name) public override onlyOwner { records[_node].name = _name; emit NameChanged(_node, _name); } /** * @notice Gets the address associated to an ENS node. * @param _node The target node. * @return the address of the target node. */ function addr(bytes32 _node) public view override returns (address) { return records[_node].addr; } /** * @notice Gets the name associated to an ENS node. * @param _node The target ENS node. * @return the name of the target ENS node. */ function name(bytes32 _node) public view override returns (string memory) { return records[_node].name; } /** * @notice Returns true if the resolver implements the interface specified by the provided hash. * @param _interfaceID The ID of the interface to check for. * @return True if the contract implements the requested interface. */ function supportsInterface(bytes4 _interfaceID) public pure returns (bool) { return _interfaceID == SUPPORT_INTERFACE_ID || _interfaceID == ADDR_INTERFACE_ID || _interfaceID == NAME_INTERFACE_ID; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_node","type":"bytes32"},{"indexed":false,"internalType":"address","name":"_addr","type":"address"}],"name":"AddrChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_node","type":"bytes32"},{"indexed":false,"internalType":"string","name":"_name","type":"string"}],"name":"NameChanged","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"},{"inputs":[{"internalType":"bytes32","name":"_node","type":"bytes32"}],"name":"addr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_node","type":"bytes32"}],"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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_node","type":"bytes32"},{"internalType":"address","name":"_addr","type":"address"}],"name":"setAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_node","type":"bytes32"},{"internalType":"string","name":"_name","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100885760003560e01c8063773722131161005b57806377372213146101b55780638da5cb5b14610262578063d5fa2b001461026a578063f2fde38b1461029657610088565b806301ffc9a71461008d5780633b3b57de146100e0578063691f343114610119578063715018a6146101ab575b600080fd5b6100cc600480360360208110156100a357600080fd5b50357fffffffff00000000000000000000000000000000000000000000000000000000166102bc565b604080519115158252519081900360200190f35b6100fd600480360360208110156100f657600080fd5b50356103a1565b604080516001600160a01b039092168252519081900360200190f35b6101366004803603602081101561012f57600080fd5b50356103bc565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610170578181015183820152602001610158565b50505050905090810190601f16801561019d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101b361047c565b005b6101b3600480360360408110156101cb57600080fd5b813591908101906040810160208201356401000000008111156101ed57600080fd5b8201836020820111156101ff57600080fd5b8035906020019184600183028401116401000000008311171561022157600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955061053d945050505050565b6100fd61066b565b6101b36004803603604081101561028057600080fd5b50803590602001356001600160a01b031661067b565b6101b3600480360360208110156102ac57600080fd5b50356001600160a01b0316610756565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000148061034f57507fffffffff0000000000000000000000000000000000000000000000000000000082167f3b3b57de00000000000000000000000000000000000000000000000000000000145b8061039b57507fffffffff0000000000000000000000000000000000000000000000000000000082167f691f343100000000000000000000000000000000000000000000000000000000145b92915050565b6000908152600160205260409020546001600160a01b031690565b600081815260016020818152604092839020820180548451600294821615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190911693909304601f810183900483028401830190945283835260609390918301828280156104705780601f1061044557610100808354040283529160200191610470565b820191906000526020600020905b81548152906001019060200180831161045357829003601f168201915b50505050509050919050565b61048461086d565b6000546001600160a01b039081169116146104e6576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b61054561086d565b6000546001600160a01b039081169116146105a7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600082815260016020818152604090922083516105cc93919092019190840190610871565b50817fb7d29e911041e8d9b843369e890bcb72c9388692ba48b65ac54e7214c4c348f7826040518080602001828103825283818151815260200191508051906020019080838360005b8381101561062d578181015183820152602001610615565b50505050905090810190601f16801561065a5780820380516001836020036101000a031916815260200191505b509250505060405180910390a25050565b6000546001600160a01b03165b90565b61068361086d565b6000546001600160a01b039081169116146106e5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600082815260016020908152604091829020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0385169081179091558251908152915184927f52d7d861f09ab3d26239d492e8968629f95e9e318cf0b73bfddc441522a15fd292908290030190a25050565b61075e61086d565b6000546001600160a01b039081169116146107c0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166108055760405162461bcd60e51b815260040180806020018281038252602681526020018061090a6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b3390565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106108b257805160ff19168380011785556108df565b828001600101855582156108df579182015b828111156108df5782518255916020019190600101906108c4565b506108eb9291506108ef565b5090565b61067891905b808211156108eb57600081556001016108f556fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373a2646970667358221220b5ddd9d4abbd6a454e0105da3403269677548064e34f7464e9962828d859944664736f6c63430006080033
Deployed Bytecode Sourcemap
3707:2397:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;3707:2397:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;5851:250:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;5851:250:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;5178:113;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;5178:113:0;;:::i;:::-;;;;-1:-1:-1;;;;;5178:113:0;;;;;;;;;;;;;;5465:119;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;5465:119:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5465:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2673:148;;;:::i;:::-;;4808:198;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;4808:198:0;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;4808:198:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;4808:198:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;4808:198:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;4808:198:0;;-1:-1:-1;4808:198:0;;-1:-1:-1;;;;;4808:198:0:i;2031:79::-;;;:::i;4468:160::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;4468:160:0;;;;;;-1:-1:-1;;;;;4468:160:0;;:::i;2976:244::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;2976:244:0;-1:-1:-1;;;;;2976:244:0;;:::i;5851:250::-;5920:4;5957:36;;;5973:20;5957:36;;:86;;-1:-1:-1;6010:33:0;;;6026:17;6010:33;5957:86;:136;;;-1:-1:-1;6060:33:0;;;6076:17;6060:33;5957:136;5937:156;5851:250;-1:-1:-1;;5851:250:0:o;5178:113::-;5237:7;5264:14;;;:7;:14;;;;;:19;-1:-1:-1;;;;;5264:19:0;;5178:113::o;5465:119::-;5557:14;;;;:7;:14;;;;;;;;;:19;;5550:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5524:13;;5557:19;;5550:26;;5557:19;5550:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5465:119;;;:::o;2673:148::-;2253:12;:10;:12::i;:::-;2243:6;;-1:-1:-1;;;;;2243:6:0;;;:22;;;2235:67;;;;;-1:-1:-1;;;2235:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2780:1:::1;2764:6:::0;;2743:40:::1;::::0;-1:-1:-1;;;;;2764:6:0;;::::1;::::0;2743:40:::1;::::0;2780:1;;2743:40:::1;2811:1;2794:19:::0;;-1:-1:-1;;2794:19:0::1;::::0;;2673:148::o;4808:198::-;2253:12;:10;:12::i;:::-;2243:6;;-1:-1:-1;;;;;2243:6:0;;;:22;;;2235:67;;;;;-1:-1:-1;;;2235:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4930:14:::1;::::0;;;:7:::1;:14;::::0;;;;;;;:27;;::::1;::::0;:19;;;::::1;::::0;:27;;::::1;::::0;::::1;:::i;:::-;;4985:5;4973:25;4992:5;4973:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11:::0;;::::1;84:18:::0;71:11;;::::1;64:39:::0;52:2:::1;45:10;8:100;;;12:14;4973:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4808:198:::0;;:::o;2031:79::-;2069:7;2096:6;-1:-1:-1;;;;;2096:6:0;2031:79;;:::o;4468:160::-;2253:12;:10;:12::i;:::-;2243:6;;-1:-1:-1;;;;;2243:6:0;;;:22;;;2235:67;;;;;-1:-1:-1;;;2235:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4552:14:::1;::::0;;;:7:::1;:14;::::0;;;;;;;;:27;;-1:-1:-1;;4552:27:0::1;-1:-1:-1::0;;;;;4552:27:0;::::1;::::0;;::::1;::::0;;;4595:25;;;;;;;4552:14;;4595:25:::1;::::0;;;;;;;::::1;4468:160:::0;;:::o;2976:244::-;2253:12;:10;:12::i;:::-;2243:6;;-1:-1:-1;;;;;2243:6:0;;;:22;;;2235:67;;;;;-1:-1:-1;;;2235:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;3065:22:0;::::1;3057:73;;;;-1:-1:-1::0;;;3057:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3167:6;::::0;;3146:38:::1;::::0;-1:-1:-1;;;;;3146:38:0;;::::1;::::0;3167:6;::::1;::::0;3146:38:::1;::::0;::::1;3195:6;:17:::0;;-1:-1:-1;;3195:17:0::1;-1:-1:-1::0;;;;;3195:17:0;;;::::1;::::0;;;::::1;::::0;;2976:244::o;625:106::-;713:10;625:106;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://b5ddd9d4abbd6a454e0105da3403269677548064e34f7464e9962828d8599446
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.