@namehash/namehash-ui 1.5.0 → 1.6.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/README.md +1 -1
- package/dist/index.cjs +378 -223
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +88 -116
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +1729 -6
- package/dist/index.d.ts +1729 -6
- package/dist/index.js +378 -223
- package/dist/index.js.map +1 -1
- package/package.json +13 -8
package/dist/index.cjs
CHANGED
|
@@ -30,16 +30,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
33
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/version.js
|
|
34
34
|
var version;
|
|
35
35
|
var init_version = __esm({
|
|
36
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
36
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/version.js"() {
|
|
37
37
|
"use strict";
|
|
38
38
|
version = "2.38.5";
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
42
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/base.js
|
|
43
43
|
function walk(err, fn) {
|
|
44
44
|
if (fn?.(err))
|
|
45
45
|
return err;
|
|
@@ -49,7 +49,7 @@ function walk(err, fn) {
|
|
|
49
49
|
}
|
|
50
50
|
var errorConfig, BaseError;
|
|
51
51
|
var init_base = __esm({
|
|
52
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
52
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/base.js"() {
|
|
53
53
|
"use strict";
|
|
54
54
|
init_version();
|
|
55
55
|
errorConfig = {
|
|
@@ -130,10 +130,10 @@ var init_base = __esm({
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
|
|
133
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
133
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/encoding.js
|
|
134
134
|
var IntegerOutOfRangeError, SizeOverflowError;
|
|
135
135
|
var init_encoding = __esm({
|
|
136
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
136
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/encoding.js"() {
|
|
137
137
|
"use strict";
|
|
138
138
|
init_base();
|
|
139
139
|
IntegerOutOfRangeError = class extends BaseError {
|
|
@@ -149,7 +149,7 @@ var init_encoding = __esm({
|
|
|
149
149
|
}
|
|
150
150
|
});
|
|
151
151
|
|
|
152
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
152
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/isHex.js
|
|
153
153
|
function isHex(value, { strict = true } = {}) {
|
|
154
154
|
if (!value)
|
|
155
155
|
return false;
|
|
@@ -158,25 +158,25 @@ function isHex(value, { strict = true } = {}) {
|
|
|
158
158
|
return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
|
|
159
159
|
}
|
|
160
160
|
var init_isHex = __esm({
|
|
161
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
161
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/isHex.js"() {
|
|
162
162
|
"use strict";
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
166
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/size.js
|
|
167
167
|
function size(value) {
|
|
168
168
|
if (isHex(value, { strict: false }))
|
|
169
169
|
return Math.ceil((value.length - 2) / 2);
|
|
170
170
|
return value.length;
|
|
171
171
|
}
|
|
172
172
|
var init_size = __esm({
|
|
173
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
173
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/size.js"() {
|
|
174
174
|
"use strict";
|
|
175
175
|
init_isHex();
|
|
176
176
|
}
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
179
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/trim.js
|
|
180
180
|
function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
181
181
|
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
|
182
182
|
let sliceLength = 0;
|
|
@@ -195,15 +195,15 @@ function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
|
195
195
|
return data;
|
|
196
196
|
}
|
|
197
197
|
var init_trim = __esm({
|
|
198
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
198
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/trim.js"() {
|
|
199
199
|
"use strict";
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
|
|
203
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
203
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/data.js
|
|
204
204
|
var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
|
|
205
205
|
var init_data = __esm({
|
|
206
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
206
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/data.js"() {
|
|
207
207
|
"use strict";
|
|
208
208
|
init_base();
|
|
209
209
|
SliceOffsetOutOfBoundsError = class extends BaseError {
|
|
@@ -219,7 +219,7 @@ var init_data = __esm({
|
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
|
|
222
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
222
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/pad.js
|
|
223
223
|
function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
|
|
224
224
|
if (typeof hexOrBytes === "string")
|
|
225
225
|
return padHex(hexOrBytes, { dir, size: size2 });
|
|
@@ -254,13 +254,13 @@ function padBytes(bytes, { dir, size: size2 = 32 } = {}) {
|
|
|
254
254
|
return paddedBytes;
|
|
255
255
|
}
|
|
256
256
|
var init_pad = __esm({
|
|
257
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
257
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/pad.js"() {
|
|
258
258
|
"use strict";
|
|
259
259
|
init_data();
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
262
|
|
|
263
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
263
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
264
264
|
function toHex(value, opts = {}) {
|
|
265
265
|
if (typeof value === "number" || typeof value === "bigint")
|
|
266
266
|
return numberToHex(value, opts);
|
|
@@ -325,7 +325,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
325
325
|
}
|
|
326
326
|
var hexes, encoder;
|
|
327
327
|
var init_toHex = __esm({
|
|
328
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
328
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toHex.js"() {
|
|
329
329
|
"use strict";
|
|
330
330
|
init_encoding();
|
|
331
331
|
init_pad();
|
|
@@ -335,7 +335,7 @@ var init_toHex = __esm({
|
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
337
|
|
|
338
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
338
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
339
339
|
function toBytes(value, opts = {}) {
|
|
340
340
|
if (typeof value === "number" || typeof value === "bigint")
|
|
341
341
|
return numberToBytes(value, opts);
|
|
@@ -398,7 +398,7 @@ function stringToBytes(value, opts = {}) {
|
|
|
398
398
|
}
|
|
399
399
|
var encoder2, charCodeMap;
|
|
400
400
|
var init_toBytes = __esm({
|
|
401
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
401
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toBytes.js"() {
|
|
402
402
|
"use strict";
|
|
403
403
|
init_base();
|
|
404
404
|
init_isHex();
|
|
@@ -417,7 +417,7 @@ var init_toBytes = __esm({
|
|
|
417
417
|
}
|
|
418
418
|
});
|
|
419
419
|
|
|
420
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
420
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
421
421
|
function assertSize(hexOrBytes, { size: size2 }) {
|
|
422
422
|
if (size(hexOrBytes) > size2)
|
|
423
423
|
throw new SizeOverflowError({
|
|
@@ -442,14 +442,14 @@ function hexToNumber(hex, opts = {}) {
|
|
|
442
442
|
return Number(hexToBigInt(hex, opts));
|
|
443
443
|
}
|
|
444
444
|
var init_fromHex = __esm({
|
|
445
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
445
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromHex.js"() {
|
|
446
446
|
"use strict";
|
|
447
447
|
init_encoding();
|
|
448
448
|
init_size();
|
|
449
449
|
}
|
|
450
450
|
});
|
|
451
451
|
|
|
452
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
452
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/formatter.js
|
|
453
453
|
function defineFormatter(type, format) {
|
|
454
454
|
return ({ exclude, format: overrides }) => {
|
|
455
455
|
return {
|
|
@@ -471,12 +471,12 @@ function defineFormatter(type, format) {
|
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
var init_formatter = __esm({
|
|
474
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
474
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/formatter.js"() {
|
|
475
475
|
"use strict";
|
|
476
476
|
}
|
|
477
477
|
});
|
|
478
478
|
|
|
479
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
479
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/transactionRequest.js
|
|
480
480
|
function formatTransactionRequest(request, _) {
|
|
481
481
|
const rpcRequest = {};
|
|
482
482
|
if (typeof request.authorizationList !== "undefined")
|
|
@@ -530,7 +530,7 @@ function formatAuthorizationList2(authorizationList) {
|
|
|
530
530
|
}
|
|
531
531
|
var rpcTransactionType;
|
|
532
532
|
var init_transactionRequest = __esm({
|
|
533
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
533
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/transactionRequest.js"() {
|
|
534
534
|
"use strict";
|
|
535
535
|
init_toHex();
|
|
536
536
|
rpcTransactionType = {
|
|
@@ -543,10 +543,10 @@ var init_transactionRequest = __esm({
|
|
|
543
543
|
}
|
|
544
544
|
});
|
|
545
545
|
|
|
546
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
546
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/number.js
|
|
547
547
|
var maxInt8, maxInt16, maxInt24, maxInt32, maxInt40, maxInt48, maxInt56, maxInt64, maxInt72, maxInt80, maxInt88, maxInt96, maxInt104, maxInt112, maxInt120, maxInt128, maxInt136, maxInt144, maxInt152, maxInt160, maxInt168, maxInt176, maxInt184, maxInt192, maxInt200, maxInt208, maxInt216, maxInt224, maxInt232, maxInt240, maxInt248, maxInt256, minInt8, minInt16, minInt24, minInt32, minInt40, minInt48, minInt56, minInt64, minInt72, minInt80, minInt88, minInt96, minInt104, minInt112, minInt120, minInt128, minInt136, minInt144, minInt152, minInt160, minInt168, minInt176, minInt184, minInt192, minInt200, minInt208, minInt216, minInt224, minInt232, minInt240, minInt248, minInt256, maxUint8, maxUint16, maxUint24, maxUint32, maxUint40, maxUint48, maxUint56, maxUint64, maxUint72, maxUint80, maxUint88, maxUint96, maxUint104, maxUint112, maxUint120, maxUint128, maxUint136, maxUint144, maxUint152, maxUint160, maxUint168, maxUint176, maxUint184, maxUint192, maxUint200, maxUint208, maxUint216, maxUint224, maxUint232, maxUint240, maxUint248, maxUint256;
|
|
548
548
|
var init_number = __esm({
|
|
549
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
549
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/number.js"() {
|
|
550
550
|
"use strict";
|
|
551
551
|
maxInt8 = 2n ** (8n - 1n) - 1n;
|
|
552
552
|
maxInt16 = 2n ** (16n - 1n) - 1n;
|
|
@@ -647,20 +647,20 @@ var init_number = __esm({
|
|
|
647
647
|
}
|
|
648
648
|
});
|
|
649
649
|
|
|
650
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
650
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/concat.js
|
|
651
651
|
function concatHex(values) {
|
|
652
652
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
653
653
|
}
|
|
654
654
|
var init_concat = __esm({
|
|
655
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
655
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/concat.js"() {
|
|
656
656
|
"use strict";
|
|
657
657
|
}
|
|
658
658
|
});
|
|
659
659
|
|
|
660
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
660
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/cursor.js
|
|
661
661
|
var NegativeOffsetError, PositionOutOfBoundsError, RecursiveReadLimitExceededError;
|
|
662
662
|
var init_cursor = __esm({
|
|
663
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
663
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/cursor.js"() {
|
|
664
664
|
"use strict";
|
|
665
665
|
init_base();
|
|
666
666
|
NegativeOffsetError = class extends BaseError {
|
|
@@ -683,7 +683,7 @@ var init_cursor = __esm({
|
|
|
683
683
|
}
|
|
684
684
|
});
|
|
685
685
|
|
|
686
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
686
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/cursor.js
|
|
687
687
|
function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
688
688
|
const cursor = Object.create(staticCursor);
|
|
689
689
|
cursor.bytes = bytes;
|
|
@@ -694,7 +694,7 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
|
694
694
|
}
|
|
695
695
|
var staticCursor;
|
|
696
696
|
var init_cursor2 = __esm({
|
|
697
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
697
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/cursor.js"() {
|
|
698
698
|
"use strict";
|
|
699
699
|
init_cursor();
|
|
700
700
|
staticCursor = {
|
|
@@ -859,10 +859,10 @@ var init_cursor2 = __esm({
|
|
|
859
859
|
}
|
|
860
860
|
});
|
|
861
861
|
|
|
862
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
862
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/unit.js
|
|
863
863
|
var etherUnits, gweiUnits;
|
|
864
864
|
var init_unit = __esm({
|
|
865
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
865
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/unit.js"() {
|
|
866
866
|
"use strict";
|
|
867
867
|
etherUnits = {
|
|
868
868
|
gwei: 9,
|
|
@@ -875,7 +875,7 @@ var init_unit = __esm({
|
|
|
875
875
|
}
|
|
876
876
|
});
|
|
877
877
|
|
|
878
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
878
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatUnits.js
|
|
879
879
|
function formatUnits(value, decimals) {
|
|
880
880
|
let display = value.toString();
|
|
881
881
|
const negative = display.startsWith("-");
|
|
@@ -890,36 +890,36 @@ function formatUnits(value, decimals) {
|
|
|
890
890
|
return `${negative ? "-" : ""}${integer || "0"}${fraction ? `.${fraction}` : ""}`;
|
|
891
891
|
}
|
|
892
892
|
var init_formatUnits = __esm({
|
|
893
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
893
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatUnits.js"() {
|
|
894
894
|
"use strict";
|
|
895
895
|
}
|
|
896
896
|
});
|
|
897
897
|
|
|
898
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
898
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatEther.js
|
|
899
899
|
function formatEther(wei, unit = "wei") {
|
|
900
900
|
return formatUnits(wei, etherUnits[unit]);
|
|
901
901
|
}
|
|
902
902
|
var init_formatEther = __esm({
|
|
903
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
903
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatEther.js"() {
|
|
904
904
|
"use strict";
|
|
905
905
|
init_unit();
|
|
906
906
|
init_formatUnits();
|
|
907
907
|
}
|
|
908
908
|
});
|
|
909
909
|
|
|
910
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
910
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatGwei.js
|
|
911
911
|
function formatGwei(wei, unit = "wei") {
|
|
912
912
|
return formatUnits(wei, gweiUnits[unit]);
|
|
913
913
|
}
|
|
914
914
|
var init_formatGwei = __esm({
|
|
915
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
915
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatGwei.js"() {
|
|
916
916
|
"use strict";
|
|
917
917
|
init_unit();
|
|
918
918
|
init_formatUnits();
|
|
919
919
|
}
|
|
920
920
|
});
|
|
921
921
|
|
|
922
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
922
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/transaction.js
|
|
923
923
|
function prettyPrint(args) {
|
|
924
924
|
const entries = Object.entries(args).map(([key, value]) => {
|
|
925
925
|
if (value === void 0 || value === false)
|
|
@@ -931,7 +931,7 @@ function prettyPrint(args) {
|
|
|
931
931
|
}
|
|
932
932
|
var FeeConflictError, InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeySizeError;
|
|
933
933
|
var init_transaction = __esm({
|
|
934
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
934
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/transaction.js"() {
|
|
935
935
|
"use strict";
|
|
936
936
|
init_base();
|
|
937
937
|
FeeConflictError = class extends BaseError {
|
|
@@ -1362,10 +1362,10 @@ var init_sha2 = __esm({
|
|
|
1362
1362
|
}
|
|
1363
1363
|
});
|
|
1364
1364
|
|
|
1365
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1365
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/address.js
|
|
1366
1366
|
var InvalidAddressError;
|
|
1367
1367
|
var init_address = __esm({
|
|
1368
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1368
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/address.js"() {
|
|
1369
1369
|
"use strict";
|
|
1370
1370
|
init_base();
|
|
1371
1371
|
InvalidAddressError = class extends BaseError {
|
|
@@ -1382,10 +1382,10 @@ var init_address = __esm({
|
|
|
1382
1382
|
}
|
|
1383
1383
|
});
|
|
1384
1384
|
|
|
1385
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1385
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/chain.js
|
|
1386
1386
|
var InvalidChainIdError;
|
|
1387
1387
|
var init_chain = __esm({
|
|
1388
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1388
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/chain.js"() {
|
|
1389
1389
|
"use strict";
|
|
1390
1390
|
init_base();
|
|
1391
1391
|
InvalidChainIdError = class extends BaseError {
|
|
@@ -1396,10 +1396,10 @@ var init_chain = __esm({
|
|
|
1396
1396
|
}
|
|
1397
1397
|
});
|
|
1398
1398
|
|
|
1399
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1399
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/node.js
|
|
1400
1400
|
var ExecutionRevertedError, FeeCapTooHighError, FeeCapTooLowError, NonceTooHighError, NonceTooLowError, NonceMaxValueError, InsufficientFundsError, IntrinsicGasTooHighError, IntrinsicGasTooLowError, TransactionTypeNotSupportedError, TipAboveFeeCapError, UnknownNodeError;
|
|
1401
1401
|
var init_node = __esm({
|
|
1402
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1402
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/node.js"() {
|
|
1403
1403
|
"use strict";
|
|
1404
1404
|
init_formatGwei();
|
|
1405
1405
|
init_base();
|
|
@@ -1583,10 +1583,10 @@ var init_node = __esm({
|
|
|
1583
1583
|
}
|
|
1584
1584
|
});
|
|
1585
1585
|
|
|
1586
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1586
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/lru.js
|
|
1587
1587
|
var LruMap;
|
|
1588
1588
|
var init_lru = __esm({
|
|
1589
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1589
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/lru.js"() {
|
|
1590
1590
|
"use strict";
|
|
1591
1591
|
LruMap = class extends Map {
|
|
1592
1592
|
constructor(size2) {
|
|
@@ -1809,7 +1809,7 @@ var init_sha3 = __esm({
|
|
|
1809
1809
|
}
|
|
1810
1810
|
});
|
|
1811
1811
|
|
|
1812
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1812
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
1813
1813
|
function keccak256(value, to_) {
|
|
1814
1814
|
const to = to_ || "hex";
|
|
1815
1815
|
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
@@ -1818,7 +1818,7 @@ function keccak256(value, to_) {
|
|
|
1818
1818
|
return toHex(bytes);
|
|
1819
1819
|
}
|
|
1820
1820
|
var init_keccak256 = __esm({
|
|
1821
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1821
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/keccak256.js"() {
|
|
1822
1822
|
"use strict";
|
|
1823
1823
|
init_sha3();
|
|
1824
1824
|
init_isHex();
|
|
@@ -1827,7 +1827,7 @@ var init_keccak256 = __esm({
|
|
|
1827
1827
|
}
|
|
1828
1828
|
});
|
|
1829
1829
|
|
|
1830
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1830
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/address/getAddress.js
|
|
1831
1831
|
function checksumAddress(address_, chainId) {
|
|
1832
1832
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
1833
1833
|
return checksumAddressCache.get(`${address_}.${chainId}`);
|
|
@@ -1853,7 +1853,7 @@ function getAddress(address, chainId) {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
var checksumAddressCache;
|
|
1855
1855
|
var init_getAddress = __esm({
|
|
1856
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1856
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/address/getAddress.js"() {
|
|
1857
1857
|
"use strict";
|
|
1858
1858
|
init_address();
|
|
1859
1859
|
init_toBytes();
|
|
@@ -1864,7 +1864,7 @@ var init_getAddress = __esm({
|
|
|
1864
1864
|
}
|
|
1865
1865
|
});
|
|
1866
1866
|
|
|
1867
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1867
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddress.js
|
|
1868
1868
|
function isAddress(address, options) {
|
|
1869
1869
|
const { strict = true } = options ?? {};
|
|
1870
1870
|
const cacheKey = `${address}.${strict}`;
|
|
@@ -1884,7 +1884,7 @@ function isAddress(address, options) {
|
|
|
1884
1884
|
}
|
|
1885
1885
|
var addressRegex, isAddressCache;
|
|
1886
1886
|
var init_isAddress = __esm({
|
|
1887
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1887
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddress.js"() {
|
|
1888
1888
|
"use strict";
|
|
1889
1889
|
init_lru();
|
|
1890
1890
|
init_getAddress();
|
|
@@ -1893,7 +1893,7 @@ var init_isAddress = __esm({
|
|
|
1893
1893
|
}
|
|
1894
1894
|
});
|
|
1895
1895
|
|
|
1896
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1896
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/slice.js
|
|
1897
1897
|
function slice(value, start, end, { strict } = {}) {
|
|
1898
1898
|
if (isHex(value, { strict: false }))
|
|
1899
1899
|
return sliceHex(value, start, end, {
|
|
@@ -1935,7 +1935,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
1935
1935
|
return value;
|
|
1936
1936
|
}
|
|
1937
1937
|
var init_slice = __esm({
|
|
1938
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1938
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/slice.js"() {
|
|
1939
1939
|
"use strict";
|
|
1940
1940
|
init_data();
|
|
1941
1941
|
init_isHex();
|
|
@@ -1943,19 +1943,19 @@ var init_slice = __esm({
|
|
|
1943
1943
|
}
|
|
1944
1944
|
});
|
|
1945
1945
|
|
|
1946
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1946
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/accounts/utils/parseAccount.js
|
|
1947
1947
|
function parseAccount(account) {
|
|
1948
1948
|
if (typeof account === "string")
|
|
1949
1949
|
return { address: account, type: "json-rpc" };
|
|
1950
1950
|
return account;
|
|
1951
1951
|
}
|
|
1952
1952
|
var init_parseAccount = __esm({
|
|
1953
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1953
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/accounts/utils/parseAccount.js"() {
|
|
1954
1954
|
"use strict";
|
|
1955
1955
|
}
|
|
1956
1956
|
});
|
|
1957
1957
|
|
|
1958
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1958
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/stateOverride.js
|
|
1959
1959
|
function prettyStateMapping(stateMapping) {
|
|
1960
1960
|
return stateMapping.reduce((pretty, { slot, value }) => {
|
|
1961
1961
|
return `${pretty} ${slot}: ${value}
|
|
@@ -1987,15 +1987,15 @@ function prettyStateOverride(stateOverride) {
|
|
|
1987
1987
|
}, " State Override:\n").slice(0, -1);
|
|
1988
1988
|
}
|
|
1989
1989
|
var init_stateOverride = __esm({
|
|
1990
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1990
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/stateOverride.js"() {
|
|
1991
1991
|
"use strict";
|
|
1992
1992
|
}
|
|
1993
1993
|
});
|
|
1994
1994
|
|
|
1995
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1995
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/contract.js
|
|
1996
1996
|
var CallExecutionError;
|
|
1997
1997
|
var init_contract = __esm({
|
|
1998
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
1998
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/contract.js"() {
|
|
1999
1999
|
"use strict";
|
|
2000
2000
|
init_parseAccount();
|
|
2001
2001
|
init_formatEther();
|
|
@@ -2043,7 +2043,7 @@ ${prettyStateOverride(stateOverride)}`;
|
|
|
2043
2043
|
}
|
|
2044
2044
|
});
|
|
2045
2045
|
|
|
2046
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2046
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/errors/getNodeError.js
|
|
2047
2047
|
function getNodeError(err, args) {
|
|
2048
2048
|
const message = (err.details || "").toLowerCase();
|
|
2049
2049
|
const executionRevertedError = err instanceof BaseError ? err.walk((e) => e?.code === ExecutionRevertedError.code) : err;
|
|
@@ -2092,14 +2092,14 @@ function getNodeError(err, args) {
|
|
|
2092
2092
|
});
|
|
2093
2093
|
}
|
|
2094
2094
|
var init_getNodeError = __esm({
|
|
2095
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2095
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/errors/getNodeError.js"() {
|
|
2096
2096
|
"use strict";
|
|
2097
2097
|
init_base();
|
|
2098
2098
|
init_node();
|
|
2099
2099
|
}
|
|
2100
2100
|
});
|
|
2101
2101
|
|
|
2102
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2102
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/errors/getCallError.js
|
|
2103
2103
|
function getCallError(err, { docsPath, ...args }) {
|
|
2104
2104
|
const cause = (() => {
|
|
2105
2105
|
const cause2 = getNodeError(err, args);
|
|
@@ -2113,7 +2113,7 @@ function getCallError(err, { docsPath, ...args }) {
|
|
|
2113
2113
|
});
|
|
2114
2114
|
}
|
|
2115
2115
|
var init_getCallError = __esm({
|
|
2116
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2116
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/errors/getCallError.js"() {
|
|
2117
2117
|
"use strict";
|
|
2118
2118
|
init_contract();
|
|
2119
2119
|
init_node();
|
|
@@ -2121,7 +2121,7 @@ var init_getCallError = __esm({
|
|
|
2121
2121
|
}
|
|
2122
2122
|
});
|
|
2123
2123
|
|
|
2124
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2124
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/extract.js
|
|
2125
2125
|
function extract(value_, { format }) {
|
|
2126
2126
|
if (!format)
|
|
2127
2127
|
return {};
|
|
@@ -2140,12 +2140,12 @@ function extract(value_, { format }) {
|
|
|
2140
2140
|
return value;
|
|
2141
2141
|
}
|
|
2142
2142
|
var init_extract = __esm({
|
|
2143
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2143
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/extract.js"() {
|
|
2144
2144
|
"use strict";
|
|
2145
2145
|
}
|
|
2146
2146
|
});
|
|
2147
2147
|
|
|
2148
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2148
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/assertRequest.js
|
|
2149
2149
|
function assertRequest(args) {
|
|
2150
2150
|
const { account: account_, gasPrice, maxFeePerGas, maxPriorityFeePerGas, to } = args;
|
|
2151
2151
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -2161,7 +2161,7 @@ function assertRequest(args) {
|
|
|
2161
2161
|
throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
|
2162
2162
|
}
|
|
2163
2163
|
var init_assertRequest = __esm({
|
|
2164
|
-
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2164
|
+
"../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/assertRequest.js"() {
|
|
2165
2165
|
"use strict";
|
|
2166
2166
|
init_parseAccount();
|
|
2167
2167
|
init_number();
|
|
@@ -2180,6 +2180,7 @@ __export(index_exports, {
|
|
|
2180
2180
|
ChainExplorerIcon: () => ChainExplorerIcon,
|
|
2181
2181
|
ChainIcon: () => ChainIcon,
|
|
2182
2182
|
ChainName: () => ChainName,
|
|
2183
|
+
CopyButton: () => CopyButton,
|
|
2183
2184
|
DisplayDuration: () => DisplayDuration,
|
|
2184
2185
|
DisplayIdentity: () => DisplayIdentity,
|
|
2185
2186
|
EfpIcon: () => EfpIcon,
|
|
@@ -2193,19 +2194,32 @@ __export(index_exports, {
|
|
|
2193
2194
|
IdentityLink: () => IdentityLink,
|
|
2194
2195
|
IdentityTooltip: () => IdentityTooltip,
|
|
2195
2196
|
InfoIcon: () => InfoIcon,
|
|
2197
|
+
LabeledField: () => LabeledField,
|
|
2196
2198
|
NameDisplay: () => NameDisplay,
|
|
2197
2199
|
RegistrarActionCard: () => RegistrarActionCard,
|
|
2198
2200
|
RegistrarActionCardLoading: () => RegistrarActionCardLoading,
|
|
2199
2201
|
RegistrarActionCardMemo: () => RegistrarActionCardMemo,
|
|
2200
2202
|
RelativeTime: () => RelativeTime,
|
|
2201
2203
|
ResolveAndDisplayIdentity: () => ResolveAndDisplayIdentity,
|
|
2204
|
+
SUPPORTED_CHAINS: () => SUPPORTED_CHAINS,
|
|
2202
2205
|
TelegramIcon: () => TelegramIcon,
|
|
2203
2206
|
TwitterIcon: () => TwitterIcon,
|
|
2204
|
-
formatRelativeTime: () => formatRelativeTime
|
|
2207
|
+
formatRelativeTime: () => formatRelativeTime,
|
|
2208
|
+
getBlockExplorerAddressDetailsUrl: () => getBlockExplorerAddressDetailsUrl,
|
|
2209
|
+
getBlockExplorerBlockUrl: () => getBlockExplorerBlockUrl,
|
|
2210
|
+
getBlockExplorerTransactionDetailsUrl: () => getBlockExplorerTransactionDetailsUrl,
|
|
2211
|
+
getBlockExplorerUrl: () => getBlockExplorerUrl,
|
|
2212
|
+
getChainName: () => getChainName,
|
|
2213
|
+
getEnsManagerAddressDetailsUrl: () => getEnsManagerAddressDetailsUrl,
|
|
2214
|
+
getEnsManagerNameDetailsUrl: () => getEnsManagerNameDetailsUrl,
|
|
2215
|
+
getEnsManagerUrl: () => getEnsManagerUrl,
|
|
2216
|
+
getEnsMetadataServiceAvatarUrl: () => getEnsMetadataServiceAvatarUrl,
|
|
2217
|
+
useIsMobile: () => useIsMobile,
|
|
2218
|
+
useNow: () => useNow
|
|
2205
2219
|
});
|
|
2206
2220
|
module.exports = __toCommonJS(index_exports);
|
|
2207
2221
|
|
|
2208
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2222
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/chain/defineChain.js
|
|
2209
2223
|
function defineChain(chain) {
|
|
2210
2224
|
return {
|
|
2211
2225
|
formatters: void 0,
|
|
@@ -2215,10 +2229,10 @@ function defineChain(chain) {
|
|
|
2215
2229
|
};
|
|
2216
2230
|
}
|
|
2217
2231
|
|
|
2218
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2232
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/block.js
|
|
2219
2233
|
init_formatter();
|
|
2220
2234
|
|
|
2221
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2235
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/transaction.js
|
|
2222
2236
|
init_fromHex();
|
|
2223
2237
|
init_formatter();
|
|
2224
2238
|
var transactionType = {
|
|
@@ -2291,7 +2305,7 @@ function formatAuthorizationList(authorizationList) {
|
|
|
2291
2305
|
}));
|
|
2292
2306
|
}
|
|
2293
2307
|
|
|
2294
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2308
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/block.js
|
|
2295
2309
|
function formatBlock(block, _) {
|
|
2296
2310
|
const transactions = (block.transactions ?? []).map((transaction) => {
|
|
2297
2311
|
if (typeof transaction === "string")
|
|
@@ -2318,7 +2332,7 @@ function formatBlock(block, _) {
|
|
|
2318
2332
|
}
|
|
2319
2333
|
var defineBlock = /* @__PURE__ */ defineFormatter("block", formatBlock);
|
|
2320
2334
|
|
|
2321
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2335
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/log.js
|
|
2322
2336
|
function formatLog(log, { args, eventName } = {}) {
|
|
2323
2337
|
return {
|
|
2324
2338
|
...log,
|
|
@@ -2331,7 +2345,7 @@ function formatLog(log, { args, eventName } = {}) {
|
|
|
2331
2345
|
};
|
|
2332
2346
|
}
|
|
2333
2347
|
|
|
2334
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2348
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/transactionReceipt.js
|
|
2335
2349
|
init_fromHex();
|
|
2336
2350
|
init_formatter();
|
|
2337
2351
|
var receiptStatuses = {
|
|
@@ -2360,7 +2374,7 @@ function formatTransactionReceipt(transactionReceipt, _) {
|
|
|
2360
2374
|
}
|
|
2361
2375
|
var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
|
|
2362
2376
|
|
|
2363
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2377
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toRlp.js
|
|
2364
2378
|
init_base();
|
|
2365
2379
|
init_cursor2();
|
|
2366
2380
|
init_toBytes();
|
|
@@ -2453,10 +2467,10 @@ function getSizeOfLength(length) {
|
|
|
2453
2467
|
throw new BaseError("Length is too large.");
|
|
2454
2468
|
}
|
|
2455
2469
|
|
|
2456
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2470
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/serializeTransaction.js
|
|
2457
2471
|
init_transaction();
|
|
2458
2472
|
|
|
2459
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2473
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/authorization/serializeAuthorizationList.js
|
|
2460
2474
|
init_toHex();
|
|
2461
2475
|
function serializeAuthorizationList(authorizationList) {
|
|
2462
2476
|
if (!authorizationList || authorizationList.length === 0)
|
|
@@ -2475,7 +2489,7 @@ function serializeAuthorizationList(authorizationList) {
|
|
|
2475
2489
|
return serializedAuthorizationList;
|
|
2476
2490
|
}
|
|
2477
2491
|
|
|
2478
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2492
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/blobsToCommitments.js
|
|
2479
2493
|
init_toBytes();
|
|
2480
2494
|
init_toHex();
|
|
2481
2495
|
function blobsToCommitments(parameters) {
|
|
@@ -2488,7 +2502,7 @@ function blobsToCommitments(parameters) {
|
|
|
2488
2502
|
return to === "bytes" ? commitments : commitments.map((x) => bytesToHex(x));
|
|
2489
2503
|
}
|
|
2490
2504
|
|
|
2491
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2505
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/blobsToProofs.js
|
|
2492
2506
|
init_toBytes();
|
|
2493
2507
|
init_toHex();
|
|
2494
2508
|
function blobsToProofs(parameters) {
|
|
@@ -2505,14 +2519,14 @@ function blobsToProofs(parameters) {
|
|
|
2505
2519
|
return to === "bytes" ? proofs : proofs.map((x) => bytesToHex(x));
|
|
2506
2520
|
}
|
|
2507
2521
|
|
|
2508
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2522
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
|
2509
2523
|
init_toHex();
|
|
2510
2524
|
|
|
2511
2525
|
// ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha256.js
|
|
2512
2526
|
init_sha2();
|
|
2513
2527
|
var sha2562 = sha256;
|
|
2514
2528
|
|
|
2515
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2529
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/sha256.js
|
|
2516
2530
|
init_isHex();
|
|
2517
2531
|
init_toBytes();
|
|
2518
2532
|
init_toHex();
|
|
@@ -2524,7 +2538,7 @@ function sha2563(value, to_) {
|
|
|
2524
2538
|
return toHex(bytes);
|
|
2525
2539
|
}
|
|
2526
2540
|
|
|
2527
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2541
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
|
2528
2542
|
function commitmentToVersionedHash(parameters) {
|
|
2529
2543
|
const { commitment, version: version2 = 1 } = parameters;
|
|
2530
2544
|
const to = parameters.to ?? (typeof commitment === "string" ? "hex" : "bytes");
|
|
@@ -2533,7 +2547,7 @@ function commitmentToVersionedHash(parameters) {
|
|
|
2533
2547
|
return to === "bytes" ? versionedHash : bytesToHex(versionedHash);
|
|
2534
2548
|
}
|
|
2535
2549
|
|
|
2536
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2550
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
|
|
2537
2551
|
function commitmentsToVersionedHashes(parameters) {
|
|
2538
2552
|
const { commitments, version: version2 } = parameters;
|
|
2539
2553
|
const to = parameters.to ?? (typeof commitments[0] === "string" ? "hex" : "bytes");
|
|
@@ -2548,7 +2562,7 @@ function commitmentsToVersionedHashes(parameters) {
|
|
|
2548
2562
|
return hashes;
|
|
2549
2563
|
}
|
|
2550
2564
|
|
|
2551
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2565
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/blob.js
|
|
2552
2566
|
var blobsPerTransaction = 6;
|
|
2553
2567
|
var bytesPerFieldElement = 32;
|
|
2554
2568
|
var fieldElementsPerBlob = 4096;
|
|
@@ -2557,10 +2571,10 @@ var maxBytesPerTransaction = bytesPerBlob * blobsPerTransaction - // terminator
|
|
|
2557
2571
|
1 - // zero byte (0x00) appended to each field element.
|
|
2558
2572
|
1 * fieldElementsPerBlob * blobsPerTransaction;
|
|
2559
2573
|
|
|
2560
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2574
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/kzg.js
|
|
2561
2575
|
var versionedHashVersionKzg = 1;
|
|
2562
2576
|
|
|
2563
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2577
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/blob.js
|
|
2564
2578
|
init_base();
|
|
2565
2579
|
var BlobSizeTooLargeError = class extends BaseError {
|
|
2566
2580
|
constructor({ maxSize, size: size2 }) {
|
|
@@ -2595,7 +2609,7 @@ var InvalidVersionedHashVersionError = class extends BaseError {
|
|
|
2595
2609
|
}
|
|
2596
2610
|
};
|
|
2597
2611
|
|
|
2598
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2612
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/toBlobs.js
|
|
2599
2613
|
init_cursor2();
|
|
2600
2614
|
init_size();
|
|
2601
2615
|
init_toBytes();
|
|
@@ -2634,7 +2648,7 @@ function toBlobs(parameters) {
|
|
|
2634
2648
|
return to === "bytes" ? blobs.map((x) => x.bytes) : blobs.map((x) => bytesToHex(x.bytes));
|
|
2635
2649
|
}
|
|
2636
2650
|
|
|
2637
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2651
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/blob/toBlobSidecars.js
|
|
2638
2652
|
function toBlobSidecars(parameters) {
|
|
2639
2653
|
const { data, kzg, to } = parameters;
|
|
2640
2654
|
const blobs = parameters.blobs ?? toBlobs({ data, to });
|
|
@@ -2650,12 +2664,12 @@ function toBlobSidecars(parameters) {
|
|
|
2650
2664
|
return sidecars;
|
|
2651
2665
|
}
|
|
2652
2666
|
|
|
2653
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2667
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/serializeTransaction.js
|
|
2654
2668
|
init_concat();
|
|
2655
2669
|
init_trim();
|
|
2656
2670
|
init_toHex();
|
|
2657
2671
|
|
|
2658
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2672
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/assertTransaction.js
|
|
2659
2673
|
init_number();
|
|
2660
2674
|
init_address();
|
|
2661
2675
|
init_base();
|
|
@@ -2732,7 +2746,7 @@ function assertTransactionLegacy(transaction) {
|
|
|
2732
2746
|
throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
|
|
2733
2747
|
}
|
|
2734
2748
|
|
|
2735
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2749
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/getTransactionType.js
|
|
2736
2750
|
init_transaction();
|
|
2737
2751
|
function getTransactionType(transaction) {
|
|
2738
2752
|
if (transaction.type)
|
|
@@ -2752,7 +2766,7 @@ function getTransactionType(transaction) {
|
|
|
2752
2766
|
throw new InvalidSerializableTransactionError({ transaction });
|
|
2753
2767
|
}
|
|
2754
2768
|
|
|
2755
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2769
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/serializeAccessList.js
|
|
2756
2770
|
init_address();
|
|
2757
2771
|
init_transaction();
|
|
2758
2772
|
init_isAddress();
|
|
@@ -2775,7 +2789,7 @@ function serializeAccessList(accessList) {
|
|
|
2775
2789
|
return serializedAccessList;
|
|
2776
2790
|
}
|
|
2777
2791
|
|
|
2778
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2792
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/serializeTransaction.js
|
|
2779
2793
|
function serializeTransaction(transaction, signature) {
|
|
2780
2794
|
const type = getTransactionType(transaction);
|
|
2781
2795
|
if (type === "eip1559")
|
|
@@ -2975,7 +2989,7 @@ function toYParitySignatureArray(transaction, signature_) {
|
|
|
2975
2989
|
return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
|
|
2976
2990
|
}
|
|
2977
2991
|
|
|
2978
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
2992
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/op-stack/contracts.js
|
|
2979
2993
|
var contracts = {
|
|
2980
2994
|
gasPriceOracle: { address: "0x420000000000000000000000000000000000000F" },
|
|
2981
2995
|
l1Block: { address: "0x4200000000000000000000000000000000000015" },
|
|
@@ -2989,7 +3003,7 @@ var contracts = {
|
|
|
2989
3003
|
}
|
|
2990
3004
|
};
|
|
2991
3005
|
|
|
2992
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3006
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/op-stack/formatters.js
|
|
2993
3007
|
init_fromHex();
|
|
2994
3008
|
var formatters = {
|
|
2995
3009
|
block: /* @__PURE__ */ defineBlock({
|
|
@@ -3036,7 +3050,7 @@ var formatters = {
|
|
|
3036
3050
|
})
|
|
3037
3051
|
};
|
|
3038
3052
|
|
|
3039
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3053
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/op-stack/serializers.js
|
|
3040
3054
|
init_address();
|
|
3041
3055
|
init_isAddress();
|
|
3042
3056
|
init_concat();
|
|
@@ -3082,7 +3096,7 @@ function assertTransactionDeposit(transaction) {
|
|
|
3082
3096
|
throw new InvalidAddressError({ address: to });
|
|
3083
3097
|
}
|
|
3084
3098
|
|
|
3085
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3099
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/op-stack/chainConfig.js
|
|
3086
3100
|
var chainConfig = {
|
|
3087
3101
|
blockTime: 2e3,
|
|
3088
3102
|
contracts,
|
|
@@ -3090,7 +3104,7 @@ var chainConfig = {
|
|
|
3090
3104
|
serializers
|
|
3091
3105
|
};
|
|
3092
3106
|
|
|
3093
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3107
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/arbitrum.js
|
|
3094
3108
|
var arbitrum = /* @__PURE__ */ defineChain({
|
|
3095
3109
|
id: 42161,
|
|
3096
3110
|
name: "Arbitrum One",
|
|
@@ -3116,7 +3130,7 @@ var arbitrum = /* @__PURE__ */ defineChain({
|
|
|
3116
3130
|
}
|
|
3117
3131
|
});
|
|
3118
3132
|
|
|
3119
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3133
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/arbitrumSepolia.js
|
|
3120
3134
|
var arbitrumSepolia = /* @__PURE__ */ defineChain({
|
|
3121
3135
|
id: 421614,
|
|
3122
3136
|
name: "Arbitrum Sepolia",
|
|
@@ -3147,7 +3161,7 @@ var arbitrumSepolia = /* @__PURE__ */ defineChain({
|
|
|
3147
3161
|
testnet: true
|
|
3148
3162
|
});
|
|
3149
3163
|
|
|
3150
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3164
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/base.js
|
|
3151
3165
|
var sourceId = 1;
|
|
3152
3166
|
var base = /* @__PURE__ */ defineChain({
|
|
3153
3167
|
...chainConfig,
|
|
@@ -3207,7 +3221,7 @@ var basePreconf = /* @__PURE__ */ defineChain({
|
|
|
3207
3221
|
}
|
|
3208
3222
|
});
|
|
3209
3223
|
|
|
3210
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3224
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/baseSepolia.js
|
|
3211
3225
|
var sourceId2 = 11155111;
|
|
3212
3226
|
var baseSepolia = /* @__PURE__ */ defineChain({
|
|
3213
3227
|
...chainConfig,
|
|
@@ -3269,10 +3283,10 @@ var baseSepoliaPreconf = /* @__PURE__ */ defineChain({
|
|
|
3269
3283
|
}
|
|
3270
3284
|
});
|
|
3271
3285
|
|
|
3272
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3286
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/linea/actions/estimateGas.js
|
|
3273
3287
|
init_parseAccount();
|
|
3274
3288
|
|
|
3275
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3289
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/account.js
|
|
3276
3290
|
init_base();
|
|
3277
3291
|
var AccountNotFoundError = class extends BaseError {
|
|
3278
3292
|
constructor({ docsPath } = {}) {
|
|
@@ -3287,7 +3301,7 @@ var AccountNotFoundError = class extends BaseError {
|
|
|
3287
3301
|
}
|
|
3288
3302
|
};
|
|
3289
3303
|
|
|
3290
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3304
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/linea/actions/estimateGas.js
|
|
3291
3305
|
init_toHex();
|
|
3292
3306
|
init_getCallError();
|
|
3293
3307
|
init_extract();
|
|
@@ -3337,7 +3351,7 @@ async function estimateGas(client, args) {
|
|
|
3337
3351
|
}
|
|
3338
3352
|
}
|
|
3339
3353
|
|
|
3340
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3354
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/linea/chainConfig.js
|
|
3341
3355
|
var chainConfig2 = {
|
|
3342
3356
|
fees: {
|
|
3343
3357
|
estimateFeesPerGas,
|
|
@@ -3375,7 +3389,7 @@ async function estimateFeesPerGas({ client, multiply, request, type }) {
|
|
|
3375
3389
|
}
|
|
3376
3390
|
}
|
|
3377
3391
|
|
|
3378
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3392
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/linea.js
|
|
3379
3393
|
var linea = /* @__PURE__ */ defineChain({
|
|
3380
3394
|
...chainConfig2,
|
|
3381
3395
|
id: 59144,
|
|
@@ -3413,7 +3427,7 @@ var linea = /* @__PURE__ */ defineChain({
|
|
|
3413
3427
|
testnet: false
|
|
3414
3428
|
});
|
|
3415
3429
|
|
|
3416
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3430
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/lineaSepolia.js
|
|
3417
3431
|
var lineaSepolia = /* @__PURE__ */ defineChain({
|
|
3418
3432
|
...chainConfig2,
|
|
3419
3433
|
id: 59141,
|
|
@@ -3450,7 +3464,7 @@ var lineaSepolia = /* @__PURE__ */ defineChain({
|
|
|
3450
3464
|
testnet: true
|
|
3451
3465
|
});
|
|
3452
3466
|
|
|
3453
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3467
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/mainnet.js
|
|
3454
3468
|
var mainnet = /* @__PURE__ */ defineChain({
|
|
3455
3469
|
id: 1,
|
|
3456
3470
|
name: "Ethereum",
|
|
@@ -3480,7 +3494,7 @@ var mainnet = /* @__PURE__ */ defineChain({
|
|
|
3480
3494
|
}
|
|
3481
3495
|
});
|
|
3482
3496
|
|
|
3483
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3497
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/optimism.js
|
|
3484
3498
|
var sourceId3 = 1;
|
|
3485
3499
|
var optimism = /* @__PURE__ */ defineChain({
|
|
3486
3500
|
...chainConfig,
|
|
@@ -3529,7 +3543,7 @@ var optimism = /* @__PURE__ */ defineChain({
|
|
|
3529
3543
|
sourceId: sourceId3
|
|
3530
3544
|
});
|
|
3531
3545
|
|
|
3532
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3546
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/optimismSepolia.js
|
|
3533
3547
|
var sourceId4 = 11155111;
|
|
3534
3548
|
var optimismSepolia = /* @__PURE__ */ defineChain({
|
|
3535
3549
|
...chainConfig,
|
|
@@ -3579,7 +3593,7 @@ var optimismSepolia = /* @__PURE__ */ defineChain({
|
|
|
3579
3593
|
sourceId: sourceId4
|
|
3580
3594
|
});
|
|
3581
3595
|
|
|
3582
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3596
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/scroll.js
|
|
3583
3597
|
var scroll = /* @__PURE__ */ defineChain({
|
|
3584
3598
|
id: 534352,
|
|
3585
3599
|
name: "Scroll",
|
|
@@ -3607,7 +3621,7 @@ var scroll = /* @__PURE__ */ defineChain({
|
|
|
3607
3621
|
testnet: false
|
|
3608
3622
|
});
|
|
3609
3623
|
|
|
3610
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3624
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/scrollSepolia.js
|
|
3611
3625
|
var scrollSepolia = /* @__PURE__ */ defineChain({
|
|
3612
3626
|
id: 534351,
|
|
3613
3627
|
name: "Scroll Sepolia",
|
|
@@ -3633,7 +3647,7 @@ var scrollSepolia = /* @__PURE__ */ defineChain({
|
|
|
3633
3647
|
testnet: true
|
|
3634
3648
|
});
|
|
3635
3649
|
|
|
3636
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
3650
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/chains/definitions/sepolia.js
|
|
3637
3651
|
var sepolia = /* @__PURE__ */ defineChain({
|
|
3638
3652
|
id: 11155111,
|
|
3639
3653
|
name: "Sepolia",
|
|
@@ -4253,7 +4267,7 @@ var chainIcons = /* @__PURE__ */ new Map([
|
|
|
4253
4267
|
[arbitrumSepolia.id, ArbitrumTestnetIcon],
|
|
4254
4268
|
[scrollSepolia.id, ScrollTestnetIcon],
|
|
4255
4269
|
// ens-test-env
|
|
4256
|
-
[import_datasources.
|
|
4270
|
+
[import_datasources.ensTestEnvChain.id, EthereumLocalIcon]
|
|
4257
4271
|
]);
|
|
4258
4272
|
function ChainIcon({ chainId, width = 20, height = 20 }) {
|
|
4259
4273
|
const Icon = chainIcons.get(chainId) || UnrecognizedChainIcon;
|
|
@@ -4263,7 +4277,7 @@ function ChainIcon({ chainId, width = 20, height = 20 }) {
|
|
|
4263
4277
|
// src/utils/chains.ts
|
|
4264
4278
|
var import_datasources2 = require("@ensnode/datasources");
|
|
4265
4279
|
var SUPPORTED_CHAINS = [
|
|
4266
|
-
import_datasources2.
|
|
4280
|
+
import_datasources2.ensTestEnvChain,
|
|
4267
4281
|
mainnet,
|
|
4268
4282
|
sepolia,
|
|
4269
4283
|
base,
|
|
@@ -4278,8 +4292,8 @@ var SUPPORTED_CHAINS = [
|
|
|
4278
4292
|
scrollSepolia
|
|
4279
4293
|
];
|
|
4280
4294
|
var CUSTOM_CHAIN_NAMES = /* @__PURE__ */ new Map([
|
|
4281
|
-
[import_datasources2.
|
|
4282
|
-
[mainnet.id, "
|
|
4295
|
+
[import_datasources2.ensTestEnvChain.id, "Ethereum Local (ens-test-env)"],
|
|
4296
|
+
[mainnet.id, "Mainnet"],
|
|
4283
4297
|
[sepolia.id, "Ethereum Sepolia"],
|
|
4284
4298
|
[base.id, "Base"],
|
|
4285
4299
|
[baseSepolia.id, "Base Sepolia"],
|
|
@@ -4335,9 +4349,6 @@ var import_date_fns3 = require("date-fns");
|
|
|
4335
4349
|
var import_constants = require("date-fns/constants");
|
|
4336
4350
|
var import_react3 = require("react");
|
|
4337
4351
|
|
|
4338
|
-
// src/components/ui/tooltip.tsx
|
|
4339
|
-
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
4340
|
-
|
|
4341
4352
|
// src/utils/cn.ts
|
|
4342
4353
|
var import_clsx = require("clsx");
|
|
4343
4354
|
var import_tailwind_merge = require("tailwind-merge");
|
|
@@ -4346,8 +4357,8 @@ function cn(...inputs) {
|
|
|
4346
4357
|
}
|
|
4347
4358
|
|
|
4348
4359
|
// src/components/ui/tooltip.tsx
|
|
4360
|
+
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
4349
4361
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
4350
|
-
var TooltipArrow = TooltipPrimitive.Arrow;
|
|
4351
4362
|
function TooltipProvider({
|
|
4352
4363
|
delayDuration = 0,
|
|
4353
4364
|
...props
|
|
@@ -4474,8 +4485,7 @@ function RelativeTime({
|
|
|
4474
4485
|
}
|
|
4475
4486
|
),
|
|
4476
4487
|
" ",
|
|
4477
|
-
"(UTC)"
|
|
4478
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(TooltipArrow, { width: 12, height: 8 })
|
|
4488
|
+
"(UTC)"
|
|
4479
4489
|
]
|
|
4480
4490
|
}
|
|
4481
4491
|
)
|
|
@@ -5190,10 +5200,10 @@ var InfoIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
|
5190
5200
|
}
|
|
5191
5201
|
);
|
|
5192
5202
|
|
|
5193
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
5203
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/address.js
|
|
5194
5204
|
var zeroAddress = "0x0000000000000000000000000000000000000000";
|
|
5195
5205
|
|
|
5196
|
-
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@3.
|
|
5206
|
+
// ../../node_modules/.pnpm/viem@2.38.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/index.js
|
|
5197
5207
|
init_getAddress();
|
|
5198
5208
|
|
|
5199
5209
|
// src/components/identity/Address.tsx
|
|
@@ -5208,6 +5218,21 @@ function AddressDisplay({ address, className }) {
|
|
|
5208
5218
|
var import_boring_avatars = __toESM(require("boring-avatars"), 1);
|
|
5209
5219
|
var React3 = __toESM(require("react"), 1);
|
|
5210
5220
|
|
|
5221
|
+
// src/utils/ensMetadata.ts
|
|
5222
|
+
var import_ensnode_sdk = require("@ensnode/ensnode-sdk");
|
|
5223
|
+
function getEnsMetadataServiceAvatarUrl(name, namespaceId) {
|
|
5224
|
+
switch (namespaceId) {
|
|
5225
|
+
case import_ensnode_sdk.ENSNamespaceIds.Mainnet:
|
|
5226
|
+
return new URL(name, `https://metadata.ens.domains/mainnet/avatar/`);
|
|
5227
|
+
case import_ensnode_sdk.ENSNamespaceIds.Sepolia:
|
|
5228
|
+
return new URL(name, `https://metadata.ens.domains/sepolia/avatar/`);
|
|
5229
|
+
case import_ensnode_sdk.ENSNamespaceIds.SepoliaV2:
|
|
5230
|
+
return null;
|
|
5231
|
+
case import_ensnode_sdk.ENSNamespaceIds.EnsTestEnv:
|
|
5232
|
+
return null;
|
|
5233
|
+
}
|
|
5234
|
+
}
|
|
5235
|
+
|
|
5211
5236
|
// src/components/ui/avatar.tsx
|
|
5212
5237
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
5213
5238
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
@@ -5235,19 +5260,6 @@ function AvatarImage({ className, ...props }) {
|
|
|
5235
5260
|
);
|
|
5236
5261
|
}
|
|
5237
5262
|
|
|
5238
|
-
// src/utils/ensMetadata.ts
|
|
5239
|
-
var import_ensnode_sdk = require("@ensnode/ensnode-sdk");
|
|
5240
|
-
function getEnsMetadataServiceAvatarUrl(name, namespaceId) {
|
|
5241
|
-
switch (namespaceId) {
|
|
5242
|
-
case import_ensnode_sdk.ENSNamespaceIds.Mainnet:
|
|
5243
|
-
return new URL(name, `https://metadata.ens.domains/mainnet/avatar/`);
|
|
5244
|
-
case import_ensnode_sdk.ENSNamespaceIds.Sepolia:
|
|
5245
|
-
return new URL(name, `https://metadata.ens.domains/sepolia/avatar/`);
|
|
5246
|
-
case import_ensnode_sdk.ENSNamespaceIds.EnsTestEnv:
|
|
5247
|
-
return null;
|
|
5248
|
-
}
|
|
5249
|
-
}
|
|
5250
|
-
|
|
5251
5263
|
// src/components/identity/EnsAvatar.tsx
|
|
5252
5264
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5253
5265
|
var EnsAvatar = ({ name, namespaceId, className, isSquare = false }) => {
|
|
@@ -5268,7 +5280,7 @@ var EnsAvatar = ({ name, namespaceId, className, isSquare = false }) => {
|
|
|
5268
5280
|
}
|
|
5269
5281
|
),
|
|
5270
5282
|
loadingStatus === "error" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(EnsAvatarFallback, { name, isSquare }),
|
|
5271
|
-
(loadingStatus === "idle" || loadingStatus === "loading") && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AvatarLoading, {
|
|
5283
|
+
(loadingStatus === "idle" || loadingStatus === "loading") && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(AvatarLoading, { isSquare })
|
|
5272
5284
|
] });
|
|
5273
5285
|
};
|
|
5274
5286
|
var avatarFallbackColors = ["#000000", "#bedbff", "#5191c1", "#1e6495", "#0a4b75"];
|
|
@@ -5282,19 +5294,68 @@ var EnsAvatarFallback = ({ name, isSquare }) => /* @__PURE__ */ (0, import_jsx_r
|
|
|
5282
5294
|
square: isSquare
|
|
5283
5295
|
}
|
|
5284
5296
|
);
|
|
5285
|
-
var AvatarLoading = ({
|
|
5297
|
+
var AvatarLoading = ({ isSquare }) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5286
5298
|
"div",
|
|
5287
5299
|
{
|
|
5288
5300
|
className: cn(
|
|
5289
|
-
"nhui:h-full nhui:w-full nhui:
|
|
5290
|
-
|
|
5301
|
+
"nhui:h-full nhui:w-full nhui:animate-pulse nhui:bg-gray-200",
|
|
5302
|
+
!isSquare && "nhui:rounded-full"
|
|
5291
5303
|
)
|
|
5292
5304
|
}
|
|
5293
5305
|
);
|
|
5294
5306
|
|
|
5295
5307
|
// src/components/identity/Identity.tsx
|
|
5308
|
+
var import_lucide_react = require("lucide-react");
|
|
5296
5309
|
var import_ensnode_sdk3 = require("@ensnode/ensnode-sdk");
|
|
5297
5310
|
|
|
5311
|
+
// src/utils/blockExplorers.ts
|
|
5312
|
+
var getBlockExplorerUrl = (chainId) => {
|
|
5313
|
+
const chain = SUPPORTED_CHAINS.find((chain2) => chain2.id === chainId);
|
|
5314
|
+
if (!chain) return null;
|
|
5315
|
+
if (!chain.blockExplorers) return null;
|
|
5316
|
+
return new URL(chain.blockExplorers.default.url);
|
|
5317
|
+
};
|
|
5318
|
+
var getBlockExplorerAddressDetailsUrl = (chainId, address) => {
|
|
5319
|
+
const chainBlockExplorer = getBlockExplorerUrl(chainId);
|
|
5320
|
+
if (!chainBlockExplorer) return null;
|
|
5321
|
+
return new URL(`address/${address}`, chainBlockExplorer.toString());
|
|
5322
|
+
};
|
|
5323
|
+
var getBlockExplorerTransactionDetailsUrl = (chainId, transactionHash) => {
|
|
5324
|
+
const chainBlockExplorer = getBlockExplorerUrl(chainId);
|
|
5325
|
+
if (!chainBlockExplorer) return null;
|
|
5326
|
+
return new URL(`tx/${transactionHash}`, chainBlockExplorer.toString());
|
|
5327
|
+
};
|
|
5328
|
+
var getBlockExplorerBlockUrl = (chainId, blockNumber) => {
|
|
5329
|
+
const chainBlockExplorer = getBlockExplorerUrl(chainId);
|
|
5330
|
+
if (!chainBlockExplorer) return null;
|
|
5331
|
+
return new URL(`block/${blockNumber}`, chainBlockExplorer.toString());
|
|
5332
|
+
};
|
|
5333
|
+
|
|
5334
|
+
// src/utils/ensManager.ts
|
|
5335
|
+
var import_ensnode_sdk2 = require("@ensnode/ensnode-sdk");
|
|
5336
|
+
function getEnsManagerUrl(namespaceId) {
|
|
5337
|
+
switch (namespaceId) {
|
|
5338
|
+
case import_ensnode_sdk2.ENSNamespaceIds.Mainnet:
|
|
5339
|
+
return new URL(`https://app.ens.domains/`);
|
|
5340
|
+
case import_ensnode_sdk2.ENSNamespaceIds.Sepolia:
|
|
5341
|
+
return new URL(`https://sepolia.app.ens.domains/`);
|
|
5342
|
+
case import_ensnode_sdk2.ENSNamespaceIds.SepoliaV2:
|
|
5343
|
+
return null;
|
|
5344
|
+
case import_ensnode_sdk2.ENSNamespaceIds.EnsTestEnv:
|
|
5345
|
+
return null;
|
|
5346
|
+
}
|
|
5347
|
+
}
|
|
5348
|
+
function getEnsManagerNameDetailsUrl(name, namespaceId) {
|
|
5349
|
+
const baseUrl = getEnsManagerUrl(namespaceId);
|
|
5350
|
+
if (!baseUrl) return null;
|
|
5351
|
+
return new URL(name, baseUrl);
|
|
5352
|
+
}
|
|
5353
|
+
function getEnsManagerAddressDetailsUrl(address, namespaceId) {
|
|
5354
|
+
const baseUrl = getEnsManagerUrl(namespaceId);
|
|
5355
|
+
if (!baseUrl) return null;
|
|
5356
|
+
return new URL(address, baseUrl);
|
|
5357
|
+
}
|
|
5358
|
+
|
|
5298
5359
|
// src/components/special-buttons/CopyButton.tsx
|
|
5299
5360
|
var React4 = __toESM(require("react"), 1);
|
|
5300
5361
|
var import_sonner = require("sonner");
|
|
@@ -5398,7 +5459,7 @@ function CopyButton({
|
|
|
5398
5459
|
type: "button",
|
|
5399
5460
|
onClick: copyToClipboard,
|
|
5400
5461
|
disabled: isCopying,
|
|
5401
|
-
className: cn(className),
|
|
5462
|
+
className: cn("nhui:cursor-pointer", className),
|
|
5402
5463
|
...props,
|
|
5403
5464
|
children: [
|
|
5404
5465
|
hasCopied ? successIcon ? successIcon : "Copied" : icon ? icon : "Copy",
|
|
@@ -5408,42 +5469,6 @@ function CopyButton({
|
|
|
5408
5469
|
);
|
|
5409
5470
|
}
|
|
5410
5471
|
|
|
5411
|
-
// src/utils/blockExplorers.ts
|
|
5412
|
-
var getBlockExplorerUrl = (chainId) => {
|
|
5413
|
-
const chain = SUPPORTED_CHAINS.find((chain2) => chain2.id === chainId);
|
|
5414
|
-
if (!chain) return null;
|
|
5415
|
-
if (!chain.blockExplorers) return null;
|
|
5416
|
-
return new URL(chain.blockExplorers.default.url);
|
|
5417
|
-
};
|
|
5418
|
-
var getBlockExplorerAddressDetailsUrl = (chainId, address) => {
|
|
5419
|
-
const chainBlockExplorer = getBlockExplorerUrl(chainId);
|
|
5420
|
-
if (!chainBlockExplorer) return null;
|
|
5421
|
-
return new URL(`address/${address}`, chainBlockExplorer.toString());
|
|
5422
|
-
};
|
|
5423
|
-
var getBlockExplorerTransactionDetailsUrl = (chainId, transactionHash) => {
|
|
5424
|
-
const chainBlockExplorer = getBlockExplorerUrl(chainId);
|
|
5425
|
-
if (!chainBlockExplorer) return null;
|
|
5426
|
-
return new URL(`tx/${transactionHash}`, chainBlockExplorer.toString());
|
|
5427
|
-
};
|
|
5428
|
-
|
|
5429
|
-
// src/utils/ensManager.ts
|
|
5430
|
-
var import_ensnode_sdk2 = require("@ensnode/ensnode-sdk");
|
|
5431
|
-
function getEnsManagerUrl(namespaceId) {
|
|
5432
|
-
switch (namespaceId) {
|
|
5433
|
-
case import_ensnode_sdk2.ENSNamespaceIds.Mainnet:
|
|
5434
|
-
return new URL(`https://app.ens.domains/`);
|
|
5435
|
-
case import_ensnode_sdk2.ENSNamespaceIds.Sepolia:
|
|
5436
|
-
return new URL(`https://sepolia.app.ens.domains/`);
|
|
5437
|
-
case import_ensnode_sdk2.ENSNamespaceIds.EnsTestEnv:
|
|
5438
|
-
return null;
|
|
5439
|
-
}
|
|
5440
|
-
}
|
|
5441
|
-
function getEnsManagerAddressDetailsUrl(address, namespaceId) {
|
|
5442
|
-
const baseUrl = getEnsManagerUrl(namespaceId);
|
|
5443
|
-
if (!baseUrl) return null;
|
|
5444
|
-
return new URL(address, baseUrl);
|
|
5445
|
-
}
|
|
5446
|
-
|
|
5447
5472
|
// src/components/identity/Identity.tsx
|
|
5448
5473
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
5449
5474
|
function IdentityLink({
|
|
@@ -5451,6 +5476,9 @@ function IdentityLink({
|
|
|
5451
5476
|
className,
|
|
5452
5477
|
children
|
|
5453
5478
|
}) {
|
|
5479
|
+
if (linkDetails.link === null) {
|
|
5480
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_jsx_runtime37.Fragment, { children });
|
|
5481
|
+
}
|
|
5454
5482
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
5455
5483
|
"a",
|
|
5456
5484
|
{
|
|
@@ -5495,7 +5523,7 @@ var IdentityTooltip = ({
|
|
|
5495
5523
|
TooltipContent,
|
|
5496
5524
|
{
|
|
5497
5525
|
side: "top",
|
|
5498
|
-
className: "nhui:bg-gray-50 nhui:text-sm nhui:text-black nhui:text-left nhui:shadow-md nhui:outline-hidden nhui:w-fit",
|
|
5526
|
+
className: "nhui:bg-gray-50 nhui:text-sm nhui:text-black nhui:text-left nhui:shadow-md nhui:outline-hidden nhui:w-fit [&_svg]:fill-gray-50 [&_svg]:bg-gray-50",
|
|
5499
5527
|
children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "nhui:flex nhui:gap-4", children: [
|
|
5500
5528
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "nhui:flex nhui:items-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
5501
5529
|
ChainIcon,
|
|
@@ -5515,7 +5543,10 @@ var IdentityTooltip = ({
|
|
|
5515
5543
|
CopyButton,
|
|
5516
5544
|
{
|
|
5517
5545
|
value: identity.address,
|
|
5518
|
-
className: "nhui:text-gray-500 nhui:hover:text-gray-700 nhui:transition-colors"
|
|
5546
|
+
className: "nhui:text-gray-500 nhui:hover:text-gray-700 nhui:transition-colors",
|
|
5547
|
+
successIcon: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react.CheckIcon, { className: "nhui:h-4 nhui:w-4", style: { fill: "none" } }),
|
|
5548
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react.CopyIcon, { className: "nhui:h-4 nhui:w-4", style: { fill: "none" } }),
|
|
5549
|
+
showToast: true
|
|
5519
5550
|
}
|
|
5520
5551
|
),
|
|
5521
5552
|
chainExplorerUrl && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("a", { target: "_blank", href: chainExplorerUrl.toString(), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
@@ -5553,6 +5584,23 @@ function NameDisplay({ name, className = "nhui:font-medium" }) {
|
|
|
5553
5584
|
var import_ensnode_react = require("@ensnode/ensnode-react");
|
|
5554
5585
|
var import_ensnode_sdk5 = require("@ensnode/ensnode-sdk");
|
|
5555
5586
|
|
|
5587
|
+
// src/hooks/useIsMobile.tsx
|
|
5588
|
+
var React5 = __toESM(require("react"), 1);
|
|
5589
|
+
var MOBILE_BREAKPOINT = 640;
|
|
5590
|
+
function useIsMobile(breakpoint = MOBILE_BREAKPOINT) {
|
|
5591
|
+
const [isMobile, setIsMobile] = React5.useState(void 0);
|
|
5592
|
+
React5.useEffect(() => {
|
|
5593
|
+
const mql = window.matchMedia(`(max-width: ${breakpoint - 1}px)`);
|
|
5594
|
+
const onChange = () => {
|
|
5595
|
+
setIsMobile(window.innerWidth < breakpoint);
|
|
5596
|
+
};
|
|
5597
|
+
mql.addEventListener("change", onChange);
|
|
5598
|
+
setIsMobile(window.innerWidth < breakpoint);
|
|
5599
|
+
return () => mql.removeEventListener("change", onChange);
|
|
5600
|
+
}, [breakpoint]);
|
|
5601
|
+
return !!isMobile;
|
|
5602
|
+
}
|
|
5603
|
+
|
|
5556
5604
|
// src/components/ui/skeleton.tsx
|
|
5557
5605
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
5558
5606
|
function Skeleton({ className, ...props }) {
|
|
@@ -5566,23 +5614,6 @@ function Skeleton({ className, ...props }) {
|
|
|
5566
5614
|
);
|
|
5567
5615
|
}
|
|
5568
5616
|
|
|
5569
|
-
// src/hooks/useIsMobile.tsx
|
|
5570
|
-
var React5 = __toESM(require("react"), 1);
|
|
5571
|
-
var MOBILE_BREAKPOINT = 640;
|
|
5572
|
-
function useIsMobile() {
|
|
5573
|
-
const [isMobile, setIsMobile] = React5.useState(void 0);
|
|
5574
|
-
React5.useEffect(() => {
|
|
5575
|
-
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
5576
|
-
const onChange = () => {
|
|
5577
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
5578
|
-
};
|
|
5579
|
-
mql.addEventListener("change", onChange);
|
|
5580
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
5581
|
-
return () => mql.removeEventListener("change", onChange);
|
|
5582
|
-
}, []);
|
|
5583
|
-
return !!isMobile;
|
|
5584
|
-
}
|
|
5585
|
-
|
|
5586
5617
|
// src/components/identity/ResolveAndDisplayIdentity.tsx
|
|
5587
5618
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
5588
5619
|
function ResolveAndDisplayIdentity({
|
|
@@ -5718,11 +5749,15 @@ function DisplayIdentity({
|
|
|
5718
5749
|
}
|
|
5719
5750
|
|
|
5720
5751
|
// src/components/registrar-actions/RegistrarActionCard.tsx
|
|
5721
|
-
var
|
|
5752
|
+
var import_lucide_react2 = require("lucide-react");
|
|
5722
5753
|
var import_react4 = require("react");
|
|
5723
5754
|
var import_ensnode_sdk6 = require("@ensnode/ensnode-sdk");
|
|
5724
5755
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
5725
|
-
function LabeledField({
|
|
5756
|
+
function LabeledField({
|
|
5757
|
+
fieldLabel,
|
|
5758
|
+
className,
|
|
5759
|
+
children
|
|
5760
|
+
}) {
|
|
5726
5761
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
5727
5762
|
"div",
|
|
5728
5763
|
{
|
|
@@ -5743,7 +5778,7 @@ function ResolveAndDisplayReferrerIdentity({
|
|
|
5743
5778
|
referral,
|
|
5744
5779
|
accelerate = true,
|
|
5745
5780
|
withLink = true,
|
|
5746
|
-
|
|
5781
|
+
referrerLinkData,
|
|
5747
5782
|
withTooltip = true,
|
|
5748
5783
|
withAvatar = false,
|
|
5749
5784
|
withIdentifier = true,
|
|
@@ -5761,19 +5796,19 @@ function ResolveAndDisplayReferrerIdentity({
|
|
|
5761
5796
|
className2,
|
|
5762
5797
|
!withAvatar && "nhui:hidden"
|
|
5763
5798
|
),
|
|
5764
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
5799
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react2.CircleQuestionMark, { size: iconSize, className: "nhui:text-gray-400" })
|
|
5765
5800
|
}
|
|
5766
5801
|
);
|
|
5767
5802
|
return withAvatar && !withIdentifier ? unknownAvatarPlaceholder("nhui:w-10 nhui:h-10", 24) : /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "nhui:h-[21px] nhui:inline-flex nhui:items-center nhui:gap-2 nhui:font-medium", children: [
|
|
5768
5803
|
unknownAvatarPlaceholder("nhui:w-5 nhui:h-5", 16),
|
|
5769
5804
|
"Unknown",
|
|
5770
5805
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(Tooltip, { delayDuration: 250, children: [
|
|
5771
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TooltipTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
5806
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(TooltipTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react2.Info, { size: 16, className: "nhui:shrink-0 nhui:fill-neutral-300 nhui:text-white" }) }),
|
|
5772
5807
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
5773
5808
|
TooltipContent,
|
|
5774
5809
|
{
|
|
5775
5810
|
side: "top",
|
|
5776
|
-
className: "nhui:bg-gray-50 nhui:text-sm nhui:text-black nhui:text-left nhui:shadow-md nhui:outline-hidden nhui:w-fit",
|
|
5811
|
+
className: "nhui:bg-gray-50 nhui:text-sm nhui:text-black nhui:text-left nhui:shadow-md nhui:outline-hidden nhui:w-fit [&_svg]:fill-gray-50 [&_svg]:bg-gray-50",
|
|
5777
5812
|
children: [
|
|
5778
5813
|
"Encoded referrer",
|
|
5779
5814
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("code", { className: "nhui:block", children: referral.encodedReferrer }),
|
|
@@ -5796,12 +5831,16 @@ function ResolveAndDisplayReferrerIdentity({
|
|
|
5796
5831
|
withIdentifier,
|
|
5797
5832
|
className,
|
|
5798
5833
|
withLink,
|
|
5799
|
-
identityLinkDetails
|
|
5834
|
+
identityLinkDetails: {
|
|
5835
|
+
isExternal: referrerLinkData.isExternal,
|
|
5836
|
+
link: referrerLinkData.getLink(referrerIdentity.address, namespaceId)
|
|
5837
|
+
}
|
|
5800
5838
|
}
|
|
5801
5839
|
);
|
|
5802
5840
|
}
|
|
5803
5841
|
function RegistrarActionCardLoading({
|
|
5804
|
-
showReferrer = true
|
|
5842
|
+
showReferrer = true,
|
|
5843
|
+
showReferralProgramField = true
|
|
5805
5844
|
}) {
|
|
5806
5845
|
const isMobile = useIsMobile();
|
|
5807
5846
|
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
|
|
@@ -5826,7 +5865,7 @@ function RegistrarActionCardLoading({
|
|
|
5826
5865
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "nhui:animate-pulse nhui:h-[14px] nhui:mt-[4px] nhui:mb-[3px] nhui:bg-gray-200 nhui:rounded-sm nhui:w-1/4 nhui:sm:w-3/5" })
|
|
5827
5866
|
] }) })
|
|
5828
5867
|
] }),
|
|
5829
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(LabeledField, { fieldLabel: "Incentive program", className: "nhui:w-[15%] nhui:min-w-[162px]", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "nhui:animate-pulse nhui:h-[14px] nhui:mt-[4px] nhui:mb-[3px] nhui:bg-gray-200 nhui:rounded-sm nhui:w-1/4 nhui:sm:w-4/5" }) })
|
|
5868
|
+
showReferralProgramField && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(LabeledField, { fieldLabel: "Incentive program", className: "nhui:w-[15%] nhui:min-w-[162px]", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "nhui:animate-pulse nhui:h-[14px] nhui:mt-[4px] nhui:mb-[3px] nhui:bg-gray-200 nhui:rounded-sm nhui:w-1/4 nhui:sm:w-4/5" }) })
|
|
5830
5869
|
]
|
|
5831
5870
|
}
|
|
5832
5871
|
);
|
|
@@ -5836,6 +5875,10 @@ function RegistrarActionCard({
|
|
|
5836
5875
|
namedRegistrarAction,
|
|
5837
5876
|
now,
|
|
5838
5877
|
links,
|
|
5878
|
+
showIdentityTooltips = {
|
|
5879
|
+
registrant: false,
|
|
5880
|
+
referrer: false
|
|
5881
|
+
},
|
|
5839
5882
|
showReferrer = true,
|
|
5840
5883
|
referralProgramField
|
|
5841
5884
|
}) {
|
|
@@ -5861,15 +5904,15 @@ function RegistrarActionCard({
|
|
|
5861
5904
|
{
|
|
5862
5905
|
className: "nhui:w-full nhui:min-h-[80px] nhui:box-border nhui:flex nhui:flex-col nhui:sm:flex-row nhui:flex-wrap nhui:justify-start nhui:sm:justify-between\n nhui:items-start nhui:gap-2 nhui:p-4 nhui:sm:p-6 nhui:sm:gap-y-5 nhui:rounded-2xl nhui:border nhui:border-gray-200 nhui:text-sm nhui:bg-white",
|
|
5863
5906
|
children: [
|
|
5864
|
-
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(LabeledField, { fieldLabel: "Name", className: "nhui:w-[15%] nhui:min-w-[162px]", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
5907
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(LabeledField, { fieldLabel: "Name", className: "nhui:w-[15%] nhui:min-w-[162px]", children: links.name.link !== null ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
5865
5908
|
"a",
|
|
5866
5909
|
{
|
|
5867
|
-
target: "_blank",
|
|
5910
|
+
target: links.name.isExternal ? "_blank" : "_self",
|
|
5868
5911
|
href: links.name.link.href,
|
|
5869
5912
|
className: "nhui:max-sm:max-w-3/4 nhui:sm:w-full nhui:box-border nhui:overflow-x-auto nhui:text-blue-600 nhui:font-medium nhui:hover:underline nhui:hover:underline-offset-[25%] nhui:whitespace-nowrap",
|
|
5870
5913
|
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(NameDisplay, { name: namedRegistrarAction.name, className: "nhui:h-[21px]" })
|
|
5871
5914
|
}
|
|
5872
|
-
) }),
|
|
5915
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "nhui:max-sm:max-w-3/4 nhui:sm:w-full nhui:box-border nhui:overflow-x-auto nhui:font-medium nhui:whitespace-nowrap", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(NameDisplay, { name: namedRegistrarAction.name, className: "nhui:h-[21px]" }) }) }),
|
|
5873
5916
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
5874
5917
|
LabeledField,
|
|
5875
5918
|
{
|
|
@@ -5895,7 +5938,7 @@ function RegistrarActionCard({
|
|
|
5895
5938
|
identity: registrantIdentity,
|
|
5896
5939
|
namespaceId,
|
|
5897
5940
|
withAvatar: true,
|
|
5898
|
-
withTooltip:
|
|
5941
|
+
withTooltip: showIdentityTooltips.registrant,
|
|
5899
5942
|
withIdentifier: false,
|
|
5900
5943
|
identityLinkDetails: links.registrant
|
|
5901
5944
|
}
|
|
@@ -5906,7 +5949,7 @@ function RegistrarActionCard({
|
|
|
5906
5949
|
identity: registrantIdentity,
|
|
5907
5950
|
namespaceId,
|
|
5908
5951
|
withAvatar: isMobile,
|
|
5909
|
-
withTooltip:
|
|
5952
|
+
withTooltip: showIdentityTooltips.registrant,
|
|
5910
5953
|
className: "nhui:font-medium nhui:sm:max-[1220px]:max-w-[110px] nhui:min-[1220px]:max-w-[140px]",
|
|
5911
5954
|
identityLinkDetails: links.registrant
|
|
5912
5955
|
}
|
|
@@ -5921,8 +5964,8 @@ function RegistrarActionCard({
|
|
|
5921
5964
|
referral,
|
|
5922
5965
|
withAvatar: true,
|
|
5923
5966
|
withIdentifier: false,
|
|
5924
|
-
withTooltip:
|
|
5925
|
-
|
|
5967
|
+
withTooltip: showIdentityTooltips.referrer,
|
|
5968
|
+
referrerLinkData: links.referrer
|
|
5926
5969
|
}
|
|
5927
5970
|
),
|
|
5928
5971
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(LabeledField, { fieldLabel: "Referrer", className: "nhui:w-[15%] nhui:min-w-[110px]", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
@@ -5933,8 +5976,8 @@ function RegistrarActionCard({
|
|
|
5933
5976
|
referral,
|
|
5934
5977
|
withAvatar: isMobile,
|
|
5935
5978
|
withIdentifier: true,
|
|
5936
|
-
withTooltip:
|
|
5937
|
-
|
|
5979
|
+
withTooltip: showIdentityTooltips.referrer,
|
|
5980
|
+
referrerLinkData: links.referrer
|
|
5938
5981
|
}
|
|
5939
5982
|
) })
|
|
5940
5983
|
] }),
|
|
@@ -5944,6 +5987,118 @@ function RegistrarActionCard({
|
|
|
5944
5987
|
);
|
|
5945
5988
|
}
|
|
5946
5989
|
var RegistrarActionCardMemo = (0, import_react4.memo)(RegistrarActionCard);
|
|
5990
|
+
|
|
5991
|
+
// src/hooks/useNow.ts
|
|
5992
|
+
var import_react6 = require("react");
|
|
5993
|
+
|
|
5994
|
+
// src/hooks/useSystemClock.ts
|
|
5995
|
+
var import_date_fns4 = require("date-fns");
|
|
5996
|
+
var import_react5 = require("react");
|
|
5997
|
+
|
|
5998
|
+
// src/utils/syncedClock.ts
|
|
5999
|
+
var DEFAULT_TICK_RATE = 16;
|
|
6000
|
+
var HighResolutionSyncedClock = class {
|
|
6001
|
+
#listeners = /* @__PURE__ */ new Set();
|
|
6002
|
+
#currentTime = Date.now();
|
|
6003
|
+
#timerId = null;
|
|
6004
|
+
/**
|
|
6005
|
+
* Tick rate frequency in milliseconds.
|
|
6006
|
+
*/
|
|
6007
|
+
#tickRate;
|
|
6008
|
+
/**
|
|
6009
|
+
* Clock's tick handler.
|
|
6010
|
+
*
|
|
6011
|
+
* Runs at `tickRate` frequency, and notifies all listeners about
|
|
6012
|
+
* the current time updates.
|
|
6013
|
+
*/
|
|
6014
|
+
#tick = () => {
|
|
6015
|
+
this.#currentTime = Date.now();
|
|
6016
|
+
this.#listeners.forEach((listener) => listener());
|
|
6017
|
+
this.#timerId = setTimeout(this.#tick, this.#tickRate);
|
|
6018
|
+
};
|
|
6019
|
+
/**
|
|
6020
|
+
* Starts the clock.
|
|
6021
|
+
*/
|
|
6022
|
+
start = () => {
|
|
6023
|
+
if (this.#timerId === null) {
|
|
6024
|
+
this.#currentTime = Date.now();
|
|
6025
|
+
this.#timerId = setTimeout(this.#tick, this.#tickRate);
|
|
6026
|
+
}
|
|
6027
|
+
};
|
|
6028
|
+
/**
|
|
6029
|
+
* Stops the clock.
|
|
6030
|
+
*/
|
|
6031
|
+
stop = () => {
|
|
6032
|
+
if (this.#timerId !== null) {
|
|
6033
|
+
clearTimeout(this.#timerId);
|
|
6034
|
+
this.#timerId = null;
|
|
6035
|
+
}
|
|
6036
|
+
};
|
|
6037
|
+
constructor(tickRate = DEFAULT_TICK_RATE) {
|
|
6038
|
+
this.#tickRate = tickRate;
|
|
6039
|
+
}
|
|
6040
|
+
/**
|
|
6041
|
+
* Adds a new listener to all listeners tracking the synced clock.
|
|
6042
|
+
*
|
|
6043
|
+
* Starts the clock (or restarts it, which is a noop) if there's at
|
|
6044
|
+
* least one listener.
|
|
6045
|
+
*
|
|
6046
|
+
* @param callback to notify the listener about clock updates.
|
|
6047
|
+
*/
|
|
6048
|
+
addListener(callback) {
|
|
6049
|
+
this.#listeners.add(callback);
|
|
6050
|
+
if (this.#listeners.size > 0) {
|
|
6051
|
+
this.start();
|
|
6052
|
+
}
|
|
6053
|
+
}
|
|
6054
|
+
/**
|
|
6055
|
+
* Removes a listener from all listeners tracking the synced clock.
|
|
6056
|
+
*
|
|
6057
|
+
* Stops the clock if there's no listener.
|
|
6058
|
+
*
|
|
6059
|
+
* @param callback to notify the listener about clock updates.
|
|
6060
|
+
*/
|
|
6061
|
+
removeListener(callback) {
|
|
6062
|
+
this.#listeners.delete(callback);
|
|
6063
|
+
if (this.#listeners.size === 0) {
|
|
6064
|
+
this.stop();
|
|
6065
|
+
}
|
|
6066
|
+
}
|
|
6067
|
+
get currentTime() {
|
|
6068
|
+
return this.#currentTime;
|
|
6069
|
+
}
|
|
6070
|
+
};
|
|
6071
|
+
|
|
6072
|
+
// src/utils/systemClock.ts
|
|
6073
|
+
var systemClock = new HighResolutionSyncedClock();
|
|
6074
|
+
|
|
6075
|
+
// src/hooks/useSystemClock.ts
|
|
6076
|
+
function useSystemClock() {
|
|
6077
|
+
const subscribe = (callback) => {
|
|
6078
|
+
systemClock.addListener(callback);
|
|
6079
|
+
return () => {
|
|
6080
|
+
systemClock.removeListener(callback);
|
|
6081
|
+
};
|
|
6082
|
+
};
|
|
6083
|
+
const getSnapshot = () => (0, import_date_fns4.getUnixTime)(new Date(systemClock.currentTime));
|
|
6084
|
+
const getServerSnapshot = () => (0, import_date_fns4.getUnixTime)(/* @__PURE__ */ new Date());
|
|
6085
|
+
const syncedSystemClock = (0, import_react5.useSyncExternalStore)(subscribe, getSnapshot, getServerSnapshot);
|
|
6086
|
+
return syncedSystemClock ?? getSnapshot();
|
|
6087
|
+
}
|
|
6088
|
+
|
|
6089
|
+
// src/hooks/useNow.ts
|
|
6090
|
+
var DEFAULT_TIME_TO_REFRESH = 1;
|
|
6091
|
+
function useNow(props) {
|
|
6092
|
+
const clock = useSystemClock();
|
|
6093
|
+
const [throttledClock, setThrottledClock] = (0, import_react6.useState)(clock);
|
|
6094
|
+
const { timeToRefresh = DEFAULT_TIME_TO_REFRESH } = props || {};
|
|
6095
|
+
(0, import_react6.useEffect)(() => {
|
|
6096
|
+
if (clock - throttledClock >= timeToRefresh) {
|
|
6097
|
+
setThrottledClock(clock);
|
|
6098
|
+
}
|
|
6099
|
+
}, [timeToRefresh, clock, throttledClock]);
|
|
6100
|
+
return throttledClock;
|
|
6101
|
+
}
|
|
5947
6102
|
/*! Bundled license information:
|
|
5948
6103
|
|
|
5949
6104
|
@noble/hashes/esm/utils.js:
|