@seedprotocol/eas 0.7.4-next.784.g879c6a3 → 0.7.4

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.js CHANGED
@@ -2456,27 +2456,27 @@ function v(e) {
2456
2456
  }
2457
2457
  //#endregion
2458
2458
  //#region src/queries.ts
2459
- var y = v("\n query GetSchemas($where: SchemaWhereInput!) {\n schemas: schemata(where: $where) {\n id\n schema\n schemaNames {\n name\n }\n }\n }\n"), me = v("\n query GetSchemaByName($where: SchemaWhereInput!) {\n schemas: schemata(where: $where) {\n id\n schema\n schemaNames {\n name\n }\n }\n }\n"), b = v("\n query GetSeeds($where: AttestationWhereInput!, $take: Int, $skip: Int) {\n itemSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }], take: $take, skip: $skip) {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n revocationTime\n schemaId\n timeCreated\n isOffchain\n }\n }\n"), x = v("\n query GetSeedsLean($where: AttestationWhereInput!, $take: Int, $skip: Int) {\n itemSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }], take: $take, skip: $skip) {\n id\n decodedDataJson\n attester\n refUID\n revoked\n revocationTime\n schemaId\n timeCreated\n isOffchain\n }\n }\n"), he = v("\n query GetDomainOwnerships($where: AttestationWhereInput!) {\n domainOwnerships: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n decodedDataJson\n attester\n recipient\n refUID\n revoked\n revocationTime\n expirationTime\n schemaId\n timeCreated\n }\n }\n"), ge = v("\n query GetSeedIds($where: AttestationWhereInput!) {\n itemSeedIds: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n }\n }\n"), _e = v("\n query GetStorageTransactionId($where: AttestationWhereInput!) {\n storageTransactionId: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n id\n decodedDataJson\n }\n }\n"), S = v("\n query GetVersions($where: AttestationWhereInput!) {\n itemVersions: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"), ve = v("\n query GetProperties($where: AttestationWhereInput!) {\n itemProperties: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"), ye = v("\n query GetAllPropertiesForAllVersions($where: AttestationWhereInput!) {\n allProperties: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"), be = v("\n query GetFilesMetadata($where: AttestationWhereInput!) {\n filesMetadata: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"), xe = v("\n query GetImageSeeds($where: AttestationWhereInput!) {\n imageSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n schemaId\n txid\n timeCreated\n time\n isOffchain\n }\n }\n"), Se = v("\n query GetImageVersions($where: AttestationWhereInput!) {\n imageVersions: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"), C = v("\n query GetAttestationChanges($where: AttestationWhereInput!) {\n changes: attestations(where: $where) {\n id\n refUID\n timeCreated\n revocationTime\n }\n }\n"), Ce = async ({ seedUids: e, excludeRevoked: t = !0 }) => {
2459
+ var y = v("\n query GetSchemas($where: SchemaWhereInput!) {\n schemas: schemata(where: $where) {\n id\n schema\n schemaNames {\n name\n }\n }\n }\n"), me = v("\n query GetSchemaByName($where: SchemaWhereInput!) {\n schemas: schemata(where: $where) {\n id\n schema\n schemaNames {\n name\n }\n }\n }\n"), b = v("\n query GetSeeds($where: AttestationWhereInput!, $take: Int, $skip: Int) {\n itemSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }], take: $take, skip: $skip) {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n revocationTime\n schemaId\n timeCreated\n isOffchain\n }\n }\n"), x = v("\n query GetSeedsLean($where: AttestationWhereInput!, $take: Int, $skip: Int) {\n itemSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }], take: $take, skip: $skip) {\n id\n decodedDataJson\n attester\n refUID\n revoked\n revocationTime\n schemaId\n timeCreated\n isOffchain\n }\n }\n"), he = v("\n query GetDomainOwnerships($where: AttestationWhereInput!) {\n domainOwnerships: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n decodedDataJson\n attester\n recipient\n refUID\n revoked\n revocationTime\n expirationTime\n schemaId\n timeCreated\n }\n }\n"), ge = v("\n query GetSeedIds($where: AttestationWhereInput!) {\n itemSeedIds: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n }\n }\n"), _e = v("\n query GetStorageTransactionId($where: AttestationWhereInput!) {\n storageTransactionId: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n id\n decodedDataJson\n }\n }\n"), ve = v("\n query GetVersions($where: AttestationWhereInput!) {\n itemVersions: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"), ye = v("\n query GetProperties($where: AttestationWhereInput!) {\n itemProperties: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"), be = v("\n query GetAllPropertiesForAllVersions($where: AttestationWhereInput!) {\n allProperties: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"), xe = v("\n query GetFilesMetadata($where: AttestationWhereInput!) {\n filesMetadata: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"), Se = v("\n query GetImageSeeds($where: AttestationWhereInput!) {\n imageSeeds: attestations(where: $where, orderBy: [{ timeCreated: desc }]) {\n id\n decodedDataJson\n attester\n schema {\n schemaNames {\n name\n }\n }\n refUID\n revoked\n schemaId\n txid\n timeCreated\n time\n isOffchain\n }\n }\n"), Ce = v("\n query GetImageVersions($where: AttestationWhereInput!) {\n imageVersions: attestations(\n where: $where\n orderBy: [{ timeCreated: desc }]\n ) {\n ...attestationFields\n }\n }\n"), we = v("\n query GetAttestationChanges($where: AttestationWhereInput!) {\n changes: attestations(where: $where) {\n id\n refUID\n timeCreated\n revocationTime\n }\n }\n"), Te = async ({ seedUids: e, excludeRevoked: t = !0 }) => {
2460
2460
  let n = f.getQueryClient(), r = p.getEasClient(), i = t ? _({ refUID: { in: e } }) : { refUID: { in: e } }, { itemVersions: a } = await n.fetchQuery({
2461
2461
  queryKey: [
2462
2462
  "getVersionsForAllModels",
2463
2463
  [...e].sort(),
2464
2464
  t
2465
2465
  ],
2466
- queryFn: async () => r.request(S, { where: i })
2466
+ queryFn: async () => r.request(ve, { where: i })
2467
2467
  });
2468
2468
  return a;
2469
- }, w = async ({ versionUids: e, excludeRevoked: t = !0 }) => {
2469
+ }, S = async ({ versionUids: e, excludeRevoked: t = !0 }) => {
2470
2470
  let n = f.getQueryClient(), r = p.getEasClient(), i = t ? _({ refUID: { in: e } }) : { refUID: { in: e } }, { itemProperties: a } = await n.fetchQuery({
2471
2471
  queryKey: [
2472
2472
  "getPropertiesForAllModels",
2473
2473
  [...e].sort(),
2474
2474
  t
2475
2475
  ],
2476
- queryFn: async () => r.request(ve, { where: i })
2476
+ queryFn: async () => r.request(ye, { where: i })
2477
2477
  });
2478
2478
  return a;
2479
- }, we = async (e) => fe(await w(e)), T = async ({ schemaName: e }) => {
2479
+ }, Ee = async (e) => fe(await S(e)), C = async ({ schemaName: e }) => {
2480
2480
  let t = f.getQueryClient(), n = p.getEasClient();
2481
2481
  if (!t || !n) return;
2482
2482
  let { schemas: r } = await t.fetchQuery({
@@ -2484,14 +2484,14 @@ var y = v("\n query GetSchemas($where: SchemaWhereInput!) {\n schemas: schem
2484
2484
  queryFn: async () => n.request(y, { where: { schema: { endsWith: e } } })
2485
2485
  });
2486
2486
  if (r && r.length !== 0) return r[0].id;
2487
- }, Te = async ({ schemaName: e }) => {
2487
+ }, De = async ({ schemaName: e }) => {
2488
2488
  try {
2489
- return await T({ schemaName: e });
2489
+ return await C({ schemaName: e });
2490
2490
  } catch (t) {
2491
2491
  process.env.NODE_ENV === "development" && console.warn(`Failed to fetch schema for schema name ${e}:`, t);
2492
2492
  return;
2493
2493
  }
2494
- }, Ee = async ({ schemaUids: e, addresses: t, excludeRevoked: n = !0 }) => {
2494
+ }, Oe = async ({ schemaUids: e, addresses: t, excludeRevoked: n = !0 }) => {
2495
2495
  let r = {
2496
2496
  attester: { in: t.map((e) => {
2497
2497
  try {
@@ -2513,7 +2513,7 @@ var y = v("\n query GetSchemas($where: SchemaWhereInput!) {\n schemas: schem
2513
2513
  queryFn: async () => a.request(b, { where: r })
2514
2514
  });
2515
2515
  return o;
2516
- }, E = async (e, t = 10, n, r) => {
2516
+ }, w = async (e, t = 10, n, r) => {
2517
2517
  let i = n ?? 0, a = r?.uidPrefix, o = {
2518
2518
  where: _({
2519
2519
  ...a === void 0 ? {} : { id: { startsWith: a } },
@@ -2531,22 +2531,22 @@ var y = v("\n query GetSchemas($where: SchemaWhereInput!) {\n schemas: schem
2531
2531
  ],
2532
2532
  queryFn: async () => c.request(x, o)
2533
2533
  });
2534
- return l.map((t) => D(t, [e]));
2535
- }, D = (e, t) => ({
2534
+ return l.map((t) => T(t, [e]));
2535
+ }, T = (e, t) => ({
2536
2536
  ...e,
2537
2537
  schema: { schemaNames: t.map((e) => ({ name: e })) }
2538
- }), O = /* @__PURE__ */ new Map(), k = (e) => {
2538
+ }), E = /* @__PURE__ */ new Map(), D = (e) => {
2539
2539
  let t = "";
2540
2540
  try {
2541
2541
  t = n();
2542
2542
  } catch {}
2543
2543
  return `${t}\n${e.toLowerCase()}`;
2544
- }, De = () => {
2545
- O.clear();
2546
- }, A = async (e) => {
2544
+ }, ke = () => {
2545
+ E.clear();
2546
+ }, O = async (e) => {
2547
2547
  let t = /* @__PURE__ */ new Map(), n = [];
2548
2548
  for (let r of new Set(e)) {
2549
- let e = O.get(k(r));
2549
+ let e = E.get(D(r));
2550
2550
  e ? t.set(r, e) : n.push(r);
2551
2551
  }
2552
2552
  if (n.length === 0) return t;
@@ -2556,10 +2556,10 @@ var y = v("\n query GetSchemas($where: SchemaWhereInput!) {\n schemas: schem
2556
2556
  }), o = new Map(n.map((e) => [e.toLowerCase(), e]));
2557
2557
  for (let e of a ?? []) {
2558
2558
  let n = (e.schemaNames ?? []).map((e) => e.name), r = o.get(e.id.toLowerCase());
2559
- r && n.length !== 0 && (O.set(k(r), n), t.set(r, n));
2559
+ r && n.length !== 0 && (E.set(D(r), n), t.set(r, n));
2560
2560
  }
2561
2561
  return t;
2562
- }, Oe = async ({ uids: e, excludeRevoked: t = !0 }) => {
2562
+ }, Ae = async ({ uids: e, excludeRevoked: t = !0 }) => {
2563
2563
  if (e.length === 0) return [];
2564
2564
  let n = t ? _({ id: { in: e } }) : { id: { in: e } }, r = f.getQueryClient(), i = p.getEasClient(), { itemSeeds: a } = await r.fetchQuery({
2565
2565
  queryKey: [
@@ -2572,12 +2572,12 @@ var y = v("\n query GetSchemas($where: SchemaWhereInput!) {\n schemas: schem
2572
2572
  take: e.length,
2573
2573
  skip: 0
2574
2574
  })
2575
- }), o = a ?? [], s = await A(o.map((e) => e.schemaId));
2576
- return o.map((e) => D(e, s.get(e.schemaId) ?? []));
2577
- }, j = 400, ke = async ({ refUIDs: e, ids: t, since: n }) => {
2575
+ }), o = a ?? [], s = await O(o.map((e) => e.schemaId));
2576
+ return o.map((e) => T(e, s.get(e.schemaId) ?? []));
2577
+ }, je = 400, Me = async ({ refUIDs: e, ids: t, since: n }) => {
2578
2578
  let r = { OR: [{ timeCreated: { gt: n } }, { revocationTime: { gt: n } }] }, i = [], a = (e, t) => {
2579
2579
  let n = [...new Set(t)].sort();
2580
- for (let t = 0; t < n.length; t += j) i.push({ [e]: { in: n.slice(t, t + j) } });
2580
+ for (let t = 0; t < n.length; t += je) i.push({ [e]: { in: n.slice(t, t + je) } });
2581
2581
  };
2582
2582
  if (a("refUID", e), a("id", t), i.length === 0) return [];
2583
2583
  let o = f.getQueryClient(), s = p.getEasClient(), c = await Promise.all(i.map((e) => o.fetchQuery({
@@ -2586,40 +2586,40 @@ var y = v("\n query GetSchemas($where: SchemaWhereInput!) {\n schemas: schem
2586
2586
  e,
2587
2587
  n
2588
2588
  ],
2589
- queryFn: async () => s.request(C, { where: { AND: [e, r] } })
2589
+ queryFn: async () => s.request(we, { where: { AND: [e, r] } })
2590
2590
  }))), l = /* @__PURE__ */ new Map();
2591
2591
  for (let { changes: e } of c) for (let t of e ?? []) l.set(t.id, t);
2592
2592
  return [...l.values()];
2593
- }, Ae = async (e, t = 10) => (await E(e, t)).map((e) => e.id), je = "0x0000000000000000000000000000000000000000", Me = "0x", Ne = "0x0000000000000000000000000000000000000000000000000000000000000000", Pe = typeof process < "u" && process.env?.NEXT_PUBLIC_EAS_ENDPOINT || typeof process < "u" && process.env?.EAS_ENDPOINT || "https://optimism-sepolia.easscan.org/graphql";
2593
+ }, Ne = async (e, t = 10) => (await w(e, t)).map((e) => e.id), Pe = "0x0000000000000000000000000000000000000000", Fe = "0x", Ie = "0x0000000000000000000000000000000000000000000000000000000000000000", Le = typeof process < "u" && process.env?.NEXT_PUBLIC_EAS_ENDPOINT || typeof process < "u" && process.env?.EAS_ENDPOINT || "https://optimism-sepolia.easscan.org/graphql";
2594
2594
  //#endregion
2595
2595
  //#region src/easUid.ts
2596
- function M(e) {
2596
+ function Re(e) {
2597
2597
  if (e == null || e === "" || e === "NULL") return !0;
2598
2598
  let t = e.trim();
2599
2599
  return t === "" || t.toLowerCase() === "0x0000000000000000000000000000000000000000000000000000000000000000";
2600
2600
  }
2601
- function N(e) {
2602
- if (M(e)) return !1;
2601
+ function ze(e) {
2602
+ if (Re(e)) return !1;
2603
2603
  let t = String(e).trim();
2604
2604
  if (!/^0x/i.test(t)) return !1;
2605
2605
  let n = t.slice(2);
2606
2606
  return n.length === 64 && /^[0-9a-fA-F]{64}$/.test(n);
2607
2607
  }
2608
- function P(e) {
2608
+ function k(e) {
2609
2609
  if (e == null || e === "") return "";
2610
2610
  let t = String(e).trim();
2611
2611
  return ("0x" + (t.startsWith("0x") || t.startsWith("0X") ? t.slice(2) : t).replace(/[^0-9a-fA-F]/g, "0").padStart(64, "0").slice(-64)).toLowerCase();
2612
2612
  }
2613
2613
  //#endregion
2614
2614
  //#region src/domainOwnershipHelpers.ts
2615
- var Fe = "string domain,address claimer,string method,bytes32 challengeHash,uint64 verifiedAt,string registryCreationDate,string registryExpirationDate,bytes32 registryFingerprint,string scope", F = "seedprotocol.domainOwnership", Ie = "dns-txt-challenge", Le = "registrable", Re = "hostname", I = "_seedprotocol-challenge", ze = 2592e5, Be = 31536e6, Ve = 31536e3;
2616
- function He(e) {
2615
+ var Be = "string domain,address claimer,string method,bytes32 challengeHash,uint64 verifiedAt,string registryCreationDate,string registryExpirationDate,bytes32 registryFingerprint,string scope", Ve = "seedprotocol.domainOwnership", He = "dns-txt-challenge", Ue = "registrable", We = "hostname", Ge = "_seedprotocol-challenge", Ke = 2592e5, qe = 31536e6, Je = 31536e3;
2616
+ function Ye(e) {
2617
2617
  return new TextEncoder().encode(e);
2618
2618
  }
2619
- function L(e) {
2619
+ function A(e) {
2620
2620
  return e.trim().toLowerCase().replace(/\.$/, "");
2621
2621
  }
2622
- function R(e) {
2622
+ function j(e) {
2623
2623
  let t = e.trim();
2624
2624
  try {
2625
2625
  return g(t).toLowerCase();
@@ -2627,14 +2627,14 @@ function R(e) {
2627
2627
  return t.toLowerCase();
2628
2628
  }
2629
2629
  }
2630
- function Ue(e) {
2631
- return `${I}.${L(e)}`;
2630
+ function Xe(e) {
2631
+ return `${Ge}.${A(e)}`;
2632
2632
  }
2633
- function We(e) {
2634
- let t = R(e.claimer);
2633
+ function Ze(e) {
2634
+ let t = j(e.claimer);
2635
2635
  return `token=${e.token},addr=${t},expiry=${e.expiry}`;
2636
2636
  }
2637
- function Ge(e) {
2637
+ function Qe(e) {
2638
2638
  let t = e.replace(/^"+|"+$/g, "").trim(), n = /* @__PURE__ */ new Map();
2639
2639
  for (let e of t.split(",")) {
2640
2640
  let t = e.indexOf("=");
@@ -2645,59 +2645,59 @@ function Ge(e) {
2645
2645
  let r = n.get("token"), i = n.get("addr") ?? n.get("claimer"), a = n.get("expiry");
2646
2646
  return !r || !i || !a ? null : {
2647
2647
  token: r,
2648
- claimer: R(i),
2648
+ claimer: j(i),
2649
2649
  expiry: a
2650
2650
  };
2651
2651
  }
2652
- function Ke(e) {
2653
- let t = L(e.domain), n = R(e.claimer), r = (e.scope ?? "registrable").trim();
2654
- return "0x" + m(He(`${t}|${n}|${e.token}|${r}`));
2652
+ function $e(e) {
2653
+ let t = A(e.domain), n = j(e.claimer), r = (e.scope ?? "registrable").trim();
2654
+ return "0x" + m(Ye(`${t}|${n}|${e.token}|${r}`));
2655
2655
  }
2656
- function qe(e) {
2656
+ function et(e) {
2657
2657
  let t = {
2658
- domain: L(e.domain),
2658
+ domain: A(e.domain),
2659
2659
  creationDate: (e.creationDate ?? "").trim(),
2660
2660
  registrarIanaId: (e.registrarIanaId ?? "").trim()
2661
2661
  };
2662
- return "0x" + m(He(JSON.stringify(t)));
2662
+ return "0x" + m(Ye(JSON.stringify(t)));
2663
2663
  }
2664
- function z(e) {
2665
- return typeof e == "string" ? P(e) : e && typeof e == "object" && "hex" in e ? P(String(e.hex)) : e && typeof e == "object" && "value" in e ? z(e.value) : P(String(e ?? ""));
2664
+ function M(e) {
2665
+ return typeof e == "string" ? k(e) : e && typeof e == "object" && "hex" in e ? k(String(e.hex)) : e && typeof e == "object" && "value" in e ? M(e.value) : k(String(e ?? ""));
2666
2666
  }
2667
- function B(e) {
2667
+ function N(e) {
2668
2668
  return typeof e == "string" ? e : e && typeof e == "object" && "value" in e ? String(e.value ?? "") : String(e ?? "");
2669
2669
  }
2670
- function Je(e) {
2670
+ function tt(e) {
2671
2671
  if (typeof e == "number" && Number.isFinite(e)) return Math.trunc(e);
2672
2672
  if (typeof e == "bigint") return Number(e);
2673
2673
  if (typeof e == "string" && e.trim() !== "") {
2674
2674
  let t = Number(e);
2675
2675
  return Number.isFinite(t) ? Math.trunc(t) : 0;
2676
2676
  }
2677
- return e && typeof e == "object" && "value" in e ? Je(e.value) : 0;
2677
+ return e && typeof e == "object" && "value" in e ? tt(e.value) : 0;
2678
2678
  }
2679
- function Ye(e) {
2679
+ function nt(e) {
2680
2680
  let t = typeof e == "string" ? JSON.parse(e) : e, n = /* @__PURE__ */ new Map();
2681
2681
  for (let e of t) e?.name && n.set(e.name, e);
2682
2682
  return {
2683
- domain: L(B(n.get("domain")?.value)),
2684
- claimer: R(B(n.get("claimer")?.value)),
2685
- method: B(n.get("method")?.value),
2686
- challengeHash: z(n.get("challengeHash")?.value),
2687
- verifiedAt: Je(n.get("verifiedAt")?.value),
2688
- registryCreationDate: B(n.get("registryCreationDate")?.value),
2689
- registryExpirationDate: B(n.get("registryExpirationDate")?.value),
2690
- registryFingerprint: z(n.get("registryFingerprint")?.value),
2691
- scope: B(n.get("scope")?.value)
2683
+ domain: A(N(n.get("domain")?.value)),
2684
+ claimer: j(N(n.get("claimer")?.value)),
2685
+ method: N(n.get("method")?.value),
2686
+ challengeHash: M(n.get("challengeHash")?.value),
2687
+ verifiedAt: tt(n.get("verifiedAt")?.value),
2688
+ registryCreationDate: N(n.get("registryCreationDate")?.value),
2689
+ registryExpirationDate: N(n.get("registryExpirationDate")?.value),
2690
+ registryFingerprint: M(n.get("registryFingerprint")?.value),
2691
+ scope: N(n.get("scope")?.value)
2692
2692
  };
2693
2693
  }
2694
- function Xe(e) {
2694
+ function rt(e) {
2695
2695
  if (!e?.trim()) return null;
2696
2696
  let t = Date.parse(e);
2697
2697
  return Number.isFinite(t) ? Math.floor(t / 1e3) : null;
2698
2698
  }
2699
- function Ze(e) {
2700
- let t = Math.floor((e.now ?? Date.now()) / 1e3), n = [], r = e.softStaleMs ?? 31536e6, i = e.expirationTime, a = Xe(e.decoded.registryExpirationDate);
2699
+ function it(e) {
2700
+ let t = Math.floor((e.now ?? Date.now()) / 1e3), n = [], r = e.softStaleMs ?? 31536e6, i = e.expirationTime, a = rt(e.decoded.registryExpirationDate);
2701
2701
  if (typeof i == "number" && i > 0 && t >= i || a != null && t >= a) return {
2702
2702
  status: "expired",
2703
2703
  warnings: n
@@ -2706,11 +2706,11 @@ function Ze(e) {
2706
2706
  status: "unknown",
2707
2707
  warnings: n
2708
2708
  };
2709
- if (e.registrySnapshot !== void 0) return P(qe({
2709
+ if (e.registrySnapshot !== void 0) return k(et({
2710
2710
  domain: e.decoded.domain,
2711
2711
  creationDate: e.registrySnapshot.creationDate,
2712
2712
  registrarIanaId: e.registrySnapshot.registrarIanaId
2713
- })) === P(e.decoded.registryFingerprint) ? {
2713
+ })) === k(e.decoded.registryFingerprint) ? {
2714
2714
  status: "valid",
2715
2715
  warnings: n
2716
2716
  } : (n.push("Registry creation date or registrar IANA id no longer matches attestation fingerprint"), {
@@ -2728,10 +2728,10 @@ function Ze(e) {
2728
2728
  }
2729
2729
  //#endregion
2730
2730
  //#region src/domainOwnership.ts
2731
- function Qe(e) {
2731
+ function at(e) {
2732
2732
  return e.trim().toLowerCase().replace(/\.$/, "");
2733
2733
  }
2734
- async function $e(e) {
2734
+ async function ot(e) {
2735
2735
  let { toolAddresses: t, domains: n, claimers: r, schemaUid: i, excludeRevoked: a = !0 } = e;
2736
2736
  if (!t.length) return [];
2737
2737
  let o = t.map((e) => {
@@ -2741,7 +2741,7 @@ async function $e(e) {
2741
2741
  return e;
2742
2742
  }
2743
2743
  }), s = { attester: { in: o } };
2744
- i ? s.schemaId = { equals: i } : s.schema = { is: { schemaNames: { some: { name: { equals: F } } } } }, r?.length && (s.recipient = { in: r.map((e) => {
2744
+ i ? s.schemaId = { equals: i } : s.schema = { is: { schemaNames: { some: { name: { equals: Ve } } } } }, r?.length && (s.recipient = { in: r.map((e) => {
2745
2745
  try {
2746
2746
  return g(e);
2747
2747
  } catch {
@@ -2754,16 +2754,16 @@ async function $e(e) {
2754
2754
  a,
2755
2755
  i ?? "seedprotocol.domainOwnership",
2756
2756
  [...o].sort(),
2757
- [...(n ?? []).map(Qe)].sort(),
2757
+ [...(n ?? []).map(at)].sort(),
2758
2758
  [...r ?? []].map((e) => e.toLowerCase()).sort()
2759
2759
  ],
2760
2760
  queryFn: async () => l.request(he, { where: s })
2761
2761
  });
2762
2762
  if (!n?.length) return u;
2763
- let ee = new Set(n.map(Qe));
2763
+ let ee = new Set(n.map(at));
2764
2764
  return u.filter((e) => {
2765
2765
  try {
2766
- let t = Ye(e.decodedDataJson ?? "[]");
2766
+ let t = nt(e.decodedDataJson ?? "[]");
2767
2767
  return ee.has(t.domain);
2768
2768
  } catch {
2769
2769
  return !1;
@@ -2772,8 +2772,8 @@ async function $e(e) {
2772
2772
  }
2773
2773
  //#endregion
2774
2774
  //#region src/publishAuthorizationHelpers.ts
2775
- var et = "address identity,address sessionKey,address app,string scopes,uint64 grantedAt,uint64 expiresAt,bytes32 permissionsHash", tt = "seedprotocol.publishAuthorization", nt = "publish,revoke", rt = 31536e3;
2776
- function V(e) {
2775
+ var st = "address identity,address sessionKey,address app,string scopes,uint64 grantedAt,uint64 expiresAt,bytes32 permissionsHash", ct = "seedprotocol.publishAuthorization", lt = "publish,revoke", ut = 31536e3;
2776
+ function P(e) {
2777
2777
  let t = e.trim();
2778
2778
  try {
2779
2779
  return g(t).toLowerCase();
@@ -2781,35 +2781,35 @@ function V(e) {
2781
2781
  return t.toLowerCase();
2782
2782
  }
2783
2783
  }
2784
- function it(e) {
2785
- return typeof e == "string" ? P(e) : e && typeof e == "object" && "hex" in e ? P(String(e.hex)) : P(String(e ?? ""));
2784
+ function dt(e) {
2785
+ return typeof e == "string" ? k(e) : e && typeof e == "object" && "hex" in e ? k(String(e.hex)) : k(String(e ?? ""));
2786
2786
  }
2787
- function H(e) {
2787
+ function F(e) {
2788
2788
  return typeof e == "string" ? e : e && typeof e == "object" && "value" in e ? String(e.value ?? "") : String(e ?? "");
2789
2789
  }
2790
- function U(e) {
2790
+ function I(e) {
2791
2791
  if (typeof e == "number" && Number.isFinite(e)) return Math.trunc(e);
2792
2792
  if (typeof e == "bigint") return Number(e);
2793
2793
  if (typeof e == "string" && e.trim() !== "") {
2794
2794
  let t = Number(e);
2795
2795
  return Number.isFinite(t) ? Math.trunc(t) : 0;
2796
2796
  }
2797
- return e && typeof e == "object" && "value" in e ? U(e.value) : 0;
2797
+ return e && typeof e == "object" && "value" in e ? I(e.value) : 0;
2798
2798
  }
2799
- function at(e) {
2799
+ function ft(e) {
2800
2800
  let t = typeof e == "string" ? JSON.parse(e) : e, n = /* @__PURE__ */ new Map();
2801
2801
  for (let e of t) e?.name && n.set(e.name, e);
2802
2802
  return {
2803
- identity: V(H(n.get("identity")?.value)),
2804
- sessionKey: V(H(n.get("sessionKey")?.value)),
2805
- app: V(H(n.get("app")?.value)),
2806
- scopes: H(n.get("scopes")?.value),
2807
- grantedAt: U(n.get("grantedAt")?.value),
2808
- expiresAt: U(n.get("expiresAt")?.value),
2809
- permissionsHash: it(n.get("permissionsHash")?.value)
2803
+ identity: P(F(n.get("identity")?.value)),
2804
+ sessionKey: P(F(n.get("sessionKey")?.value)),
2805
+ app: P(F(n.get("app")?.value)),
2806
+ scopes: F(n.get("scopes")?.value),
2807
+ grantedAt: I(n.get("grantedAt")?.value),
2808
+ expiresAt: I(n.get("expiresAt")?.value),
2809
+ permissionsHash: dt(n.get("permissionsHash")?.value)
2810
2810
  };
2811
2811
  }
2812
- function ot(e) {
2812
+ function pt(e) {
2813
2813
  let t = Math.floor((e.now ?? Date.now()) / 1e3), n = [], r = e.expectedScopes ?? "publish,revoke", i = e.expirationTime, a = e.decoded.expiresAt;
2814
2814
  return typeof i == "number" && i > 0 && t >= i || a > 0 && t >= a ? {
2815
2815
  status: "expired",
@@ -2825,14 +2825,14 @@ function ot(e) {
2825
2825
  warnings: n
2826
2826
  });
2827
2827
  }
2828
- function st(e) {
2828
+ function mt(e) {
2829
2829
  return "0x" + m(new TextEncoder().encode(e));
2830
2830
  }
2831
2831
  //#endregion
2832
2832
  //#region src/publishAuthorization.ts
2833
- async function ct(e = {}) {
2833
+ async function ht(e = {}) {
2834
2834
  let { identities: t, sessionKeys: n, apps: r, schemaUid: i, excludeRevoked: a = !0 } = e, o = {};
2835
- i ? o.schemaId = { equals: i } : o.schema = { is: { schemaNames: { some: { name: { equals: tt } } } } }, t?.length && (o.attester = { in: t.map((e) => {
2835
+ i ? o.schemaId = { equals: i } : o.schema = { is: { schemaNames: { some: { name: { equals: ct } } } } }, t?.length && (o.attester = { in: t.map((e) => {
2836
2836
  try {
2837
2837
  return g(e);
2838
2838
  } catch {
@@ -2860,7 +2860,7 @@ async function ct(e = {}) {
2860
2860
  let u = new Set(r.map((e) => e.toLowerCase()));
2861
2861
  return l.filter((e) => {
2862
2862
  try {
2863
- let t = at(e.decodedDataJson ?? "[]");
2863
+ let t = ft(e.decodedDataJson ?? "[]");
2864
2864
  return u.has(t.app.toLowerCase());
2865
2865
  } catch {
2866
2866
  return !1;
@@ -2869,7 +2869,7 @@ async function ct(e = {}) {
2869
2869
  }
2870
2870
  //#endregion
2871
2871
  //#region src/easRefAttester.ts
2872
- function lt(e, t) {
2872
+ function gt(e, t) {
2873
2873
  let n = /* @__PURE__ */ new Map();
2874
2874
  for (let e of t) e.attester && n.set(e.id, e.attester.toLowerCase());
2875
2875
  let r = [], i = [];
@@ -2882,34 +2882,82 @@ function lt(e, t) {
2882
2882
  foreign: i
2883
2883
  };
2884
2884
  }
2885
- function ut(e, t) {
2886
- return lt(e, t).kept;
2885
+ function _t(e, t) {
2886
+ return gt(e, t).kept;
2887
+ }
2888
+ //#endregion
2889
+ //#region src/easNames.ts
2890
+ var L = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").replace(/[^A-Za-z0-9]+/g, "_").replace(/^_+|_+$/g, "").toLowerCase(), R = {
2891
+ exact: 0,
2892
+ normalized: 1,
2893
+ fuzzy: 2
2894
+ }, vt = "fuzzy", z = (e) => e.toLowerCase().replace(/[^a-z0-9]/g, ""), B = (e, t = {}) => {
2895
+ let n = z(e);
2896
+ return t.relation && (n.length > 3 && n.endsWith("ids") ? n = n.slice(0, -3) : n.length > 2 && n.endsWith("id") && (n = n.slice(0, -2))), n.length > 3 && n.endsWith("s") && !n.endsWith("ss") && (n = n.slice(0, -1)), n;
2897
+ };
2898
+ function V(e, t, n = {}) {
2899
+ if (L(e) === L(t)) return "exact";
2900
+ if (z(e) === z(t)) return "normalized";
2901
+ if (B(e, n) === B(t, n)) return "fuzzy";
2902
+ }
2903
+ var H = (e, t) => R[e] <= R[t], U = (e, t) => R[e] - R[t];
2904
+ function yt(e, t) {
2905
+ let n, r = [];
2906
+ for (let i of t) {
2907
+ let t = V(i.name, e, { relation: i.relation });
2908
+ t && H(t, i.level ?? "fuzzy") && (n === void 0 || U(t, n) < 0 ? (n = t, r = [i.value]) : t === n && r.push(i.value));
2909
+ }
2910
+ return n === void 0 ? { kind: "none" } : r.length > 1 ? {
2911
+ kind: "ambiguous",
2912
+ values: r,
2913
+ tier: n
2914
+ } : {
2915
+ kind: "match",
2916
+ value: r[0],
2917
+ tier: n
2918
+ };
2919
+ }
2920
+ function bt(e, t, n = {}) {
2921
+ let r = n.level ?? "fuzzy", i, a = /* @__PURE__ */ new Set();
2922
+ for (let o of t) {
2923
+ let t = V(o, e, n);
2924
+ t && H(t, r) && (i === void 0 || U(t, i) < 0 ? (i = t, a = /* @__PURE__ */ new Set([o])) : t === i && a.add(o));
2925
+ }
2926
+ return a;
2927
+ }
2928
+ function xt(e) {
2929
+ let t = e.replace(/([a-z])([A-Z])/g, "$1_$2").toLowerCase();
2930
+ return [.../* @__PURE__ */ new Set([
2931
+ L(e),
2932
+ t,
2933
+ z(e)
2934
+ ])];
2887
2935
  }
2888
2936
  //#endregion
2889
2937
  //#region src/publishedByHelpers.ts
2890
- var dt = "bytes32 seedUid,bytes32 versionUid,bytes32[] attestationUids,bytes32 batchHash,string toolName,string toolVersion", ft = "seedprotocol.publishedBy";
2891
- function pt(e) {
2938
+ var St = "bytes32 seedUid,bytes32 versionUid,bytes32[] attestationUids,bytes32 batchHash,string toolName,string toolVersion", Ct = "seedprotocol.publishedBy";
2939
+ function wt(e) {
2892
2940
  let t = e.startsWith("0x") || e.startsWith("0X") ? e.slice(2) : e, n = new Uint8Array(t.length / 2);
2893
2941
  for (let e = 0; e < n.length; e++) n[e] = parseInt(t.slice(e * 2, e * 2 + 2), 16);
2894
2942
  return n;
2895
2943
  }
2896
- function mt(e) {
2897
- let t = [...e].map((e) => P(e)).filter((e) => e !== "" && N(e)).sort();
2944
+ function Tt(e) {
2945
+ let t = [...e].map((e) => k(e)).filter((e) => e !== "" && ze(e)).sort();
2898
2946
  if (t.length === 0) return "0x" + m(/* @__PURE__ */ new Uint8Array());
2899
2947
  let n = new Uint8Array(t.length * 32);
2900
- for (let e = 0; e < t.length; e++) n.set(pt(t[e]), e * 32);
2948
+ for (let e = 0; e < t.length; e++) n.set(wt(t[e]), e * 32);
2901
2949
  return "0x" + m(n);
2902
2950
  }
2903
- function ht(e) {
2904
- return P(mt(e.attestationUids)) === P(e.batchHash);
2951
+ function Et(e) {
2952
+ return k(Tt(e.attestationUids)) === k(e.batchHash);
2905
2953
  }
2906
2954
  function W(e) {
2907
- return typeof e == "string" ? P(e) : e && typeof e == "object" && "hex" in e ? P(String(e.hex)) : P(String(e ?? ""));
2955
+ return typeof e == "string" ? k(e) : e && typeof e == "object" && "hex" in e ? k(String(e.hex)) : k(String(e ?? ""));
2908
2956
  }
2909
- function gt(e) {
2957
+ function G(e) {
2910
2958
  return typeof e == "string" ? e : e && typeof e == "object" && "value" in e ? String(e.value ?? "") : String(e ?? "");
2911
2959
  }
2912
- function _t(e) {
2960
+ function Dt(e) {
2913
2961
  let t = typeof e == "string" ? JSON.parse(e) : e, n = /* @__PURE__ */ new Map();
2914
2962
  for (let e of t) e?.name && n.set(e.name, e);
2915
2963
  let r = n.get("attestationUids")?.value, i = [];
@@ -2918,13 +2966,13 @@ function _t(e) {
2918
2966
  versionUid: W(n.get("versionUid")?.value),
2919
2967
  attestationUids: i,
2920
2968
  batchHash: W(n.get("batchHash")?.value),
2921
- toolName: gt(n.get("toolName")?.value),
2922
- toolVersion: gt(n.get("toolVersion")?.value)
2969
+ toolName: G(n.get("toolName")?.value),
2970
+ toolVersion: G(n.get("toolVersion")?.value)
2923
2971
  };
2924
2972
  }
2925
2973
  //#endregion
2926
2974
  //#region src/publishedBy.ts
2927
- async function vt(e) {
2975
+ async function Ot(e) {
2928
2976
  let { toolAddresses: t, refUIDs: n, schemaUid: r, excludeRevoked: i = !0 } = e;
2929
2977
  if (!t.length) return [];
2930
2978
  let a = t.map((e) => {
@@ -2934,7 +2982,7 @@ async function vt(e) {
2934
2982
  return e;
2935
2983
  }
2936
2984
  }), o = { attester: { in: a } };
2937
- r ? o.schemaId = { equals: r } : o.schema = { is: { schemaNames: { some: { name: { equals: ft } } } } }, n?.length && (o.refUID = { in: n }), i && (o = _(o));
2985
+ r ? o.schemaId = { equals: r } : o.schema = { is: { schemaNames: { some: { name: { equals: Ct } } } } }, n?.length && (o.refUID = { in: n }), i && (o = _(o));
2938
2986
  let s = f.getQueryClient(), c = p.getEasClient(), { itemSeeds: l } = await s.fetchQuery({
2939
2987
  queryKey: [
2940
2988
  "getPublishedByFromEas",
@@ -2949,52 +2997,52 @@ async function vt(e) {
2949
2997
  }
2950
2998
  //#endregion
2951
2999
  //#region src/default/index.ts
2952
- function yt() {
3000
+ function kt() {
2953
3001
  p.isConfigured() || p.configure(new d()), f.isConfigured() || f.configure(new ae());
2954
3002
  }
2955
3003
  //#endregion
2956
3004
  //#region src/stores/schemaUidCache.ts
2957
- var G = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map(), bt = 3e5, q = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map(), X = 0, Z = (e) => {
3005
+ var K = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), At = 3e5, J = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map(), Z = 0, jt = (e) => {
2958
3006
  let t = "";
2959
3007
  try {
2960
3008
  t = n();
2961
3009
  } catch {}
2962
3010
  return `${t}\n${e}`;
2963
3011
  }, Q = async (e, t) => {
2964
- let n = Z(e), r = J.get(n);
3012
+ let n = jt(e), r = Y.get(n);
2965
3013
  if (r !== void 0) {
2966
3014
  if (Date.now() < r) return;
2967
- J.delete(n);
3015
+ Y.delete(n);
2968
3016
  }
2969
- let i = Y.get(n);
3017
+ let i = X.get(n);
2970
3018
  if (i) return i;
2971
- let a = X, o = t().then((e) => (!e && a === X && J.set(n, Date.now() + bt), e)).finally(() => {
2972
- Y.get(n) === o && Y.delete(n);
3019
+ let a = Z, o = t().then((e) => (!e && a === Z && Y.set(n, Date.now() + At), e)).finally(() => {
3020
+ X.get(n) === o && X.delete(n);
2973
3021
  });
2974
- return Y.set(n, o), o;
3022
+ return X.set(n, o), o;
2975
3023
  }, $ = () => {
2976
- X++, J.clear(), Y.clear();
2977
- }, xt = () => {
2978
- G.clear(), K.clear(), q.clear(), $();
2979
- }, St = ({ text: e, schemaUid: t }) => {
2980
- G.set(h(e), t), $();
2981
- }, Ct = ({ modelName: e, schemaUid: t }) => {
2982
- K.set(e.toLowerCase(), t), $();
2983
- }, wt = (e) => K.get(e.toLowerCase()), Tt = async ({ schemaText: e }) => {
3024
+ Z++, Y.clear(), X.clear();
3025
+ }, Mt = () => {
3026
+ K.clear(), q.clear(), J.clear(), $();
3027
+ }, Nt = ({ text: e, schemaUid: t }) => {
3028
+ K.set(h(e), t), $();
3029
+ }, Pt = ({ modelName: e, schemaUid: t }) => {
3030
+ q.set(e.toLowerCase(), t), $();
3031
+ }, Ft = (e) => q.get(e.toLowerCase()), It = async ({ schemaText: e }) => {
2984
3032
  let t = h(e);
2985
- if (!G.has(t)) {
3033
+ if (!K.has(t)) {
2986
3034
  let e;
2987
3035
  try {
2988
- e = await Q(`schemaName:${t}`, () => T({ schemaName: t }));
3036
+ e = await Q(`schemaName:${t}`, () => C({ schemaName: t }));
2989
3037
  } catch (e) {
2990
3038
  process.env.NODE_ENV === "development" && console.warn(`Failed to fetch schema for schema name ${t}:`, e);
2991
3039
  return;
2992
3040
  }
2993
- return e && G.set(t, e), e;
3041
+ return e && K.set(t, e), e;
2994
3042
  }
2995
- return G.get(t);
2996
- }, Et = async (e) => {
2997
- let t = Z(e), n = q.get(t);
3043
+ return K.get(t);
3044
+ }, Lt = async (e) => {
3045
+ let t = jt(e), n = J.get(t);
2998
3046
  if (n) return n;
2999
3047
  let r = f.getQueryClient(), i = p.getEasClient();
3000
3048
  if (!r || !i) return;
@@ -3005,9 +3053,9 @@ var G = /* @__PURE__ */ new Map(), K = /* @__PURE__ */ new Map(), bt = 3e5, q =
3005
3053
  }), n = t?.schemas ?? t?.data?.schemas;
3006
3054
  return Array.isArray(n) && n.length > 0 ? n[0].id : void 0;
3007
3055
  });
3008
- return a && q.set(t, a), a;
3056
+ return a && J.set(t, a), a;
3009
3057
  };
3010
3058
  //#endregion
3011
- export { p as BaseEasClient, p as EasClient, f as BaseQueryClient, a as DEFAULT_EAS_CHAIN_ID, ze as DOMAIN_OWNERSHIP_CHALLENGE_TTL_MS, Ve as DOMAIN_OWNERSHIP_DEFAULT_EXPIRATION_SECS, Ie as DOMAIN_OWNERSHIP_METHOD, Fe as DOMAIN_OWNERSHIP_SCHEMA_DEF, F as DOMAIN_OWNERSHIP_SCHEMA_NAME, Re as DOMAIN_OWNERSHIP_SCOPE_HOSTNAME, Le as DOMAIN_OWNERSHIP_SCOPE_REGISTRABLE, Be as DOMAIN_OWNERSHIP_SOFT_STALE_MS, I as DOMAIN_OWNERSHIP_TXT_LABEL, d as DefaultEasClient, ae as DefaultQueryClient, r as DuplicateEasModuleError, o as EAS_CHAIN_DEPLOYMENTS, Pe as EAS_ENDPOINT, ye as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, C as GET_ATTESTATION_CHANGES, he as GET_DOMAIN_OWNERSHIPS, be as GET_FILES_METADATA, xe as GET_IMAGE_SEEDS, Se as GET_IMAGE_VERSIONS, ve as GET_PROPERTIES, y as GET_SCHEMAS, me as GET_SCHEMA_BY_NAME, b as GET_SEEDS, x as GET_SEEDS_LEAN, ge as GET_SEED_IDS, _e as GET_STORAGE_TRANSACTION_ID, S as GET_VERSIONS, ne as OP_STACK_EAS_CONTRACT_ADDRESS, ee as OP_STACK_SCHEMA_REGISTRY_ADDRESS, dt as PUBLISHED_BY_SCHEMA_DEF, ft as PUBLISHED_BY_SCHEMA_NAME, rt as PUBLISH_AUTHORIZATION_DEFAULT_EXPIRATION_SECS, et as PUBLISH_AUTHORIZATION_SCHEMA_DEF, tt as PUBLISH_AUTHORIZATION_SCHEMA_NAME, nt as PUBLISH_AUTHORIZATION_SCOPES, bt as SCHEMA_LOOKUP_MISS_TTL_MS, je as ZERO_ADDRESS, Me as ZERO_BYTES, Ne as ZERO_BYTES32, se as assertSingleEasModule, Ze as assessDomainOwnership, ot as assessPublishAuthorization, We as buildDomainOwnershipTxtValue, Q as cachedSchemaLookup, g as checksumAddress, $ as clearSchemaLookupMisses, re as configureEasReadChain, Ye as decodeDomainOwnershipData, at as decodePublishAuthorizationData, _t as decodePublishedByData, Ue as domainOwnershipTxtName, yt as ensureEasPlatform, l as expectEasReadChain, T as fetchEasSchemaUidBySchemaName, ke as getAttestationChangesSince, we as getCanonicalItemPropertiesFromEas, $e as getDomainOwnershipFromEas, c as getEasAttestationExplorerUrl, s as getEasChainDeployment, n as getEasEndpoint, te as getEasReadChainId, Te as getEasSchemaUidBySchemaName, Et as getEasSchemaUidForExactDefinition, Tt as getEasSchemaUidForSchemaDefinition, w as getItemPropertiesFromEas, Ce as getItemVersionsFromEas, ct as getPublishAuthorizationFromEas, vt as getPublishedByFromEas, A as getSchemaNamesBySchemaUids, wt as getSchemaUidForModelFromCache, Ae as getSeedUidsBySchemaName, E as getSeedsBySchemaName, Oe as getSeedsByUidsFromEas, Ee as getSeedsFromSchemaUids, Ke as hashDomainOwnershipChallenge, qe as hashDomainRegistryFingerprint, st as hashPublishAuthorizationMaterial, mt as hashPublishedByBatch, ie as isEasReadChainConfigured, i as isEasReadChainSettled, M as isPlaceholderUid, N as isValidEasAttestationUid, ut as keepAttestationsFromRefAttester, P as normalizeBytes32Hex, Ge as parseDomainOwnershipTxtValue, lt as partitionByRefAttester, fe as pickLatestPropertyAttestationsByRefAndSchema, e as resetEasClientOwnerForTests, u as resetEasReadChain, De as resetSchemaNamesCache, xt as resetSchemaUidCaches, t as resolveEasChainDeployment, Ct as setSchemaUidForModel, St as setSchemaUidForSchemaDefinition, h as toSnakeCase, ht as verifyPublishedByBatch, oe as whenEasReadChainSettled, _ as withExcludeRevokedFilter };
3059
+ export { p as BaseEasClient, p as EasClient, f as BaseQueryClient, a as DEFAULT_EAS_CHAIN_ID, vt as DEFAULT_NAME_MATCH_LEVEL, Ke as DOMAIN_OWNERSHIP_CHALLENGE_TTL_MS, Je as DOMAIN_OWNERSHIP_DEFAULT_EXPIRATION_SECS, He as DOMAIN_OWNERSHIP_METHOD, Be as DOMAIN_OWNERSHIP_SCHEMA_DEF, Ve as DOMAIN_OWNERSHIP_SCHEMA_NAME, We as DOMAIN_OWNERSHIP_SCOPE_HOSTNAME, Ue as DOMAIN_OWNERSHIP_SCOPE_REGISTRABLE, qe as DOMAIN_OWNERSHIP_SOFT_STALE_MS, Ge as DOMAIN_OWNERSHIP_TXT_LABEL, d as DefaultEasClient, ae as DefaultQueryClient, r as DuplicateEasModuleError, o as EAS_CHAIN_DEPLOYMENTS, Le as EAS_ENDPOINT, be as GET_ALL_PROPERTIES_FOR_ALL_VERSIONS, we as GET_ATTESTATION_CHANGES, he as GET_DOMAIN_OWNERSHIPS, xe as GET_FILES_METADATA, Se as GET_IMAGE_SEEDS, Ce as GET_IMAGE_VERSIONS, ye as GET_PROPERTIES, y as GET_SCHEMAS, me as GET_SCHEMA_BY_NAME, b as GET_SEEDS, x as GET_SEEDS_LEAN, ge as GET_SEED_IDS, _e as GET_STORAGE_TRANSACTION_ID, ve as GET_VERSIONS, ne as OP_STACK_EAS_CONTRACT_ADDRESS, ee as OP_STACK_SCHEMA_REGISTRY_ADDRESS, St as PUBLISHED_BY_SCHEMA_DEF, Ct as PUBLISHED_BY_SCHEMA_NAME, ut as PUBLISH_AUTHORIZATION_DEFAULT_EXPIRATION_SECS, st as PUBLISH_AUTHORIZATION_SCHEMA_DEF, ct as PUBLISH_AUTHORIZATION_SCHEMA_NAME, lt as PUBLISH_AUTHORIZATION_SCOPES, At as SCHEMA_LOOKUP_MISS_TTL_MS, Pe as ZERO_ADDRESS, Fe as ZERO_BYTES, Ie as ZERO_BYTES32, se as assertSingleEasModule, it as assessDomainOwnership, pt as assessPublishAuthorization, Ze as buildDomainOwnershipTxtValue, Q as cachedSchemaLookup, g as checksumAddress, $ as clearSchemaLookupMisses, U as compareNameMatchTiers, re as configureEasReadChain, nt as decodeDomainOwnershipData, ft as decodePublishAuthorizationData, Dt as decodePublishedByData, Xe as domainOwnershipTxtName, L as easName, xt as easNameVariants, kt as ensureEasPlatform, l as expectEasReadChain, C as fetchEasSchemaUidBySchemaName, B as fuzzyNameKey, Me as getAttestationChangesSince, Ee as getCanonicalItemPropertiesFromEas, ot as getDomainOwnershipFromEas, c as getEasAttestationExplorerUrl, s as getEasChainDeployment, n as getEasEndpoint, te as getEasReadChainId, De as getEasSchemaUidBySchemaName, Lt as getEasSchemaUidForExactDefinition, It as getEasSchemaUidForSchemaDefinition, S as getItemPropertiesFromEas, Te as getItemVersionsFromEas, ht as getPublishAuthorizationFromEas, Ot as getPublishedByFromEas, O as getSchemaNamesBySchemaUids, Ft as getSchemaUidForModelFromCache, Ne as getSeedUidsBySchemaName, w as getSeedsBySchemaName, Ae as getSeedsByUidsFromEas, Oe as getSeedsFromSchemaUids, $e as hashDomainOwnershipChallenge, et as hashDomainRegistryFingerprint, mt as hashPublishAuthorizationMaterial, Tt as hashPublishedByBatch, ie as isEasReadChainConfigured, i as isEasReadChainSettled, H as isNameMatchAllowed, Re as isPlaceholderUid, ze as isValidEasAttestationUid, _t as keepAttestationsFromRefAttester, bt as localNamesInBestMatchTier, yt as matchEasName, V as nameMatchTier, k as normalizeBytes32Hex, z as normalizedNameKey, Qe as parseDomainOwnershipTxtValue, gt as partitionByRefAttester, fe as pickLatestPropertyAttestationsByRefAndSchema, e as resetEasClientOwnerForTests, u as resetEasReadChain, ke as resetSchemaNamesCache, Mt as resetSchemaUidCaches, t as resolveEasChainDeployment, Pt as setSchemaUidForModel, Nt as setSchemaUidForSchemaDefinition, h as toSnakeCase, Et as verifyPublishedByBatch, oe as whenEasReadChainSettled, _ as withExcludeRevokedFilter };
3012
3060
 
3013
3061
  //# sourceMappingURL=index.js.map