@unstoppabledomains/resolution
Advanced tools
Comparing version 1.12.0 to 1.16.0
{ | ||
"name": "@unstoppabledomains/resolution", | ||
"version": "1.11.1", | ||
"version": "1.15.0", | ||
"description": "Domain Resolution for blockchain domains", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
@@ -1,3 +0,3 @@ | ||
import { TickerVersion } from "../publicTypes"; | ||
import Contract from "./contract"; | ||
import { TickerVersion } from '../publicTypes'; | ||
import Contract from './contract'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Parses object in format { "key.key2.key3" : value } into { key: { key2: {key3: value } } } |
@@ -77,3 +77,3 @@ "use strict"; | ||
if (network === void 0) { network = 'mainnet'; } | ||
return "https://" + network + ".infura.com/v3/" + infura; | ||
return "https://" + network + ".infura.io/v3/" + infura; | ||
} | ||
@@ -101,3 +101,4 @@ exports.signedInfuraLink = signedInfuraLink; | ||
function isUpToDateResolver(resolverAddress) { | ||
return resolverAddress.toLowerCase() === '0xb66dce2da6afaaa98f2013446dbcb0f4b0ab2842'; | ||
return (resolverAddress.toLowerCase() === | ||
'0xb66dce2da6afaaa98f2013446dbcb0f4b0ab2842'); | ||
} | ||
@@ -115,3 +116,3 @@ exports.isUpToDateResolver = isUpToDateResolver; | ||
/** @internal */ | ||
var CRYPTO_RESOLVER_ADVANCED_EVENTS_STARTING_BLOCK = "0x960844"; | ||
var CRYPTO_RESOLVER_ADVANCED_EVENTS_STARTING_BLOCK = '0x960844'; | ||
function getStartingBlock(contract, tokenId) { | ||
@@ -122,7 +123,8 @@ return __awaiter(this, void 0, void 0, function () { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, contract.fetchLogs("ResetRecords", tokenId)]; | ||
case 0: return [4 /*yield*/, contract.fetchLogs('ResetRecords', tokenId)]; | ||
case 1: | ||
logs = _a.sent(); | ||
lastResetEvent = logs[logs.length - 1]; | ||
return [2 /*return*/, (lastResetEvent === null || lastResetEvent === void 0 ? void 0 : lastResetEvent.blockNumber) || CRYPTO_RESOLVER_ADVANCED_EVENTS_STARTING_BLOCK]; | ||
return [2 /*return*/, ((lastResetEvent === null || lastResetEvent === void 0 ? void 0 : lastResetEvent.blockNumber) || | ||
CRYPTO_RESOLVER_ADVANCED_EVENTS_STARTING_BLOCK)]; | ||
} | ||
@@ -135,3 +137,3 @@ }); | ||
if (value instanceof Array) { | ||
return value.every(function (item) { return typeof item === "string"; }); | ||
return value.every(function (item) { return typeof item === 'string'; }); | ||
} | ||
@@ -138,0 +140,0 @@ return false; |
{ | ||
"name": "@unstoppabledomains/resolution", | ||
"version": "1.12.0", | ||
"version": "1.16.0", | ||
"description": "Domain Resolution for blockchain domains", | ||
@@ -5,0 +5,0 @@ "main": "./build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
367061
9288