public async Task <PublicResolverService> GetResolverAsync(byte[] fullNameNode) { var resolverAddress = await ENSRegistryService.ResolverQueryAsync(fullNameNode).ConfigureAwait(false); var resolverService = new PublicResolverService(_ethApiContractService, resolverAddress); return(resolverService); }
public async Task InitialiseAsync() { ENSRegistryService = new ENSRegistryService(_ethApiContractService, EnsRegistryAddress); TLSRegisterAddress = await ENSRegistryService.OwnerQueryAsync(TLSNameHash).ConfigureAwait(false); TLSResolverAddress = await ENSRegistryService.ResolverQueryAsync(TLSNameHash).ConfigureAwait(false); TLSResolverService = new PublicResolverService(_ethApiContractService, TLSResolverAddress); TLSControllerAddress = await TLSResolverService.InterfaceImplementerQueryAsync(TLSNameHash, "0x018fac06".HexToByteArray()).ConfigureAwait(false); TLSRegistrarControllerService = new ETHRegistrarControllerService(_ethApiContractService, TLSControllerAddress); MinimunDurationRegistrationInSeconds = (int)await TLSRegistrarControllerService.MinRegistrationDurationQueryAsync().ConfigureAwait(false); }