We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script to deploy the required contracts to Arbitrum.
The only contract required to be present on the given L2 is the following:
//SPDX-License-Identifier: MIT pragma solidity >=0.8.17 <0.9.0; import "@ens-contracts/resolvers/profiles/ABIResolver.sol"; import "@ens-contracts/resolvers/profiles/AddrResolver.sol"; import "@ens-contracts/resolvers/profiles/ContentHashResolver.sol"; import "@ens-contracts/resolvers/profiles/DNSResolver.sol"; import "@ens-contracts/resolvers/profiles/InterfaceResolver.sol"; import "@ens-contracts/resolvers/profiles/NameResolver.sol"; import "@ens-contracts/resolvers/profiles/PubkeyResolver.sol"; import "@ens-contracts/resolvers/profiles/TextResolver.sol"; import "@ens-contracts/resolvers/Multicallable.sol"; /** * A simple resolver anyone can use; only allows the owner of a node to set its * address. //SPDX-License-Identifier: MIT pragma solidity >=0.8.17 <0.9.0; import "@ens-contracts/resolvers/profiles/ABIResolver.sol"; import "@ens-contracts/resolvers/profiles/AddrResolver.sol"; import "@ens-contracts/resolvers/profiles/ContentHashResolver.sol"; import "@ens-contracts/resolvers/profiles/DNSResolver.sol"; import "@ens-contracts/resolvers/profiles/InterfaceResolver.sol"; import "@ens-contracts/resolvers/profiles/NameResolver.sol"; import "@ens-contracts/resolvers/profiles/PubkeyResolver.sol"; import "@ens-contracts/resolvers/profiles/TextResolver.sol"; import "@ens-contracts/resolvers/Multicallable.sol"; /** * A simple resolver anyone can use; only allows the owner of a node to set its * address. */ contract L2Resolver is Multicallable, ABIResolver, AddrResolver, ContentHashResolver, DNSResolver, InterfaceResolver, NameResolver, PubkeyResolver, TextResolver { mapping(bytes32 => address) private _owners; function isAuthorised(bytes32 node) internal view override returns (bool) { if (_owners[node] == address(0)) return true; return _owners[node] == msg.sender; } function setOwner(bytes32 node, address _owner) public authorised(node) { _owners[node] = _owner; } function owner(bytes32 node) public view returns (address) { return _owners[node]; } function supportsInterface(bytes4 interfaceID) public view override( Multicallable, ABIResolver, AddrResolver, ContentHashResolver, DNSResolver, InterfaceResolver, NameResolver, PubkeyResolver, TextResolver ) returns (bool) { return super.supportsInterface(interfaceID); } }
The text was updated successfully, but these errors were encountered:
LeonardoVieira1630
No branches or pull requests
Feature Request
Script to deploy the required contracts to Arbitrum.
Describe Preferred Solution
The only contract required to be present on the given L2 is the following:
The text was updated successfully, but these errors were encountered: