@coinbase/cdp-hooks 0.0.74 → 0.0.75

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.
Files changed (108) hide show
  1. package/dist/esm/index177.js +3 -3
  2. package/dist/esm/index206.js +2 -2
  3. package/dist/esm/index209.js +2 -2
  4. package/dist/esm/index210.js +1 -1
  5. package/dist/esm/index214.js +3 -3
  6. package/dist/esm/index217.js +1 -1
  7. package/dist/esm/index220.js +2 -41
  8. package/dist/esm/index221.js +41 -2
  9. package/dist/esm/index222.js +2 -5
  10. package/dist/esm/index223.js +4 -10
  11. package/dist/esm/index224.js +9 -18
  12. package/dist/esm/index225.js +19 -7
  13. package/dist/esm/index226.js +7 -11
  14. package/dist/esm/index227.js +11 -66
  15. package/dist/esm/index228.js +65 -64
  16. package/dist/esm/index229.js +60 -180
  17. package/dist/esm/index230.js +183 -20
  18. package/dist/esm/index231.js +21 -41
  19. package/dist/esm/index232.js +20 -54
  20. package/dist/esm/index233.js +54 -18
  21. package/dist/esm/index234.js +34 -10
  22. package/dist/esm/index235.js +10 -7
  23. package/dist/esm/index236.js +13 -7
  24. package/dist/esm/index237.js +7 -6
  25. package/dist/esm/index238.js +6 -36
  26. package/dist/esm/index239.js +35 -14
  27. package/dist/esm/index240.js +15 -8
  28. package/dist/esm/index241.js +7 -11
  29. package/dist/esm/index242.js +12 -9
  30. package/dist/esm/index243.js +9 -16
  31. package/dist/esm/index244.js +15 -21
  32. package/dist/esm/index245.js +22 -30
  33. package/dist/esm/index246.js +31 -2
  34. package/dist/esm/index247.js +2 -14
  35. package/dist/esm/index248.js +13 -12
  36. package/dist/esm/index249.js +10 -45
  37. package/dist/esm/index250.js +47 -9
  38. package/dist/esm/index251.js +8 -12
  39. package/dist/esm/index252.js +13 -14
  40. package/dist/esm/index253.js +14 -8
  41. package/dist/esm/index254.js +6 -13
  42. package/dist/esm/index255.js +15 -24
  43. package/dist/esm/index256.js +24 -11
  44. package/dist/esm/index257.js +10 -23
  45. package/dist/esm/index258.js +24 -51
  46. package/dist/esm/index259.js +51 -17
  47. package/dist/esm/index260.js +17 -14
  48. package/dist/esm/index261.js +14 -11
  49. package/dist/esm/index262.js +11 -103
  50. package/dist/esm/index263.js +103 -5
  51. package/dist/esm/index264.js +5 -223
  52. package/dist/esm/index265.js +223 -6
  53. package/dist/esm/index266.js +7 -7
  54. package/dist/esm/index267.js +7 -27
  55. package/dist/esm/index268.js +25 -18
  56. package/dist/esm/index269.js +18 -144
  57. package/dist/esm/index270.js +145 -12
  58. package/dist/esm/index271.js +12 -35
  59. package/dist/esm/index272.js +35 -41
  60. package/dist/esm/index273.js +42 -2
  61. package/dist/esm/index275.js +3 -136
  62. package/dist/esm/index276.js +136 -3
  63. package/dist/esm/index280.js +2 -2
  64. package/dist/esm/index282.js +1 -1
  65. package/dist/esm/index284.js +2 -2
  66. package/dist/esm/index285.js +2 -2
  67. package/dist/esm/index286.js +1 -1
  68. package/dist/esm/index287.js +1 -1
  69. package/dist/esm/index3.js +1 -1
  70. package/dist/esm/index40.js +1 -1
  71. package/dist/esm/index41.js +1 -1
  72. package/dist/esm/index44.js +3 -3
  73. package/dist/esm/index45.js +2 -2
  74. package/dist/esm/index46.js +3 -3
  75. package/dist/esm/index47.js +2 -2
  76. package/dist/esm/index48.js +3 -3
  77. package/dist/esm/index49.js +6 -6
  78. package/dist/esm/index50.js +2 -2
  79. package/dist/esm/index51.js +1 -1
  80. package/dist/esm/index52.js +1 -1
  81. package/dist/esm/index53.js +1 -1
  82. package/dist/esm/index54.js +1 -1
  83. package/dist/esm/index55.js +1 -1
  84. package/dist/esm/index56.js +1 -1
  85. package/dist/esm/index57.js +4 -4
  86. package/dist/esm/index58.js +1 -1
  87. package/dist/esm/index66.js +1 -1
  88. package/dist/esm/index67.js +2 -2
  89. package/dist/esm/index68.js +1 -1
  90. package/dist/esm/index73.js +1 -1
  91. package/dist/esm/index76.js +1 -1
  92. package/dist/esm/index79.js +1 -1
  93. package/dist/esm/index80.js +1 -1
  94. package/dist/esm/index81.js +3 -3
  95. package/dist/esm/index82.js +2 -2
  96. package/dist/esm/index83.js +1 -1
  97. package/dist/esm/index85.js +1 -1
  98. package/dist/esm/index86.js +1 -1
  99. package/dist/esm/index87.js +3 -3
  100. package/dist/esm/index88.js +3 -3
  101. package/dist/esm/index89.js +3 -3
  102. package/dist/esm/index90.js +3 -3
  103. package/dist/esm/index91.js +3 -3
  104. package/dist/esm/index92.js +3 -3
  105. package/dist/esm/index93.js +3 -3
  106. package/dist/esm/index94.js +1 -1
  107. package/dist/esm/index96.js +1 -1
  108. package/package.json +3 -3
