@namehash/namehash-ui 1.10.1 → 1.11.1
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/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +85 -45
- package/dist/index.d.ts +85 -45
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -333,13 +333,8 @@ declare const getBlockExplorerTransactionDetailsUrl: (chainId: ChainId, transact
|
|
|
333
333
|
declare const getBlockExplorerBlockUrl: (chainId: ChainId, blockNumber: number) => URL | null;
|
|
334
334
|
|
|
335
335
|
declare const SUPPORTED_CHAINS: ({
|
|
336
|
-
readonly id:
|
|
336
|
+
readonly id: 31337;
|
|
337
337
|
readonly name: "ens-test-env";
|
|
338
|
-
readonly rpcUrls: {
|
|
339
|
-
readonly default: {
|
|
340
|
-
readonly http: readonly ["http://localhost:8545"];
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
338
|
readonly blockExplorers?: {
|
|
344
339
|
[key: string]: {
|
|
345
340
|
name: string;
|
|
@@ -369,12 +364,96 @@ declare const SUPPORTED_CHAINS: ({
|
|
|
369
364
|
readonly symbol: "ETH";
|
|
370
365
|
};
|
|
371
366
|
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
367
|
+
readonly rpcUrls: {
|
|
368
|
+
readonly default: {
|
|
369
|
+
readonly http: readonly ["http://127.0.0.1:8545"];
|
|
370
|
+
readonly webSocket: readonly ["ws://127.0.0.1:8545"];
|
|
371
|
+
};
|
|
372
|
+
};
|
|
372
373
|
readonly sourceId?: number | undefined | undefined;
|
|
373
374
|
readonly testnet?: boolean | undefined | undefined;
|
|
374
375
|
readonly custom?: Record<string, unknown> | undefined;
|
|
375
376
|
readonly fees?: viem.ChainFees<undefined> | undefined;
|
|
376
377
|
readonly formatters?: undefined;
|
|
377
378
|
readonly serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
379
|
+
} | {
|
|
380
|
+
blockExplorers: {
|
|
381
|
+
readonly default: {
|
|
382
|
+
readonly name: "Etherscan";
|
|
383
|
+
readonly url: "https://sepolia.etherscan.io";
|
|
384
|
+
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
blockTime?: number | undefined | undefined;
|
|
388
|
+
contracts: {
|
|
389
|
+
readonly multicall3: {
|
|
390
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
391
|
+
readonly blockCreated: 751532;
|
|
392
|
+
};
|
|
393
|
+
readonly ensUniversalResolver: {
|
|
394
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
395
|
+
readonly blockCreated: 8928790;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
ensTlds?: readonly string[] | undefined;
|
|
399
|
+
id: 11155111;
|
|
400
|
+
name: "Sepolia";
|
|
401
|
+
nativeCurrency: {
|
|
402
|
+
readonly name: "Sepolia Ether";
|
|
403
|
+
readonly symbol: "ETH";
|
|
404
|
+
readonly decimals: 18;
|
|
405
|
+
};
|
|
406
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
407
|
+
rpcUrls: {
|
|
408
|
+
readonly default: {
|
|
409
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
sourceId?: number | undefined | undefined;
|
|
413
|
+
testnet: true;
|
|
414
|
+
custom?: Record<string, unknown> | undefined;
|
|
415
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
416
|
+
formatters?: undefined;
|
|
417
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
418
|
+
} | {
|
|
419
|
+
readonly id: 99911155111;
|
|
420
|
+
readonly name: "Sepolia V2 (Virtual)";
|
|
421
|
+
readonly blockExplorers: {
|
|
422
|
+
readonly default: {
|
|
423
|
+
readonly name: "Etherscan";
|
|
424
|
+
readonly url: "https://sepolia.etherscan.io";
|
|
425
|
+
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
readonly blockTime?: number | undefined | undefined;
|
|
429
|
+
readonly contracts: {
|
|
430
|
+
readonly multicall3: {
|
|
431
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
432
|
+
readonly blockCreated: 751532;
|
|
433
|
+
};
|
|
434
|
+
readonly ensUniversalResolver: {
|
|
435
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
436
|
+
readonly blockCreated: 8928790;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
readonly ensTlds?: readonly string[] | undefined;
|
|
440
|
+
readonly nativeCurrency: {
|
|
441
|
+
readonly name: "Sepolia Ether";
|
|
442
|
+
readonly symbol: "ETH";
|
|
443
|
+
readonly decimals: 18;
|
|
444
|
+
};
|
|
445
|
+
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
446
|
+
readonly rpcUrls: {
|
|
447
|
+
readonly default: {
|
|
448
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
readonly sourceId?: number | undefined | undefined;
|
|
452
|
+
readonly testnet: true;
|
|
453
|
+
readonly custom?: Record<string, unknown> | undefined;
|
|
454
|
+
readonly fees?: viem.ChainFees<undefined> | undefined;
|
|
455
|
+
readonly formatters?: undefined;
|
|
456
|
+
readonly serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
378
457
|
} | {
|
|
379
458
|
blockExplorers: {
|
|
380
459
|
readonly default: {
|
|
@@ -1144,45 +1223,6 @@ declare const SUPPORTED_CHAINS: ({
|
|
|
1144
1223
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
1145
1224
|
formatters?: undefined;
|
|
1146
1225
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1147
|
-
} | {
|
|
1148
|
-
blockExplorers: {
|
|
1149
|
-
readonly default: {
|
|
1150
|
-
readonly name: "Etherscan";
|
|
1151
|
-
readonly url: "https://sepolia.etherscan.io";
|
|
1152
|
-
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
1153
|
-
};
|
|
1154
|
-
};
|
|
1155
|
-
blockTime?: number | undefined | undefined;
|
|
1156
|
-
contracts: {
|
|
1157
|
-
readonly multicall3: {
|
|
1158
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
1159
|
-
readonly blockCreated: 751532;
|
|
1160
|
-
};
|
|
1161
|
-
readonly ensUniversalResolver: {
|
|
1162
|
-
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
1163
|
-
readonly blockCreated: 8928790;
|
|
1164
|
-
};
|
|
1165
|
-
};
|
|
1166
|
-
ensTlds?: readonly string[] | undefined;
|
|
1167
|
-
id: 11155111;
|
|
1168
|
-
name: "Sepolia";
|
|
1169
|
-
nativeCurrency: {
|
|
1170
|
-
readonly name: "Sepolia Ether";
|
|
1171
|
-
readonly symbol: "ETH";
|
|
1172
|
-
readonly decimals: 18;
|
|
1173
|
-
};
|
|
1174
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
1175
|
-
rpcUrls: {
|
|
1176
|
-
readonly default: {
|
|
1177
|
-
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
1178
|
-
};
|
|
1179
|
-
};
|
|
1180
|
-
sourceId?: number | undefined | undefined;
|
|
1181
|
-
testnet: true;
|
|
1182
|
-
custom?: Record<string, unknown> | undefined;
|
|
1183
|
-
fees?: viem.ChainFees<undefined> | undefined;
|
|
1184
|
-
formatters?: undefined;
|
|
1185
|
-
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1186
1226
|
} | {
|
|
1187
1227
|
blockExplorers: {
|
|
1188
1228
|
readonly default: {
|
package/dist/index.d.ts
CHANGED
|
@@ -333,13 +333,8 @@ declare const getBlockExplorerTransactionDetailsUrl: (chainId: ChainId, transact
|
|
|
333
333
|
declare const getBlockExplorerBlockUrl: (chainId: ChainId, blockNumber: number) => URL | null;
|
|
334
334
|
|
|
335
335
|
declare const SUPPORTED_CHAINS: ({
|
|
336
|
-
readonly id:
|
|
336
|
+
readonly id: 31337;
|
|
337
337
|
readonly name: "ens-test-env";
|
|
338
|
-
readonly rpcUrls: {
|
|
339
|
-
readonly default: {
|
|
340
|
-
readonly http: readonly ["http://localhost:8545"];
|
|
341
|
-
};
|
|
342
|
-
};
|
|
343
338
|
readonly blockExplorers?: {
|
|
344
339
|
[key: string]: {
|
|
345
340
|
name: string;
|
|
@@ -369,12 +364,96 @@ declare const SUPPORTED_CHAINS: ({
|
|
|
369
364
|
readonly symbol: "ETH";
|
|
370
365
|
};
|
|
371
366
|
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
367
|
+
readonly rpcUrls: {
|
|
368
|
+
readonly default: {
|
|
369
|
+
readonly http: readonly ["http://127.0.0.1:8545"];
|
|
370
|
+
readonly webSocket: readonly ["ws://127.0.0.1:8545"];
|
|
371
|
+
};
|
|
372
|
+
};
|
|
372
373
|
readonly sourceId?: number | undefined | undefined;
|
|
373
374
|
readonly testnet?: boolean | undefined | undefined;
|
|
374
375
|
readonly custom?: Record<string, unknown> | undefined;
|
|
375
376
|
readonly fees?: viem.ChainFees<undefined> | undefined;
|
|
376
377
|
readonly formatters?: undefined;
|
|
377
378
|
readonly serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
379
|
+
} | {
|
|
380
|
+
blockExplorers: {
|
|
381
|
+
readonly default: {
|
|
382
|
+
readonly name: "Etherscan";
|
|
383
|
+
readonly url: "https://sepolia.etherscan.io";
|
|
384
|
+
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
blockTime?: number | undefined | undefined;
|
|
388
|
+
contracts: {
|
|
389
|
+
readonly multicall3: {
|
|
390
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
391
|
+
readonly blockCreated: 751532;
|
|
392
|
+
};
|
|
393
|
+
readonly ensUniversalResolver: {
|
|
394
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
395
|
+
readonly blockCreated: 8928790;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
ensTlds?: readonly string[] | undefined;
|
|
399
|
+
id: 11155111;
|
|
400
|
+
name: "Sepolia";
|
|
401
|
+
nativeCurrency: {
|
|
402
|
+
readonly name: "Sepolia Ether";
|
|
403
|
+
readonly symbol: "ETH";
|
|
404
|
+
readonly decimals: 18;
|
|
405
|
+
};
|
|
406
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
407
|
+
rpcUrls: {
|
|
408
|
+
readonly default: {
|
|
409
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
sourceId?: number | undefined | undefined;
|
|
413
|
+
testnet: true;
|
|
414
|
+
custom?: Record<string, unknown> | undefined;
|
|
415
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
416
|
+
formatters?: undefined;
|
|
417
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
418
|
+
} | {
|
|
419
|
+
readonly id: 99911155111;
|
|
420
|
+
readonly name: "Sepolia V2 (Virtual)";
|
|
421
|
+
readonly blockExplorers: {
|
|
422
|
+
readonly default: {
|
|
423
|
+
readonly name: "Etherscan";
|
|
424
|
+
readonly url: "https://sepolia.etherscan.io";
|
|
425
|
+
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
readonly blockTime?: number | undefined | undefined;
|
|
429
|
+
readonly contracts: {
|
|
430
|
+
readonly multicall3: {
|
|
431
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
432
|
+
readonly blockCreated: 751532;
|
|
433
|
+
};
|
|
434
|
+
readonly ensUniversalResolver: {
|
|
435
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
436
|
+
readonly blockCreated: 8928790;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
readonly ensTlds?: readonly string[] | undefined;
|
|
440
|
+
readonly nativeCurrency: {
|
|
441
|
+
readonly name: "Sepolia Ether";
|
|
442
|
+
readonly symbol: "ETH";
|
|
443
|
+
readonly decimals: 18;
|
|
444
|
+
};
|
|
445
|
+
readonly experimental_preconfirmationTime?: number | undefined | undefined;
|
|
446
|
+
readonly rpcUrls: {
|
|
447
|
+
readonly default: {
|
|
448
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
readonly sourceId?: number | undefined | undefined;
|
|
452
|
+
readonly testnet: true;
|
|
453
|
+
readonly custom?: Record<string, unknown> | undefined;
|
|
454
|
+
readonly fees?: viem.ChainFees<undefined> | undefined;
|
|
455
|
+
readonly formatters?: undefined;
|
|
456
|
+
readonly serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
378
457
|
} | {
|
|
379
458
|
blockExplorers: {
|
|
380
459
|
readonly default: {
|
|
@@ -1144,45 +1223,6 @@ declare const SUPPORTED_CHAINS: ({
|
|
|
1144
1223
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
1145
1224
|
formatters?: undefined;
|
|
1146
1225
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1147
|
-
} | {
|
|
1148
|
-
blockExplorers: {
|
|
1149
|
-
readonly default: {
|
|
1150
|
-
readonly name: "Etherscan";
|
|
1151
|
-
readonly url: "https://sepolia.etherscan.io";
|
|
1152
|
-
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
1153
|
-
};
|
|
1154
|
-
};
|
|
1155
|
-
blockTime?: number | undefined | undefined;
|
|
1156
|
-
contracts: {
|
|
1157
|
-
readonly multicall3: {
|
|
1158
|
-
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
1159
|
-
readonly blockCreated: 751532;
|
|
1160
|
-
};
|
|
1161
|
-
readonly ensUniversalResolver: {
|
|
1162
|
-
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
1163
|
-
readonly blockCreated: 8928790;
|
|
1164
|
-
};
|
|
1165
|
-
};
|
|
1166
|
-
ensTlds?: readonly string[] | undefined;
|
|
1167
|
-
id: 11155111;
|
|
1168
|
-
name: "Sepolia";
|
|
1169
|
-
nativeCurrency: {
|
|
1170
|
-
readonly name: "Sepolia Ether";
|
|
1171
|
-
readonly symbol: "ETH";
|
|
1172
|
-
readonly decimals: 18;
|
|
1173
|
-
};
|
|
1174
|
-
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
1175
|
-
rpcUrls: {
|
|
1176
|
-
readonly default: {
|
|
1177
|
-
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
1178
|
-
};
|
|
1179
|
-
};
|
|
1180
|
-
sourceId?: number | undefined | undefined;
|
|
1181
|
-
testnet: true;
|
|
1182
|
-
custom?: Record<string, unknown> | undefined;
|
|
1183
|
-
fees?: viem.ChainFees<undefined> | undefined;
|
|
1184
|
-
formatters?: undefined;
|
|
1185
|
-
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1186
1226
|
} | {
|
|
1187
1227
|
blockExplorers: {
|
|
1188
1228
|
readonly default: {
|
package/dist/index.js
CHANGED
|
@@ -4201,11 +4201,12 @@ function ChainIcon({ chainId, width = 20, height = 20 }) {
|
|
|
4201
4201
|
}
|
|
4202
4202
|
|
|
4203
4203
|
// src/utils/chains.ts
|
|
4204
|
-
import { ensTestEnvChain as ensTestEnvChain2 } from "@ensnode/datasources";
|
|
4204
|
+
import { ensTestEnvChain as ensTestEnvChain2, sepoliaV2Chain } from "@ensnode/datasources";
|
|
4205
4205
|
var SUPPORTED_CHAINS = [
|
|
4206
4206
|
ensTestEnvChain2,
|
|
4207
4207
|
mainnet,
|
|
4208
4208
|
sepolia,
|
|
4209
|
+
sepoliaV2Chain,
|
|
4209
4210
|
base,
|
|
4210
4211
|
baseSepolia,
|
|
4211
4212
|
linea,
|
|
@@ -4219,6 +4220,7 @@ var SUPPORTED_CHAINS = [
|
|
|
4219
4220
|
];
|
|
4220
4221
|
var CUSTOM_CHAIN_NAMES = /* @__PURE__ */ new Map([
|
|
4221
4222
|
[ensTestEnvChain2.id, "Ethereum Local (ens-test-env)"],
|
|
4223
|
+
[sepoliaV2Chain.id, "Sepolia V2 (virtual)"],
|
|
4222
4224
|
[mainnet.id, "Mainnet"],
|
|
4223
4225
|
[sepolia.id, "Ethereum Sepolia"],
|
|
4224
4226
|
[base.id, "Base"],
|