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

[ADD] Offchain Read support (EIP-3668) for eth_call and ENS resolution #208

Merged
merged 1 commit into from
May 18, 2022

Conversation

DarthMike
Copy link
Member

Add support for offchain read in eth_call, and more specifically add support for offchain ENS resolution.

An example to resolve is:
offchainexample.eth (both in ropsten and mainnet)

See
https://eips.ethereum.org/EIPS/eip-3668

There's another bit of related but not the same work, but will address this here : #205

Package.swift Outdated Show resolved Hide resolved
Comment on lines -200 to +27
#if compiler(>=5.5) && canImport(_Concurrency)

@available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
extension ENSTests {
func testGivenRopstenRegistry_WhenExistingDomainName_ResolvesOwnerAddressCorrectly_Async() async {
func testGivenRopstenRegistry_WhenExistingDomainName_ResolvesOwnerAddressCorrectly() async {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default tests now using async/await

import XCTest
import BigInt

struct DummyOffchainENSResolve: ABIFunction {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our own deployed contract to test revert responses

}
}

enum EthersTestContract {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ethers contract which they set up for their tests, reusing those. ethers-io/ethers.js#2478

@dmcrodrigues dmcrodrigues merged commit f1e2f10 into develop May 18, 2022
@dmcrodrigues dmcrodrigues deleted the feature/offchain-lookup branch May 18, 2022 14:57
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