@@ -1,139 +1,6 @@
1
- import { readContract as w } from "./index80.js";
2
- import { EnsAvatarUriResolutionError as d, EnsAvatarInvalidNftUriError as p, EnsAvatarUnsupportedNamespaceError as I, EnsAvatarInvalidMetadataError as y } from "./index124.js";
3
- const v = /(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/, A = /^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/, b = /^data:([a-zA-Z\-/+]*);base64,([^"].*)/, E = /^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;
4
- async function k(e) {
5
- try {
6
- const t = await fetch(e, { method: "HEAD" });
7
- return t.status === 200 ? t.headers.get("content-type")?.startsWith("image/") : !1;
8
- } catch (t) {
9
- return typeof t == "object" && typeof t.response < "u" || !globalThis.hasOwnProperty("Image") ? !1 : new Promise((n) => {
10
- const a = new Image();
11
- a.onload = () => {
12
- n(!0);
13
- }, a.onerror = () => {
14
- n(!1);
15
- }, a.src = e;
16
- });
17
- }
18
- }
19
- function l(e, t) {
20
- return e ? e.endsWith("/") ? e.slice(0, -1) : e : t;
21
- }
22
- function C({ uri: e, gatewayUrls: t }) {
23
- const n = b.test(e);
24
- if (n)
25
- return { uri: e, isOnChain: !0, isEncoded: n };
26
- const a = l(t?.ipfs, "https://ipfs.io"), r = l(t?.arweave, "https://arweave.net"), f = e.match(v), { protocol: i, subpath: c, target: s, subtarget: h = "" } = f?.groups || {}, u = i === "ipns:/" || c === "ipns/", m = i === "ipfs:/" || c === "ipfs/" || A.test(e);
27
- if (e.startsWith("http") && !u && !m) {
28
- let g = e;
29
- return t?.arweave && (g = e.replace(/https:\/\/arweave.net/g, t?.arweave)), { uri: g, isOnChain: !1, isEncoded: !1 };
30
- }
31
- if ((u || m) && s)
32
- return {
33
- uri: `${a}/${u ? "ipns" : "ipfs"}/${s}${h}`,
34
- isOnChain: !1,
35
- isEncoded: !1
36
- };
37
- if (i === "ar:/" && s)
38
- return {
39
- uri: `${r}/${s}${h || ""}`,
40
- isOnChain: !1,
41
- isEncoded: !1
42
- };
43
- let o = e.replace(E, "");
44
- if (o.startsWith("<svg") && (o = `data:image/svg+xml;base64,${btoa(o)}`), o.startsWith("data:") || o.startsWith("{"))
45
- return {
46
- uri: o,
47
- isOnChain: !0,
48
- isEncoded: !1
49
- };
50
- throw new d({ uri: e });
51
- }
52
- function U(e) {
53
- if (typeof e != "object" || !("image" in e) && !("image_url" in e) && !("image_data" in e))
54
- throw new y({ data: e });
55
- return e.image || e.image_url || e.image_data;
56
- }
57
- async function $({ gatewayUrls: e, uri: t }) {
58
- try {
59
- const n = await fetch(t).then((r) => r.json());
60
- return await R({
61
- gatewayUrls: e,
62
- uri: U(n)
63
- });
64
- } catch {
65
- throw new d({ uri: t });
66
- }
67
- }
68
- async function R({ gatewayUrls: e, uri: t }) {
69
- const { uri: n, isOnChain: a } = C({ uri: t, gatewayUrls: e });
70
- if (a || await k(n))
71
- return n;
72
- throw new d({ uri: t });
73
- }
74
- function D(e) {
75
- let t = e;
76
- t.startsWith("did:nft:") && (t = t.replace("did:nft:", "").replace(/_/g, "/"));
77
- const [n, a, r] = t.split("/"), [f, i] = n.split(":"), [c, s] = a.split(":");
78
- if (!f || f.toLowerCase() !== "eip155")
79
- throw new p({ reason: "Only EIP-155 supported" });
80
- if (!i)
81
- throw new p({ reason: "Chain ID not found" });
82
- if (!s)
83
- throw new p({
84
- reason: "Contract address not found"
85
- });
86
- if (!r)
87
- throw new p({ reason: "Token ID not found" });
88
- if (!c)
89
- throw new p({ reason: "ERC namespace not found" });
90
- return {
91
- chainID: Number.parseInt(i),
92
- namespace: c.toLowerCase(),
93
- contractAddress: s,
94
- tokenID: r
95
- };
96
- }
97
- async function O(e, { nft: t }) {
98
- if (t.namespace === "erc721")
99
- return w(e, {
100
- address: t.contractAddress,
101
- abi: [
102
- {
103
- name: "tokenURI",
104
- type: "function",
105
- stateMutability: "view",
106
- inputs: [{ name: "tokenId", type: "uint256" }],
107
- outputs: [{ name: "", type: "string" }]
108
- }
109
- ],
110
- functionName: "tokenURI",
111
- args: [BigInt(t.tokenID)]
112
- });
113
- if (t.namespace === "erc1155")
114
- return w(e, {
115
- address: t.contractAddress,
116
- abi: [
117
- {
118
- name: "uri",
119
- type: "function",
120
- stateMutability: "view",
121
- inputs: [{ name: "_id", type: "uint256" }],
122
- outputs: [{ name: "", type: "string" }]
123
- }
124
- ],
125
- functionName: "uri",
126
- args: [BigInt(t.tokenID)]
127
- });
128
- throw new I({ namespace: t.namespace });
1
+ function n(e) {
2
+ return `[${e.slice(2)}]`;
129
3
  }
130
4
  export {
131
- l as getGateway,
132
- U as getJsonImage,
133
- $ as getMetadataAvatarUri,
134
- O as getNftTokenUri,
135
- k as isImageUri,
136
- R as parseAvatarUri,
137
- D as parseNftUri,
138
- C as resolveAvatarUri
5
+ n as encodeLabelhash
139
6
  };
@@ -1,6 +1,139 @@
1
- function n(e) {
2
- return `[${e.slice(2)}]`;
1
+ import { readContract as w } from "./index80.js";
2
+ import { EnsAvatarUriResolutionError as d, EnsAvatarInvalidNftUriError as p, EnsAvatarUnsupportedNamespaceError as I, EnsAvatarInvalidMetadataError as y } from "./index124.js";
3
+ const v = /(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/, A = /^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/, b = /^data:([a-zA-Z\-/+]*);base64,([^"].*)/, E = /^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;
4
+ async function k(e) {
5
+ try {
6
+ const t = await fetch(e, { method: "HEAD" });
7
+ return t.status === 200 ? t.headers.get("content-type")?.startsWith("image/") : !1;
8
+ } catch (t) {
9
+ return typeof t == "object" && typeof t.response < "u" || !globalThis.hasOwnProperty("Image") ? !1 : new Promise((n) => {
10
+ const a = new Image();
11
+ a.onload = () => {
12
+ n(!0);
13
+ }, a.onerror = () => {
14
+ n(!1);
15
+ }, a.src = e;
16
+ });
17
+ }
18
+ }
19
+ function l(e, t) {
20
+ return e ? e.endsWith("/") ? e.slice(0, -1) : e : t;
21
+ }
22
+ function C({ uri: e, gatewayUrls: t }) {
23
+ const n = b.test(e);
24
+ if (n)
25
+ return { uri: e, isOnChain: !0, isEncoded: n };
26
+ const a = l(t?.ipfs, "https://ipfs.io"), r = l(t?.arweave, "https://arweave.net"), f = e.match(v), { protocol: i, subpath: c, target: s, subtarget: h = "" } = f?.groups || {}, u = i === "ipns:/" || c === "ipns/", m = i === "ipfs:/" || c === "ipfs/" || A.test(e);
27
+ if (e.startsWith("http") && !u && !m) {
28
+ let g = e;
29
+ return t?.arweave && (g = e.replace(/https:\/\/arweave.net/g, t?.arweave)), { uri: g, isOnChain: !1, isEncoded: !1 };
30
+ }
31
+ if ((u || m) && s)
32
+ return {
33
+ uri: `${a}/${u ? "ipns" : "ipfs"}/${s}${h}`,
34
+ isOnChain: !1,
35
+ isEncoded: !1
36
+ };
37
+ if (i === "ar:/" && s)
38
+ return {
39
+ uri: `${r}/${s}${h || ""}`,
40
+ isOnChain: !1,
41
+ isEncoded: !1
42
+ };
43
+ let o = e.replace(E, "");
44
+ if (o.startsWith("<svg") && (o = `data:image/svg+xml;base64,${btoa(o)}`), o.startsWith("data:") || o.startsWith("{"))
45
+ return {
46
+ uri: o,
47
+ isOnChain: !0,
48
+ isEncoded: !1
49
+ };
50
+ throw new d({ uri: e });
51
+ }
52
+ function U(e) {
53
+ if (typeof e != "object" || !("image" in e) && !("image_url" in e) && !("image_data" in e))
54
+ throw new y({ data: e });
55
+ return e.image || e.image_url || e.image_data;
56
+ }
57
+ async function $({ gatewayUrls: e, uri: t }) {
58
+ try {
59
+ const n = await fetch(t).then((r) => r.json());
60
+ return await R({
61
+ gatewayUrls: e,
62
+ uri: U(n)
63
+ });
64
+ } catch {
65
+ throw new d({ uri: t });
66
+ }
67
+ }
68
+ async function R({ gatewayUrls: e, uri: t }) {
69
+ const { uri: n, isOnChain: a } = C({ uri: t, gatewayUrls: e });
70
+ if (a || await k(n))
71
+ return n;
72
+ throw new d({ uri: t });
73
+ }
74
+ function D(e) {
75
+ let t = e;
76
+ t.startsWith("did:nft:") && (t = t.replace("did:nft:", "").replace(/_/g, "/"));
77
+ const [n, a, r] = t.split("/"), [f, i] = n.split(":"), [c, s] = a.split(":");
78
+ if (!f || f.toLowerCase() !== "eip155")
79
+ throw new p({ reason: "Only EIP-155 supported" });
80
+ if (!i)
81
+ throw new p({ reason: "Chain ID not found" });
82
+ if (!s)
83
+ throw new p({
84
+ reason: "Contract address not found"
85
+ });
86
+ if (!r)
87
+ throw new p({ reason: "Token ID not found" });
88
+ if (!c)
89
+ throw new p({ reason: "ERC namespace not found" });
90
+ return {
91
+ chainID: Number.parseInt(i),
92
+ namespace: c.toLowerCase(),
93
+ contractAddress: s,
94
+ tokenID: r
95
+ };
96
+ }
97
+ async function O(e, { nft: t }) {
98
+ if (t.namespace === "erc721")
99
+ return w(e, {
100
+ address: t.contractAddress,
101
+ abi: [
102
+ {
103
+ name: "tokenURI",
104
+ type: "function",
105
+ stateMutability: "view",
106
+ inputs: [{ name: "tokenId", type: "uint256" }],
107
+ outputs: [{ name: "", type: "string" }]
108
+ }
109
+ ],
110
+ functionName: "tokenURI",
111
+ args: [BigInt(t.tokenID)]
112
+ });
113
+ if (t.namespace === "erc1155")
114
+ return w(e, {
115
+ address: t.contractAddress,
116
+ abi: [
117
+ {
118
+ name: "uri",
119
+ type: "function",
120
+ stateMutability: "view",
121
+ inputs: [{ name: "_id", type: "uint256" }],
122
+ outputs: [{ name: "", type: "string" }]
123
+ }
124
+ ],
125
+ functionName: "uri",
126
+ args: [BigInt(t.tokenID)]
127
+ });
128
+ throw new I({ namespace: t.namespace });
3
129
  }
4
130
  export {
5
- n as encodeLabelhash
131
+ l as getGateway,
132
+ U as getJsonImage,
133
+ $ as getMetadataAvatarUri,
134
+ O as getNftTokenUri,
135
+ k as isImageUri,
136
+ R as parseAvatarUri,
137
+ D as parseNftUri,
138
+ C as resolveAvatarUri
6
139
  };
@@ -2,8 +2,8 @@ import { BaseError as y } from "./index289.js";
2
2
  import { keccak256 as v } from "./index292.js";
3
3
  import { validate as $, slice as A, fromString as S } from "./index277.js";
4
4
  import { isArgOfType as E, normalizeSignature as p, getAmbiguousTypes as B } from "./index293.js";
5
- import { parseAbiItem as l } from "./index230.js";
6
- import { formatAbiItem as h } from "./index222.js";
5
+ import { parseAbiItem as l } from "./index231.js";
6
+ import { formatAbiItem as h } from "./index223.js";
7
7
  function H(e, r = {}) {
8
8
  const { prepare: i = !0 } = r, n = Array.isArray(e) ? l(e) : typeof e == "string" ? l(e) : e;
9
9
  return {
@@ -1,4 +1,4 @@
1
- import { Hash as g, createView as l, aexists as b, toBytes as a, abytes as d, aoutput as x, clean as w } from "./index269.js";
1
+ import { Hash as g, createView as l, aexists as b, toBytes as a, abytes as d, aoutput as x, clean as w } from "./index270.js";
2
2
  function y(o, t, s, n) {
3
3
  if (typeof o.setBigUint64 == "function")
4
4
  return o.setBigUint64(t, s, n);
@@ -1,8 +1,8 @@
1
1
  import { hmac as dt } from "./index286.js";
2
2
  import { _validateObject as at, bitMask as ft, abool as Q, ensureBytes as z, memoized as nt, createHmacDrbg as ht, bytesToNumberBE as ct, numberToHexUnpadded as M, aInRange as mt } from "./index285.js";
3
3
  import { _createCurveFields as wt, wNAF as yt, normalizeZ as pt, pippenger as gt, mulEndoUnsafe as Et, negateCt as ot } from "./index287.js";
4
- import { Field as bt, mapHashToField as vt, getMinHashLength as Bt } from "./index264.js";
5
- import { concatBytes as I, abytes as it, bytesToHex as rt, hexToBytes as xt, randomBytes as St, isBytes as Rt } from "./index269.js";
4
+ import { Field as bt, mapHashToField as vt, getMinHashLength as Bt } from "./index265.js";
5
+ import { concatBytes as I, abytes as it, bytesToHex as rt, hexToBytes as xt, randomBytes as St, isBytes as Rt } from "./index270.js";
6
6
  function st(e) {
7
7
  e.lowS !== void 0 && Q("lowS", e.lowS), e.prehash !== void 0 && Q("prehash", e.prehash);
8
8
  }
@@ -1,5 +1,5 @@
1
- import { hexToBytes as p, isBytes as B, abytes as v, bytesToHex as d, concatBytes as U } from "./index269.js";
2
- import { anumber as W, randomBytes as C, utf8ToBytes as G } from "./index269.js";
1
+ import { hexToBytes as p, isBytes as B, abytes as v, bytesToHex as d, concatBytes as U } from "./index270.js";
2
+ import { anumber as W, randomBytes as C, utf8ToBytes as G } from "./index270.js";
3
3
  const y = /* @__PURE__ */ BigInt(0), g = /* @__PURE__ */ BigInt(1);
4
4
  function k(t, r) {
5
5
  if (typeof r != "boolean")
@@ -1,4 +1,4 @@
1
- import { Hash as d, ahash as u, toBytes as H, clean as l, aexists as a, abytes as p } from "./index269.js";
1
+ import { Hash as d, ahash as u, toBytes as H, clean as l, aexists as a, abytes as p } from "./index270.js";
2
2
  class r extends d {
3
3
  constructor(t, i) {
4
4
  super(), this.finished = !1, this.destroyed = !1, u(t);
@@ -1,5 +1,5 @@
1
1
  import { bitLen as B, bitMask as z } from "./index285.js";
2
- import { validateField as Z, Field as O, FpInvertBatch as R } from "./index264.js";
2
+ import { validateField as Z, Field as O, FpInvertBatch as R } from "./index265.js";
3
3
  const g = BigInt(0), h = BigInt(1);
4
4
  function b(t, r) {
5
5
  const e = r.negate();
@@ -1,4 +1,4 @@
1
- const o = "0.0.74";
1
+ const o = "0.0.75";
2
2
  export {
3
3
  o as VERSION
4
4
  };
@@ -1,4 +1,4 @@
1
- import { withResolvers as d } from "./index240.js";
1
+ import { withResolvers as d } from "./index241.js";
2
2
  const h = /* @__PURE__ */ new Map();
3
3
  function S({ fn: p, id: o, shouldSplitBatch: a, wait: g = 0, sort: l }) {
4
4
  const u = async () => {
@@ -1,7 +1,7 @@
1
1
  import { TimeoutError as m, HttpRequestError as i } from "./index38.js";
2
2
  import { withTimeout as j } from "./index202.js";
3
3
  import { stringify as c } from "./index128.js";
4
- import { idCache as y } from "./index241.js";
4
+ import { idCache as y } from "./index242.js";
5
5
  function E(s, o = {}) {
6
6
  return {
7
7
  async request(p) {
@@ -4,11 +4,11 @@ import { encodeFunctionData as R } from "./index162.js";
4
4
  import { getChainContractAddress as b } from "./index198.js";
5
5
  import { trim as w } from "./index147.js";
6
6
  import { toHex as C } from "./index134.js";
7
- import { isNullUniversalResolverError as y } from "./index242.js";
7
+ import { isNullUniversalResolverError as y } from "./index243.js";
8
8
  import { localBatchGatewayUrl as x } from "./index188.js";
9
9
  import { namehash as i } from "./index137.js";
10
- import { packetToBytes as N } from "./index243.js";
11
- import { getAction as B } from "./index236.js";
10
+ import { packetToBytes as N } from "./index244.js";
11
+ import { getAction as B } from "./index237.js";
12
12
  import { readContract as T } from "./index80.js";
13
13
  async function J(a, o) {
14
14
  const { blockNumber: l, blockTag: m, coinType: t, name: e, gatewayUrls: f, strict: v } = o, { chain: n } = a, p = (() => {
@@ -1,5 +1,5 @@
1
- import { parseAvatarRecord as m } from "./index244.js";
2
- import { getAction as u } from "./index236.js";
1
+ import { parseAvatarRecord as m } from "./index245.js";
2
+ import { getAction as u } from "./index237.js";
3
3
  import { getEnsText as f } from "./index48.js";
4
4
  async function y(t, { blockNumber: a, blockTag: e, assetGatewayUrls: n, name: o, gatewayUrls: c, strict: i, universalResolverAddress: s }) {
5
5
  const r = await u(t, f, "getEnsText")({
@@ -1,9 +1,9 @@
1
1
  import { universalResolverReverseAbi as f } from "./index97.js";
2
2
  import { getChainContractAddress as u } from "./index198.js";
3
3
  import { toHex as h } from "./index134.js";
4
- import { isNullUniversalResolverError as p } from "./index242.js";
5
- import { packetToBytes as C } from "./index243.js";
6
- import { getAction as w } from "./index236.js";
4
+ import { isNullUniversalResolverError as p } from "./index243.js";
5
+ import { packetToBytes as C } from "./index244.js";
6
+ import { getAction as w } from "./index237.js";
7
7
  import { readContract as A } from "./index80.js";
8
8
  async function b(e, { address: t, blockNumber: s, blockTag: i, gatewayUrls: a, strict: c, universalResolverAddress: d }) {
9
9
  let o = d;
@@ -1,7 +1,7 @@
1
1
  import { getChainContractAddress as l } from "./index198.js";
2
2
  import { toHex as u } from "./index134.js";
3
- import { packetToBytes as v } from "./index243.js";
4
- import { getAction as f } from "./index236.js";
3
+ import { packetToBytes as v } from "./index244.js";
4
+ import { getAction as f } from "./index237.js";
5
5
  import { readContract as m } from "./index80.js";
6
6
  async function A(o, r) {
7
7
  const { blockNumber: n, blockTag: i, name: s } = r, { chain: e } = o, a = (() => {
@@ -3,11 +3,11 @@ import { decodeFunctionResult as p } from "./index155.js";
3
3
  import { encodeFunctionData as A } from "./index162.js";
4
4
  import { getChainContractAddress as R } from "./index198.js";
5
5
  import { toHex as b } from "./index134.js";
6
- import { isNullUniversalResolverError as g } from "./index242.js";
6
+ import { isNullUniversalResolverError as g } from "./index243.js";
7
7
  import { localBatchGatewayUrl as w } from "./index188.js";
8
8
  import { namehash as x } from "./index137.js";
9
- import { packetToBytes as C } from "./index243.js";
10
- import { getAction as y } from "./index236.js";
9
+ import { packetToBytes as C } from "./index244.js";
10
+ import { getAction as y } from "./index237.js";
11
11
  import { readContract as N } from "./index80.js";
12
12
  async function j(n, e) {
13
13
  const { blockNumber: s, blockTag: m, key: d, name: t, gatewayUrls: u, strict: f } = e, { chain: o } = n, v = (() => {
@@ -1,7 +1,7 @@
1
- import { toRpc as $ } from "./index245.js";
1
+ import { toRpc as $ } from "./index246.js";
2
2
  import { parseAccount as W } from "./index36.js";
3
3
  import { multicall3Abi as O } from "./index97.js";
4
- import { aggregate3Signature as I } from "./index246.js";
4
+ import { aggregate3Signature as I } from "./index247.js";
5
5
  import { deploylessCallViaBytecodeBytecode as J, deploylessCallViaFactoryBytecode as K } from "./index99.js";
6
6
  import { BaseError as N } from "./index107.js";
7
7
  import { ClientChainNotConfiguredError as P, ChainDoesNotSupportContract as Q } from "./index122.js";
@@ -11,13 +11,13 @@ import { encodeDeployData as T } from "./index159.js";
11
11
  import { encodeFunctionData as Z } from "./index162.js";
12
12
  import { getChainContractAddress as tt } from "./index198.js";
13
13
  import { numberToHex as V } from "./index134.js";
14
- import { getCallError as at } from "./index247.js";
15
- import { extract as et } from "./index248.js";
14
+ import { getCallError as at } from "./index248.js";
15
+ import { extract as et } from "./index249.js";
16
16
  import { formatTransactionRequest as rt } from "./index169.js";
17
17
  import { createBatchScheduler as ot } from "./index40.js";
18
- import { serializeStateOverride as ct } from "./index249.js";
18
+ import { serializeStateOverride as ct } from "./index250.js";
19
19
  import { assertRequest as nt } from "./index182.js";
20
- import { parseAbi as z } from "./index226.js";
20
+ import { parseAbi as z } from "./index227.js";
21
21
  async function Et(t, a) {
22
22
  const { account: e = t.account, authorizationList: n, batch: r = !!t.batch?.multicall, blockNumber: m, blockTag: C = t.experimental_blockTag ?? "latest", accessList: x, blobs: D, blockOverrides: d, code: p, data: o, factory: u, factoryData: s, gas: B, gasPrice: b, maxFeePerBlobGas: h, maxFeePerGas: y, maxPriorityFeePerGas: g, nonce: k, to: f, value: H, stateOverride: L, ...j } = a, R = e ? W(e) : void 0;
23
23
  if (p && (u || s))
@@ -1,7 +1,7 @@
1
1
  import { parseAccount as P } from "./index36.js";
2
2
  import { numberToHex as y } from "./index134.js";
3
- import { getCallError as F } from "./index247.js";
4
- import { extract as L } from "./index248.js";
3
+ import { getCallError as F } from "./index248.js";
4
+ import { extract as L } from "./index249.js";
5
5
  import { formatTransactionRequest as A } from "./index169.js";
6
6
  import { assertRequest as G } from "./index182.js";
7
7
  async function _(t, e) {
@@ -1,4 +1,4 @@
1
- import { createFilterRequestScope as r } from "./index237.js";
1
+ import { createFilterRequestScope as r } from "./index238.js";
2
2
  async function i(e) {
3
3
  const o = r(e, {
4
4
  method: "eth_newBlockFilter"
@@ -1,6 +1,6 @@
1
1
  import { encodeEventTopics as l } from "./index161.js";
2
2
  import { numberToHex as s } from "./index134.js";
3
- import { createFilterRequestScope as u } from "./index237.js";
3
+ import { createFilterRequestScope as u } from "./index238.js";
4
4
  async function h(r, a) {
5
5
  const { address: m, abi: n, args: i, eventName: e, fromBlock: t, strict: p, toBlock: o } = a, f = u(r, {
6
6
  method: "eth_newFilter"
@@ -1,6 +1,6 @@
1
1
  import { encodeEventTopics as b } from "./index161.js";
2
2
  import { numberToHex as m } from "./index134.js";
3
- import { createFilterRequestScope as h } from "./index237.js";
3
+ import { createFilterRequestScope as h } from "./index238.js";
4
4
  async function l(r, { address: p, args: a, event: e, events: c, fromBlock: n, strict: f, toBlock: i } = {}) {
5
5
  const o = c ?? (e ? [e] : void 0), u = h(r, {
6
6
  method: "eth_newFilter"
@@ -1,4 +1,4 @@
1
- import { createFilterRequestScope as r } from "./index237.js";
1
+ import { createFilterRequestScope as r } from "./index238.js";
2
2
  async function a(e) {
3
3
  const n = r(e, {
4
4
  method: "eth_newPendingTransactionFilter"
@@ -1,7 +1,7 @@
1
1
  import { parseAccount as u } from "./index36.js";
2
2
  import { encodeFunctionData as f } from "./index162.js";
3
3
  import { getContractError as p } from "./index205.js";
4
- import { getAction as g } from "./index236.js";
4
+ import { getAction as g } from "./index237.js";
5
5
  import { estimateGas as G } from "./index57.js";
6
6
  async function A(s, i) {
7
7
  const { abi: a, address: o, args: r, functionName: c, dataSuffix: e, ...t } = i, m = f({
@@ -1,5 +1,5 @@
1
1
  import { BaseFeeScalarError as p, Eip1559FeesNotSupportedError as F } from "./index120.js";
2
- import { getAction as l } from "./index236.js";
2
+ import { getAction as l } from "./index237.js";
3
3
  import { internal_estimateMaxPriorityFeePerGas as u } from "./index58.js";
4
4
  import { getBlock as G } from "./index61.js";
5
5
  import { getGasPrice as b } from "./index71.js";
@@ -1,11 +1,11 @@
1
1
  import { parseAccount as R } from "./index36.js";
2
2
  import { BaseError as _ } from "./index107.js";
3
- import { recoverAuthorizationAddress as A } from "./index250.js";
3
+ import { recoverAuthorizationAddress as A } from "./index251.js";
4
4
  import { numberToHex as x } from "./index134.js";
5
- import { getEstimateGasError as E } from "./index251.js";
6
- import { extract as N } from "./index248.js";
5
+ import { getEstimateGasError as E } from "./index252.js";
6
+ import { extract as N } from "./index249.js";
7
7
  import { formatTransactionRequest as S } from "./index169.js";
8
- import { serializeStateOverride as I } from "./index249.js";
8
+ import { serializeStateOverride as I } from "./index250.js";
9
9
  import { assertRequest as V } from "./index182.js";
10
10
  import { prepareTransactionRequest as C } from "./index94.js";
11
11
  import { getBalance as j } from "./index59.js";
@@ -1,6 +1,6 @@
1
1
  import { Eip1559FeesNotSupportedError as f } from "./index120.js";
2
2
  import { hexToBigInt as u } from "./index167.js";
3
- import { getAction as s } from "./index236.js";
3
+ import { getAction as s } from "./index237.js";
4
4
  import { getBlock as c } from "./index61.js";
5
5
  import { getGasPrice as y } from "./index71.js";
6
6
  async function h(e, o) {
@@ -1,5 +1,5 @@
1
1
  import { getAbiItem as p } from "./index114.js";
2
- import { getAction as v } from "./index236.js";
2
+ import { getAction as v } from "./index237.js";
3
3
  import { getLogs as l } from "./index72.js";
4
4
  async function y(n, r) {
5
5
  const { abi: t, address: s, args: c, blockHash: i, eventName: e, fromBlock: m, toBlock: a, strict: f } = r, o = e ? p({ abi: t, name: e }) : void 0, g = o ? void 0 : t.filter((d) => d.type === "event");
@@ -1,5 +1,5 @@
1
- import { Eip712DomainNotFoundError as u } from "./index252.js";
2
- import { getAction as d } from "./index236.js";
1
+ import { Eip712DomainNotFoundError as u } from "./index253.js";
2
+ import { getAction as d } from "./index237.js";
3
3
  import { readContract as f } from "./index80.js";
4
4
  async function E(a, o) {
5
5
  const { address: e, factory: r, factoryData: i } = o;
@@ -1,5 +1,5 @@
1
1
  import { numberToHex as o } from "./index134.js";
2
- import { formatFeeHistory as f } from "./index253.js";
2
+ import { formatFeeHistory as f } from "./index254.js";
3
3
  async function u(r, { blockCount: i, blockNumber: e, blockTag: n = "latest", rewardPercentiles: s }) {
4
4
  const t = typeof e == "bigint" ? o(e) : void 0, a = await r.request({
5
5
  method: "eth_feeHistory",
@@ -1,5 +1,5 @@
1
1
  import { numberToHex as c } from "./index134.js";
2
- import { formatProof as s } from "./index254.js";
2
+ import { formatProof as s } from "./index255.js";
3
3
  async function d(t, { address: e, blockNumber: o, blockTag: r, storageKeys: n }) {
4
4
  const f = r ?? "latest", a = o !== void 0 ? c(o) : void 0, m = await t.request({
5
5
  method: "eth_getProof",
@@ -1,4 +1,4 @@
1
- import { getAction as n } from "./index236.js";
1
+ import { getAction as n } from "./index237.js";
2
2
  import { getBlockNumber as a } from "./index62.js";
3
3
  import { getTransaction as m } from "./index75.js";
4
4
  async function f(o, { hash: r, transactionReceipt: e }) {
@@ -6,7 +6,7 @@ import { decodeFunctionResult as q } from "./index155.js";
6
6
  import { encodeFunctionData as B } from "./index162.js";
7
7
  import { getChainContractAddress as O } from "./index198.js";
8
8
  import { getContractError as E } from "./index205.js";
9
- import { getAction as T } from "./index236.js";
9
+ import { getAction as T } from "./index237.js";
10
10
  import { readContract as Z } from "./index80.js";
11
11
  async function W(n, w) {
12
12
  const { account: b, allowFailure: u = !0, batchSize: F, blockNumber: p, blockTag: j, multicallAddress: y, stateOverride: N } = w, d = w.contracts, C = F ?? (typeof n.batch?.multicall == "object" && n.batch.multicall.batchSize || 1024);
@@ -1,7 +1,7 @@
1
1
  import { decodeFunctionResult as m } from "./index155.js";
2
2
  import { encodeFunctionData as s } from "./index162.js";
3
3
  import { getContractError as f } from "./index205.js";
4
- import { getAction as l } from "./index236.js";
4
+ import { getAction as l } from "./index237.js";
5
5
  import { call as p } from "./index49.js";
6
6
  async function x(n, e) {
7
7
  const { abi: t, address: c, args: o, functionName: r, ...d } = e, i = s({
@@ -1,4 +1,4 @@
1
- import { toRpc as R } from "./index245.js";
1
+ import { toRpc as R } from "./index246.js";
2
2
  import { parseAccount as q } from "./index36.js";
3
3
  import { AbiDecodingZeroDataError as D } from "./index104.js";
4
4
  import { RawContractError as S } from "./index110.js";
@@ -8,11 +8,11 @@ import { encodeFunctionData as C } from "./index162.js";
8
8
  import { concat as F } from "./index138.js";
9
9
  import { numberToHex as H } from "./index134.js";
10
10
  import { getContractError as U } from "./index205.js";
11
- import { getNodeError as A } from "./index255.js";
11
+ import { getNodeError as A } from "./index256.js";
12
12
  import { formatBlock as _ } from "./index139.js";
13
13
  import { formatLog as z } from "./index142.js";
14
14
  import { formatTransactionRequest as I } from "./index169.js";
15
- import { serializeStateOverride as L } from "./index249.js";
15
+ import { serializeStateOverride as L } from "./index250.js";
16
16
  import { assertRequest as V } from "./index182.js";
17
17
  async function nr(p, g) {
18
18
  const { blockNumber: b, blockTag: x = p.experimental_blockTag ?? "latest", blocks: k, returnFullTransactions: v, traceTransfers: w, validation: N } = g;