@ensdomains/ensjs 3.0.0-alpha.60 → 3.0.0-alpha.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/GqlManager.js
CHANGED
|
@@ -78,7 +78,13 @@ const responseMiddleware = (traverse) => (response) => {
|
|
|
78
78
|
if (responseItem.name && responseItem.name.includes("[")) {
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
let hashedName = "[Invalid ENS Name]";
|
|
82
|
+
try {
|
|
83
|
+
hashedName = (0, import_normalise.namehash)(responseItem.name);
|
|
84
|
+
} catch (e) {
|
|
85
|
+
this.update({ ...responseItem, name: hashedName, invalidName: true });
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
82
88
|
if (responseItem.id !== hashedName) {
|
|
83
89
|
this.update({ ...responseItem, name: hashedName, invalidName: true });
|
|
84
90
|
}
|
|
@@ -56,8 +56,8 @@ const addresses = {
|
|
|
56
56
|
"5": "0x56522d00c410a43bffdf00a9a569489297385790"
|
|
57
57
|
},
|
|
58
58
|
BulkRenewal: {
|
|
59
|
-
"1": "
|
|
60
|
-
"5": "
|
|
59
|
+
"1": "0xa12159e5131b1eEf6B4857EEE3e1954744b5033A",
|
|
60
|
+
"5": "0xeA64C81d0d718620daBC02D61f3B255C641f475F"
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
const getContractAddress = (networkId) => (contractName) => {
|
package/dist/esm/GqlManager.mjs
CHANGED
|
@@ -47,7 +47,13 @@ var responseMiddleware = (traverse) => (response) => {
|
|
|
47
47
|
if (responseItem.name && responseItem.name.includes("[")) {
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
let hashedName = "[Invalid ENS Name]";
|
|
51
|
+
try {
|
|
52
|
+
hashedName = namehash(responseItem.name);
|
|
53
|
+
} catch (e) {
|
|
54
|
+
this.update({ ...responseItem, name: hashedName, invalidName: true });
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
51
57
|
if (responseItem.id !== hashedName) {
|
|
52
58
|
this.update({ ...responseItem, name: hashedName, invalidName: true });
|
|
53
59
|
}
|
|
@@ -34,8 +34,8 @@ var addresses = {
|
|
|
34
34
|
"5": "0x56522d00c410a43bffdf00a9a569489297385790"
|
|
35
35
|
},
|
|
36
36
|
BulkRenewal: {
|
|
37
|
-
"1": "
|
|
38
|
-
"5": "
|
|
37
|
+
"1": "0xa12159e5131b1eEf6B4857EEE3e1954744b5033A",
|
|
38
|
+
"5": "0xeA64C81d0d718620daBC02D61f3B255C641f475F"
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
var getContractAddress = (networkId) => (contractName) => {
|
package/package.json
CHANGED
package/src/GqlManager.ts
CHANGED
|
@@ -68,7 +68,13 @@ export const responseMiddleware =
|
|
|
68
68
|
return
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
let hashedName = '[Invalid ENS Name]'
|
|
72
|
+
try {
|
|
73
|
+
hashedName = namehash(responseItem.name)
|
|
74
|
+
} catch (e) {
|
|
75
|
+
this.update({ ...responseItem, name: hashedName, invalidName: true })
|
|
76
|
+
return
|
|
77
|
+
}
|
|
72
78
|
if (responseItem.id !== hashedName) {
|
|
73
79
|
this.update({ ...responseItem, name: hashedName, invalidName: true })
|
|
74
80
|
}
|
|
@@ -39,8 +39,8 @@ const addresses: Record<
|
|
|
39
39
|
'5': '0x56522d00c410a43bffdf00a9a569489297385790',
|
|
40
40
|
},
|
|
41
41
|
BulkRenewal: {
|
|
42
|
-
'1': '
|
|
43
|
-
'5': '
|
|
42
|
+
'1': '0xa12159e5131b1eEf6B4857EEE3e1954744b5033A',
|
|
43
|
+
'5': '0xeA64C81d0d718620daBC02D61f3B255C641f475F',
|
|
44
44
|
},
|
|
45
45
|
/* eslint-enable @typescript-eslint/naming-convention */
|
|
46
46
|
}
|