Skip to content
New issue

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

Update ENS Resolver #180

Merged
merged 3 commits into from
May 4, 2019
Merged

Commits on May 1, 2019

  1. Add new resolver ABI

    Changed old resolver ABI to `legacyResolverABI`.
    
    Added new resolver ABI -> https://ropsten.etherscan.io/address/0x44385b20865fe3578e56aa0e9f7ec534deb10501#code
    Mark Barrasso authored May 1, 2019
    Configuration menu
    Copy the full SHA
    2f61796 View commit details
    Browse the repository at this point in the history
  2. Add interfaceImplementer function

    Added `interfaceImplementer` function found in the new [OwnedResolver](https://ropsten.etherscan.io/address/0x44385b20865fe3578e56aa0e9f7ec534deb10501#code).
    
    ### Usage
    
    ```swift
    public enum InterfaceID: String {
        case legacyRegistrar = "0x7ba18ba1"
        case permanentRegistrar = "0x018fac06"
        case baseRegistrar = "0x6ccb2df4"
    }
    
    // Get the ETHRegistrarController's address
    let controller = try! e.resolver?.interfaceImplementer(forNode: "eth", interfaceID: InterfaceID.permanentRegistrar.rawValue)
    ```
    
    See more usage at: https://github.com/ensdomains/ens-app/blob/d79a4f5a8231e46743caa19d0368fff9fe237383/src/api/registrar.js#L94
    Mark Barrasso authored and Mark Barrasso committed May 1, 2019
    Configuration menu
    Copy the full SHA
    c071915 View commit details
    Browse the repository at this point in the history
  3. Update ENSResolver.swift

    Mark Barrasso authored May 1, 2019
    Configuration menu
    Copy the full SHA
    5ab6a9d View commit details
    Browse the repository at this point in the history