Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

TonioMacaronio
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
@TonioMacaronio TonioMacaronio 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