@namehash/namehash-ui 1.15.1 → 1.16.0
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/LICENSE +1 -1
- package/dist/index.cjs +50 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -113
- package/dist/index.d.ts +49 -113
- package/dist/index.js +17 -29
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/LICENSE
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -5,8 +5,13 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esm = (fn, res) => function __init() {
|
|
9
|
-
|
|
8
|
+
var __esm = (fn, res, err) => function __init() {
|
|
9
|
+
if (err) throw err[0];
|
|
10
|
+
try {
|
|
11
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
throw err = [e], e;
|
|
14
|
+
}
|
|
10
15
|
};
|
|
11
16
|
var __export = (target, all) => {
|
|
12
17
|
for (var name in all)
|
|
@@ -2225,7 +2230,6 @@ __export(index_exports, {
|
|
|
2225
2230
|
getEnsManagerAddressDetailsUrl: () => getEnsManagerAddressDetailsUrl,
|
|
2226
2231
|
getEnsManagerNameDetailsUrl: () => getEnsManagerNameDetailsUrl,
|
|
2227
2232
|
getEnsManagerUrl: () => getEnsManagerUrl,
|
|
2228
|
-
getEnsMetadataServiceAvatarUrl: () => getEnsMetadataServiceAvatarUrl,
|
|
2229
2233
|
queryKeys: () => queryKeys,
|
|
2230
2234
|
useEnsNodeProviderOptions: () => useEnsNodeProviderOptions,
|
|
2231
2235
|
useIndexingStatus: () => useIndexingStatus,
|
|
@@ -4315,7 +4319,6 @@ var SUPPORTED_CHAINS = [
|
|
|
4315
4319
|
import_datasources2.ensTestEnvChain,
|
|
4316
4320
|
mainnet,
|
|
4317
4321
|
sepolia,
|
|
4318
|
-
import_datasources2.sepoliaV2Chain,
|
|
4319
4322
|
base,
|
|
4320
4323
|
baseSepolia,
|
|
4321
4324
|
linea,
|
|
@@ -4329,7 +4332,6 @@ var SUPPORTED_CHAINS = [
|
|
|
4329
4332
|
];
|
|
4330
4333
|
var CUSTOM_CHAIN_NAMES = /* @__PURE__ */ new Map([
|
|
4331
4334
|
[import_datasources2.ensTestEnvChain.id, "Ethereum Local (ens-test-env)"],
|
|
4332
|
-
[import_datasources2.sepoliaV2Chain.id, "Sepolia V2 (virtual)"],
|
|
4333
4335
|
[mainnet.id, "Mainnet"],
|
|
4334
4336
|
[sepolia.id, "Ethereum Sepolia"],
|
|
4335
4337
|
[base.id, "Base"],
|
|
@@ -5253,23 +5255,9 @@ function AddressDisplay({ address, className }) {
|
|
|
5253
5255
|
|
|
5254
5256
|
// src/components/identity/EnsAvatar.tsx
|
|
5255
5257
|
var import_boring_avatars = __toESM(require("boring-avatars"), 1);
|
|
5258
|
+
var import_enssdk = require("enssdk");
|
|
5256
5259
|
var React3 = __toESM(require("react"), 1);
|
|
5257
5260
|
|
|
5258
|
-
// src/utils/ensMetadata.ts
|
|
5259
|
-
var import_ensnode_sdk = require("@ensnode/ensnode-sdk");
|
|
5260
|
-
function getEnsMetadataServiceAvatarUrl(name, namespaceId) {
|
|
5261
|
-
switch (namespaceId) {
|
|
5262
|
-
case import_ensnode_sdk.ENSNamespaceIds.Mainnet:
|
|
5263
|
-
return new URL(name, `https://metadata.ens.domains/mainnet/avatar/`);
|
|
5264
|
-
case import_ensnode_sdk.ENSNamespaceIds.Sepolia:
|
|
5265
|
-
return new URL(name, `https://metadata.ens.domains/sepolia/avatar/`);
|
|
5266
|
-
case import_ensnode_sdk.ENSNamespaceIds.SepoliaV2:
|
|
5267
|
-
return null;
|
|
5268
|
-
case import_ensnode_sdk.ENSNamespaceIds.EnsTestEnv:
|
|
5269
|
-
return null;
|
|
5270
|
-
}
|
|
5271
|
-
}
|
|
5272
|
-
|
|
5273
5261
|
// src/components/ui/avatar.tsx
|
|
5274
5262
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
5275
5263
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
@@ -5301,7 +5289,7 @@ function AvatarImage({ className, ...props }) {
|
|
|
5301
5289
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5302
5290
|
var EnsAvatar = ({ name, namespaceId, className, isSquare = false }) => {
|
|
5303
5291
|
const [loadingStatus, setLoadingStatus] = React3.useState("idle");
|
|
5304
|
-
const avatarUrl =
|
|
5292
|
+
const avatarUrl = (0, import_enssdk.getEnsMetadataServiceImageUrl)(name, namespaceId, "avatar");
|
|
5305
5293
|
if (avatarUrl === null) {
|
|
5306
5294
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Avatar, { className, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(EnsAvatarFallback, { name, isSquare }) });
|
|
5307
5295
|
}
|
|
@@ -5342,9 +5330,9 @@ var AvatarLoading = ({ isSquare }) => /* @__PURE__ */ (0, import_jsx_runtime34.j
|
|
|
5342
5330
|
);
|
|
5343
5331
|
|
|
5344
5332
|
// src/components/identity/Identity.tsx
|
|
5345
|
-
var
|
|
5333
|
+
var import_enssdk2 = require("enssdk");
|
|
5346
5334
|
var import_lucide_react = require("lucide-react");
|
|
5347
|
-
var
|
|
5335
|
+
var import_ensnode_sdk2 = require("@ensnode/ensnode-sdk");
|
|
5348
5336
|
|
|
5349
5337
|
// src/utils/blockExplorers.ts
|
|
5350
5338
|
var getBlockExplorerUrl = (chainId) => {
|
|
@@ -5370,16 +5358,16 @@ var getBlockExplorerBlockUrl = (chainId, blockNumber) => {
|
|
|
5370
5358
|
};
|
|
5371
5359
|
|
|
5372
5360
|
// src/utils/ensManager.ts
|
|
5373
|
-
var
|
|
5361
|
+
var import_ensnode_sdk = require("@ensnode/ensnode-sdk");
|
|
5374
5362
|
function getEnsManagerUrl(namespaceId) {
|
|
5375
5363
|
switch (namespaceId) {
|
|
5376
|
-
case
|
|
5364
|
+
case import_ensnode_sdk.ENSNamespaceIds.Mainnet:
|
|
5377
5365
|
return new URL(`https://app.ens.domains/`);
|
|
5378
|
-
case
|
|
5366
|
+
case import_ensnode_sdk.ENSNamespaceIds.Sepolia:
|
|
5379
5367
|
return new URL(`https://sepolia.app.ens.domains/`);
|
|
5380
|
-
case
|
|
5368
|
+
case import_ensnode_sdk.ENSNamespaceIds.SepoliaV2:
|
|
5381
5369
|
return null;
|
|
5382
|
-
case
|
|
5370
|
+
case import_ensnode_sdk.ENSNamespaceIds.EnsTestEnv:
|
|
5383
5371
|
return null;
|
|
5384
5372
|
}
|
|
5385
5373
|
}
|
|
@@ -5535,25 +5523,25 @@ var IdentityTooltip = ({
|
|
|
5535
5523
|
namespaceId,
|
|
5536
5524
|
children
|
|
5537
5525
|
}) => {
|
|
5538
|
-
if (!(0,
|
|
5526
|
+
if (!(0, import_ensnode_sdk2.isResolvedIdentity)(identity)) {
|
|
5539
5527
|
return children;
|
|
5540
5528
|
}
|
|
5541
|
-
const chainDescription = identity.chainId ===
|
|
5529
|
+
const chainDescription = identity.chainId === import_enssdk2.DEFAULT_EVM_CHAIN_ID ? 'the "default" EVM Chain' : getChainName(identity.chainId);
|
|
5542
5530
|
let header;
|
|
5543
5531
|
switch (identity.resolutionStatus) {
|
|
5544
|
-
case
|
|
5532
|
+
case import_ensnode_sdk2.ResolutionStatusIds.Named:
|
|
5545
5533
|
header = `Primary name on ${chainDescription} for address:`;
|
|
5546
5534
|
break;
|
|
5547
|
-
case
|
|
5535
|
+
case import_ensnode_sdk2.ResolutionStatusIds.Unnamed:
|
|
5548
5536
|
header = `Unnamed address on ${chainDescription}:`;
|
|
5549
5537
|
break;
|
|
5550
|
-
case
|
|
5538
|
+
case import_ensnode_sdk2.ResolutionStatusIds.Unknown:
|
|
5551
5539
|
header = `Error resolving address on ${chainDescription}:`;
|
|
5552
5540
|
break;
|
|
5553
5541
|
}
|
|
5554
5542
|
const ensAppAddressDetailsUrl = getEnsManagerAddressDetailsUrl(identity.address, namespaceId);
|
|
5555
5543
|
const body = /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(AddressDisplay, { address: identity.address }) });
|
|
5556
|
-
const effectiveChainId = (0,
|
|
5544
|
+
const effectiveChainId = (0, import_ensnode_sdk2.translateDefaultableChainIdToChainId)(identity.chainId, namespaceId);
|
|
5557
5545
|
const chainExplorerUrl = getBlockExplorerAddressDetailsUrl(effectiveChainId, identity.address);
|
|
5558
5546
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Tooltip, { delayDuration: 250, children: [
|
|
5559
5547
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TooltipTrigger, { asChild: true, children }),
|
|
@@ -5566,7 +5554,7 @@ var IdentityTooltip = ({
|
|
|
5566
5554
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "nhui:flex nhui:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
5567
5555
|
ChainIcon,
|
|
5568
5556
|
{
|
|
5569
|
-
chainId: (0,
|
|
5557
|
+
chainId: (0, import_ensnode_sdk2.translateDefaultableChainIdToChainId)(identity.chainId, namespaceId),
|
|
5570
5558
|
height: 24,
|
|
5571
5559
|
width: 24
|
|
5572
5560
|
}
|
|
@@ -5611,15 +5599,15 @@ var IdentityTooltip = ({
|
|
|
5611
5599
|
};
|
|
5612
5600
|
|
|
5613
5601
|
// src/components/identity/Name.tsx
|
|
5614
|
-
var
|
|
5602
|
+
var import_enssdk3 = require("enssdk");
|
|
5615
5603
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
5616
5604
|
function NameDisplay({ name, className = "nhui:font-medium" }) {
|
|
5617
|
-
const beautifiedName = (0,
|
|
5605
|
+
const beautifiedName = (0, import_enssdk3.beautifyName)(name);
|
|
5618
5606
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className, children: beautifiedName });
|
|
5619
5607
|
}
|
|
5620
5608
|
|
|
5621
5609
|
// src/components/identity/ResolveAndDisplayIdentity.tsx
|
|
5622
|
-
var
|
|
5610
|
+
var import_ensnode_sdk6 = require("@ensnode/ensnode-sdk");
|
|
5623
5611
|
|
|
5624
5612
|
// src/ensnode/context.ts
|
|
5625
5613
|
var import_react4 = require("react");
|
|
@@ -5644,7 +5632,7 @@ var import_react_query2 = require("@tanstack/react-query");
|
|
|
5644
5632
|
|
|
5645
5633
|
// src/ensnode/query.ts
|
|
5646
5634
|
var import_react_query = require("@tanstack/react-query");
|
|
5647
|
-
var
|
|
5635
|
+
var import_ensnode_sdk3 = require("@ensnode/ensnode-sdk");
|
|
5648
5636
|
var ASSUME_IMMUTABLE_QUERY = {
|
|
5649
5637
|
staleTime: Infinity,
|
|
5650
5638
|
gcTime: Infinity,
|
|
@@ -5671,7 +5659,7 @@ function createRecordsQueryOptions(config, args) {
|
|
|
5671
5659
|
enabled: true,
|
|
5672
5660
|
queryKey: queryKeys.records(config.client.url.href, args),
|
|
5673
5661
|
queryFn: async () => {
|
|
5674
|
-
const client = new
|
|
5662
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5675
5663
|
return client.resolveRecords(args.name, args.selection, args);
|
|
5676
5664
|
}
|
|
5677
5665
|
};
|
|
@@ -5681,7 +5669,7 @@ function createPrimaryNameQueryOptions(config, args) {
|
|
|
5681
5669
|
enabled: true,
|
|
5682
5670
|
queryKey: queryKeys.primaryName(config.client.url.href, args),
|
|
5683
5671
|
queryFn: async () => {
|
|
5684
|
-
const client = new
|
|
5672
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5685
5673
|
return client.resolvePrimaryName(args.address, args.chainId, args);
|
|
5686
5674
|
}
|
|
5687
5675
|
};
|
|
@@ -5691,7 +5679,7 @@ function createPrimaryNamesQueryOptions(config, args) {
|
|
|
5691
5679
|
enabled: true,
|
|
5692
5680
|
queryKey: queryKeys.primaryNames(config.client.url.href, args),
|
|
5693
5681
|
queryFn: async () => {
|
|
5694
|
-
const client = new
|
|
5682
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5695
5683
|
return client.resolvePrimaryNames(args.address, args);
|
|
5696
5684
|
}
|
|
5697
5685
|
};
|
|
@@ -5701,7 +5689,7 @@ function createIndexingStatusQueryOptions(config) {
|
|
|
5701
5689
|
enabled: true,
|
|
5702
5690
|
queryKey: queryKeys.indexingStatus(config.client.url.href),
|
|
5703
5691
|
queryFn: async () => {
|
|
5704
|
-
const client = new
|
|
5692
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5705
5693
|
return client.indexingStatus();
|
|
5706
5694
|
}
|
|
5707
5695
|
};
|
|
@@ -5711,7 +5699,7 @@ function createRegistrarActionsQueryOptions(config, args) {
|
|
|
5711
5699
|
enabled: true,
|
|
5712
5700
|
queryKey: queryKeys.registrarActions(config.client.url.href, args),
|
|
5713
5701
|
queryFn: async () => {
|
|
5714
|
-
const client = new
|
|
5702
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5715
5703
|
return client.registrarActions(args);
|
|
5716
5704
|
}
|
|
5717
5705
|
};
|
|
@@ -5721,7 +5709,7 @@ function createNameTokensQueryOptions(config, args) {
|
|
|
5721
5709
|
enabled: true,
|
|
5722
5710
|
queryKey: queryKeys.nameTokens(config.client.url.href, args),
|
|
5723
5711
|
queryFn: async () => {
|
|
5724
|
-
const client = new
|
|
5712
|
+
const client = new import_ensnode_sdk3.EnsNodeClient(config.client);
|
|
5725
5713
|
return client.nameTokens(args);
|
|
5726
5714
|
}
|
|
5727
5715
|
};
|
|
@@ -5814,7 +5802,7 @@ function useRegistrarActions(parameters = {}) {
|
|
|
5814
5802
|
}
|
|
5815
5803
|
|
|
5816
5804
|
// src/ensnode/hooks/useResolvedIdentity.ts
|
|
5817
|
-
var
|
|
5805
|
+
var import_ensnode_sdk4 = require("@ensnode/ensnode-sdk");
|
|
5818
5806
|
function useResolvedIdentity(parameters) {
|
|
5819
5807
|
const { identity, namespace, accelerate, query: _query = {} } = parameters;
|
|
5820
5808
|
const {
|
|
@@ -5823,10 +5811,10 @@ function useResolvedIdentity(parameters) {
|
|
|
5823
5811
|
...query
|
|
5824
5812
|
} = usePrimaryName({
|
|
5825
5813
|
address: identity.address,
|
|
5826
|
-
chainId: (0,
|
|
5814
|
+
chainId: (0, import_ensnode_sdk4.getResolvePrimaryNameChainIdParam)(
|
|
5827
5815
|
identity.chainId,
|
|
5828
5816
|
// NOTE: defaulting here for typechecking, but enabled prevents fetching before namespace is known
|
|
5829
|
-
namespace ??
|
|
5817
|
+
namespace ?? import_ensnode_sdk4.ENSNamespaceIds.Mainnet
|
|
5830
5818
|
),
|
|
5831
5819
|
accelerate,
|
|
5832
5820
|
// NOTE: Overriding `gcTime` to prevent unbounded memory growth
|
|
@@ -5847,20 +5835,20 @@ function useResolvedIdentity(parameters) {
|
|
|
5847
5835
|
result = identity;
|
|
5848
5836
|
} else if (status === "error") {
|
|
5849
5837
|
result = {
|
|
5850
|
-
resolutionStatus:
|
|
5838
|
+
resolutionStatus: import_ensnode_sdk4.ResolutionStatusIds.Unknown,
|
|
5851
5839
|
chainId: identity.chainId,
|
|
5852
5840
|
address: identity.address
|
|
5853
5841
|
};
|
|
5854
5842
|
} else if (primaryNameData.name === null) {
|
|
5855
5843
|
result = {
|
|
5856
|
-
resolutionStatus:
|
|
5844
|
+
resolutionStatus: import_ensnode_sdk4.ResolutionStatusIds.Unnamed,
|
|
5857
5845
|
chainId: identity.chainId,
|
|
5858
5846
|
address: identity.address,
|
|
5859
5847
|
name: null
|
|
5860
5848
|
};
|
|
5861
5849
|
} else {
|
|
5862
5850
|
result = {
|
|
5863
|
-
resolutionStatus:
|
|
5851
|
+
resolutionStatus: import_ensnode_sdk4.ResolutionStatusIds.Named,
|
|
5864
5852
|
chainId: identity.chainId,
|
|
5865
5853
|
address: identity.address,
|
|
5866
5854
|
name: primaryNameData.name
|
|
@@ -5912,7 +5900,7 @@ function useSwrQuery(options, queryClient) {
|
|
|
5912
5900
|
// src/ensnode/provider.tsx
|
|
5913
5901
|
var import_react_query9 = require("@tanstack/react-query");
|
|
5914
5902
|
var import_react7 = require("react");
|
|
5915
|
-
var
|
|
5903
|
+
var import_ensnode_sdk5 = require("@ensnode/ensnode-sdk");
|
|
5916
5904
|
function EnsNodeInternalProvider({
|
|
5917
5905
|
children,
|
|
5918
5906
|
options
|
|
@@ -5962,10 +5950,10 @@ function EnsNodeProvider(parameters) {
|
|
|
5962
5950
|
);
|
|
5963
5951
|
}
|
|
5964
5952
|
function createEnsNodeProviderOptions(options) {
|
|
5965
|
-
const url = options?.url ? new URL(options.url) :
|
|
5953
|
+
const url = options?.url ? new URL(options.url) : import_ensnode_sdk5.EnsNodeClient.defaultOptions().url;
|
|
5966
5954
|
return {
|
|
5967
5955
|
client: {
|
|
5968
|
-
...
|
|
5956
|
+
...import_ensnode_sdk5.EnsNodeClient.defaultOptions(),
|
|
5969
5957
|
url
|
|
5970
5958
|
}
|
|
5971
5959
|
};
|
|
@@ -6046,7 +6034,7 @@ function DisplayIdentity({
|
|
|
6046
6034
|
let avatar;
|
|
6047
6035
|
let identifier;
|
|
6048
6036
|
const isMobile = useIsMobile();
|
|
6049
|
-
if (!(0,
|
|
6037
|
+
if (!(0, import_ensnode_sdk6.isResolvedIdentity)(identity)) {
|
|
6050
6038
|
avatar = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6051
6039
|
Skeleton,
|
|
6052
6040
|
{
|
|
@@ -6065,7 +6053,7 @@ function DisplayIdentity({
|
|
|
6065
6053
|
)
|
|
6066
6054
|
}
|
|
6067
6055
|
);
|
|
6068
|
-
} else if (identity.resolutionStatus ===
|
|
6056
|
+
} else if (identity.resolutionStatus === import_ensnode_sdk6.ResolutionStatusIds.Unnamed || identity.resolutionStatus === import_ensnode_sdk6.ResolutionStatusIds.Unknown) {
|
|
6069
6057
|
avatar = /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6070
6058
|
"div",
|
|
6071
6059
|
{
|
|
@@ -6076,7 +6064,7 @@ function DisplayIdentity({
|
|
|
6076
6064
|
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6077
6065
|
ChainIcon,
|
|
6078
6066
|
{
|
|
6079
|
-
chainId: (0,
|
|
6067
|
+
chainId: (0, import_ensnode_sdk6.translateDefaultableChainIdToChainId)(identity.chainId, namespaceId),
|
|
6080
6068
|
height: isMobile && withIdentifier ? 16 : 24,
|
|
6081
6069
|
width: isMobile && withIdentifier ? 16 : 24
|
|
6082
6070
|
}
|
|
@@ -6139,7 +6127,7 @@ function DisplayIdentity({
|
|
|
6139
6127
|
// src/components/registrar-actions/RegistrarActionCard.tsx
|
|
6140
6128
|
var import_lucide_react2 = require("lucide-react");
|
|
6141
6129
|
var import_react8 = require("react");
|
|
6142
|
-
var
|
|
6130
|
+
var import_ensnode_sdk7 = require("@ensnode/ensnode-sdk");
|
|
6143
6131
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
6144
6132
|
function LabeledField({
|
|
6145
6133
|
fieldLabel,
|
|
@@ -6172,7 +6160,7 @@ function ResolveAndDisplayReferrerIdentity({
|
|
|
6172
6160
|
withIdentifier = true,
|
|
6173
6161
|
className
|
|
6174
6162
|
}) {
|
|
6175
|
-
if (!(0,
|
|
6163
|
+
if (!(0, import_ensnode_sdk7.isRegistrarActionReferralAvailable)(referral) || referral.encodedReferrer === import_ensnode_sdk7.ZERO_ENCODED_REFERRER) {
|
|
6176
6164
|
return withAvatar && !withIdentifier ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "nhui:w-10 nhui:h-10" }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "nhui:h-[21px]", children: "-" });
|
|
6177
6165
|
}
|
|
6178
6166
|
if (referral.decodedReferrer === zeroAddress) {
|
|
@@ -6207,7 +6195,7 @@ function ResolveAndDisplayReferrerIdentity({
|
|
|
6207
6195
|
] })
|
|
6208
6196
|
] });
|
|
6209
6197
|
}
|
|
6210
|
-
const referrerIdentity = (0,
|
|
6198
|
+
const referrerIdentity = (0, import_ensnode_sdk7.buildUnresolvedIdentity)(referral.decodedReferrer, namespaceId, chainId);
|
|
6211
6199
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6212
6200
|
ResolveAndDisplayIdentity,
|
|
6213
6201
|
{
|
|
@@ -6286,7 +6274,7 @@ function RegistrarActionCard({
|
|
|
6286
6274
|
}
|
|
6287
6275
|
) : children
|
|
6288
6276
|
);
|
|
6289
|
-
const registrantIdentity = (0,
|
|
6277
|
+
const registrantIdentity = (0, import_ensnode_sdk7.buildUnresolvedIdentity)(registrant, namespaceId, chainId);
|
|
6290
6278
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
6291
6279
|
"div",
|
|
6292
6280
|
{
|
|
@@ -6304,7 +6292,7 @@ function RegistrarActionCard({
|
|
|
6304
6292
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6305
6293
|
LabeledField,
|
|
6306
6294
|
{
|
|
6307
|
-
fieldLabel: type ===
|
|
6295
|
+
fieldLabel: type === import_ensnode_sdk7.RegistrarActionTypes.Registration ? "Registered" : "Renewed",
|
|
6308
6296
|
className: "nhui:w-[15%] nhui:min-w-[110px]",
|
|
6309
6297
|
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "nhui:h-[21px] nhui:font-medium", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6310
6298
|
RelativeTime,
|