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

2.2.1 #210

Merged
merged 28 commits into from
Jun 24, 2019
Merged

2.2.1 #210

merged 28 commits into from
Jun 24, 2019

Conversation

BaldyAsh
Copy link
Collaborator

  • Updated Infura endpoints
  • Updated BigInt to 4.0
  • New ENS resolver ABI
  • New ENS resolver interfaceImplementer function
  • Exposed errorDescription
  • Signature fix
  • Bugfix

Mark Barrasso and others added 28 commits April 30, 2019 18:59
Changed old resolver ABI to `legacyResolverABI`.

Added new resolver ABI -> https://ropsten.etherscan.io/address/0x44385b20865fe3578e56aa0e9f7ec534deb10501#code
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
Unable to cast getRentPrice result as UInt. Fixed by casting to BigUInt.
Update ETHRegistrarController.swift
Some changes to get name registration working.
Update ETHRegistrarController.swift
Websockets improvements and fixes
Must unwrap and return as `BigUInt` rather than `UInt`
Update ENSBaseRegistrar.swift
@BaldyAsh BaldyAsh merged commit 2e30580 into master Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants