Пример #1
0
        public async Task <string> ResolveTextAsync(string fullName, TextDataKey textDataKey)
        {
            var fullNameNode    = _ensUtil.GetNameHash(fullName).HexToByteArray();
            var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false);

            return(await resolverService.TextQueryAsync(fullNameNode, textDataKey.GetDataKeyAsString()));
        }
Пример #2
0
        public async Task <string> SetTextRequestAsync(string fullName, TextDataKey textDataKey, string value)
        {
            var fullNameNode    = _ensUtil.GetNameHash(fullName).HexToByteArray();
            var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false);

            return(await resolverService.SetTextRequestAsync(fullNameNode, textDataKey.GetDataKeyAsString(), value));
        }
Пример #3
0
 public static string GetDataKeyAsString(this TextDataKey textDataKey)
 {
     return(textDataKey.ToString().Replace("_", "."));
 }